/* Showmap beheer — zelfde huisstijl als Kijkcijfer (DRVisual) */
:root {
    --rood: #D91E25;
    --rood-donker: #B8171D;
    --oranje: #F68814;
    --zwart: #231F20;
    --grijs: #6B6362;
    --lijn: #E7E2DC;
    --zacht: #F0ECE6;
    --achtergrond: #F7F4F0;
    --veld: #CFC7BF;
    --card: #ffffff;
    --danger: #A3151B;
    --danger-bg: #FBE3E4;
    --success: #14562F;
    --success-bg: #E3F2E9;
}

* { box-sizing: border-box; }

body {
    font-family: Manrope, system-ui, Arial, sans-serif;
    background: var(--achtergrond);
    color: var(--zwart);
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

a { color: var(--rood); }
h1, h2 { font-family: Roboto, Arial, sans-serif; font-weight: 700; }

/* Kopbalk */
.topbar {
    background: var(--zwart);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0 28px;
    min-height: 60px;
    flex-wrap: wrap;
}
.topbar .brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    text-decoration: none;
    font: 700 19px Roboto, Arial, sans-serif;
}
.topbar .brand .mark { color: var(--zwart); }
.topbar .brand span { font: 400 14px Manrope, sans-serif; color: #C9C2BA; margin-left: 2px; }
.topbar nav { display: flex; align-items: center; gap: 20px; flex-grow: 1; }
.topbar nav a {
    color: #E7E2DC;
    text-decoration: none;
    font-weight: 600;
    padding: 18px 0;
    border-bottom: 3px solid transparent;
}
.topbar nav a:hover { color: #fff; }
.topbar nav a.actief { color: #fff; border-color: var(--oranje); }
.topbar .vul { flex-grow: 1; }
.topbar .who { color: #C9C2BA; font-size: 13px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 28px; }
.wrap-narrow { max-width: 640px; }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-size: 26px; margin: 0; }
.page-head > div { display: flex; gap: 10px; flex-wrap: wrap; }

.empty { color: var(--grijs); font-size: 15px; background: var(--card); border-radius: 12px; padding: 22px 24px; }

/* Knoppen */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 8px;
    border: 2px solid var(--rood);
    background: #fff;
    color: var(--rood);
    text-decoration: none;
    font: 700 14px Manrope, Arial, sans-serif;
    cursor: pointer;
    white-space: nowrap;
}
.btn:hover { background: #FDF1F1; }
.btn:disabled { opacity: .45; cursor: default; }
.btn-primary { background: var(--rood); color: #fff; }
.btn-primary:hover { background: var(--rood-donker); border-color: var(--rood-donker); }
.btn-danger { background: #fff; color: var(--danger); border-color: #E9B7B9; }
.btn-danger:hover { background: var(--danger-bg); }
.btn-small { min-height: 34px; padding: 0 12px; font-size: 13px; }

/* Tabellen */
.gallery-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; }
.gallery-table th, .gallery-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--zacht); vertical-align: middle; }
.gallery-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--grijs); font-weight: 700; border-bottom-color: #DCD5CD; }
.gallery-table tr:last-child td { border-bottom: none; }
.gallery-table .actions { text-align: right; }
.gallery-table .actions a { margin-left: 14px; font-weight: 600; font-size: 14px; text-decoration: none; }
.gallery-table .actions a:hover { text-decoration: underline; }
.gallery-table .muted { color: var(--grijs); }

.color-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }

