/* ================================================================
   VFindR Hub — style.css
   Full site stylesheet. All colours use CSS variables —
   paste your exact hex codes from vfindr.store into :root below.
================================================================ */

/* ── CSS CUSTOM PROPERTIES ─────────────────────────────────────
   TO CUSTOMISE: Replace the hex values here with your exact
   vfindr.store hex codes. Everything else inherits automatically.
──────────────────────────────────────────────────────────────── */
:root {
    /* Color Scheme */
    color-scheme:        dark;      /* Forces Edge/Chrome native UI to dark mode */

    /* Backgrounds */
    --primary-bg:        #04091a;   /* Main page background */
    --secondary-bg:      #07102a;   /* Cards, panels */
    --tertiary-bg:       #0c1535;   /* Hover states, inputs */
    --surface-border:    rgba(0, 212, 200, 0.13);

    /* Text */
    --text-color:        #eef2ff;   /* Primary text */
    --text-dim:          #8a9bbf;   /* Secondary text */
    --text-muted:        #3d4f72;   /* Placeholders, hints */

    /* Accent */
    --accent-color:      #00d4c8;   /* Primary teal accent */
    --accent-dim:        #00a89e;   /* Dimmer teal */
    --accent-blue:       #0ea5e9;   /* Blue accent */
    --accent-glow:       rgba(0, 212, 200, 0.2);

    /* Semantic */
    --danger:            #f43f5e;
    --warning:           #f59e0b;
    --success:           #10b981;

    /* Gradients */
    --grad-main:         linear-gradient(135deg, #00d4c8, #0ea5e9);
    --grad-subtle:       linear-gradient(135deg, rgba(0,212,200,0.08), rgba(14,165,233,0.05));

    /* Typography */
    --font-display:      'Rajdhani', sans-serif;
    --font-body:         'Outfit', sans-serif;
    --font-mono:         'DM Mono', monospace;

    /* Layout */
    --container:         1200px;
    --radius-sm:         6px;
    --radius:            10px;
    --radius-lg:         16px;
    --trans:             0.22s ease;
    --shadow:            0 8px 32px rgba(0,0,0,0.45);
    --section-gap:       88px;
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    background: var(--primary-bg);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }
ul { list-style: none; }
textarea { resize: vertical; }
select { font-family: var(--font-body); }

/* ── GLOBAL GRID BACKGROUND ─────────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,212,200,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,212,200,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* ── CONTAINER ──────────────────────────────────────────────── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ── SCREEN READER ONLY ─────────────────────────────────────── */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ================================================================
   TYPOGRAPHY HELPERS
================================================================ */
.grad-text {
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-dim);
    margin-bottom: 14px;
}

.section-eyebrow::before, .section-eyebrow::after {
    content: '//';
    opacity: 0.4;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.01em;
    margin-bottom: 14px;
}

