/* ============================================================
   Casinos, Games & Promotions Search — Google-Maps-style UI
   Full-screen map with floating search pill, filter chips,
   side panel (desktop), bottom sheet (mobile).
   ============================================================ */

/* ── 1. Page-level shell reset (scoped to body.csp-maps-page) ─ */

/*
   Navbar heights from base.html:
     desktop  : 70px  (margin-top on #main-content at ≥769px)
     ≤768px   : 50px
     ≤480px   : 42px + env(safe-area-inset-top)
*/
:root {
    --csp-nav-h: 70px;
    --csp-map-zindex: 1;
    --csp-panel-zindex: 1001;   /* results panel — below overlay stack */
    --csp-float-zindex: 1002;   /* overlay stack + floating controls (above Leaflet ≤1000) */
    --csp-sheet-zindex: 1003;
    --csp-popover-zindex: 1010;
    --csp-modal-zindex: 100010; /* matches existing Pro modal */
    --csp-panel-w: 380px;
    --csp-sheet-peek: 64px;
}

body.csp-maps-page {
    overflow: hidden;
}

/* Neutralise base.html wrapper padding/margin for this page */
body.csp-maps-page #main-content {
    padding: 0 !important;
    /* margin-top already set by base.html rules — keep those */
}
body.csp-maps-page .csp-maps-wrapper {
    position: relative;
    padding: 0;
    margin: 0;
    max-width: none;
}

/* ── 2. Full-bleed map ────────────────────────────────────── */

#casino-search-map {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--csp-nav-h);
    bottom: 0;
    z-index: var(--csp-map-zindex);
    width: 100%;
    height: auto;
    border-radius: 0;
    border: none;
}

@media (max-width: 768px) {
    #casino-search-map { top: 50px; }
}
@media (max-width: 480px) {
    #casino-search-map {
        top: calc(42px + env(safe-area-inset-top, 0px));
    }
}

/* Leaflet container fill */
#casino-search-map.leaflet-container {
    background: #e8eaed;
}

/*
   Bottom-right map controls: locate FAB is a Leaflet control stacked above zoom
   (see casino-search-map.js). Shared Leaflet margins keep them horizontally aligned.
   Zoom's margin-bottom clears the mobile bottom-sheet peek (and leaves a little air
   on desktop); locate sits above zoom via Leaflet's default 10px control gap.
*/
.leaflet-bottom.leaflet-right .leaflet-control-zoom {
    margin-bottom: 24px;
}
@media (max-width: 991px) {
    .leaflet-bottom.leaflet-right .leaflet-control-zoom {
        margin-bottom: calc(var(--csp-sheet-peek) + 12px);
    }
}

/* Locate control wrapper — same column as zoom; center when widths differ slightly */
.csp-locate-control.leaflet-control {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* ── 3. Overlay stack (search + chips) ───────────────────── */

.csp-overlay-stack {
    position: fixed;
    top: calc(var(--csp-nav-h) + 12px);
    left: 12px;
    width: min(420px, calc(100vw - 24px));
    z-index: var(--csp-float-zindex);
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none; /* children opt-in */
}
@media (min-width: 992px) {
    /* Widen stack on desktop so all filter chips are reachable without heavy scrolling */
    .csp-overlay-stack {
        width: min(680px, calc(100vw - 24px));
    }
}
@media (max-width: 768px) {
    .csp-overlay-stack { top: calc(50px + 8px); }
}
@media (max-width: 480px) {
    .csp-overlay-stack {
        top: calc(42px + env(safe-area-inset-top, 0px) + 8px);
        left: 8px;
        width: calc(100vw - 16px);
    }
}

/* ── 4. Search pill ───────────────────────────────────────── */

.csp-search-pill {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.22);
    overflow: hidden;
    pointer-events: all;
    height: 48px;
}
body.dark-mode .csp-search-pill {
    background: #1e2430;
    box-shadow: 0 2px 8px rgba(0,0,0,0.55);
}

.csp-pill-icon {
    flex-shrink: 0;
    padding: 0 12px 0 16px;
    color: #9aa4b1;
    font-size: 0.9rem;
    pointer-events: none;
}