.badge { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 20px; white-space: nowrap; display: inline-block; background: #EEEAE5; color: var(--grijs); }
.badge-public { background: #E3F2E9; color: #14562F; }
.badge-password { background: #FDEBD8; color: #8A4A05; }
.badge-email { background: #E4EEF8; color: #1F4E7A; }

/* Formulieren */
.card-form { background: var(--card); border-radius: 12px; padding: 22px 24px; margin-bottom: 22px; }
.card-form h2 { font-size: 18px; margin: 26px 0 4px; padding-top: 20px; border-top: 1px solid var(--zacht); }
.card-form h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.card-form label { display: block; font-size: 13px; font-weight: 600; margin: 16px 0 5px; }
.card-form label:first-child { margin-top: 0; }
.card-form input[type=text], .card-form input[type=password], .card-form input[type=email], .card-form input[type=number], .card-form input[type=date], .card-form textarea, .card-form select {
    width: 100%; padding: 9px 11px; border: 1px solid var(--veld); border-radius: 7px; font: 14px Manrope, Arial, sans-serif; background: #fff;
}
.card-form textarea { resize: vertical; }
.card-form .hint { font-size: 13px; color: var(--grijs); margin: 4px 0 0; }
.color-input { width: 64px; height: 40px; padding: 2px; border: 1px solid var(--veld); border-radius: 7px; cursor: pointer; background: #fff; }
.color-field { display: flex; align-items: center; gap: 10px; }
.hex-input { width: 110px !important; padding: 9px 11px; border: 1px solid var(--veld); border-radius: 7px; font-size: 13px; font-family: Consolas, "Liberation Mono", monospace; text-transform: uppercase; }
.radio-group { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.radio { font-size: 14px; font-weight: 400 !important; display: flex; align-items: center; gap: 8px; margin: 0 !important; }
.radio input { accent-color: var(--rood); }
.conditional { display: none; }
.card-form button[type=submit] { margin-top: 22px; }

.import-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.import-status { font-size: 13px; color: var(--grijs); }

.checkbox-list { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow-y: auto; border: 1px solid var(--veld); border-radius: 7px; padding: 10px 12px; margin-top: 4px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 400 !important; margin: 0 !important; }
.checkbox-row input, .check-inline input { accent-color: var(--rood); }

.numslide-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.numslide-row input[type=number] { width: 80px !important; }
.check-inline { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 400 !important; margin: 10px 0 0 !important; }

.delete-form { text-align: right; }

.error { background: var(--danger-bg); color: var(--danger); padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.success { background: var(--success-bg); color: var(--success); padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }

.url-line { font-size: 14px; color: var(--grijs); margin: -8px 0 20px; }
.url-line a { font-weight: 600; }

/* Inlogpagina's */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 16px; }
.auth-box { max-width: 420px; width: 100%; background: var(--card); border-radius: 12px; padding: 30px; }
.auth-box .merk { display: flex; align-items: center; gap: 9px; font: 700 20px Roboto, Arial, sans-serif; margin-bottom: 18px; }
.auth-box .merk .mark { color: #fff; }
.auth-box h1 { font-size: 24px; margin: 0 0 4px; }
.auth-box .sub { color: var(--grijs); margin: 0 0 20px; font-size: 14px; }
.auth-box label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 5px; }
.auth-box input { width: 100%; padding: 9px 11px; border: 1px solid var(--veld); border-radius: 7px; font: 14px Manrope, Arial, sans-serif; }
.auth-box button { width: 100%; min-height: 44px; background: var(--rood); color: #fff; border: none; border-radius: 8px; font: 700 15px Manrope, Arial, sans-serif; cursor: pointer; margin-top: 18px; }
.auth-box button:hover { background: var(--rood-donker); }

/* Uploadpagina */
.upload-drop {
    border: 2px dashed var(--veld);
    border-radius: 12px;
    padding: 36px 20px;
    text-align: center;
    color: var(--grijs);
    font-size: 15px;
    background: var(--card);
    margin-bottom: 22px;
    cursor: pointer;
}
.upload-drop strong { color: var(--zwart); }
.upload-drop.dragover { border-color: var(--rood); background: #FDF7F4; color: var(--zwart); }
.upload-drop input[type=file] { display: none; }
.upload-progress { margin-bottom: 22px; background: var(--card); border-radius: 12px; padding: 14px 18px; }
.upload-progress-bar { height: 6px; background: var(--zacht); border-radius: 3px; overflow: hidden; margin-bottom: 8px; }
.upload-progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--oranje), var(--rood)); width: 0%; transition: width .2s; }
.upload-status { font-size: 13px; color: var(--grijs); }
.upload-status .fail { color: var(--danger); font-weight: 600; }

.grid-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.grid-toolbar .links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cols-control { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--grijs); font-weight: 600; }
.cols-control input[type=range] { width: 120px; accent-color: var(--rood); }
.order-status { font-size: 13px; color: var(--grijs); min-height: 1em; }
.order-status.ok { color: var(--success); }
.order-status.fail { color: var(--danger); }

.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.photo-tile { display: flex; flex-direction: column; gap: 6px; min-width: 0; background: var(--card); border-radius: 10px; padding: 6px; }
.photo-thumb { position: relative; border-radius: 7px; overflow: hidden; background: var(--zacht); aspect-ratio: 1; cursor: grab; touch-action: none; }
.photo-thumb:active { cursor: grabbing; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.photo-thumb .del-btn {
    position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%;
    background: rgba(35,31,32,.65); color: #fff; border: none; cursor: pointer; font-size: 16px; line-height: 1;
}
.photo-thumb .del-btn:hover { background: var(--rood); }
.photo-thumb .order-nr {
    position: absolute; left: 6px; top: 6px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px;
    background: rgba(35,31,32,.65); color: #fff; font: 700 12px Manrope, sans-serif; display: flex; align-items: center; justify-content: center;
}
.photo-thumb .video-badge {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 46px; height: 46px; border-radius: 50%; background: rgba(35,31,32,.6);
    display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.photo-thumb .video-badge::after { content: ""; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; margin-left: 4px; }
.photo-thumb .duration {
    position: absolute; right: 6px; bottom: 6px; padding: 1px 7px; border-radius: 10px;
    background: rgba(35,31,32,.7); color: #fff; font: 600 12px Manrope, sans-serif;
}
.photo-tile.sortable-ghost { opacity: .35; }
.photo-tile.sortable-chosen .photo-thumb { box-shadow: 0 0 0 3px var(--oranje); }
.title-input { width: 100%; padding: 6px 8px; border: 1px solid var(--veld); border-radius: 6px; font: 13px Manrope, sans-serif; background: #fff; }
.title-input:focus { outline: 2px solid var(--oranje); outline-offset: -1px; }
.title-input.saved { border-color: #5DB07F; }

@media (max-width: 760px) {
    .topbar { padding: 0 16px; gap: 14px; }
    .topbar nav { gap: 14px; overflow-x: auto; }
    .topbar .who { display: none; }
    .wrap { padding: 16px; }
    .card-form { padding: 16px; }
    .gallery-table th:nth-child(3), .gallery-table td:nth-child(3),
    .gallery-table th:nth-child(6), .gallery-table td:nth-child(6) { display: none; }
    .gallery-table th, .gallery-table td { padding: 10px 8px; font-size: 13px; }
    .photo-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Opmaak diavoorstelling */
.design-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.design-form h2 { font-size: 18px; }
.design-preview-wrap { position: sticky; top: 16px; background: var(--card); border-radius: 12px; padding: 16px; }
.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; min-height: 34px; }
.preview-toggle { display: inline-flex; gap: 6px; }
.design-preview { --pad-v: 3.5cqh; --pad-h: 3cqw; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; --pad: 3.5cqh; container-type: size; }
.preview-photo {
    --in-t: max(3.5cqh, var(--res-t, 0px)); --in-r: max(3cqw, var(--res-r, 0px));
    --in-b: max(3.5cqh, var(--res-b, 0px)); --in-l: max(3cqw, var(--res-l, 0px));
    position: absolute; inset: var(--in-t) var(--in-r) var(--in-b) var(--in-l); margin: auto;
    max-width: calc(100% - var(--in-l) - var(--in-r)); max-height: calc(100% - var(--in-t) - var(--in-b));
    display: block; object-fit: contain;
    border: var(--border-width, 2px) solid var(--border-color); border-radius: var(--border-radius, 5px); z-index: 1; box-shadow: var(--photo-shadow, none);
}
.preview-empty { display: flex; align-items: center; justify-content: center; color: #C9C2BA; border: 0; font-size: 14px; width: 90%; height: 90%; }
.file-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.file-thumb { height: 48px; width: auto; max-width: 120px; border-radius: 6px; border: 1px solid var(--lijn); background: #fff; object-fit: cover; }
.logo-thumb { object-fit: contain; background: repeating-conic-gradient(#EEE 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.file-btn { margin: 0 !important; }
.slider-row[hidden] { display: none; }
.slider-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.slider-row > label { flex: 1 1 180px; margin-top: 12px !important; }
.slider-row input[type=range] { width: 100%; accent-color: var(--rood); margin-top: 6px; display: block; }
.slider-row select { margin-top: 5px; }
.text-rows { display: flex; flex-direction: column; gap: 12px; margin: 14px 0; }
.text-row { border: 1px solid var(--lijn); border-radius: 10px; padding: 12px; background: #FDFBF9; }
.text-row-top { display: flex; gap: 8px; align-items: center; }
.text-row-top .t-text { flex: 1; }
.del-row { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--zacht); color: var(--zwart); font-size: 18px; cursor: pointer; flex-shrink: 0; }
.del-row:hover { background: var(--rood); color: #fff; }
.text-row-opts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.text-row-opts select { width: auto !important; min-width: 150px; padding: 8px 10px; border: 1px solid var(--veld); border-radius: 7px; font: 14px Manrope, sans-serif; }
.text-row-opts .t-color { width: 44px; height: 36px; }
.text-row-opts label { margin: 0 !important; font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.text-row-opts .t-size { width: 110px; accent-color: var(--rood); }
.text-row-opts .check-inline { font-weight: 400 !important; }
@media (max-width: 980px) {
    .design-layout { grid-template-columns: 1fr; }
    .design-preview-wrap { position: static; order: -1; }
}

/* Bibliotheek met achtergronden */
.lib-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lib-head label { margin-bottom: 0 !important; }
.lib-filter { width: auto !important; min-width: 220px; margin-top: 10px; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin: 10px 0 12px; max-height: 300px; overflow-y: auto; padding: 2px; }
.lib-tile {
    position: relative; aspect-ratio: 16 / 9; border: 2px solid transparent; border-radius: 8px; padding: 0; cursor: pointer;
    background: var(--zacht) center / cover no-repeat; outline: 1px solid var(--lijn);
}
.lib-tile span {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 6px; font: 600 11px Manrope, sans-serif; color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,.6)); border-radius: 0 0 6px 6px; text-align: left;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lib-tile.lib-none { background: repeating-linear-gradient(45deg, #fff 0 8px, var(--zacht) 8px 16px); }
.lib-tile.lib-none span { position: static; background: none; color: var(--grijs); display: flex; align-items: center; justify-content: center; height: 100%; }
.lib-tile:hover { outline-color: var(--oranje); }
.lib-tile.actief { border-color: var(--rood); outline-color: var(--rood); }
.f-group, .f-font { width: auto !important; min-width: 120px; padding: 8px 10px; border: 1px solid var(--veld); border-radius: 7px; font: 14px Manrope, sans-serif; }
.f-font { min-width: 170px; }
.font-pick { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.cap-nr { font-weight: 700; font-size: 13px; color: var(--grijs); white-space: nowrap; }
.text-row-opts label[hidden], #logoOpts[hidden], #capOpts[hidden], .del-row[hidden], #addText[hidden], #addCap[hidden] { display: none !important; }

/* Keuze van de toepassing bij een nieuwe map */
.purpose-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-bottom: 6px; }
.purpose-card { margin: 0 !important; font-weight: 400 !important; cursor: pointer; }
.purpose-card input { position: absolute; opacity: 0; pointer-events: none; }
.purpose-card span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 10px 12px; border: 1px solid var(--veld); border-radius: 9px; background: #fff; }
.purpose-card strong { font-size: 14px; }
.purpose-card small { color: var(--grijs); font-size: 12px; }
.purpose-card:hover span { border-color: var(--oranje); }
.purpose-card input:checked + span { border-color: var(--rood); box-shadow: 0 0 0 2px var(--rood) inset; background: #FDF7F4; }
.purpose-card input:focus-visible + span { outline: 2px solid var(--oranje); outline-offset: 2px; }
.avoid-mode { margin-top: 6px; }
.avoid-mode[hidden], .preview-toggle[hidden], .preview-toggle button[hidden] { display: none !important; }

/* Afspelen in het voorbeeld van de opmaak */
.design-preview { perspective: 1600px; }
.preview-photo { backface-visibility: hidden; }
.preview-photo[hidden] { display: none; }
.preview-photo-b { visibility: hidden; }
.preview-intro-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.design-preview .sm-intro-only { transition: opacity .6s ease; }
.preview-head { flex-wrap: wrap; }
.preview-head strong { margin-right: auto; }
.btn-play { display: inline-flex; align-items: center; gap: 8px; }
.play-icon { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.btn-play.bezig { background: var(--rood, #D91E25); border-color: var(--rood, #D91E25); color: #fff; }
.btn-play.bezig .play-icon { width: 10px; height: 10px; border: 0; background: currentColor; border-radius: 1px; }
.play-info { margin-top: 6px; }

/* ------------------------------------------------------------ fase 3: accounts en plannen */
.muted { color: var(--grijs); }
.optioneel { font-weight: 400; color: var(--grijs); }
.hint-box { background: #FDF3E7; border: 1px solid #F6D3A8; color: #6B3F07; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; }
.link-btn { background: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; min-height: 0 !important; width: auto !important; color: var(--rood) !important; font: inherit !important; font-weight: 700 !important; text-decoration: underline; cursor: pointer; }
.inline-form { display: inline; margin: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin: 18px 0 0; font-size: 13px; color: var(--grijs); }
.auth-links a { color: var(--rood); font-weight: 700; }
.auth-box .check-inline.agree { display: flex; gap: 9px; align-items: flex-start; font-weight: 400; line-height: 1.45; margin-top: 16px; }
.auth-box .check-inline.agree input { width: auto; margin-top: 3px; flex: none; }
.auth-box .error .inline-form { display: block; margin-top: 6px; }

.impersonate-bar { background: var(--oranje); color: #fff; text-align: center; padding: 8px 16px; font-size: 14px; }
.impersonate-bar a { color: #fff; font-weight: 700; margin-left: 10px; }
.topbar .who small { color: #9D958E; }
.plan-badge { display: inline-block; font: 700 11px Manrope, Arial, sans-serif; letter-spacing: .02em; text-transform: uppercase; padding: 2px 8px; border-radius: 20px; background: #3A3435; color: #E7E2DC; vertical-align: 1px; }
.plan-badge.plan-plus { background: var(--oranje); color: #fff; }
.plan-badge.plan-pro { background: var(--rood); color: #fff; }
.plan-badge.plan-unlimited { background: #14562F; color: #fff; }
td .plan-badge { background: #EEEAE5; color: var(--grijs); }
td .plan-badge.plan-plus { background: #FDEBD8; color: #8A4A05; }
td .plan-badge.plan-pro { background: #FBE3E4; color: var(--danger); }
td .plan-badge.plan-unlimited { background: #E3F2E9; color: #14562F; }

.usage-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 24px; background: var(--card); border-radius: 12px; padding: 16px 18px; margin-bottom: 20px; }
.card-form .usage-box { padding: 0; margin: 10px 0 6px; }
.usage-label { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 6px; }
.usage-label span:first-child { font-weight: 700; }
.usage-label small { color: var(--grijs); }
.usage-bar { height: 8px; background: var(--zacht); border-radius: 8px; overflow: hidden; }
.usage-bar i { display: block; height: 100%; background: #3A3435; border-radius: 8px; }
.usage-item.bijna .usage-bar i { background: var(--oranje); }
.usage-item.vol .usage-bar i { background: var(--rood); }
.usage-item.vol .usage-label span:last-child { color: var(--rood); font-weight: 700; }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 10px 0 12px; }
.plan-card { border: 1px solid var(--lijn); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.plan-card.huidig { border-color: var(--rood); box-shadow: 0 0 0 1px var(--rood) inset; }
.plan-name { font: 700 18px Roboto, Arial, sans-serif; }
.plan-price { font: 700 24px Roboto, Arial, sans-serif; margin-top: 4px; }
.plan-price small { font: 400 13px Manrope, Arial, sans-serif; color: var(--grijs); }
.plan-year { font-size: 13px; color: var(--grijs); }
.plan-card ul { margin: 10px 0 12px; padding-left: 18px; font-size: 14px; line-height: 1.7; flex: 1; }
.plan-card .btn { align-self: flex-start; }

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-top: 20px; align-items: start; }
.two-col .card-form { margin: 0; }
.card-form h2 { margin-top: 0; }
.card-form h3 { margin: 22px 0 6px; font-size: 16px; }

.stat-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.stat { background: var(--card); border-radius: 12px; padding: 12px 18px; min-width: 120px; }
.stat strong { display: block; font: 700 22px Roboto, Arial, sans-serif; }
.stat span { font-size: 13px; color: var(--grijs); }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.filter-row input[type=search] { flex: 1 1 240px; padding: 8px 11px; border: 1px solid var(--veld); border-radius: 7px; font: 14px Manrope, Arial, sans-serif; }
.filter-row select { padding: 8px 11px; border: 1px solid var(--veld); border-radius: 7px; font: 14px Manrope, Arial, sans-serif; background: #fff; }
tr.geblokkeerd td { opacity: .6; }

/* Adres van een account of map: vaste begintekst + invulveld */
.handle-field { display: flex; align-items: stretch; border: 1px solid var(--veld); border-radius: 7px; background: #fff; overflow: hidden; }
.handle-field:focus-within { border-color: var(--zwart); box-shadow: 0 0 0 1px var(--zwart); }
.handle-prefix, .handle-suffix { display: flex; align-items: center; padding: 0 4px 0 11px; background: var(--zacht); color: var(--grijs); font-size: 13px; white-space: nowrap; }
.handle-suffix { padding: 0 11px 0 4px; }
.handle-field input, .auth-box .handle-field input, .card-form .handle-field input { border: 0 !important; box-shadow: none !important; border-radius: 0 !important; flex: 1; min-width: 60px; margin: 0 !important; outline: none; }
.auth-box .handle-prefix { max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.slug-tools { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; }
.link-preview { margin-top: 6px !important; word-break: break-all; }
.link-preview strong { color: var(--zwart); }
.slug-tools .link-btn { display: inline-block !important; }
.gallery-table .actions .inline-form { margin-left: 14px; }
.gallery-table .actions .del-link { color: var(--grijs) !important; font-weight: 600 !important; font-size: 14px !important; text-decoration: none; }
.gallery-table .actions .del-link:hover { color: var(--rood) !important; text-decoration: underline; }
.auth-box .check-inline.agree a { color: var(--rood); font-weight: 700; }

/* Verwijzingen naar andere diensten van DRVisual.be */
.promo-row { margin-top: 44px; }
.promo-head { font: 700 12px Roboto, Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--grijs); margin: 0 0 10px; }
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.promo-card { display: flex; flex-direction: column; gap: 8px; background: var(--card); border-radius: 12px; padding: 18px 20px; text-decoration: none; color: var(--zwart); border: 1px solid transparent; transition: border-color .15s, box-shadow .15s, transform .15s; }
.promo-card:hover { border-color: var(--rood); box-shadow: 0 8px 24px rgba(35,31,32,.08); transform: translateY(-2px); }
.promo-top { display: flex; align-items: center; gap: 10px; }
.promo-top strong { font: 700 18px Roboto, Arial, sans-serif; }
.promo-text { font-size: 14px; color: var(--grijs); line-height: 1.5; flex: 1; }
.promo-cta { font-weight: 700; font-size: 14px; color: var(--rood); }
.promo-logo { height: 31px; width: auto; display: block; }

/* Knoppen in het mappenoverzicht, in de kleuren van het Showmap-beeldmerk */
.gallery-table .actions { white-space: nowrap; }
.gallery-table .actions, .gallery-table .link-cell { vertical-align: middle; }
.gallery-table .actions .inline-form { margin-left: 0; }
.row-btn, .gallery-table .actions a.row-btn { display: inline-block; margin: 2px 0 2px 4px; padding: 6px 11px; border-radius: 7px; border: 0; font: 700 13px Manrope, Arial, sans-serif; line-height: 1.3; color: #fff; text-decoration: none; cursor: pointer; white-space: nowrap; transition: filter .15s, transform .1s; }
.row-btn:hover, .gallery-table .actions a.row-btn:hover { filter: brightness(.9); text-decoration: none; }
.row-btn:active { transform: translateY(1px); }
.row-btn-1 { background: #F68814; }
.row-btn-2 { background: #F1471F; }
.row-btn-3 { background: #D91E25; }
.row-btn-del { background: #231F20; margin-left: 10px; }
.link-cell { white-space: nowrap; }
.link-cell .row-btn { margin-left: 0; margin-right: 4px; }
.row-btn-view { background: #fff; color: var(--rood) !important; box-shadow: inset 0 0 0 1.5px var(--rood); }
.row-btn-copy { background: #fff; color: var(--grijs); box-shadow: inset 0 0 0 1.5px var(--veld); }
.row-btn-copy.ok { color: #14562F; box-shadow: inset 0 0 0 1.5px #14562F; }
@media (max-width: 1100px) { .gallery-table .actions { white-space: normal; } }
.row-btn-copy { padding: 5px 8px; vertical-align: middle; }
.row-btn-copy svg { display: block; }
.row-btn-copy.ok { background: #E3F2E9; }
.row-btn { padding: 6px 10px; }
.row-btn-del { margin-left: 8px; }
.cover-cell { width: 56px; padding-right: 0 !important; }
.cover-thumb { display: block; width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--zacht); }
.cover-empty { display: flex; align-items: center; justify-content: center; }
.cover-empty .mark { width: 22px; height: 22px; opacity: .45; color: #fff; }

/* Plan kiezen en betalen */
.interval-toggle { display: inline-flex; background: var(--zacht); border-radius: 30px; padding: 4px; gap: 4px; margin: 4px 0 14px; }
.interval-toggle label { margin: 0 !important; padding: 7px 16px; border-radius: 30px; cursor: pointer; font-weight: 600; font-size: 14px; }
.interval-toggle input { display: none; }
.interval-toggle label:has(input:checked) { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.interval-toggle small { color: #14562F; font-weight: 700; }
.plan-pick { display: grid; gap: 10px; }
.plan-option { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--lijn); border-radius: 10px; padding: 14px 16px; cursor: pointer; margin: 0 !important; }
.plan-option:has(input:checked) { border-color: var(--rood); background: #FFF8F6; }
.plan-option input { margin-top: 4px; }
.po-body { display: flex; flex-direction: column; gap: 2px; font-weight: 400; }
.po-body strong { font: 700 17px Roboto, Arial, sans-serif; }
.po-body em.badge { font-style: normal; }
.po-price { font-weight: 700; color: var(--rood); }
.po-body small { color: var(--grijs); font-size: 13px; }
.billing-summary { margin: 16px 0 6px; background: var(--zacht); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.billing-summary strong { font: 700 18px Roboto, Arial, sans-serif; }
.billing-summary span { font-size: 14px; color: #4A4344; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field-grid label { font-size: 13px; font-weight: 600; }
.field-grid input, .field-grid select { display: block; width: 100%; margin-top: 5px; }
.field-grid .span-2 { grid-column: span 2; }
@media (max-width: 600px) { .field-grid { grid-template-columns: 1fr; } .field-grid .span-2 { grid-column: auto; } }
.agree-line { display: flex !important; gap: 9px; align-items: flex-start; font-weight: 400 !important; line-height: 1.45; margin: 18px 0 !important; }
.agree-line input { margin-top: 3px; flex: none; }
.agree-line[hidden] { display: none !important; }
.pay-table td, .pay-table th { font-size: 14px; }

.sub-status { background: var(--zacht); border-radius: 10px; padding: 12px 16px; margin: 6px 0 12px; display: flex; flex-direction: column; gap: 4px; }
.sub-status span { font-size: 14px; color: #4A4344; }
.sub-status.sub-warn { background: #FDF3E7; border: 1px solid #F6D3A8; }
.sub-status .inline-form { display: block; margin-top: 6px; }
.sub-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 16px; }
.sub-actions .btn { margin: 0; }
.plan-option input, .agree-line input { width: auto !important; display: inline-block !important; flex: none; margin: 4px 0 0 !important; }
.field-grid label { margin-top: 12px !important; }
.plan-option { display: flex !important; }

/* Bevestiging na betaling */
.paid-box { max-width: 640px; margin: 40px auto; background: var(--card); border-radius: 16px; padding: 40px 36px; text-align: center; }
.paid-icon { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; background: var(--success-bg); color: var(--success); }
.paid-icon.paid-wait { background: #FFF3E3; color: #D97706; }
.paid-box h1 { font-size: 28px; margin: 0 0 10px; }
.paid-lead { font-size: 17px; margin: 0 0 22px; }
.paid-facts { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.paid-facts li { background: var(--zacht, #F4F1EC); border-radius: 10px; padding: 12px 6px; font-size: 13px; }
.paid-facts strong { display: block; font-size: 18px; }
.paid-note { color: #555; font-size: 14px; margin: 0 0 26px; }
.paid-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 18px; }
.btn-big { min-height: 48px; padding: 0 22px; font-size: 16px; }
.paid-small { font-size: 14px; margin: 0; }
@media (max-width: 560px) { .paid-box { padding: 30px 18px; } .paid-facts { grid-template-columns: repeat(2, 1fr); } }

/* Showmap Event */
.row-btn-ev { background: #fff; color: #231F20 !important; box-shadow: inset 0 0 0 1.5px #231F20; }
.row-btn-ev.aan { background: linear-gradient(90deg, #F68814, #D91E25); color: #fff !important; box-shadow: none; }
.row-badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #fff; color: #D91E25; font-size: 11px; line-height: 18px; text-align: center; margin-left: 3px; }
.ev-intro h2 { margin-top: 0; }
.ev-points { padding-left: 18px; margin: 0 0 14px; }
.ev-points li { margin-bottom: 6px; }
.ev-price { font-size: 17px; }
.ev-status-row { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin: 0 0 18px; font-size: 15px; }
.ev-state { padding: 5px 12px; border-radius: 99px; font-weight: 700; font-size: 14px; }
.ev-state-open { background: var(--success-bg); color: var(--success); }
.ev-state-soon { background: #FFF3E3; color: #B45309; }
.ev-state-closed { background: #EEE; color: #555; }
.ev-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 22px; }
@media (max-width: 860px) { .ev-grid { grid-template-columns: 1fr; } }
.ev-share { text-align: center; }
.ev-qr { width: 220px; max-width: 70%; margin: 6px auto 10px; }
.ev-qr svg { width: 100%; height: auto; display: block; }
.ev-link { font-weight: 700; word-break: break-all; }
.ev-link .btn { margin-left: 6px; vertical-align: middle; }
.ev-buttons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0; }
.ev-settings label { display: block; margin-bottom: 12px; font-weight: 700; }
.ev-settings input[type=datetime-local], .ev-settings textarea { display: block; width: 100%; margin-top: 4px; }
.ev-mod { border: 1px solid var(--zacht, #E7E2DC); border-radius: 8px; padding: 8px 12px 4px; margin: 0 0 12px; }
.ev-mod legend { font-weight: 700; padding: 0 4px; }
.ev-mod .check-inline { align-items: flex-start; font-weight: 400 !important; margin: 4px 0 8px !important; }
.ev-mod .check-inline input { width: auto; margin-top: 4px; flex: none; }
.ev-mod-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ev-mod-head h2 { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.ev-badge { display: inline-block; min-width: 26px; padding: 0 8px; border-radius: 13px; background: #D91E25; color: #fff; font-size: 14px; line-height: 26px; text-align: center; vertical-align: middle; }
.ev-pending { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.ev-p { background: #F7F4F0; border-radius: 10px; overflow: hidden; transition: opacity .2s; }
.ev-p.weg { opacity: .3; pointer-events: none; }
.ev-p-img { display: block; position: relative; aspect-ratio: 1; background: #E7E2DC; }
.ev-p-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-p-info { padding: 6px 8px 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-p-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px 8px 8px; }
.ev-p-btns button { border: 0; border-radius: 7px; padding: 7px 0; font-size: 17px; font-weight: 700; cursor: pointer; color: #fff; }
.ev-ok { background: #2E7D32; }
.ev-no { background: #231F20; }
.ev-off { margin: 8px 0 30px; text-align: right; }
.notice-bar { background: #FFF3E3; color: #7C3F00; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 14px; } .notice-bar a { font-weight: 700; }
.gallery-table td.actions { white-space: nowrap; }
@media (max-width: 1280px) { .gallery-table td.actions { white-space: normal; min-width: 330px; max-width: 360px; } }

/* Showmap Event: goedgekeurd en groot bekijken */
.ev-badge-ok { background: #2E7D32; }
#goedgekeurd .ev-mod-head .btn { font-size: 14px; }
.ev-p-img { border: 0; padding: 0; width: 100%; cursor: zoom-in; }
.ev-p-btns.een { grid-template-columns: 1fr; }
.ev-p-btns.een .ev-no { font-size: 13px; background: #fff; color: #231F20; box-shadow: inset 0 0 0 1.5px #231F20; }
.ev-lb { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.ev-lb[hidden] { display: none; }
.ev-lb-bg { position: absolute; inset: 0; background: rgba(20, 17, 18, .88); }
.ev-lb-box { position: relative; width: min(1100px, 94vw); height: min(92vh, 900px); display: grid; grid-template-rows: 1fr auto auto; gap: 10px; }
.ev-lb-media { display: flex; align-items: center; justify-content: center; min-height: 0; }
.ev-lb-media img, .ev-lb-media video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,.5); background: #000; }
.ev-lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #fff; border-radius: 12px; padding: 10px 14px; }
.ev-lb-info { font-size: 15px; }
.ev-lb-btns { display: flex; gap: 8px; }
.ev-lb-ok { background: #2E7D32; border-color: #2E7D32; color: #fff; }
.ev-lb-ok:hover { background: #256628; }
.ev-lb-no { background: #231F20; border-color: #231F20; color: #fff; }
.ev-lb-no:hover { background: #000; }
.ev-lb-close { position: absolute; top: -6px; right: -6px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #231F20; font-size: 26px; line-height: 1; cursor: pointer; }
.ev-lb-nav { position: absolute; top: 45%; z-index: 2; width: 48px; height: 64px; border: 0; border-radius: 10px; background: rgba(255,255,255,.9); color: #231F20; font-size: 24px; cursor: pointer; }
.ev-lb-nav:disabled { opacity: .25; cursor: default; }
.ev-lb-prev { left: 8px; }
.ev-lb-next { right: 8px; }
.ev-lb-keys { margin: 0; text-align: center; color: #cfc8c0; font-size: 12px; }
@media (max-width: 600px) { .ev-lb-keys { display: none; } .ev-lb-nav { width: 38px; height: 52px; } }

/* Kortingscodes */
.discount-row { margin: 14px 0 6px; }
.discount-row > label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.discount-input { display: flex; gap: 8px; max-width: 420px; }
.discount-input input { flex: 1; text-transform: uppercase; letter-spacing: .04em; margin: 0; }
.discount-input .btn { flex: none; }
.discount-msg { margin: 6px 0 0; font-size: 14px; min-height: 1em; }
.discount-msg.ok { color: #14562F; font-weight: 600; }
.discount-msg.fout { color: var(--danger); }
.billing-summary s { color: var(--grijs); font-weight: 400; margin-left: 6px; }
.code-tag { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .03em; }
.discount-table tr.is-off td { opacity: .55; }
.discount-table tr.is-off td.actions { opacity: 1; }
.discount-form { margin-top: 28px; }

/* Abonnement opzeggen (billing.php?plan=free) */
.cancel-info { margin: 10px 0 18px; border: 1.5px solid var(--lijn); border-radius: 10px; padding: 14px 18px; }
.cancel-info p { margin: 0 0 6px; }
.cancel-info ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 5px; font-size: 14px; }
.btn-cancel { background: var(--danger, #B3261E); color: #fff; border-color: var(--danger, #B3261E); }
.btn-cancel:hover { filter: brightness(.92); }
#otherPlan { margin-left: 8px; }
#otherPlan[hidden], .cancel-info[hidden], #billingFields[hidden], #payHint[hidden], .billing-summary[hidden], .interval-toggle[hidden] { display: none !important; }