.section-title em { font-style: normal; }
.section-title em.grad { background: var(--grad-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.section-sub {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-dim);
    max-width: 560px;
    line-height: 1.7;
}

.section-header { margin-bottom: 52px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-sub { margin: 0 auto; }

/* ================================================================
   BUTTONS
================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: opacity var(--trans), transform var(--trans), box-shadow var(--trans);
    white-space: nowrap;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--grad-main);
    color: #04091a;
    padding: 13px 28px;
    font-size: 0.9rem;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 8px 24px var(--accent-glow); }

.btn-outline {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--surface-border);
    padding: 12px 24px;
    font-size: 0.88rem;
}
.btn-outline:hover { border-color: rgba(0,212,200,0.4); color: var(--accent-color); background: rgba(0,212,200,0.05); }

.btn-ghost {
    background: transparent;
    color: var(--accent-color);
    padding: 10px 20px;
    font-size: 0.84rem;
    border: 1px solid rgba(0,212,200,0.3);
}
.btn-ghost:hover { background: rgba(0,212,200,0.08); border-color: var(--accent-color); }

.btn-danger-soft {
    background: rgba(244,63,94,0.1);
    color: var(--danger);
    border: 1px solid rgba(244,63,94,0.25);
    padding: 9px 18px;
    font-size: 0.82rem;
}
.btn-danger-soft:hover { background: rgba(244,63,94,0.18); border-color: var(--danger); }

.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ================================================================
   SITE HEADER / NAVBAR
================================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 500;
    background: rgba(4,9,26,0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--surface-border);
    transition: box-shadow var(--trans);
}

.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.5); }

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 16px;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
}

.nav-logo-icon {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* Shield logo image */
.nav-logo-shield {
    width: 42px;
    height: 42px;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    display: block;
    /* Subtle glow to match the teal theme */
    filter: drop-shadow(0 0 6px rgba(0, 212, 200, 0.35));
    transition: filter 0.22s ease;
}

.nav-logo:hover .nav-logo-shield {
    filter: drop-shadow(0 0 12px rgba(0, 212, 200, 0.6));
}

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    color: var(--text-color);
}
/* ================================================================
   CUSTOM SELECT — CSS-only, cross-browser (Chrome, Edge, Firefox, Safari)
   Base colours, appearance reset, border, focus ring and
   forced-colors handling all live in .form-control above.
   This block only adds what is <select>-specific:
     • color-scheme:dark  — keeps the OS-drawn option panel dark
     • Custom SVG chevron — via background-image
     • Extra right padding — so text clears the arrow
     • cursor:pointer
     • <option> background/color
================================================================ */

/* Wrapper — optional; use when you need to layer additional
   pseudo-elements or icons on top of the select. */
.select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 360px;
}

/* <select> addons on top of .form-control base */
select.form-control {
    /* color-scheme:dark tells Edge/Chrome to render the native
       OS-drawn option list in dark mode — prevents white flash. */
    color-scheme: dark;

    /* Custom teal chevron.
       IMPORTANT for Edge: SVG data URI must use %22 (encoded ") inside,
       NOT literal single quotes — Edge's URI parser rejects them.
       Chevron stroke #00d4c8 → %2300d4c8                           */
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%228%22 viewBox=%220 0 12 8%22%3E%3Cpath d=%22M1 1l5 5 5-5%22 stroke=%22%2300d4c8%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 fill=%22none%22/%3E%3C/svg%3E");
    background-repeat:   no-repeat;
    background-position: right 14px center;
    background-size:     12px 8px;

    /* Prevent text running under the arrow */
    padding-right: 44px;

    cursor: pointer;

    /* IE11/old-Edge: hide the built-in dropdown arrow pseudo-element */
    -ms-expand: none;
}

/* Hide the legacy IE/old-Edge native dropdown arrow element */
select.form-control::-ms-expand { display: none; }

/* <option> elements — respected by Chrome, Edge (Win), Firefox.
   macOS Safari and all iOS/Android render options natively
   and ignore these rules.                                        */
select.form-control option {
    background-color: var(--secondary-bg);
    color: var(--text-color);
}

select.form-control option:disabled { color: var(--text-muted); }

.nav-logo-text em { font-style: normal; background: var(--grad-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav-logo-sub {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    text-transform: uppercase;
    padding-left: 9px;
    border-left: 1px solid var(--surface-border);
    margin-left: 3px;
    align-self: center;
    line-height: 1;
}

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0 auto;
}

.nav-link {
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--text-dim);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: color var(--trans), background var(--trans);
    white-space: nowrap;
    text-decoration: none;
}

.nav-link:hover { color: var(--text-color); background: rgba(255,255,255,0.05); }
.nav-link.active { color: var(--accent-color); }

.nav-store-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #04091a;
    background: var(--grad-main);
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    transition: opacity var(--trans), transform var(--trans), box-shadow var(--trans);
    text-decoration: none;
}

.nav-store-link:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: 0 4px 14px var(--accent-glow); }

