/* ========================================================================
   ASSISTIFY · Daylight Premium Design System
   — soft off-white + electric blue primary + warm orange accent —
   ======================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Georgian:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* ---------- Surface / Background (Daylight) ---------- */
    --bg-0: #F5F7FA;          /* soft cool off-white — main canvas */
    --bg-1: #FFFFFF;          /* headers / elevated */
    --bg-2: #EEF1F6;          /* subtle elevation tint */

    --surface: #FFFFFF;                        /* cards — pure white */
    --surface-hover: #F7F9FC;
    --surface-strong: #EEF1F6;

    --border: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(15, 23, 42, 0.14);

    /* ---------- Brand (Amber / Gold) ---------- */
    --primary: #FFB020;              /* warm amber */
    --primary-light: #FFD27A;
    --primary-soft: rgba(255, 176, 32, 0.14);
    --primary-glow: rgba(255, 176, 32, 0.32);
    --primary-ink: #0F172A;          /* dark text on amber */
    --primary-gradient: linear-gradient(135deg, #FFD27A 0%, #FFB020 100%);

    /* ---------- Accent (Blue — info / CTA alt) ---------- */
    --accent: #3B82F6;
    --accent-light: #60A5FA;
    --accent-soft: rgba(59, 130, 246, 0.10);
    --accent-glow: rgba(59, 130, 246, 0.28);
    --accent-gradient: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);

    /* ---------- Status ---------- */
    --success: #16A34A;
    --success-soft: rgba(22, 163, 74, 0.10);
    --danger: #DC2626;
    --danger-soft: rgba(220, 38, 38, 0.10);
    --warning: #F59E0B;
    --warning-soft: rgba(245, 158, 11, 0.12);

    /* ---------- Category tones ---------- */
    --cat-stuck: #EA580C;        /* ჩავრჩი — deeper orange for readability on white */
    --cat-battery: #7C3AED;      /* აკუმულატორი — electric violet */
    --cat-tire: #DB2777;         /* საბურავი — vivid pink (darker for contrast) */
    --cat-fuel: #16A34A;         /* საწვავი — green */

    /* ---------- Text ---------- */
    --text: #0F172A;             /* deep navy — main text */
    --text-muted: #475569;
    --text-subtle: #94A3B8;

    /* ---------- Radius & Spacing ---------- */
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-full: 999px;

    /* ---------- Shadow (softer for light mode) ---------- */
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 10px 30px var(--primary-glow);

    /* ---------- Toast (used across pages) ---------- */
    --toast-bg: #0F172A;
    --toast-text: #FFFFFF;

    /* ---------- Skeleton shimmer ---------- */
    --skel-base: rgba(15, 23, 42, 0.06);
    --skel-shine: rgba(15, 23, 42, 0.11);

    /* ---------- Ambient body glow ---------- */
    --glow-1: rgba(255, 176, 32, 0.12);  /* amber */
    --glow-2: rgba(59, 130, 246, 0.06);  /* blue */

    /* ---------- App-name gradient (header brand) ---------- */
    --brand-grad-start: #1E293B;
    --brand-grad-end:   #F59E0B;

    /* Critical action (SOS / emergencies) — ruby red */
    --critical: #E0115F;
    --critical-light: #FF3377;
    --critical-glow: rgba(224, 17, 95, 0.45);
    --critical-gradient: linear-gradient(135deg, #FF3377 0%, #E0115F 100%);
}

/* ============================================================
   DARK MODE — Matte Black + Electric Cyan + Ruby Red
   ============================================================ */