.csp-pill-input {
    flex: 1 1 auto;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
    color: inherit;
    padding: 0;
    min-width: 0;
}
body.dark-mode .csp-search-pill .csp-pill-input {
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: #e0e4eb !important;
}
.csp-pill-input::placeholder { color: #9aa4b1; }

.csp-pill-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border: none;
    background: #1a73e8;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: background 0.15s;
}
.csp-pill-btn:hover { background: #1558c0; }

/* ── 5. Filter chip row ───────────────────────────────────── */

.csp-chip-row {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    pointer-events: all;
    padding-bottom: 2px; /* prevents clip-box shadow cutoff */
}
.csp-chip-row::-webkit-scrollbar { display: none; }

.csp-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    color: #3c4043;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
    flex-shrink: 0;
}
.csp-chip:hover {
    background: #f1f3f4;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.csp-chip.csp-chip--active {
    background: #e8f0fe;
    border-color: #1a73e8;
    color: #1a73e8;
}
.csp-chip.csp-chip--locked {
    cursor: pointer;
    opacity: 0.75;
}
.csp-chip--clear {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: #5f6368;
}
.csp-chip--clear:hover { background: rgba(0,0,0,0.06); }
.csp-chip__caret {
    font-size: 0.65rem;
    margin-left: 2px;
    transition: transform 0.2s;
}
.csp-chip[aria-expanded="true"] .csp-chip__caret { transform: rotate(180deg); }
.csp-chip__lock { font-size: 0.7rem; color: #f5b301; }

body.dark-mode .csp-chip {
    background: #1e2430;
    border-color: #424a57;
    color: #d5dbe3;
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
body.dark-mode .csp-chip:hover { background: #252d3c; }
body.dark-mode .csp-chip.csp-chip--active { background: #1a3a63; border-color: #4e8ef7; color: #7bb3ff; }
body.dark-mode .csp-chip--clear { background: transparent; border-color: transparent; color: #9aa4b1; }

/* ── 6. Popovers ──────────────────────────────────────────── */

.csp-popover {
    position: absolute;
    top: calc(48px + 8px + 34px + 8px); /* pill + gap + chip row + gap */
    left: 0;
    width: 280px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.20);
    z-index: var(--csp-popover-zindex);
    pointer-events: all;
    overflow: hidden;
}
.csp-popover--wide { width: 340px; }
.csp-popover[hidden] { display: none; }

body.dark-mode .csp-popover {
    background: #1e2430;
    border: 1px solid #333b4a;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.csp-popover__body {
    padding: 14px 16px 10px;
}
.csp-popover__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #5f6368;
    margin-bottom: 6px;
}
body.dark-mode .csp-popover__label { color: #9aa4b1; }
.csp-popover__body .form-control { border-radius: 8px; }
.csp-popover__body small { font-size: 0.73rem; margin-top: 4px; display: block; color: #9aa4b1; }
.csp-popover__footer {
    padding: 10px 16px 14px;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #eef1f5;
}
body.dark-mode .csp-popover__footer { border-top-color: #2c3442; }

/* Rules grid inside popover */
.csp-rules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 12px;
    margin-top: 8px;
}
.csp-rules-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #5f6368;
    margin-bottom: 4px;
}
body.dark-mode .csp-rules-title { color: #9aa4b1; }

/* PRO badge */
.csp-pro-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f5b301, #e08e00);
    color: #212121;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 2px 7px;
    border-radius: 999px;
    margin-left: 6px;
    vertical-align: middle;
    text-transform: uppercase;
}

/* Pro note banner */
.csp-pro-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    background: #fff8e6;
    border: 1px solid #f1dfa8;
    border-radius: 8px;
    color: #7a5c00;
    font-size: 0.83rem;
    padding: 0.55rem 0.8rem;
    pointer-events: all;
}
.csp-pro-note .btn { padding: 0.15rem 0.7rem; font-size: 0.78rem; border-radius: 6px; }
body.dark-mode .csp-pro-note {
    background: rgba(245, 179, 1, 0.12);
    border-color: rgba(245, 179, 1, 0.35);
    color: #f0c95c;
}

/* ── 7. Desktop results panel ─────────────────────────────── */

.csp-results-panel {
    position: fixed;
    top: calc(var(--csp-nav-h) + 12px);
    left: 12px;
    width: var(--csp-panel-w);
    /* Push below the overlay stack (pill + gap + chips + gap) */
    margin-top: calc(48px + 8px + 36px + 8px);
    bottom: 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    z-index: var(--csp-panel-zindex); /* below overlay stack so popovers show above */
    display: flex;
    overflow: visible;
    transition: transform 0.25s ease;
}
@media (max-width: 768px) {
    .csp-results-panel { top: calc(50px + 8px); }
}
@media (max-width: 991px) {
    /* Hide desktop panel on mobile — use sheet instead */
    .csp-results-panel { display: none; }
}

body.dark-mode .csp-results-panel {
    background: #1e2430;
    box-shadow: 0 2px 12px rgba(0,0,0,0.45);
}

.csp-results-panel.is-collapsed {
    transform: translateX(calc(-1 * var(--csp-panel-w)));
}

.csp-results-panel__inner {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
}

.csp-results-header {
    padding: 12px 14px 10px;
    border-bottom: 1px solid #eef1f5;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}
body.dark-mode .csp-results-header { border-bottom-color: #2c3442; }

.csm-results-list {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Edge collapse tab */
.csp-panel-tab {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 48px;
    border: none;
    border-radius: 0 8px 8px 0;
    background: #fff;
    box-shadow: 3px 0 8px rgba(0,0,0,0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5f6368;
    font-size: 0.7rem;
    z-index: 1;
    transition: background 0.15s;
}
.csp-panel-tab:hover { background: #f1f3f4; }
body.dark-mode .csp-panel-tab { background: #1e2430; color: #9aa4b1; box-shadow: 3px 0 8px rgba(0,0,0,0.4); }
body.dark-mode .csp-panel-tab:hover { background: #252d3c; }

.csp-results-panel.is-collapsed .csp-panel-tab__icon {
    transform: rotate(180deg);
}

/* ── 8. Result list items ─────────────────────────────────── */

.csm-results-item {
    padding: 10px 14px;
    border-bottom: 1px solid #eef1f5;
    cursor: pointer;
    transition: background 0.1s;
}
body.dark-mode .csm-results-item { border-bottom-color: #2c3442; }
.csm-results-item:last-child { border-bottom: none; }
.csm-results-item:hover { background: #f8fafc; }
body.dark-mode .csm-results-item:hover { background: #252d3c; }
.csm-results-item.is-highlighted { background: #e8f0fe; }
body.dark-mode .csm-results-item.is-highlighted { background: #1a3a63; }
.csm-results-title { font-weight: 700; margin-bottom: 3px; font-size: 0.9rem; }
.csm-results-sub { font-size: 0.82rem; color: #6b7280; margin: 0; }
body.dark-mode .csm-results-sub { color: #9aa4b1; }
.csm-results-link { text-decoration: none; color: inherit; }
.csm-results-link:hover { text-decoration: underline; }
.csm-results-badge {
    display: inline-block;
    background: #2e7d32;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}

/* ── 9. Mobile bottom sheet ───────────────────────────────── */

.csp-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 85vh;
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.18);
    z-index: var(--csp-sheet-zindex);
    display: none; /* JS shows on mobile */
    flex-direction: column;
    touch-action: none;
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    will-change: transform;
    /* Start at peek state */
    transform: translateY(calc(85vh - var(--csp-sheet-peek)));
}
body.dark-mode .csp-sheet {
    background: #1e2430;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}

@media (max-width: 991px) {
    .csp-sheet { display: flex; }
}

.csp-sheet--snap-peek  { transform: translateY(calc(85vh - var(--csp-sheet-peek))); }
.csp-sheet--snap-half  { transform: translateY(calc(85vh - 45vh)); }
.csp-sheet--snap-full  { transform: translateY(0); }

.csp-sheet__handle-wrap {
    flex-shrink: 0;
    padding: 10px 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: grab;
    user-select: none;
    border-bottom: 1px solid #eef1f5;
}
body.dark-mode .csp-sheet__handle-wrap { border-bottom-color: #2c3442; }

.csp-sheet__handle {
    width: 36px;
    height: 4px;
    background: #dadce0;
    border-radius: 2px;
}
body.dark-mode .csp-sheet__handle { background: #424a57; }

.csp-sheet__title {
    font-weight: 700;
    font-size: 0.9rem;
}

.csp-sheet__content {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── 10. Floating controls ────────────────────────────────── */

/* Redo search pill — inside overlay stack, below filter chips */
.csp-redo-btn {
    align-self: center;
    pointer-events: all;
    border: none;
    border-radius: 999px;
    padding: 7px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    background: #fff;
    color: #1a73e8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.22);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}
.csp-redo-btn:hover { background: #e8f0fe; }
body.dark-mode .csp-redo-btn { background: #1e2430; color: #7bb3ff; box-shadow: 0 2px 8px rgba(0,0,0,0.5); }
/* Desktop: center on the map viewport (overlay stack is left-aligned) */
@media (min-width: 992px) {
    .csp-redo-btn {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        /* nav + stack top pad + search pill + gap + chip row + gap */
        top: calc(var(--csp-nav-h) + 12px + 48px + 8px + 34px + 8px);
        z-index: var(--csp-float-zindex);
        align-self: auto;
    }
}

/* Loading toast */
.csp-loading-toast {
    position: fixed;
    top: calc(var(--csp-nav-h) + 12px);
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--csp-float-zindex);
    background: #fff;
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 0.86rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.22);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
body.dark-mode .csp-loading-toast { background: #1e2430; box-shadow: 0 2px 8px rgba(0,0,0,0.5); }
@media (max-width: 768px) {
    .csp-loading-toast { top: calc(50px + 12px); }
}

/* Locate FAB — lives inside .csp-locate-control (Leaflet bottomright stack) */
.csp-locate-fab {
    display: none; /* hidden until map mounts it into .csp-locate-control */
    position: relative;
    right: auto;
    bottom: auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #1a73e8;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    cursor: pointer;
    z-index: auto;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    padding: 0;
}
.csp-locate-control .csp-locate-fab {
    display: flex;
}
.csp-locate-fab:hover { background: #e8f0fe; }
body.dark-mode .csp-locate-fab { background: #1e2430; color: #7bb3ff; box-shadow: 0 2px 8px rgba(0,0,0,0.5); }

/* Empty state card */
.csp-empty-state {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    z-index: var(--csp-float-zindex);
    text-align: center;
    min-width: 240px;
    max-width: 320px;
}
body.dark-mode .csp-empty-state { background: #1e2430; box-shadow: 0 2px 12px rgba(0,0,0,0.5); }

/* ── 11. Leaflet popups (always light) ───────────────────── */

.leaflet-popup-content .btn { white-space: nowrap; }
#casino-search-map.leaflet-container .leaflet-popup-content {
    margin: 12px 14px;
}
#casino-search-map.leaflet-container .leaflet-popup-content .csm-popup {
    color: #111111 !important;
    min-width: 220px;
    max-width: 300px;
}
#casino-search-map.leaflet-container .leaflet-popup-content .csm-popup--promos {
    max-width: 340px;
}
#casino-search-map.leaflet-container .leaflet-popup-content .csm-popup__title {
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    color: #000000 !important;
    line-height: 1.3 !important;
    margin: 0 0 10px 0 !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #bdbdbd !important;
}
#casino-search-map.leaflet-container .leaflet-popup-content .csm-popup--compact .csm-popup__title {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}
#casino-search-map.leaflet-container .leaflet-popup-content .csm-popup__line {
    margin: 0 0 8px 0 !important;
    font-size: 0.88rem !important;
    color: #212121 !important;
    line-height: 1.4 !important;
}
#casino-search-map.leaflet-container .leaflet-popup-content .csm-popup__meta {
    margin: 0 0 8px 0 !important;
    font-size: 0.85rem !important;
    color: #37474f !important;
    line-height: 1.4 !important;
}
#casino-search-map.leaflet-container .leaflet-popup-content .csm-popup__badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    background: #e0e0e0 !important;
    color: #212121 !important;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}
#casino-search-map.leaflet-container .leaflet-popup-content .csm-popup__btn {
    margin-top: 8px;
}
#casino-search-map.leaflet-container .leaflet-popup-content .csm-popup__promo-list {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
}
#casino-search-map.leaflet-container .leaflet-popup-content .csm-popup__promo-list li {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eeeeee;
    font-size: 0.88rem;
    line-height: 1.35;
}
#casino-search-map.leaflet-container .leaflet-popup-content .csm-popup__promo-list li:last-child {
    border-bottom: none; margin-bottom: 0; padding-bottom: 0;
}
#casino-search-map.leaflet-container .leaflet-popup-content .csm-popup__promo-list a {
    color: #0d47a1 !important;
    font-weight: 600 !important;
    text-decoration: underline;
}
#casino-search-map.leaflet-container .leaflet-popup-content .csm-popup__promo-sub {
    display: block;
    font-size: 0.78rem;
    color: #455a64 !important;
    margin-top: 2px;
}

/* ── 12. Map marker icons ────────────────────────────────── */

.csm-map-icon { background: transparent !important; border: none !important; }
.csm-pin {
    width: 28px;
    height: 28px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
    margin: 2px 0 0 2px;
    position: relative;
}
.csm-pin--casino { background: #c62828; }
.csm-pin--promo  { background: #2e7d32; }
.csm-pin__num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%) rotate(45deg);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.78rem;
    line-height: 1;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.85), 0 0 3px rgba(0,0,0,0.65);
    pointer-events: none;
    white-space: nowrap;
}
.csm-user-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2196f3;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #1976d2, 0 2px 8px rgba(0,0,0,0.35);
}
body.dark-mode .csm-pin { border-color: #222; }
body.dark-mode .csm-user-dot { border-color: #111; }

/* ── 13. Pro modal ────────────────────────────────────────── */

#pro-member-modal.modal {
    display: none;
    position: fixed;
    z-index: var(--csp-modal-zindex);
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}
#pro-member-modal .modal-content {
    background: #ffffff;
    margin: 10% auto;
    padding: 0;
    max-width: 520px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
#pro-member-modal .modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#pro-member-modal .modal-body { padding: 20px; }
#pro-member-modal .modal-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
#pro-member-modal .close { cursor: pointer; font-size: 1.5rem; }
body.dark-mode #pro-member-modal .modal-content { background: #1e2430; color: #e0e0e0; }
body.dark-mode #pro-member-modal .modal-header,
body.dark-mode #pro-member-modal .modal-footer { border-color: #333b4a; }

/* ── 14. Utility ──────────────────────────────────────────── */

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