/* Live Map button */
.nav-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-color);
    background: rgba(0,212,200,0.06);
    border: 1px solid rgba(0,212,200,0.3);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--trans);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.nav-map-btn svg {
    width: 14px; height: 14px;
    stroke: var(--accent-color);
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

.nav-map-btn:hover {
    background: rgba(0,212,200,0.12);
    border-color: var(--accent-color);
    box-shadow: 0 0 12px rgba(0,212,200,0.15);
    transform: translateY(-1px);
}

/* Pulsing dot indicator on the Live Map button */
.nav-map-btn .live-dot,
.nav-map-btn-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #f43f5e;
    box-shadow: 0 0 0 0 rgba(244,63,94,.5);
    flex-shrink: 0;
    animation: navMapBtnPulse 1.8s ease-out infinite;
}

@keyframes navMapBtnPulse {
    0%   { box-shadow: 0 0 0 0 rgba(244,63,94,.55); }
    70%  { box-shadow: 0 0 0 6px rgba(244,63,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(244,63,94,0); }
}

/* Hide Live Map btn text on small screens, keep icon + dot */
@media (max-width: 768px) {
    .nav-map-btn .nav-map-label { display: none; }
    .nav-map-btn { padding: 8px 10px; gap: 5px; }
    /* On mobile, hide store link + map btn from nav bar — both are in the drawer */
    .nav-right .nav-store-link { display: none; }
    .nav-right .nav-map-btn   { display: none; }
    /* Reduce gap so hamburger is never pushed off-screen */
    .nav-right { gap: 6px; }
}

/* Social icons in nav */
.nav-socials {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-social-icon {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-sm);
    transition: all var(--trans);
}

.nav-social-icon svg { width: 15px; height: 15px; fill: var(--text-muted); transition: fill var(--trans); }
.nav-social-icon:hover { border-color: rgba(0,212,200,0.4); background: rgba(0,212,200,0.06); }
.nav-social-icon:hover svg { fill: var(--accent-color); }

/* Right section of nav */
.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    /* Samsung/Android: ensure the container never clips its children */
    overflow: visible;
    min-width: 0;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 48px;
    height: 48px;
    padding: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: background 0.2s, border-color 0.2s;
    /* Extend the touch hit area inward (away from the clipped right edge)
       using a pseudo-element so overflow-x:hidden on body doesn't eat taps */
}

/* Invisible hit-area extension — pushes tappable zone 12px inward from right edge */
.hamburger::after {
    content: '';
    position: absolute;
    inset: -8px;
    right: -4px;
}

.hamburger:active {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
}

.hamburger span {
    display: block;
    width: 24px; height: 2.5px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all var(--trans);
    pointer-events: none;
}

/* Mobile nav */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: rgba(4,9,26,0.98);
    border-top: 1px solid var(--surface-border);
    padding: 12px 24px 20px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
    font-size: 0.95rem;
    color: var(--text-dim);
    padding: 12px 0;
    border-bottom: 1px solid var(--surface-border);
    transition: color var(--trans);
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--accent-color); }
.mobile-nav .mobile-store { color: var(--accent-color); font-weight: 600; }

/* ================================================================
   TICKER STRIP
================================================================ */
.ticker-strip {
    overflow: hidden;
    border-top: 1px solid var(--surface-border);
    background: rgba(0,212,200,0.03);
    height: 26px;
    display: flex;
    align-items: center;
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: tickerScroll 50s linear infinite;
}

.ticker-track span {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    color: var(--accent-dim);
    text-transform: uppercase;
    flex-shrink: 0;
}

@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ================================================================
   PAGE OFFSET (for fixed header)
================================================================ */
.page-offset { padding-top: 94px; }

/* ================================================================
   SITE FOOTER
================================================================ */
.site-footer {
    border-top: 1px solid var(--surface-border);
    background: rgba(4,9,26,0.98);
    padding: 60px 0 0;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--surface-border);
}

.footer-brand .nav-logo-text { font-size: 1.6rem; }

.footer-desc {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 14px 0 20px;
    max-width: 260px;
}

.footer-socials {
    display: flex;
    gap: 8px;
}

.footer-social {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-sm);
    transition: all var(--trans);
}

.footer-social svg { width: 15px; height: 15px; fill: var(--text-muted); transition: fill var(--trans); }
.footer-social:hover { border-color: rgba(0,212,200,0.4); background: rgba(0,212,200,0.06); }
.footer-social:hover svg { fill: var(--accent-color); }

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-dim);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--surface-border);
}