[data-theme="dark"] {
    /* Background — Matte Black */
    --bg-0: #121212;
    --bg-1: #1A1A1A;
    --bg-2: #242424;

    --surface: #1E1E1E;
    --surface-hover: #262626;
    --surface-strong: #2E2E2E;

    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);

    /* Brand — Electric Blue / Cyan */
    --primary: #00AEEF;
    --primary-light: #40CCFF;
    --primary-soft: rgba(0, 174, 239, 0.14);
    --primary-glow: rgba(0, 174, 239, 0.38);
    --primary-ink: #FFFFFF;
    --primary-gradient: linear-gradient(135deg, #40CCFF 0%, #00AEEF 100%);

    /* Secondary accent — for "Paid" highlight, stays cool green */
    --accent: #00AEEF;
    --accent-light: #40CCFF;
    --accent-soft: rgba(0, 174, 239, 0.12);
    --accent-glow: rgba(0, 174, 239, 0.32);
    --accent-gradient: linear-gradient(135deg, #40CCFF 0%, #00AEEF 100%);

    --success: #10B981;
    --success-soft: rgba(16, 185, 129, 0.14);
    --danger: #E0115F;              /* Ruby Red for critical */
    --danger-soft: rgba(224, 17, 95, 0.14);
    --warning: #F59E0B;
    --warning-soft: rgba(245, 158, 11, 0.15);

    /* Category tones — brighter on dark */
    --cat-stuck: #FB923C;
    --cat-battery: #A78BFA;
    --cat-tire: #F472B6;
    --cat-fuel: #34D399;

    /* Text — off-white */
    --text: #F5F5F7;
    --text-muted: #A0A6B5;
    --text-subtle: #6B7280;

    /* Darker shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 26px rgba(0, 0, 0, 0.50);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.65);

    /* Toast — pale surface on dark */
    --toast-bg: #F5F5F7;
    --toast-text: #0F172A;

    /* Skeleton shimmer — inverted */
    --skel-base: rgba(255, 255, 255, 0.05);
    --skel-shine: rgba(255, 255, 255, 0.10);

    /* Ambient body glow */
    --glow-1: rgba(0, 174, 239, 0.10);
    --glow-2: rgba(224, 17, 95, 0.04);

    /* App-name gradient — white→cyan */
    --brand-grad-start: #FFFFFF;
    --brand-grad-end:   #00AEEF;

    /* Critical — same ruby red */
    --critical: #E0115F;
    --critical-light: #FF3377;
    --critical-glow: rgba(224, 17, 95, 0.55);
    --critical-gradient: linear-gradient(135deg, #FF3377 0%, #E0115F 100%);
}

/* ========================================================================
   Reset & Base
   ======================================================================== */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; }

body {
    font-family: 'Noto Sans Georgian', 'Inter', system-ui, -apple-system, sans-serif;
    background:
        radial-gradient(900px 500px at 90% -5%, var(--glow-1), transparent 60%),
        radial-gradient(700px 500px at -10% 20%, var(--glow-2), transparent 60%),
        var(--bg-0);
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
    padding-bottom: 110px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.005em;
}

body.no-nav { padding-bottom: 20px; }

/* Hide dark-mode-style stars in light theme */
.stars,
.stars-bg {
    display: none;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; color: var(--text); letter-spacing: -0.015em; }

/* ========================================================================
   Header (Top App Bar)
   ======================================================================== */

header,
.main-header {
    height: 62px;
    padding: 0 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: color-mix(in srgb, var(--bg-1) 85%, transparent);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-icon,
.back-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.header-icon:hover,
.back-btn:hover {
    color: var(--primary);
    border-color: var(--primary-soft);
    background: var(--primary-soft);
}

.app-name {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.12em;
    background: linear-gradient(135deg, var(--brand-grad-start) 0%, var(--brand-grad-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
}

.header-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.header-icon[data-badge]::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    transform: translate(10px, -10px);
    box-shadow: 0 0 0 2px var(--bg-1), 0 0 10px var(--accent-glow);
}

/* ========================================================================
   Filter pills
   ======================================================================== */

.filter-wrapper {
    padding: 14px 16px 12px;
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    gap: 8px;
    scrollbar-width: none;
    position: sticky;
    top: 62px;
    z-index: 90;
    background: color-mix(in srgb, var(--bg-0) 85%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.filter-wrapper::-webkit-scrollbar { display: none; }

.filter-item {
    padding: 9px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.filter-item:hover {
    color: var(--text);
    background: var(--surface-hover);
}

.filter-item.active {
    background: var(--primary);
    color: var(--primary-ink);
    border-color: transparent;
    box-shadow: 0 6px 18px var(--primary-glow);
}

/* ========================================================================
   Container
   ======================================================================== */

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px 16px 24px;
    position: relative;
    z-index: 1;
}

/* ========================================================================
   Cards (feed)
   ======================================================================== */

.card {
    background: var(--surface);
    border-radius: var(--r-lg);
    margin-bottom: 12px;
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border);
    padding: 12px;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    color: inherit;
}

.card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.card:active { transform: scale(0.98); }

.card-img-wrapper {
    width: 78px;
    height: 78px;
    flex-shrink: 0;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--bg-2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img { width: 100%; height: 100%; object-fit: cover; }

.card-content {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cat-tag {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-block;
    padding: 3px 8px;
    border-radius: var(--r-sm);
    background: rgba(15, 23, 42, 0.04);
}

.card h3 {
    margin: 6px 0 3px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.desc {
    color: var(--text-muted);
    font-size: 12.5px;
    line-height: 1.45;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-subtle);
    gap: 8px;
}

.meta i { margin-right: 4px; color: var(--text-subtle); }

/* Paid / Premium badge */
.paid-badge {
    background: var(--success-soft);
    color: var(--success);
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--r-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(22, 163, 74, 0.22);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ========================================================================
   Bottom Navigation
   ======================================================================== */

.nav-wrapper {
    position: fixed;
    bottom: 14px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
    pointer-events: none;
}

.nav-container {
    position: relative;
    width: calc(100% - 24px);
    max-width: 460px;
    height: 64px;
    background: color-mix(in srgb, var(--bg-1) 94%, transparent);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
}

.center-btn-area {
    position: absolute;
    top: -26px;
    left: 50%;
    transform: translateX(-50%);
    width: 68px;
    height: 68px;
    background: var(--bg-0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--bg-0);
}

.plus-btn {
    width: 56px;
    height: 56px;
    background: var(--primary-gradient);
    color: var(--primary-ink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 10px 28px var(--primary-glow), inset 0 -3px 0 rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease;
}

.plus-btn:hover { transform: scale(1.06); }
.plus-btn:active { transform: scale(0.94); }

.nav-icon {
    color: var(--text-subtle);
    font-size: 19px;
    flex: 1;
    text-align: center;
    padding: 10px 0;
    transition: color 0.2s ease;
    position: relative;
}

.nav-icon:hover { color: var(--text-muted); }

.nav-icon.active {
    color: var(--primary);
}

.nav-icon.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* ========================================================================
   Forms
   ======================================================================== */

.form-container {
    max-width: 450px;
    margin: 0 auto;
    padding: 20px 18px 120px;
    position: relative;
    z-index: 1;
}

.input-group { margin-bottom: 18px; }

label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

input, textarea, select {
    width: 100%;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    transition: all 0.2s ease;
}

input::placeholder,
textarea::placeholder { color: var(--text-subtle); }

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

textarea { resize: vertical; min-height: 90px; }

/* Primary button */
.btn-primary,
.submit-btn,
.save-btn,
.login-btn,
.register-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-gradient);
    color: var(--primary-ink);
    border: none;
    border-radius: var(--r-md);
    font-family: inherit;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.01em;
    cursor: pointer;
    margin-top: 8px;
    box-shadow: 0 14px 30px var(--primary-glow), inset 0 -2px 0 rgba(0, 0, 0, 0.10);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

#sos-countdown-view{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn-primary:hover,
.submit-btn:hover,
.save-btn:hover,
.login-btn:hover,
.register-btn:hover { transform: translateY(-1px); }

.btn-primary:active,
.submit-btn:active,
.save-btn:active,
.login-btn:active,
.register-btn:active { transform: scale(0.98); }

/* Secondary button */
.btn-secondary {
    width: 100%;
    padding: 14px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover { background: var(--surface-hover); }

/* ========================================================================
   Section label
   ======================================================================== */

.section-label,
.section-title {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 22px 0 10px;
    display: block;
}

/* ========================================================================
   Generic list / settings groups
   ======================================================================== */

.list-group,
.settings-group,
.settings-list,
.security-list,
.faq-list {
    background: var(--surface);
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
}

.settings-item,
.security-item {
    display: flex;
    align-items: center;
    padding: 16px 18px;
    gap: 14px;
    border-bottom: 1px solid var(--border);
    color: inherit;
    transition: background 0.2s ease;
}

.settings-item:last-child,
.security-item:last-child { border-bottom: none; }

.settings-item:hover,
.security-item:hover { background: var(--surface-hover); }

.settings-item i {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--primary);
    background: var(--primary-soft);
    border-radius: var(--r-sm);
    flex-shrink: 0;
}

.settings-item .label { flex-grow: 1; font-size: 14.5px; font-weight: 500; }
.settings-item .value { font-size: 12.5px; color: var(--text-muted); }

.settings-item .chev,
.security-item .chev { color: var(--text-subtle); font-size: 12px; }

.logout {
    color: var(--danger) !important;
}
.logout i {
    color: var(--danger) !important;
    background: var(--danger-soft) !important;
}

/* ========================================================================
   Toggle Switch
   ======================================================================== */

.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; inset: 0;
    background: #CBD5E1;
    transition: 0.25s;
    border-radius: var(--r-full);
}
.slider:before {
    position: absolute; content: "";
    height: 20px; width: 20px; left: 3px; bottom: 3px;
    background: #fff; transition: 0.25s; border-radius: 50%;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}
input:checked + .slider { background: var(--primary); }
input:checked + .slider:before { transform: translateX(18px); }

/* ========================================================================
   Utilities
   ======================================================================== */

.flex-between { display: flex; justify-content: space-between; align-items: center; }
.muted { color: var(--text-muted); }
.subtle { color: var(--text-subtle); }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* ============================================================
   DARK MODE — overrides for page-specific hardcoded colors
   ============================================================ */

/* Glass backdrops that were hardcoded to white */
[data-theme="dark"] .chat-header,
[data-theme="dark"] .chat-input-wrapper,
[data-theme="dark"] .hero-overlay .header-icon,
[data-theme="dark"] .nav-floating-btn,
[data-theme="dark"] .map-search-wrapper .search-bar,
[data-theme="dark"] .map-filters .filter-item,
[data-theme="dark"] .fab {
    background: color-mix(in srgb, var(--bg-1) 90%, transparent) !important;
    color: var(--text) !important;
}

[data-theme="dark"] .banner-icon {
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Swap deep amber #B45309 text → cyan primary */
[data-theme="dark"] .my-req-icon,
[data-theme="dark"] .my-req-see-all,
[data-theme="dark"] .category-badge,
[data-theme="dark"] .compose-btn,
[data-theme="dark"] .search-filter-btn {
    color: var(--primary) !important;
}
[data-theme="dark"] .banner-waiting { color: #FBBF24 !important; }

/* Amber gradients → cyan gradients for visual elements */
[data-theme="dark"] .brand-logo,
[data-theme="dark"] .profile-img,
[data-theme="dark"] .avatar-preview,
[data-theme="dark"] .car-section-icon,
[data-theme="dark"] .car-card-icon,
[data-theme="dark"] .brand-big-logo {
    background: var(--primary-gradient) !important;
    color: var(--primary-ink) !important;
}

/* Glow borders that used amber rgba */
[data-theme="dark"] .my-requests-glow-wrap {
    background: linear-gradient(135deg,
        rgba(0, 174, 239, 0.6) 0%,
        rgba(64, 204, 255, 0.35) 40%,
        rgba(0, 174, 239, 0.55) 100%) !important;
    box-shadow: 0 0 18px rgba(0, 174, 239, 0.22), 0 0 36px rgba(0, 174, 239, 0.08) !important;
    animation: pulseGlowDark 3s ease-in-out infinite !important;
}
@keyframes pulseGlowDark {
    0%, 100% { box-shadow: 0 0 18px rgba(0, 174, 239, 0.22), 0 0 36px rgba(0, 174, 239, 0.08); }
    50%      { box-shadow: 0 0 26px rgba(0, 174, 239, 0.4), 0 0 52px rgba(0, 174, 239, 0.18); }
}
[data-theme="dark"] .my-req-mini-card {
    border-color: rgba(0, 174, 239, 0.25) !important;
}
[data-theme="dark"] .my-req-mini-card::before {
    background: linear-gradient(90deg, transparent, rgba(0, 174, 239, 0.5), transparent) !important;
}

/* Status / accent colors for badges & chips in dark */
[data-theme="dark"] .status-active,
[data-theme="dark"] .car-pill,
[data-theme="dark"] .chat-item.unread {
    border-color: rgba(0, 174, 239, 0.3) !important;
}

/* Paid/success badge — slightly brighter green on dark */
[data-theme="dark"] .paid-badge {
    background: rgba(16, 185, 129, 0.18) !important;
    color: #34D399 !important;
    border-color: rgba(16, 185, 129, 0.30) !important;
}

/* SOS always uses critical ruby red */
.sos-fab {
    background: var(--critical-gradient) !important;
    box-shadow: 0 10px 30px var(--critical-glow), 0 0 0 0 rgba(224, 17, 95, 0.7) !important;
    animation: sosPulseRuby 2s ease-in-out infinite !important;
}
@keyframes sosPulseRuby {
    0%, 100% { box-shadow: 0 10px 30px var(--critical-glow), 0 0 0 0 rgba(224, 17, 95, 0.6); }
    50%      { box-shadow: 0 10px 30px var(--critical-glow), 0 0 0 14px rgba(224, 17, 95, 0); }
}

.sos-overlay {
    background: radial-gradient(circle at center, #E0115F, #4A0A1F) !important;
}
.sos-cancel-btn {
    color: var(--critical) !important;
}

/* Toast auto-flip */
.toast {
    background: var(--toast-bg) !important;
    color: var(--toast-text) !important;
}

/* Skeleton shimmer auto-flip */
.skel-block {
    background: linear-gradient(90deg,
        var(--skel-base) 25%,
        var(--skel-shine) 50%,
        var(--skel-base) 75%) !important;
    background-size: 200% 100% !important;
}

/* Leaflet tiles — slightly dimmed in dark mode so pins remain readable */
[data-theme="dark"] .leaflet-tile-container {
    filter: invert(92%) hue-rotate(180deg) brightness(0.92) contrast(1.1) saturate(0.85) !important;
}

/* Ad slider inner background flips with surface token (already covered);
   dot indicators' resting bg is hardcoded rgba dark → flip to rgba light */
[data-theme="dark"] .ad-dot {
    background: rgba(255, 255, 255, 0.15) !important;
}
[data-theme="dark"] .ad-dot.active {
    background: var(--primary) !important;
}

/* Dark mode: 0.20 stats overlay in profile-card was near-black; lift it */
[data-theme="dark"] .profile-card .stats-row {
    background: rgba(255, 255, 255, 0.04) !important;
}

/* Form inputs — ensure visible in dark */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: var(--surface-strong);
    color: var(--text);
}