.footer-col a {
    display: block;
    font-size: 0.86rem;
    color: var(--text-muted);
    padding: 5px 0;
    transition: color var(--trans);
    text-decoration: none;
}

.footer-col a:hover { color: var(--accent-color); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-bottom a { color: var(--text-muted); transition: color var(--trans); }
.footer-bottom a:hover { color: var(--accent-color); }

/* ================================================================
   FORM SHARED STYLES
================================================================ */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group:last-child { margin-bottom: 0; }

.form-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.02em;
}

.req { color: var(--danger); margin-left: 2px; }

/* ── .form-control — shared base for input, textarea, select ──
   All three elements share the same background, text colour,
   border and focus ring so they look identical in the form.
   appearance:none strips the iOS inner shadow on inputs and
   the native select arrow (select gets its own arrow below). */
.form-control {
    width: 100%;
    padding: 12px 14px;
    /* Match select.form-control: explicit dark bg + text colour.
       Using CSS vars keeps this in sync with the design token layer. */
    background-color: var(--secondary-bg);
    color: var(--text-color);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    /* min 16px prevents iOS Safari auto-zoom on focus */
    font-size: max(0.92rem, 16px);
    outline: none;
    /* Strip iOS/Safari inner shadow and system appearance */
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    /* Prevent Edge from overriding background in accent-color mode */
    accent-color: var(--accent-color);
    transition: border-color var(--trans), box-shadow var(--trans), background-color var(--trans);
}

.form-control::placeholder { color: var(--text-muted); }

.form-control:hover { border-color: var(--accent-dim); }

.form-control:focus {
    background-color: var(--secondary-bg);
    color: var(--text-color);
    border-color: var(--accent-dim);
    box-shadow: 0 0 0 3px rgba(0, 212, 200, 0.1);
}

.form-control.is-error {
    border-color: var(--danger);
    background-color: var(--secondary-bg);
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.12);
}

textarea.form-control { min-height: 120px; resize: vertical; line-height: 1.6; }

/* Windows High Contrast / forced-colors — keeps text readable
   in Edge accessibility modes for both inputs and selects */
@media (forced-colors: active) {
    .form-control {
        background-color: ButtonFace;
        color: ButtonText;
        border-color: ButtonBorder;
        forced-color-adjust: none;
    }
}

.field-error {
    font-size: 0.74rem;
    color: var(--danger);
    min-height: 16px;
}

.gdpr-check-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    background: rgba(0,212,200,0.04);
    border: 1px solid rgba(0,212,200,0.15);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.gdpr-check-group input[type="checkbox"] {
    width: 17px; height: 17px;
    accent-color: var(--accent-color);
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}

.gdpr-check-group label {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.5;
    cursor: pointer;
}

.gdpr-check-group label a { color: var(--accent-color); text-decoration: underline; }

/* ================================================================
   CARD BASE
================================================================ */
.card {
    background: var(--secondary-bg);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--trans), transform var(--trans), box-shadow var(--trans);
    position: relative;
    /* iOS: prevent -webkit-background-clip:text being clipped by overflow:hidden
       when a transform is applied on tap/hover — promote to own compositing layer */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    /* iOS/Android: remove grey tap flash on card links */
    -webkit-tap-highlight-color: transparent;
}

.card:hover {
    border-color: rgba(0,212,200,0.3);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.card-top-line {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--grad-main);
    opacity: 0;
    transition: opacity var(--trans);
}

.card:hover .card-top-line { opacity: 1; }

/* ================================================================
   TOAST
================================================================ */
.toast-region {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--secondary-bg);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    padding: 20px 24px;
    min-width: 340px;
    max-width: 460px;
    box-shadow: var(--shadow);
    animation: slideUp 0.3s ease;
    pointer-events: auto;
    transition: opacity 0.3s, transform 0.3s;
}

.toast.toast-success { border-color: rgba(16,185,129,0.35); }
.toast.toast-error   { border-color: rgba(244,63,94,0.35); }
.toast.toast-info    { border-color: rgba(0,212,200,0.3); }

.toast-icon {
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.toast.toast-success .toast-icon { background: rgba(16,185,129,0.12); }
.toast.toast-error   .toast-icon { background: rgba(244,63,94,0.12); }
.toast.toast-info    .toast-icon { background: rgba(0,212,200,0.1); }

.toast-icon svg { width: 20px; height: 20px; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.toast.toast-success .toast-icon svg { stroke: var(--success); }
.toast.toast-error   .toast-icon svg { stroke: var(--danger); }
.toast.toast-info    .toast-icon svg { stroke: var(--accent-color); }

.toast-title { font-size: 1rem; font-weight: 700; margin-bottom: 5px; }
.toast-body  { font-size: 0.88rem; color: var(--text-dim); line-height: 1.5; }

/* ================================================================
   COOKIE BANNER
================================================================ */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 8000;
    background: rgba(7,16,42,0.98);
    border-top: 1px solid var(--surface-border);
    backdrop-filter: blur(12px);
    padding: 18px 0;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.cookie-banner.hidden { transform: translateY(100%); }

.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    font-size: 0.84rem;
    color: var(--text-dim);
    line-height: 1.55;
    max-width: 640px;
}

.cookie-text a { color: var(--accent-color); text-decoration: underline; }
.cookie-text strong { color: var(--text-color); }

.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ================================================================
   MODAL
================================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4,9,26,0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.modal-box {
    background: var(--secondary-bg);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    max-width: 420px;
    width: 100%;
    animation: scaleIn 0.22s ease;
}

.modal-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.modal-body  { font-size: 0.88rem; color: var(--text-dim); line-height: 1.6; margin-bottom: 22px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ================================================================
   PAGE HERO (inner pages)
================================================================ */
.page-hero {
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    /* overflow:hidden clips -webkit-background-clip gradient text on the last
       letter. Removed — glow pseudo-element is contained via z-index instead. */
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(0,212,200,0.08) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.page-hero-tag { margin-bottom: 20px; position: relative; z-index: 1; }

.page-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 18px;
    padding-bottom: 0.1em;
    position: relative;
    z-index: 1;
}

.page-hero-sub {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--text-dim);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ================================================================
   SECTION DIVIDER
================================================================ */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.2;
    margin: 0;
}

/* ================================================================
   KEYFRAMES
================================================================ */
@keyframes fadeDown { from { opacity:0; transform: translateY(-14px); } to { opacity:1; transform: translateY(0); } }
@keyframes fadeUp   { from { opacity:0; transform: translateY(16px); }  to { opacity:1; transform: translateY(0); } }
@keyframes fadeIn   { from { opacity:0; } to { opacity:1; } }
@keyframes scaleIn  { from { opacity:0; transform: scale(0.95); } to { opacity:1; transform: scale(1); } }
@keyframes slideUp  { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform: translateY(0); } }
@keyframes cardIn   { from { opacity:0; transform: translateY(14px); } to { opacity:1; transform: translateY(0); } }
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes pulse    { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.4; transform:scale(0.75); } }

/* ================================================================
   RESPONSIVE UTILITIES
================================================================ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    :root { --section-gap: 60px; }
    /* Pull container right edge in so hamburger isn't flush against
       the overflow-x:hidden clip boundary on Samsung Android */
    .container { padding: 0 16px; }
    .nav-links { display: none; }
    .nav-socials { display: none; }
    .hamburger { display: flex; }
    /* Store link and live map btn are both in the mobile nav drawer —
       hide them from the nav bar so the hamburger is never pushed off-screen */
    .nav-right .nav-store-link { display: none; }
    .nav-right .nav-map-btn    { display: none; }
    .page-hero { padding: 60px 0 44px; }
}

@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .cookie-inner { flex-direction: column; align-items: stretch; }
    .cookie-actions { justify-content: center; }
    .toast-region { left: 12px; right: 12px; bottom: 80px; }
    .toast { min-width: unset; max-width: 100%; padding: 18px 20px; }
}

/* ================================================================
   COLOUR SWATCHES (registration plates)
================================================================ */
.reg-plate {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: #facc15;
    color: #1a1200;
    padding: 3px 10px;
    border-radius: 4px;
    display: inline-block;
}

/* ================================================================
   WEEKLY FEATURE BOX (hero panel — replaces visual cards)
================================================================ */
.wf-box {
    background: var(--secondary-bg);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 32px 34px;
    position: relative;
    overflow: hidden;
    transition: border-color var(--trans), box-shadow var(--trans);
    width: 100%;
    max-width: 100%;
}

.wf-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--grad-main);
    opacity: 0.7;
}

.wf-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 90% 10%, rgba(0,212,200,0.05) 0%, transparent 55%);
    pointer-events: none;
}

.wf-image-wrap {
    width: calc(100% + 68px);
    margin: 0 -34px 20px;
    overflow: hidden;
    max-height: 150px;
}

.wf-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.wf-box.wf-open {
    border-color: rgba(0,212,200,0.28);
    box-shadow: 0 0 28px rgba(0,212,200,0.08);
}

.wf-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.wf-badge {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #04091a;
    background: var(--grad-main);
    padding: 3px 9px;
    border-radius: 4px;
}

.wf-date {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}

.wf-headline {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    color: var(--text-color);
    margin-bottom: 12px;
}

.wf-summary {
    font-size: 0.92rem;
    color: var(--text-dim);
    line-height: 1.65;
    margin-bottom: 20px;
}

.wf-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.wf-byline {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
}

.wf-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-display);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-color);
    border: 1px solid rgba(0,212,200,0.3);
    border-radius: var(--radius-sm);
    padding: 6px 14px;
    background: transparent;
    cursor: pointer;
    transition: background var(--trans), border-color var(--trans);
}

.wf-expand-btn:hover {
    background: rgba(0,212,200,0.08);
    border-color: var(--accent-color);
}

.wf-expand-btn svg {
    flex-shrink: 0;
    transition: transform var(--trans);
}

/* Expanded body */
.wf-body {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--surface-border);
    animation: fadeUp 0.25s ease;
}

.wf-para {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.75;
    margin-bottom: 14px;
}

.wf-para:last-of-type { margin-bottom: 0; }

.wf-pullquote {
    border-left: 2px solid var(--accent-color);
    padding: 10px 16px;
    margin: 16px 0;
    font-size: 0.88rem;
    font-style: italic;
    color: var(--text-color);
    background: rgba(0,212,200,0.04);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    line-height: 1.6;
}

.wf-read-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-family: var(--font-display);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity var(--trans);
}

.wf-read-link:hover { opacity: 0.75; }
.wf-read-link svg { flex-shrink: 0; }

/* Responsive: full-width on mobile */
@media (max-width: 768px) {
    .wf-box { max-width: 100%; }
}

/* ================================================================
   PILLAR CARDS (homepage feature grid)
================================================================ */
.pillar-card {
    display: flex;
    flex-direction: column;
    padding: 32px;
    text-decoration: none;
    color: inherit;
    /* iOS Safari: don't use height:100% on grid items — it can collapse when
       the row height is determined intrinsically. Use align-self:stretch instead. */
    align-self: stretch;
    min-height: 340px;
    /* iOS/Android: use manipulation to remove 300ms tap delay */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.pillar-icon-wrap {
    width: 56px; height: 56px;
    border-radius: var(--radius);
    background: var(--grad-subtle);
    border: 1px solid rgba(0,212,200,0.15);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 22px;
    transition: all var(--trans);
}

.pillar-icon-wrap svg { width: 26px; height: 26px; stroke: var(--accent-color); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .pillar-icon-wrap { background: rgba(0,212,200,0.12); border-color: rgba(0,212,200,0.35); box-shadow: 0 0 18px var(--accent-glow); }

.pillar-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}

.pillar-desc {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 24px;
}

.pillar-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-color);
    border: 1px solid rgba(0,212,200,0.3);
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    transition: all var(--trans);
    align-self: flex-start;
}

.pillar-cta svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; }
.card:hover .pillar-cta { background: rgba(0,212,200,0.08); border-color: var(--accent-color); }

/* ================================================================
   INLINE APP SECTIONS (embedded apps on homepage)
================================================================ */
.embed-section {
    padding: var(--section-gap) 0;
}

.embed-frame {
    background: var(--secondary-bg);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 32px;
}

.embed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

/* ================================================================
   SKELETON LOADERS
================================================================ */
.skel {
    background: linear-gradient(90deg, var(--secondary-bg) 25%, rgba(14,165,233,0.05) 50%, var(--secondary-bg) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ================================================================
   MATCH ALERT SYSTEM
================================================================ */
/* ── Sidebar card colour variants ───────────────────────── */
.sidebar-card-amber {
    background: linear-gradient(135deg, rgba(251,191,36,0.06), rgba(245,158,11,0.04));
    border-color: rgba(251,191,36,0.25);
}
.sidebar-card-amber .sidebar-card-title { color: #d97706; border-color: rgba(251,191,36,0.2); }
.sidebar-card-amber .sidebar-card-title svg { stroke: #d97706; }

.sidebar-card-danger {
    background: linear-gradient(135deg, rgba(244,63,94,0.07), rgba(239,68,68,0.05));
    border-color: rgba(244,63,94,0.3);
    position: relative;
    overflow: hidden;
    transition: opacity 0.28s ease, transform 0.28s ease;
}
/* Animated top-edge stripe */
.sidebar-card-danger::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, #f43f5e, #f59e0b, #f43f5e);
    background-size: 200% 100%;
    animation: matchPulse 2.4s linear infinite;
}
@keyframes matchPulse {
    0%   { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}
.sidebar-card-danger .sidebar-card-title { color: #f43f5e; border-color: rgba(244,63,94,0.2); }
.sidebar-card-danger .sidebar-card-title svg { stroke: #f43f5e; }

/* "NEW" pill inside the sidebar title */
.match-alert-new-pill {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono, 'DM Mono', monospace);
    font-size: 0.5rem;
    letter-spacing: 0.14em;
    padding: 1px 6px;
    border-radius: 100px;
    background: rgba(244,63,94,0.14);
    border: 1px solid rgba(244,63,94,0.35);
    color: #f43f5e;
    margin-left: auto;
    animation: matchedPillPulse 2.4s ease-in-out infinite;
}

.sidebar-link {
    color: var(--accent-dim, #00d4aa);
    text-decoration: none;
}
.sidebar-link:hover { text-decoration: underline; }

/* ── Match alert — sidebar layout ───────────────────────── */
.match-alert-container {
    display: contents; /* invisible wrapper — real layout handled by sidebar-card */
}

.match-alert-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 12px;
}

/* Two compact mini-cards stacked vertically with a VS divider */
.match-alert-mini-cards {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 12px;
    border-radius: var(--radius-sm, 6px);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.07);
}

.match-mini-card {
    padding: 9px 11px;
    background: rgba(255,255,255,0.025);
}
.match-mini-stolen  { border-left: 3px solid #ef4444; }
.match-mini-sighting { border-left: 3px solid #0ea5e9; }
.match-mini-stolen + .match-mini-vs + .match-mini-sighting {
    border-top: 1px solid rgba(255,255,255,0.06);
}

.match-mini-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.match-mini-reg {
    font-family: var(--font-mono, 'DM Mono', monospace);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent-primary, #00d4aa);
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.match-mini-vehicle {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.match-mini-detail {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    margin-bottom: 2px;
}

.match-mini-area {
    font-size: 0.68rem;
    color: var(--text-muted);
    opacity: 0.8;
    margin-bottom: 2px;
    line-height: 1.35;
}

.match-mini-ts {
    font-size: 0.62rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* Down-arrow VS divider between the two mini-cards */
.match-mini-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 0;
    background: rgba(244,63,94,0.06);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    opacity: 0.55;
}

.match-alert-disclaimer {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin: 0 0 12px;
    padding: 7px 9px;
    background: rgba(251,191,36,0.05);
    border-radius: var(--radius-sm, 6px);
    border-left: 2px solid rgba(251,191,36,0.35);
    line-height: 1.45;
}

.match-alert-sidebar-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
