/* Bar Watch - Pacific Northwest Bar Conditions Tracker
 * Consolidated CSS for all pages
 * Ocean-themed dark design
 */

/* ============================================================================
   CSS Variables - Ocean Theme
   ============================================================================ */
:root {
    color-scheme: dark;

    /* === PRIMARY BACKGROUNDS === */
    /* Inspired by Pacific pre-dawn sky, not pure black */
    --ocean-abyss: #0a1219;      /* Near-black with slight blue warmth */
    --ocean-deep: #111d2a;       /* Deep water before sunrise */
    --ocean-dark: #162635;       /* Hull paint color */
    --ocean-mid: #1e3a50;        /* Evening water */
    --ocean-light: #2a4d68;      /* Twilight reflection */

    /* === PRIMARY ACCENT: "Signal Blue" === */
    /* Inspired by maritime signal flags and navigational lights */
    --ocean-glow: #3b9ece;       /* USCG blue, trustworthy, professional */
    --ocean-foam: #5fb8e6;       /* Hover state, lighter */

    /* === SECONDARY ACCENT: "Copper Kettle" === */
    /* Warm accent for CTAs, inspired by fishing vessel hardware */
    --accent-warm: #d4915c;      /* Weathered copper, sunrise */
    --accent-warm-hover: #e5a673;

    /* === TEXT HIERARCHY === */
    --text-primary: #e8eef4;     /* Slightly warm white, easier on eyes */
    --text-secondary: #9fb3c8;   /* Muted for secondary info */
    --text-muted: #8299b0;       /* Timestamps, labels - WCAG AA compliant (5.1:1) */

    /* === STATUS COLORS (Safety-Critical) === */
    --status-open: #4ade80;      /* Slightly brighter green, "all clear" */
    --status-restricted: #fbbf24; /* Amber, caution - not yellow */
    --status-closed: #f87171;    /* Urgent red, not aggressive */
    --status-unknown: #94a3b8;   /* Neutral gray */

    /* Status backgrounds - subtle but visible */
    --status-open-bg: rgba(74, 222, 128, 0.15);
    --status-restricted-bg: rgba(251, 191, 36, 0.12);
    --status-closed-bg: rgba(248, 113, 113, 0.15);
    --status-unknown-bg: rgba(148, 163, 184, 0.12);

    /* === SURFACES === */
    --card-border: rgba(59, 158, 206, 0.15);
    --card-border-hover: rgba(59, 158, 206, 0.3);
    --card-bg: var(--ocean-dark);

    /* === LAYOUT === */
    --content-max-width: 1800px;
}

/* Native <option> elements need hardcoded colors (CSS variables don't resolve) */
select option {
    background: #111d2a;
    color: #e8eef4;
}

/* ============================================================================
   Light Theme
   ============================================================================ */
html.light-mode {
    color-scheme: light;

    /* === BACKGROUNDS: "Neutral Modern" === */
    /* Darker canvas so white cards pop (Apple-inspired contrast) */
    --ocean-abyss: #f0f1f3;      /* Page canvas - visible contrast with white cards */
    --ocean-deep: #e4e6e9;       /* Recessed areas */
    --ocean-dark: #d8dbe0;       /* Deeper recesses */
    --ocean-mid: #c2c7cd;        /* Medium gray */
    --ocean-light: #a0a7b0;      /* Darker gray for contrast */

    /* === PRIMARY ACCENT: "Ocean Signal" === */
    /* Vibrant blue for interactive elements - stands out on neutral bg */
    --ocean-glow: #0d6efd;       /* Bright signal blue */
    --ocean-foam: #3d8bfd;       /* Hover - lighter */

    /* === WARM ACCENT: "Copper Rope" === */
    --accent-warm: #c17f3d;      /* Warm copper for CTAs */
    --accent-warm-hover: #a86a2d;

    /* === TEXT: Neutral darks === */
    --text-primary: #1a1d21;     /* Slightly deeper charcoal for crispness */
    --text-secondary: #495057;   /* Dark gray */
    --text-muted: #5c636a;       /* Medium gray - WCAG AA compliant (4.9:1 on canvas) */

    /* === STATUS (High contrast for readability) === */
    --status-open: #198754;      /* Bootstrap green - proven accessible */
    --status-restricted: #fd7e14; /* Bright orange */
    --status-closed: #dc3545;    /* Bootstrap red */
    --status-unknown: #6c757d;   /* Neutral gray */

    --status-open-bg: rgba(25, 135, 84, 0.12);
    --status-restricted-bg: rgba(253, 126, 20, 0.12);
    --status-closed-bg: rgba(220, 53, 69, 0.12);
    --status-unknown-bg: rgba(108, 117, 125, 0.10);

    /* === SURFACES === */
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.12);
    --card-border-hover: rgba(0, 0, 0, 0.22);

    /* === SHADOW DEPTH SYSTEM === */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 2px 4px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 8px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.10);
    --shadow-xl: 0 8px 16px rgba(0,0,0,0.10), 0 16px 48px rgba(0,0,0,0.12);

    /* === SURFACE HIERARCHY === */
    --surface-inset: #e8eaed;    /* Recessed areas: gauge wells, table headers */
    --surface-raised: #ffffff;   /* Elevated cards */

    /* === LIGHT MODE SPECIFIC === */
    /* Keep header blue for brand identity, but slightly brighter */
    --header-gradient-start: #0d6efd;
    --header-gradient-end: #3d8bfd;
    --shadow-color: rgba(0, 0, 0, 0.08);
}

html.light-mode select option {
    background-color: #ffffff;
    color: #1a1d21;
}

/* ============================================================================
   Base Styles
   ============================================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: var(--ocean-abyss);
}
body {
    font-family: 'Outfit', sans-serif;
    background: var(--ocean-abyss);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

body.disclaimer-dismissed {
    /* No extra padding needed */
}

/* Make main content grow to push footer to bottom */
main, .main {
    flex: 1;
    width: 100%;
}

a {
    color: var(--ocean-glow);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--ocean-foam);
}

/* ============================================================================
   Accessibility - WCAG 2.1 AA Compliance
   ============================================================================ */

/* Skip to main content link - visible only on focus for keyboard users */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    padding: 1rem 2rem;
    background: var(--ocean-glow);
    color: var(--ocean-abyss);
    font-weight: 600;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-to-content:focus {
    top: 0;
    outline: none;
}

/* Standardized focus-visible styles for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--ocean-glow);
    outline-offset: 2px;
}

/* Remove default focus styles for mouse users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
[tabindex]:focus:not(:focus-visible) {
    outline: none;
}

/* High contrast focus for buttons on dark backgrounds */
.btn:focus-visible,
.nav-link:focus-visible,
.mobile-menu-btn:focus-visible,
.share-btn:focus-visible,
.expand-btn:focus-visible {
    outline: 2px solid var(--ocean-foam);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(59, 158, 206, 0.3);
}

/* Ensure interactive elements have minimum touch target size (44x44px) */
button,
.btn,
[role="button"] {
    min-height: 44px;
    min-width: 44px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Screen reader only - visually hidden but accessible to assistive technology */
.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;
}

/* Data tables for chart accessibility */
.chart-data-table {
    border-collapse: collapse;
    width: 100%;
}

.chart-data-table th,
.chart-data-table td {
    padding: 0.5rem;
    text-align: left;
    border: 1px solid var(--card-border);
}

.chart-data-table th {
    background: var(--card-bg);
    font-weight: 600;
}

.chart-data-table caption {
    padding: 0.5rem;
    font-weight: 600;
    text-align: left;
}

/* ============================================================================
   Header
   ============================================================================ */
.header {
    background: linear-gradient(180deg, var(--ocean-dark) 0%, var(--ocean-deep) 100%);
    border-bottom: 1px solid var(--card-border);
    padding: 1.5rem 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ocean-glow);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--ocean-foam);
}

/* ============================================================================
   Navigation
   ============================================================================ */
.nav-btn {
    padding: 0.625rem 1.25rem;
    background: var(--ocean-mid);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
    cursor: pointer;
}

.nav-btn:hover {
    background: var(--ocean-light);
    border-color: var(--ocean-glow);
    color: var(--text-primary);
}

.subscribe-btn {
    background: rgba(59, 158, 206, 0.15);
    color: var(--ocean-glow);
    border-color: rgba(59, 158, 206, 0.3);
}

.subscribe-btn:hover {
    background: rgba(59, 158, 206, 0.25);
}

.subscribe-btn.subscribed {
    background: var(--ocean-glow);
    color: var(--ocean-deep);
}

/* ============================================================================
   Share Buttons
   ============================================================================ */

/* Bar title row with share button */
.bar-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.bar-title-row h1 {
    margin-bottom: 0;
}

/* Bar detail share button (next to title) */
.bar-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: rgba(59, 158, 206, 0.1);
    border: 1px solid rgba(59, 158, 206, 0.2);
    border-radius: 6px;
    color: var(--ocean-glow);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.bar-share-btn:hover {
    background: rgba(59, 158, 206, 0.2);
    border-color: var(--ocean-glow);
}

@media (max-width: 768px) {
    .bar-share-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
}

/* ============================================================================
   Main Content
   ============================================================================ */
.main-content {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ============================================================================
   Cards
   ============================================================================ */
.card {
    background: linear-gradient(135deg, var(--ocean-dark) 0%, var(--ocean-deep) 100%);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    margin-bottom: 2rem;
}

.status-card {
    background: linear-gradient(135deg, var(--ocean-dark) 0%, var(--ocean-deep) 100%);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    margin-bottom: 2rem;
}

.status-card .status-banner {
    border-radius: 16px 16px 0 0;
}

.status-card-content {
    padding: 2rem;
}

.chart-card {
    background: linear-gradient(135deg, var(--ocean-dark) 0%, var(--ocean-deep) 100%);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.table-card {
    background: linear-gradient(135deg, var(--ocean-dark) 0%, var(--ocean-deep) 100%);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    overflow: hidden;
}

/* ============================================================================
   Status Banners and Badges
   ============================================================================ */
.status-banner {
    height: 6px;
}

.status-banner.open, .status-banner.green { background: var(--status-open); }
.status-banner.restricted, .status-banner.yellow { background: var(--status-restricted); }
.status-banner.closed, .status-banner.red { background: var(--status-closed); }
.status-banner.unknown, .status-banner.gray { background: var(--status-unknown); }

.status-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.open, .status-badge.green {
    background: rgba(72, 187, 120, 0.15);
    color: var(--status-open);
    border: 1px solid rgba(72, 187, 120, 0.3);
}

.status-badge.restricted, .status-badge.yellow {
    background: rgba(236, 201, 75, 0.15);
    color: var(--status-restricted);
    border: 1px solid rgba(236, 201, 75, 0.3);
}

.status-badge.closed, .status-badge.red {
    background: rgba(245, 101, 101, 0.15);
    color: var(--status-closed);
    border: 1px solid rgba(245, 101, 101, 0.3);
}

.status-badge.unknown, .status-badge.gray {
    background: rgba(160, 174, 192, 0.15);
    color: var(--status-unknown);
    border: 1px solid rgba(160, 174, 192, 0.3);
}

.status-pill {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pill.open {
    background: rgba(72, 187, 120, 0.15);
    color: var(--status-open);
}

.status-pill.restricted {
    background: rgba(236, 201, 75, 0.15);
    color: var(--status-restricted);
}

.status-pill.closed {
    background: rgba(245, 101, 101, 0.15);
    color: var(--status-closed);
}

.status-pill.unknown {
    background: rgba(160, 174, 192, 0.15);
    color: var(--status-unknown);
}

/* ============================================================================
   Hero Crossing Badge (Unified Status Display)
   ============================================================================ */
.crossing-badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.crossing-badge-hero.favorable {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.2) 0%, rgba(72, 187, 120, 0.1) 100%);
    color: var(--status-open);
    border: 2px solid rgba(72, 187, 120, 0.4);
    box-shadow: 0 0 20px rgba(72, 187, 120, 0.15);
}

.crossing-badge-hero.caution {
    background: linear-gradient(135deg, rgba(236, 201, 75, 0.2) 0%, rgba(236, 201, 75, 0.1) 100%);
    color: var(--status-restricted);
    border: 2px solid rgba(236, 201, 75, 0.4);
    box-shadow: 0 0 20px rgba(236, 201, 75, 0.15);
}

.crossing-badge-hero.not_advised {
    background: linear-gradient(135deg, rgba(245, 101, 101, 0.2) 0%, rgba(245, 101, 101, 0.1) 100%);
    color: var(--status-closed);
    border: 2px solid rgba(245, 101, 101, 0.4);
    box-shadow: 0 0 20px rgba(245, 101, 101, 0.15);
}

.crossing-badge-hero.unknown {
    background: linear-gradient(135deg, rgba(160, 174, 192, 0.2) 0%, rgba(160, 174, 192, 0.1) 100%);
    color: var(--status-unknown);
    border: 2px solid rgba(160, 174, 192, 0.4);
    box-shadow: 0 0 20px rgba(160, 174, 192, 0.15);
}

.crossing-badge-hero-icon {
    width: 20px;
    height: 20px;
}

.crossing-badge-hero-detail {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    margin-top: 0.5rem;
    opacity: 0.9;
}

/* Official Status Footnote */
.official-status-footnote {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--card-border);
}

.official-status-footnote .status-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.official-status-footnote .status-value {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.official-status-footnote .status-value.open {
    background: rgba(72, 187, 120, 0.1);
    color: var(--status-open);
}

.official-status-footnote .status-value.restricted {
    background: rgba(236, 201, 75, 0.1);
    color: var(--status-restricted);
}

.official-status-footnote .status-value.closed {
    background: rgba(245, 101, 101, 0.1);
    color: var(--status-closed);
}

.official-status-footnote .status-value.unknown {
    background: rgba(160, 174, 192, 0.1);
    color: var(--status-unknown);
}

.official-status-footnote .help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(59, 158, 206, 0.15);
    color: var(--ocean-glow);
    font-size: 0.625rem;
    font-weight: 700;
    cursor: help;
}

/* Light mode adjustments */
html.light-mode .crossing-badge-hero.favorable {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #047857;
    border-color: #34d399;
}

html.light-mode .crossing-badge-hero.caution {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
    border-color: #f59e0b;
}

html.light-mode .crossing-badge-hero.not_advised {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    border-color: #f87171;
}

html.light-mode .crossing-badge-hero.unknown {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
    border-color: #94a3b8;
}

html.light-mode .official-status-footnote {
    border-top-color: #e5e7eb;
}

html.light-mode .official-status-footnote .status-value.open {
    background: #d1fae5;
    color: #047857;
}

html.light-mode .official-status-footnote .status-value.restricted {
    background: #fef3c7;
    color: #b45309;
}

html.light-mode .official-status-footnote .status-value.closed {
    background: #fee2e2;
    color: #dc2626;
}

/* ============================================================================
   Info Boxes
   ============================================================================ */
.info-box {
    background: rgba(5, 13, 24, 0.5);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.info-box h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ocean-glow);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.info-box p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* ============================================================================
   Data Gauges
   ============================================================================ */
.gauges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.gauge-card {
    background: rgba(5, 13, 24, 0.5);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.gauge-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.gauge-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.gauge-value.swell { color: var(--ocean-glow); }
.gauge-value.wind { color: var(--status-open); }
.gauge-value.vis { color: var(--status-restricted); }

.gauge-unit {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.gauge-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ============================================================================
   Compact Status Card (Bar Detail - Option G Design)
   ============================================================================ */
.status-card-compact .status-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(5, 13, 24, 0.4);
    border-bottom: 1px solid var(--card-border);
    border-radius: 16px 16px 0 0;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.status-card-compact .status-indicator {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.status-card-compact .status-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-card-compact .status-dot.open,
.status-card-compact .status-dot.green { background: var(--status-open); box-shadow: 0 0 8px var(--status-open); }
.status-card-compact .status-dot.restricted,
.status-card-compact .status-dot.yellow { background: var(--status-restricted); box-shadow: 0 0 8px var(--status-restricted); }
.status-card-compact .status-dot.closed,
.status-card-compact .status-dot.red { background: var(--status-closed); box-shadow: 0 0 8px var(--status-closed); }
.status-card-compact .status-dot.unknown,
.status-card-compact .status-dot.gray { background: var(--status-unknown); }

.status-card-compact .status-label {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-card-compact .status-label.open,
.status-card-compact .status-label.green { color: var(--status-open); }
.status-card-compact .status-label.restricted,
.status-card-compact .status-label.yellow { color: var(--status-restricted); }
.status-card-compact .status-label.closed,
.status-card-compact .status-label.red { color: var(--status-closed); }
.status-card-compact .status-label.unknown,
.status-card-compact .status-label.gray { color: var(--status-unknown); }

.status-card-compact .bar-title-region {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.status-card-compact .bar-title-region h1 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.status-card-compact .bar-title-region .region {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.status-card-compact .bar-title-region .region::before {
    content: "•";
    margin-right: 0.5rem;
}

.status-card-compact .header-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.status-card-compact .header-action-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: rgba(59, 158, 206, 0.1);
    border: 1px solid rgba(59, 158, 206, 0.25);
    border-radius: 6px;
    color: var(--ocean-glow);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.status-card-compact .header-action-btn:hover {
    background: rgba(59, 158, 206, 0.2);
    border-color: var(--ocean-glow);
}

.status-card-compact .header-action-btn svg {
    width: 14px;
    height: 14px;
}

/* Metrics Row - 4 columns on desktop */
.status-card-compact .metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.status-card-compact .metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.75rem;
    background: var(--ocean-dark);
}

.status-card-compact .metric-label {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
}

.status-card-compact .metric-value {
    font-size: 1rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.3;
}

.status-card-compact .metric-value .direction {
    font-size: 0.75rem;
    opacity: 1.0;
}

/* NOAA Section */
.status-card-compact .noaa-section {
    padding: 1rem 1.5rem;
    background: rgba(59, 158, 206, 0.05);
    border-bottom: 1px solid var(--card-border);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.status-card-compact .noaa-label {
    font-weight: 600;
    color: var(--ocean-glow);
    margin-right: 0.25rem;
}

.status-card-compact .restrictions-text {
    display: block;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(236, 201, 75, 0.3);
    color: var(--status-restricted);
}

/* Footer Row - Contact + Weather */
.status-card-compact .card-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.5rem;
    background: rgba(5, 13, 24, 0.3);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.status-card-compact .contact-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.status-card-compact .contact-info a {
    color: var(--ocean-glow);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.status-card-compact .contact-info a:hover {
    text-decoration: underline;
}

.status-card-compact .contact-info svg {
    width: 14px;
    height: 14px;
}

.status-card-compact .vhf-toggle-compact {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.status-card-compact .vhf-toggle-compact:hover {
    background: rgba(59, 158, 206, 0.1);
    color: var(--ocean-glow);
}

.status-card-compact .vhf-toggle-compact .vhf-expand-icon {
    transition: transform 0.2s ease;
}

.status-card-compact .vhf-toggle-compact .vhf-expand-icon.rotated {
    transform: rotate(180deg);
}

.status-card-compact .vhf-details-compact {
    display: none;
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(5, 13, 24, 0.5);
    border-radius: 8px;
    font-size: 0.75rem;
}

.status-card-compact .vhf-details-compact.show {
    display: block;
}

.status-card-compact .vhf-channel-compact {
    display: flex;
    justify-content: space-between;
    padding: 0.375rem 0;
    border-bottom: 1px solid var(--card-border);
}

.status-card-compact .vhf-channel-compact:last-of-type {
    border-bottom: none;
}

.status-card-compact .vhf-note-compact {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-style: italic;
}

.status-card-compact .weather-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.status-card-compact .weather-summary .temp {
    color: #f6ad55;
    font-weight: 600;
}

.status-card-compact .weather-summary .wind-info {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Safety Disclaimer */
.status-card-compact .safety-disclaimer {
    padding: 0.75rem 1.5rem;
    background: rgba(236, 201, 75, 0.05);
    border-top: 1px solid rgba(236, 201, 75, 0.15);
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-align: center;
    border-radius: 0 0 16px 16px;
}

/* Plain-language summary */
.status-card-compact .plain-summary {
    padding: 0.75rem 1.5rem;
    background: rgba(72, 187, 120, 0.05);
    border-bottom: 1px solid var(--card-border);
    font-size: 0.875rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-card-compact .plain-summary.caution {
    background: rgba(236, 201, 75, 0.05);
}

.status-card-compact .plain-summary.warning {
    background: rgba(245, 101, 101, 0.05);
}

/* Mobile Responsive - Tablet */
@media (max-width: 768px) {
    .status-card-compact .status-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .status-card-compact .bar-title-region {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .status-card-compact .bar-title-region .region::before {
        display: none;
    }

    .status-card-compact .header-actions {
        width: 100%;
    }

    .status-card-compact .header-action-btn {
        flex: 1;
        justify-content: center;
    }

    .status-card-compact .metrics-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .status-card-compact .card-footer-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .status-card-compact .weather-summary {
        width: 100%;
        justify-content: flex-start;
        padding-top: 0.5rem;
        border-top: 1px solid var(--card-border);
    }
}

/* Mobile Responsive - Phone */
@media (max-width: 480px) {
    .status-card-compact .status-card-header {
        padding: 0.875rem 1rem;
    }

    .status-card-compact .metrics-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .status-card-compact .metric-item {
        padding: 0.75rem 0.5rem;
    }

    .status-card-compact .metric-value {
        font-size: 0.9rem;
    }

    .status-card-compact .noaa-section,
    .status-card-compact .card-footer-row,
    .status-card-compact .safety-disclaimer,
    .status-card-compact .plain-summary {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Light Mode Adjustments */
html.light-mode .status-card-compact .status-card-header {
    background: rgba(0, 0, 0, 0.02);
}

html.light-mode .status-card-compact .metric-item {
    background: var(--card-bg);
}

html.light-mode .status-card-compact .noaa-section {
    background: rgba(59, 158, 206, 0.03);
}

html.light-mode .status-card-compact .card-footer-row {
    background: rgba(0, 0, 0, 0.02);
}

html.light-mode .status-card-compact .vhf-details-compact {
    background: rgba(0, 0, 0, 0.03);
}

/* ============================================================================
   Charts
   ============================================================================ */
.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.chart-header h2 {
    margin-bottom: 0;
}

.chart-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.reset-zoom-btn {
    background: rgba(59, 158, 206, 0.15);
    border: 1px solid rgba(59, 158, 206, 0.3);
    color: var(--ocean-glow);
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.reset-zoom-btn:hover {
    background: rgba(59, 158, 206, 0.25);
    border-color: var(--ocean-glow);
}

.chart-hint {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.chart-container {
    height: 280px;
    position: relative;
}

canvas {
    max-width: 100%;
}

/* ============================================================================
   Tables
   ============================================================================ */
.table-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--card-border);
}

.table-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    background: rgba(5, 13, 24, 0.3);
    border-bottom: 1px solid var(--card-border);
}

.history-table td {
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(59, 158, 206, 0.05);
}

.history-table tr:hover td {
    background: rgba(59, 158, 206, 0.03);
}

/* ============================================================================
   Jump Navigation Menu
   ============================================================================ */
.jump-menu-wrapper {
    background: var(--ocean-deep);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.jump-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.jump-menu::-webkit-scrollbar {
    height: 4px;
}

.jump-menu::-webkit-scrollbar-track {
    background: transparent;
}

.jump-menu::-webkit-scrollbar-thumb {
    background: var(--ocean-mid);
    border-radius: 2px;
}

.jump-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    white-space: nowrap;
}

.jump-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.jump-link {
    padding: 0.4rem 0.75rem;
    background: var(--ocean-dark);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.jump-link:hover {
    background: var(--ocean-mid);
    color: var(--ocean-glow);
    border-color: var(--ocean-glow);
}

.jump-home {
    background: var(--ocean-mid);
    border-color: var(--ocean-glow);
    color: var(--ocean-glow);
    margin-right: 0.5rem;
}

.jump-home:hover {
    background: var(--ocean-glow);
    color: var(--ocean-abyss);
}

.jump-link.active {
    background: var(--ocean-glow);
    color: var(--ocean-abyss);
    border-color: var(--ocean-glow);
}

/* ============================================================================
   Toast Notifications
   ============================================================================ */
.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: var(--ocean-dark);
    border: 1px solid var(--card-border);
    padding: 1rem;
    border-radius: 12px;
    min-width: 300px;
    max-width: 400px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast-content { flex: 1; }
.toast-title { font-weight: 600; font-size: 0.875rem; }
.toast-message { font-size: 0.8125rem; color: var(--text-secondary); margin-top: 0.25rem; }
.toast-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.25rem; }

/* Toast Action Button */
.toast-action {
    margin-top: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: rgba(59, 158, 206, 0.2);
    border: 1px solid rgba(59, 158, 206, 0.3);
    border-radius: 6px;
    color: var(--ocean-glow);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.toast-action:hover {
    background: rgba(59, 158, 206, 0.3);
    border-color: var(--ocean-glow);
}

/* ============================================================================
   Skeleton Loaders
   ============================================================================ */
.skeleton {
    background: linear-gradient(90deg,
        var(--card-bg) 0%,
        rgba(59, 158, 206, 0.08) 40%,
        rgba(59, 158, 206, 0.12) 50%,
        rgba(59, 158, 206, 0.08) 60%,
        var(--card-bg) 100%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
}

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

/* Skeleton card matching bar card dimensions */
.skeleton-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skeleton-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.skeleton-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.skeleton-title {
    height: 1.25rem;
    flex: 1;
    max-width: 180px;
}

.skeleton-subtitle {
    height: 0.875rem;
    width: 80px;
}

.skeleton-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skeleton-line {
    height: 0.875rem;
}

.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }
.skeleton-line.long { width: 100%; }

.skeleton-footer {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.skeleton-btn {
    height: 2rem;
    width: 80px;
    border-radius: 6px;
}

/* Skeleton text for inline use */
.skeleton-text {
    display: inline-block;
    height: 1em;
    width: 100px;
    vertical-align: middle;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .skeleton {
        animation: none;
        background: var(--card-bg);
        opacity: 0.7;
    }
}

/* ============================================================================
   Empty States
   ============================================================================ */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.empty-state-message {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--ocean-glow);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.empty-state-action:hover {
    border-color: var(--ocean-glow);
    background: rgba(59, 158, 206, 0.1);
}

.empty-state-action svg {
    width: 16px;
    height: 16px;
}

/* ============================================================================
   Tooltips
   ============================================================================ */
/* Note: JavaScript tooltip handler is used on pages with data-tooltip elements.
   This CSS provides styling for the global tooltip element. */
[data-tooltip] {
    cursor: help;
}

/* Help icon for contextual tooltips */
.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    margin-left: 4px;
    border-radius: 50%;
    background: rgba(59, 158, 206, 0.15);
    color: var(--ocean-glow);
    font-size: 9px;
    font-weight: 600;
    vertical-align: middle;
    cursor: help;
    transition: background 0.2s, color 0.2s;
}

.help-icon:hover {
    background: var(--ocean-glow);
    color: var(--ocean-abyss);
}

html.light-mode .help-icon {
    background: rgba(13, 110, 253, 0.12);
    color: var(--ocean-glow);
}

html.light-mode .help-icon:hover {
    background: var(--ocean-glow);
    color: #fff;
}

/* Global tooltip - created by JS, styled here for theme support */
.global-tooltip {
    position: fixed;
    display: none;
    background: var(--ocean-dark);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    z-index: 10000;
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    max-width: 280px;
    white-space: normal;
    line-height: 1.4;
}

/* Light mode tooltip - dark background for contrast */
html.light-mode .global-tooltip {
    background: var(--text-primary);
    color: #ffffff;
    border-color: var(--text-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* ============================================================================
   Lightbox
   ============================================================================ */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    cursor: pointer;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
}

/* ============================================================================
   Sticky Disclaimer
   ============================================================================ */
.sticky-disclaimer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(245, 101, 101, 0.95);
    backdrop-filter: blur(8px);
    padding: 0.75rem 2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.sticky-disclaimer.dismissed {
    display: none;
}

.sticky-disclaimer p {
    margin: 0;
    font-size: 0.75rem;
    color: white;
    text-align: center;
    max-width: 1000px;
}

.sticky-disclaimer strong {
    color: white;
    font-weight: 700;
}

.dismiss-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.dismiss-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================================================
   Site Footer
   ============================================================================ */
.site-footer {
    text-align: center;
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 2rem;
}

.site-footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: var(--ocean-glow);
}

/* ============================================================================
   Scroll to Top Button
   ============================================================================ */
.scroll-top-btn {
    position: fixed;
    bottom: 5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: var(--ocean-deep);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    color: var(--ocean-glow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 90;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.scroll-top-btn:hover {
    background: var(--card-bg);
    border-color: var(--ocean-glow);
    transform: translateY(-2px);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

/* Adjust position when disclaimer is visible */
body:not(.disclaimer-dismissed) .scroll-top-btn {
    bottom: 8rem;
}

/* ============================================================================
   No Data State
   ============================================================================ */
.no-data {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

/* ============================================================================
   Animations
   ============================================================================ */
@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(72, 187, 120, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(72, 187, 120, 0); }
}

@keyframes pulse-yellow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(236, 201, 75, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(236, 201, 75, 0); }
}

@keyframes pulse-red {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 101, 101, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(245, 101, 101, 0); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================================================
   Custom Scrollbar
   ============================================================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--ocean-deep);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--ocean-mid);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ocean-light);
}

/* ============================================================================
   Responsive - Mobile
   ============================================================================ */
@media (max-width: 768px) {
    .header-nav {
        flex-wrap: wrap;
    }

    .history-table {
        font-size: 0.8125rem;
    }

    .history-table th,
    .history-table td {
        padding: 0.75rem 1rem;
    }

    .jump-menu {
        padding: 0.5rem 1rem;
    }

    .jump-label {
        display: none;
    }

    .jump-link {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
    }

    .gauges-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gauge-card {
        padding: 1rem;
    }

    .main-content {
        padding: 1rem 0.5rem;
    }

    .chart-card,
    .table-card {
        padding: 1rem;
    }

    .gauge-value {
        font-size: 1.5rem;
    }

    .status-card-content {
        padding: 1.25rem;
    }
}

/* ============================================================================
   Ocean Background
   ============================================================================ */
.ocean-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(59, 158, 206, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(44, 82, 130, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, var(--ocean-abyss) 0%, var(--ocean-deep) 100%);
}

/* ============================================================================
   Development Banner
   ============================================================================ */
.dev-banner {
    background: linear-gradient(135deg, rgba(59, 158, 206, 0.15), rgba(59, 158, 206, 0.08));
    border-bottom: 1px solid rgba(59, 158, 206, 0.3);
    color: var(--ocean-glow);
    text-align: center;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    font-size: 0.8125rem;
    position: relative;
}

.dev-banner-dismiss {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--ocean-glow);
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.dev-banner-dismiss:hover {
    opacity: 1;
}

/* ============================================================================
   Mobile Menu
   ============================================================================ */
.hamburger {
    display: none;
    background: rgba(59, 158, 206, 0.1);
    border: 1px solid rgba(59, 158, 206, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s;
}

.hamburger:hover {
    background: rgba(59, 158, 206, 0.2);
    border-color: var(--ocean-glow);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ocean-deep);
    z-index: 2000;
    flex-direction: column;
    padding: 1.5rem;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.mobile-menu-close:hover {
    color: var(--ocean-glow);
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    transition: all 0.2s;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
    color: var(--ocean-glow);
}

.mobile-menu-nav svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* ============================================================================
   Header Waves & Fish Animations
   ============================================================================ */
.header {
    position: relative;
    padding: 2rem 2rem 3rem;
    background: linear-gradient(180deg, var(--ocean-dark) 0%, var(--ocean-abyss) 100%);
    border-bottom: 1px solid var(--card-border);
    overflow: visible;
    z-index: 100;
}

/* Primary wave animation */
.header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%234fd1c5' fill-opacity='0.08' d='M0,30 C240,60 480,0 720,30 C960,60 1200,0 1440,30 L1440,60 L0,60 Z'%3E%3Canimate attributeName='d' dur='20s' repeatCount='indefinite' values='M0,30 C240,60 480,0 720,30 C960,60 1200,0 1440,30 L1440,60 L0,60 Z;M0,30 C240,0 480,60 720,30 C960,0 1200,60 1440,30 L1440,60 L0,60 Z;M0,30 C240,60 480,0 720,30 C960,60 1200,0 1440,30 L1440,60 L0,60 Z'/%3E%3C/path%3E%3C/svg%3E") no-repeat bottom center;
    background-size: cover;
    z-index: -1;
    pointer-events: none;
}

/* Secondary wave for depth/parallax effect */
.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='%234fd1c5' fill-opacity='0.04' d='M0,50 C180,20 360,70 540,40 C720,10 900,60 1080,35 C1260,10 1350,50 1440,40 L1440,80 L0,80 Z'%3E%3Canimate attributeName='d' dur='28s' repeatCount='indefinite' values='M0,50 C180,20 360,70 540,40 C720,10 900,60 1080,35 C1260,10 1350,50 1440,40 L1440,80 L0,80 Z;M0,35 C180,60 360,20 540,50 C720,70 900,25 1080,55 C1260,70 1350,30 1440,50 L1440,80 L0,80 Z;M0,50 C180,20 360,70 540,40 C720,10 900,60 1080,35 C1260,10 1350,50 1440,40 L1440,80 L0,80 Z'/%3E%3C/path%3E%3C/svg%3E") no-repeat bottom center;
    background-size: cover;
    z-index: -2;
    pointer-events: none;
}

.header-content {
    max-width: var(--content-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Animated fish schools */
.header-fish {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.fish-school {
    position: absolute;
    display: flex;
    gap: 4px;
    align-items: center;
    color: var(--ocean-glow);
    opacity: 0.12;
}

.fish-school .fish {
    width: 14px;
    height: 7px;
}

/* School 1: Large school, swims left to right */
.school-1 {
    animation: swim-ltr-1 38s linear infinite;
}
.school-1 .fish:nth-child(1) { width: 18px; height: 9px; }
.school-1 .fish:nth-child(2) { width: 15px; height: 7px; margin-top: -4px; }
.school-1 .fish:nth-child(3) { width: 16px; height: 8px; margin-top: 3px; }
.school-1 .fish:nth-child(4) { width: 14px; height: 7px; margin-top: -2px; }

/* School 2: Small school, swims right to left */
.school-2 {
    animation: swim-rtl-1 30s linear infinite;
    animation-delay: 55s;
    animation-fill-mode: backwards;
    transform: scaleX(-1);
}
.school-2 .fish:nth-child(1) { width: 10px; height: 5px; }
.school-2 .fish:nth-child(2) { width: 8px; height: 4px; margin-top: -2px; }
.school-2 .fish:nth-child(3) { width: 9px; height: 4px; margin-top: 2px; }

/* School 3: Medium school, swims left to right, higher */
.school-3 {
    animation: swim-ltr-2 40s linear infinite;
    animation-delay: 110s;
    animation-fill-mode: backwards;
}
.school-3 .fish:nth-child(1) { width: 13px; height: 6px; }
.school-3 .fish:nth-child(2) { width: 11px; height: 5px; margin-top: -3px; }
.school-3 .fish:nth-child(3) { width: 12px; height: 6px; margin-top: 2px; }
.school-3 .fish:nth-child(4) { width: 10px; height: 5px; margin-top: -1px; }
.school-3 .fish:nth-child(5) { width: 11px; height: 5px; margin-top: 3px; }

/* School 4: Bait ball - tiny fish, swims right to left */
.school-4 {
    animation: swim-rtl-2 25s linear infinite;
    animation-delay: 165s;
    animation-fill-mode: backwards;
    transform: scaleX(-1);
    gap: 2px;
}
.school-4 .fish { width: 7px; height: 3px; }
.school-4 .fish:nth-child(2) { margin-top: -2px; }
.school-4 .fish:nth-child(3) { margin-top: 2px; }
.school-4 .fish:nth-child(4) { margin-top: -1px; }
.school-4 .fish:nth-child(5) { margin-top: 3px; }
.school-4 .fish:nth-child(6) { margin-top: -3px; }
.school-4 .fish:nth-child(7) { margin-top: 1px; }
.school-4 .fish:nth-child(8) { margin-top: -2px; }
.school-4 .fish:nth-child(9) { margin-top: 2px; }
.school-4 .fish:nth-child(10) { margin-top: -1px; }

/* School 5: Medium-large school, swims left to right low */
.school-5 {
    animation: swim-ltr-3 38s linear infinite;
    animation-delay: 220s;
    animation-fill-mode: backwards;
}
.school-5 .fish:nth-child(1) { width: 14px; height: 7px; }
.school-5 .fish:nth-child(2) { width: 12px; height: 6px; margin-top: -3px; }
.school-5 .fish:nth-child(3) { width: 15px; height: 7px; margin-top: 2px; }
.school-5 .fish:nth-child(4) { width: 11px; height: 5px; margin-top: -2px; }

/* Fish swimming animations */
@keyframes swim-ltr-1 {
    0% { left: -100px; bottom: 18px; }
    25% { bottom: 24px; }
    50% { bottom: 16px; }
    75% { bottom: 22px; }
    100% { left: 100%; bottom: 18px; }
}

@keyframes swim-ltr-2 {
    0% { left: -120px; bottom: 32px; }
    20% { bottom: 38px; }
    40% { bottom: 30px; }
    60% { bottom: 36px; }
    80% { bottom: 28px; }
    100% { left: 100%; bottom: 32px; }
}

@keyframes swim-ltr-3 {
    0% { left: -90px; bottom: 12px; }
    30% { bottom: 16px; }
    60% { bottom: 10px; }
    100% { left: 100%; bottom: 14px; }
}

@keyframes swim-rtl-1 {
    0% { right: -80px; left: auto; bottom: 8px; }
    33% { bottom: 12px; }
    66% { bottom: 6px; }
    100% { right: 100%; left: auto; bottom: 10px; }
}

@keyframes swim-rtl-2 {
    0% { right: -120px; left: auto; bottom: 22px; }
    25% { bottom: 26px; }
    50% { bottom: 20px; }
    75% { bottom: 24px; }
    100% { right: 100%; left: auto; bottom: 22px; }
}

/* ============================================================================
   Common Page Header
   ============================================================================ */
.header-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-title h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--ocean-glow), var(--ocean-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Custom logo - removes blue background when custom logo is uploaded */
.logo-icon.custom-logo {
    background: transparent;
    width: auto;
    height: auto;
    min-width: unset;
    border-radius: 0;
}

.header-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Desktop nav */
.nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-left: auto;
}

.nav a {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.nav a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--card-border);
}

.nav a.active {
    color: var(--ocean-glow);
    background: rgba(59, 158, 206, 0.1);
    border-color: rgba(59, 158, 206, 0.2);
}

/* ============================================================================
   Navigation Dropdown (Bars submenu)
   ============================================================================ */
.nav-item-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-dropdown-trigger:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--card-border);
}

.nav-dropdown-trigger.active {
    color: var(--ocean-glow);
    background: rgba(59, 158, 206, 0.1);
    border-color: rgba(59, 158, 206, 0.2);
}

.nav-dropdown-chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.nav-item-dropdown:hover .nav-dropdown-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 0.5rem;
    margin-top: 0.25rem;
    background: var(--ocean-dark);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 2000;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-all {
    display: block;
    padding: 0.625rem 0.75rem;
    margin-bottom: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ocean-glow);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.nav-dropdown-all:hover {
    background: rgba(59, 158, 206, 0.15);
}

.nav-dropdown-section {
    padding: 0.25rem 0;
}

.nav-dropdown-section:not(:last-child) {
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 0.25rem;
    padding-bottom: 0.5rem;
}

.nav-dropdown-heading {
    padding: 0.375rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.nav-dropdown-item {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.nav-dropdown-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

/* Hide dropdown on mobile - use mobile menu instead */
@media (max-width: 768px) {
    .nav-dropdown-menu {
        display: none;
    }
    .nav-dropdown-chevron {
        display: none;
    }
}

/* Light mode overrides for dropdown */
html.light-mode .nav-dropdown-menu {
    background: var(--card-bg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

html.light-mode .nav-dropdown-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

html.light-mode .nav-dropdown-all:hover {
    background: rgba(59, 158, 206, 0.1);
}

/* Simple dropdown menu (Resources) */
.nav-dropdown-menu-simple {
    min-width: 180px;
    padding: 0.5rem;
}

.nav-dropdown-menu-simple .nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown-menu-simple .nav-dropdown-item:hover {
    background: rgba(59, 158, 206, 0.1);
    color: var(--text-primary);
}

.nav-dropdown-menu-simple .nav-dropdown-item.active {
    color: var(--ocean-glow);
}

.nav-dropdown-menu-simple .nav-dropdown-item svg {
    flex-shrink: 0;
    color: var(--text-muted);
}

.nav-dropdown-menu-simple .nav-dropdown-item:hover svg,
.nav-dropdown-menu-simple .nav-dropdown-item.active svg {
    color: var(--ocean-glow);
}

.nav-dropdown-divider {
    height: 1px;
    background: var(--card-border);
    margin: 0.375rem 0.5rem;
}

/* ============================================================================
   Global Search (nav + mobile menu)
   ============================================================================ */
.global-search-wrapper {
    position: relative;
    margin-left: 0.5rem;
    display: flex;
    align-items: center;
}
.global-search-input {
    width: 180px;
    padding: 0.625rem 0.75rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--card-border);
    border-radius: 999px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8125rem;
    color: var(--text-primary);
    transition: width 0.25s, border-color 0.2s;
}
.global-search-input:focus {
    outline: none;
    width: 280px;
    border-color: var(--ocean-glow);
    background: rgba(255,255,255,0.1);
}
.global-search-input::placeholder { color: var(--text-muted); }

.gs-results {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 340px;
    background: #162635;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    z-index: 1500;
    overflow: hidden;
    display: none;
    max-height: 70vh;
    overflow-y: auto;
}
html.light-mode .gs-results {
    background: #ffffff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.gs-results.active { display: block; }

.gs-section { border-bottom: 1px solid var(--card-border); }
.gs-section:last-child { border-bottom: none; }

.gs-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--ocean-deep);
}
.gs-section-header.gs-did-you-mean {
    color: var(--ocean-glow);
    font-weight: 600;
    font-style: italic;
    text-transform: none;
}
.gs-clear {
    background: none;
    border: none;
    color: var(--ocean-glow);
    font-size: 0.6875rem;
    cursor: pointer;
    padding: 0;
}
.gs-clear:hover { text-decoration: underline; }

.gs-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.15s;
}
.gs-item:hover, .gs-item.selected { background: rgba(59,158,206,0.1); }

.gs-dot {
    width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.gs-dot.green { background: var(--status-open); box-shadow: 0 0 6px var(--status-open); }
.gs-dot.yellow { background: var(--status-restricted); box-shadow: 0 0 6px var(--status-restricted); }
.gs-dot.red { background: var(--status-closed); box-shadow: 0 0 6px var(--status-closed); }
.gs-dot.gray { background: var(--status-unknown); }

.gs-icon-svg { flex-shrink: 0; color: var(--text-muted); }

.gs-item-info { flex: 1; min-width: 0; }
.gs-item-name { font-weight: 500; font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-item-detail { font-size: 0.6875rem; color: var(--text-muted); }
.gs-match { color: var(--ocean-glow); font-weight: 600; }

/* Mobile: full-width search in mobile menu */
.mobile-search-wrapper {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--card-border);
}
.mobile-search-wrapper .global-search-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}
.mobile-search-wrapper .global-search-input:focus {
    width: 100%;
}
.mobile-search-wrapper .gs-results {
    position: relative;
    top: 0.5rem;
    right: auto;
    width: 100%;
    max-height: 50vh;
    box-shadow: none;
    border-radius: 8px;
}

html.light-mode .global-search-input {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}
html.light-mode .global-search-input::placeholder {
    color: rgba(255,255,255,0.7);
}
html.light-mode .global-search-input:focus {
    background: rgba(255,255,255,0.35);
    border-color: rgba(255,255,255,0.6);
}

/* Hide in nav on mobile, show in mobile menu */
@media (max-width: 768px) {
    .global-search-wrapper { display: none; }
}

/* ============================================================================
   Mobile Submenu (Bars expandable)
   ============================================================================ */
.mobile-submenu {
    width: 100%;
}

.mobile-submenu-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.mobile-submenu-trigger:hover,
.mobile-submenu-trigger:focus {
    color: var(--text-primary);
}

.mobile-submenu-trigger.active {
    color: var(--ocean-glow);
}

.mobile-submenu-trigger svg:first-child {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.mobile-submenu-trigger-content {
    display: flex;
    align-items: center;
    flex: 1;
}

.mobile-submenu-chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.mobile-submenu-trigger[aria-expanded="true"] .mobile-submenu-chevron {
    transform: rotate(180deg);
}

.mobile-submenu-content {
    display: none;
    padding: 0 0 0.5rem 2.5rem;
}

.mobile-submenu-content.expanded {
    display: block;
}

.mobile-submenu-all {
    display: block;
    padding: 0.625rem 1rem;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ocean-glow);
    text-decoration: none;
    border-radius: 6px;
}

.mobile-submenu-all:hover {
    background: rgba(59, 158, 206, 0.1);
}

.mobile-submenu-region {
    padding: 0.5rem 1rem 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.mobile-submenu-item {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
}

.mobile-submenu-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

/* Light mode overrides for mobile submenu */
html.light-mode .mobile-submenu-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

html.light-mode .mobile-submenu-all:hover {
    background: rgba(59, 158, 206, 0.08);
}

.mobile-submenu-divider {
    height: 1px;
    background: var(--card-border);
    margin: 0.5rem 0;
}

.mobile-submenu-item.active {
    color: var(--ocean-glow);
}

/* Footer separator */
.footer-sep {
    color: var(--text-muted);
    margin: 0 0.5rem;
}

/* ============================================================================
   Location Search (header)
   ============================================================================ */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 1500;
}

/* Unified search input group - GPS button + input + search button */
.search-input-group {
    display: flex;
    align-items: center;
    background: rgba(15, 33, 55, 0.8);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    transition: all 0.2s;
}

.search-input-group:focus-within {
    border-color: var(--ocean-glow);
    box-shadow: 0 0 0 3px rgba(59, 158, 206, 0.15);
}

.search-input {
    flex: 1;
    width: 140px;
    padding: 0.5rem 0.5rem;
    background: transparent;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8125rem;
    color: var(--text-primary);
}

.search-input:focus {
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

/* Shared styles for GPS and search buttons inside input group */
.search-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}

.search-action-btn:hover {
    color: var(--ocean-glow);
    background: rgba(59, 158, 206, 0.1);
}

.search-action-btn.gps-btn {
    border-right: 1px solid var(--card-border);
    border-radius: 7px 0 0 7px;
}

.search-action-btn.search-btn {
    border-left: 1px solid var(--card-border);
    border-radius: 0 7px 7px 0;
}

.search-action-btn.loading svg {
    animation: spin 1s linear infinite;
}

/* Legacy standalone buttons (fallback) */
.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-btn:not(.search-action-btn) {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s;
}

.search-btn:not(.search-action-btn):hover {
    color: var(--ocean-glow);
}

.gps-btn:not(.search-action-btn) {
    padding: 0.5rem;
    background: rgba(15, 33, 55, 0.8);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.gps-btn:not(.search-action-btn):hover {
    border-color: var(--ocean-glow);
    color: var(--ocean-glow);
}

.gps-btn:not(.search-action-btn).loading svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background: var(--ocean-dark);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 1500;
    overflow: hidden;
    display: none;
    min-width: 280px;
}

.search-results.active {
    display: block;
}

.search-results-header {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(5, 13, 24, 0.5);
    border-bottom: 1px solid var(--card-border);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.2s;
    border-bottom: 1px solid var(--card-border);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(59, 158, 206, 0.1);
}

.result-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.result-status.green {
    background: var(--status-open);
    box-shadow: 0 0 6px var(--status-open);
}

.result-status.yellow {
    background: var(--status-restricted);
    box-shadow: 0 0 6px var(--status-restricted);
}

.result-status.red {
    background: var(--status-closed);
    box-shadow: 0 0 6px var(--status-closed);
}

.result-status.gray {
    background: var(--status-unknown);
}

.result-info {
    flex: 1;
    min-width: 0;
}

.result-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-region {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.result-distance {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--ocean-glow);
    white-space: nowrap;
}

.search-error {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--status-closed);
}

.search-loading {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
}

/* ============================================================================
   Anchor Link Copy Button
   ============================================================================ */
.copy-link-btn {
    opacity: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: 8px;
    color: var(--text-muted);
    transition: opacity 0.2s, color 0.2s;
    vertical-align: middle;
    flex-shrink: 0;
}

.section-title:hover .copy-link-btn,
.copy-link-btn:focus {
    opacity: 1;
}

.copy-link-btn:hover {
    color: var(--ocean-glow);
}

/* On touch devices, always show the button */
@media (hover: none) {
    .copy-link-btn {
        opacity: 0.6;
    }
}

/* Status Card Email Notify Button */
.status-notify-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    margin-left: 8px;
    background: var(--ocean-glow);
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    vertical-align: middle;
}

.status-notify-btn svg {
    width: 14px;
    height: 14px;
    stroke: var(--ocean-abyss);
}

.status-notify-btn:hover {
    background: var(--ocean-foam);
    transform: scale(1.05);
}

.status-notify-btn:hover svg {
    stroke: var(--ocean-abyss);
}

/* ============================================================================
   Responsive - Show hamburger on mobile
   ============================================================================ */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: nowrap;
    }

    .header-title {
        flex: 1;
        min-width: 0;
    }

    .logo-icon.custom-logo img {
        max-height: 80px !important;
    }

    .hamburger {
        display: block;
        flex-shrink: 0;
    }

    .nav {
        display: none;
    }

    .search-container {
        display: none;
    }
}

/* ============================================================================
   Account Navigation Link
   ============================================================================ */
.account-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(59, 158, 206, 0.1);
    border: 1px solid rgba(59, 158, 206, 0.2);
    border-radius: 8px;
    color: var(--ocean-glow);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.account-nav-link:hover {
    background: rgba(59, 158, 206, 0.2);
    border-color: var(--ocean-glow);
}

.account-nav-link svg {
    flex-shrink: 0;
}

.account-nav-text {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hide account text on smaller screens */
@media (max-width: 1200px) {
    .account-nav-text {
        display: none;
    }
    .account-nav-link {
        padding: 0.5rem;
    }
}

/* Hide account link on mobile (shown in mobile menu) */
@media (max-width: 768px) {
    .account-nav-link {
        display: none;
    }
}

/* Light mode account nav */
html.light-mode .account-nav-link {
    background: rgba(13, 110, 253, 0.1);
    border-color: rgba(13, 110, 253, 0.2);
    color: var(--ocean-glow);
}

html.light-mode .account-nav-link:hover {
    background: rgba(13, 110, 253, 0.15);
    border-color: var(--ocean-glow);
}

/* Mobile menu divider for account section */
.mobile-menu-divider {
    height: 1px;
    background: var(--card-border);
    margin: 0.5rem 1rem;
}

/* ============================================================================
   Theme Toggle Button
   ============================================================================ */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(59, 158, 206, 0.1);
    border: 1px solid rgba(59, 158, 206, 0.2);
    border-radius: 8px;
    color: var(--ocean-glow);
    cursor: pointer;
    transition: all 0.2s;
}

.theme-toggle:hover {
    background: rgba(59, 158, 206, 0.2);
    border-color: var(--ocean-glow);
}

.theme-toggle-icon {
    width: 20px;
    height: 20px;
}

.mobile-theme-toggle {
    margin-left: auto;
    margin-right: 1rem;
}

/* Hide desktop theme toggle on mobile (show in mobile menu instead) */
@media (max-width: 768px) {
    .header .theme-toggle:not(.mobile-theme-toggle) {
        display: none;
    }
}

/* ============================================================================
   Light Mode Specific Fixes
   ============================================================================ */

/* ============================================================================
   Light Theme: "Coastal Morning" - Complete Overhaul
   ============================================================================ */

/* Page background - darker canvas so white cards pop */
html.light-mode,
html.light-mode body {
    background: #f0f1f3;
}

html.light-mode .ocean-bg {
    background: linear-gradient(180deg, #f7f8f9 0%, #f0f1f3 100%);
}

/* Header - bold blue gradient with white text area */
html.light-mode .header {
    background: linear-gradient(180deg,
        #0d5a8f 0%,
        #1a6fa8 40%,
        #2a85bf 70%,
        var(--ocean-deep) 70.1%,
        var(--ocean-abyss) 100%);
    border-bottom: none;
    padding-bottom: 4rem;
}

/* Header content area - sits in the white section */
html.light-mode .header-content {
    position: relative;
    z-index: 2;
}

/* Logo and title in light mode - white text on blue */
html.light-mode .header .site-logo,
html.light-mode .header .site-title {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

html.light-mode .header .tagline {
    color: rgba(255, 255, 255, 0.9);
}

/* Blue waves for light mode header - more prominent */
html.light-mode .header::before {
    opacity: 1;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%230d5a8f' fill-opacity='0.2' d='M0,30 C240,60 480,0 720,30 C960,60 1200,0 1440,30 L1440,60 L0,60 Z'%3E%3Canimate attributeName='d' dur='20s' repeatCount='indefinite' values='M0,30 C240,60 480,0 720,30 C960,60 1200,0 1440,30 L1440,60 L0,60 Z;M0,30 C240,0 480,60 720,30 C960,0 1200,60 1440,30 L1440,60 L0,60 Z;M0,30 C240,60 480,0 720,30 C960,60 1200,0 1440,30 L1440,60 L0,60 Z'/%3E%3C/path%3E%3C/svg%3E") no-repeat bottom center;
    background-size: cover;
}

html.light-mode .header::after {
    opacity: 1;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='%230d5a8f' fill-opacity='0.12' d='M0,50 C180,20 360,70 540,40 C720,10 900,60 1080,35 C1260,10 1350,50 1440,40 L1440,80 L0,80 Z'%3E%3Canimate attributeName='d' dur='28s' repeatCount='indefinite' values='M0,50 C180,20 360,70 540,40 C720,10 900,60 1080,35 C1260,10 1350,50 1440,40 L1440,80 L0,80 Z;M0,35 C180,60 360,20 540,50 C720,70 900,25 1080,55 C1260,70 1350,30 1440,50 L1440,80 L0,80 Z;M0,50 C180,20 360,70 540,40 C720,10 900,60 1080,35 C1260,10 1350,50 1440,40 L1440,80 L0,80 Z'/%3E%3C/path%3E%3C/svg%3E") no-repeat bottom center;
    background-size: cover;
}

/* Footer - rich blue gradient */
html.light-mode .site-footer {
    background: linear-gradient(180deg, #f0f1f3 0%, #0d5a8f 25%, #063d66 100%);
    color: #ffffff;
}

html.light-mode .site-footer a,
html.light-mode .site-footer .footer-left a,
html.light-mode .site-footer .footer-right a,
html.light-mode .site-footer .contact-link,
html.light-mode .site-footer .facebook-link,
html.light-mode .site-footer .donate-link {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 500;
    opacity: 1;
}

html.light-mode .site-footer a:hover,
html.light-mode .site-footer .footer-left a:hover,
html.light-mode .site-footer .footer-right a:hover {
    color: #fbbf24 !important;
    text-decoration: underline;
}

html.light-mode .site-footer .footer-text,
html.light-mode .site-footer .footer-sep {
    color: #ffffff;
}

/* Footer icons in light mode */
html.light-mode .site-footer .contact-icon,
html.light-mode .site-footer .facebook-icon,
html.light-mode .site-footer .kofi-icon {
    color: #ffffff;
    opacity: 1;
}

/* Footer lighthouse - very visible */
html.light-mode .footer-lighthouse {
    color: rgba(255, 255, 255, 0.7);
}

html.light-mode .lighthouse-glow {
    fill: #fbbf24;
    filter: drop-shadow(0 0 12px #fbbf24) drop-shadow(0 0 24px rgba(251, 191, 36, 0.8));
}

html.light-mode .lighthouse-beam {
    opacity: 1;
    fill: url(#light-beam-grad);
}

/* Blue footer waves for light mode - white wave on blue */
html.light-mode .footer-wave-top {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath fill='%23f0f1f3' fill-opacity='1' d='M0,70 C240,15 480,90 720,50 C960,10 1200,85 1440,40 L1440,100 L0,100 Z'%3E%3Canimate attributeName='d' dur='24s' repeatCount='indefinite' values='M0,70 C240,15 480,90 720,50 C960,10 1200,85 1440,40 L1440,100 L0,100 Z;M0,35 C240,90 480,15 720,55 C960,95 1200,20 1440,65 L1440,100 L0,100 Z;M0,70 C240,15 480,90 720,50 C960,10 1200,85 1440,40 L1440,100 L0,100 Z'/%3E%3C/path%3E%3C/svg%3E") no-repeat top center;
    background-size: 100% 100%;
}

html.light-mode .site-footer::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 300' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' fill-opacity='0.08' d='M0,50 C240,90 480,20 720,50 C960,80 1200,20 1440,40 L1440,300 L0,300 Z'%3E%3Canimate attributeName='d' dur='20s' repeatCount='indefinite' values='M0,50 C240,90 480,20 720,50 C960,80 1200,20 1440,40 L1440,300 L0,300 Z;M0,65 C240,30 480,75 720,45 C960,25 1200,70 1440,55 L1440,300 L0,300 Z;M0,50 C240,90 480,20 720,50 C960,80 1200,20 1440,40 L1440,300 L0,300 Z'/%3E%3C/path%3E%3C/svg%3E") no-repeat bottom center;
    background-size: 100% 100%;
}

html.light-mode .site-footer::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 350' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' fill-opacity='0.05' d='M0,70 C180,110 360,40 540,70 C720,100 900,40 1080,75 C1260,100 1350,50 1440,70 L1440,350 L0,350 Z'%3E%3Canimate attributeName='d' dur='28s' repeatCount='indefinite' values='M0,70 C180,110 360,40 540,70 C720,100 900,40 1080,75 C1260,100 1350,50 1440,70 L1440,350 L0,350 Z;M0,85 C180,50 360,95 540,65 C720,40 900,90 1080,60 C1260,45 1350,80 1440,65 L1440,350 L0,350 Z;M0,70 C180,110 360,40 540,70 C720,100 900,40 1080,75 C1260,100 1350,50 1440,70 L1440,350 L0,350 Z'/%3E%3C/path%3E%3C/svg%3E") no-repeat bottom center;
    background-size: 100% 100%;
    opacity: 1;
}

html.light-mode .sticky-disclaimer {
    background: linear-gradient(90deg, #c42b2b, #a82222);
    box-shadow: 0 2px 8px rgba(196, 43, 43, 0.3);
}

html.light-mode .dev-banner {
    background: linear-gradient(135deg, #0d5a8f, #1a6fa8);
    border: none;
    color: #ffffff;
}

/* Light mode scrollbar - styled */
html.light-mode ::-webkit-scrollbar-track {
    background: var(--ocean-deep);
}

html.light-mode ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #a8c5db, #8eb5d0);
    border-radius: 4px;
}

html.light-mode ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #8eb5d0, #6fa5c5);
}

/* Cards - crisp white with neutral depth shadows */
html.light-mode .card,
html.light-mode .status-card,
html.light-mode .chart-card,
html.light-mode .table-card {
    background: var(--surface-raised);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-md);
}

/* Bar cards on dashboard - elevated white cards */
html.light-mode .bar-card {
    background: var(--surface-raised);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-md);
}

html.light-mode .bar-card:hover {
    border-color: var(--card-border-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Info boxes and gauges - inset surface treatment */
html.light-mode .info-box {
    background: var(--surface-inset);
    border: 1px solid var(--card-border);
}

html.light-mode .gauge-card {
    background: var(--surface-inset);
    border: 1px solid var(--card-border);
}

/* Search and inputs */
html.light-mode .search-input-group {
    background: #ffffff;
    border-color: #c5d3e0;
}

html.light-mode .search-input-group:focus-within {
    border-color: var(--ocean-glow);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

html.light-mode .search-action-btn {
    color: var(--text-muted);
}

html.light-mode .search-action-btn:hover {
    color: var(--ocean-glow);
    background: rgba(0, 0, 0, 0.04);
}

html.light-mode .search-action-btn.gps-btn {
    border-right-color: #c5d3e0;
}

html.light-mode .search-action-btn.search-btn {
    border-left-color: #c5d3e0;
}

html.light-mode .search-input,
html.light-mode .gps-btn:not(.search-action-btn) {
    background: #ffffff;
    border-color: #c5d3e0;
    color: #1a202c;
}

html.light-mode .search-input::placeholder {
    color: var(--text-muted);
}

html.light-mode .search-input:focus {
    border-color: var(--ocean-glow);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

html.light-mode .search-results {
    background: var(--surface-raised);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-xl);
}

html.light-mode .search-result-item:hover {
    background: var(--surface-inset);
}

/* Toast notifications - elevated */
html.light-mode .toast {
    background: var(--surface-raised);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-xl);
}

/* Mobile menu - clean white with blue accents */
html.light-mode .mobile-menu {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

html.light-mode .mobile-menu-nav a {
    background: transparent;
    color: var(--text-secondary);
}

html.light-mode .mobile-menu-nav a:hover,
html.light-mode .mobile-menu-nav a.active {
    color: var(--ocean-glow);
}

/* Hamburger button - visible on blue header */
html.light-mode .hamburger {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--ocean-glow);
    box-shadow: var(--shadow-sm);
}

html.light-mode .hamburger:hover {
    background: #ffffff;
    border-color: var(--ocean-glow);
    box-shadow: var(--shadow-md);
}

/* Navigation links - pill style */
html.light-mode .nav a {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-secondary);
    border: 1px solid rgba(0, 0, 0, 0.10);
}

html.light-mode .nav a:hover {
    background: #ffffff;
    color: var(--text-primary);
    border-color: rgba(0, 0, 0, 0.18);
    box-shadow: var(--shadow-sm);
}

html.light-mode .nav a.active {
    background: var(--ocean-glow);
    color: #ffffff;
    border-color: var(--ocean-glow);
}

/* Modals - elevated white */
html.light-mode .modal {
    background: var(--surface-raised);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-xl);
}

html.light-mode .modal-header {
    background: var(--surface-inset);
    border-bottom: 1px solid var(--card-border);
}

/* Tables - clean with subtle hover */
html.light-mode .history-table th {
    background: var(--surface-inset);
    color: var(--text-primary);
    font-weight: 600;
}

html.light-mode .history-table td {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

html.light-mode .history-table tr:hover td {
    background: rgba(0, 0, 0, 0.03);
}

/* Jump menu - sticky navigation with frosted glass */
html.light-mode .jump-menu-wrapper {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    box-shadow: var(--shadow-md);
}

html.light-mode .jump-link {
    background: var(--surface-raised);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
}

html.light-mode .jump-link:hover {
    background: var(--surface-inset);
    color: var(--ocean-glow);
    border-color: var(--card-border-hover);
}

/* Theme toggle - prominent in header */
html.light-mode .theme-toggle {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--ocean-glow);
    box-shadow: var(--shadow-sm);
}

html.light-mode .theme-toggle:hover {
    background: #ffffff;
    border-color: var(--ocean-glow);
    box-shadow: var(--shadow-md);
}

/* Buttons - consistent styling */
html.light-mode .nav-btn {
    background: var(--surface-raised);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

html.light-mode .nav-btn:hover {
    background: var(--surface-raised);
    border-color: var(--ocean-glow);
    color: var(--ocean-glow);
    box-shadow: var(--shadow-md);
}

html.light-mode .subscribe-btn {
    background: var(--ocean-glow);
    border-color: var(--ocean-glow);
    color: #ffffff;
}

html.light-mode .subscribe-btn:hover {
    background: var(--ocean-foam);
    border-color: var(--ocean-foam);
}

/* Status badges - bright, cheerful colors */
html.light-mode .status-badge.open {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #047857;
    border: 1px solid #34d399;
    font-weight: 600;
}

html.light-mode .status-badge.restricted {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
    border: 1px solid #f59e0b;
    font-weight: 600;
}

html.light-mode .status-badge.closed {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    border: 1px solid #f87171;
    font-weight: 600;
}

html.light-mode .status-badge.unknown {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
    border: 1px solid #94a3b8;
    font-weight: 600;
}

/* Tooltips styled via JavaScript - see index.html */

/* Filter chips - pill style */
html.light-mode .filter-chip,
html.light-mode .region-chip {
    background: var(--surface-raised);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

html.light-mode .filter-chip:hover,
html.light-mode .region-chip:hover {
    border-color: var(--card-border-hover);
    box-shadow: var(--shadow-md);
}

html.light-mode .filter-chip.active,
html.light-mode .region-chip.active {
    background: var(--ocean-glow);
    border-color: var(--ocean-glow);
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

/* ============================================================================
   Light Mode - Additional Component Styles
   ============================================================================ */

/* Onboarding tour - lighter overlay */
html.light-mode .tour-overlay {
    background: rgba(0, 0, 0, 0.5);
}

html.light-mode .tour-tooltip {
    background: var(--surface-raised);
    border: 2px solid var(--ocean-glow);
    box-shadow: var(--shadow-xl);
}

html.light-mode .tour-highlighted {
    box-shadow: 0 0 0 4px var(--ocean-glow), 0 0 24px rgba(13, 110, 253, 0.3);
}

/* Shortcut modal */
html.light-mode .shortcuts-modal .modal {
    background: #ffffff;
}

html.light-mode .shortcut-item {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

html.light-mode .shortcut-item kbd {
    background: var(--surface-inset);
    border: 1px solid var(--card-border);
    color: var(--ocean-glow);
    font-weight: 600;
}

/* Cookie consent - prominent */
html.light-mode .cookie-consent {
    background: var(--surface-raised);
    border-top: 2px solid var(--ocean-glow);
    box-shadow: var(--shadow-xl);
}

/* Links in light mode - ensure visibility */
html.light-mode a {
    color: var(--ocean-glow);
}

html.light-mode a:hover {
    color: var(--ocean-foam);
}

/* Action buttons on cards - need darker color on white backgrounds */
html.light-mode .action-btn {
    color: var(--text-secondary);
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.02);
}

html.light-mode .action-btn:hover {
    color: var(--ocean-glow);
    border-color: var(--ocean-glow);
    background: rgba(13, 110, 253, 0.08);
}

/* Expand/collapse buttons - darker on white */
html.light-mode .expand-btn {
    color: var(--text-secondary);
}

html.light-mode .expand-btn:hover {
    color: var(--ocean-glow);
}

/* Section collapse chevrons - darker on white */
html.light-mode .collapse-chevron {
    color: var(--text-secondary);
}

/* Circular gauge backgrounds - more visible on white cards */
html.light-mode .gauge-bg {
    stroke: #dee2e6;
}

/* Card borders - handled by shadow system above */

/* Primary buttons in light mode */
html.light-mode .btn-primary,
html.light-mode button[type="submit"] {
    background: linear-gradient(135deg, var(--ocean-glow) 0%, #0a4d78 100%);
    border: none;
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

html.light-mode .btn-primary:hover,
html.light-mode button[type="submit"]:hover {
    background: linear-gradient(135deg, var(--ocean-foam) 0%, var(--ocean-glow) 100%);
    box-shadow: var(--shadow-lg);
}

/* Recommendation badges in light mode */
html.light-mode .recommendation-badge.favorable {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #34d399;
}

html.light-mode .recommendation-badge.caution {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fbbf24;
}

html.light-mode .recommendation-badge.not-advised {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #f87171;
}

/* ============================================================================
   Print Styles
   ============================================================================ */
@media print {
    nav, button, .fixed, .sticky-disclaimer, .toast-container, .dev-banner, .mobile-menu {
        display: none !important;
    }

    body {
        background: white;
        color: black;
        padding-bottom: 0;
    }

    .card, .status-card, .chart-card, .table-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ============================================================================
   Onboarding Tour
   ============================================================================ */

/* Tour overlay - dimmed backdrop */
.tour-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 13, 24, 0.85);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tour-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Highlighted target element */
.tour-highlighted {
    position: relative;
    z-index: 2001;
    box-shadow: 0 0 0 4px var(--ocean-glow), 0 0 20px rgba(59, 158, 206, 0.4);
    border-radius: 8px;
}

/* Tour tooltip */
.tour-tooltip {
    position: fixed;
    z-index: 2002;
    background: var(--ocean-dark);
    border: 1px solid var(--ocean-glow);
    border-radius: 12px;
    padding: 1.25rem;
    width: 320px;
    max-width: calc(100vw - 32px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 158, 206, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.tour-tooltip.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Tooltip arrow */
.tour-tooltip::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--ocean-dark);
    border: 1px solid var(--ocean-glow);
    transform: rotate(45deg);
}

.tour-tooltip.position-top::before {
    bottom: -7px;
    left: 50%;
    margin-left: -6px;
    border-top: none;
    border-left: none;
}

.tour-tooltip.position-bottom::before {
    top: -7px;
    left: 50%;
    margin-left: -6px;
    border-bottom: none;
    border-right: none;
}

.tour-tooltip.position-left::before {
    right: -7px;
    top: 50%;
    margin-top: -6px;
    border-bottom: none;
    border-left: none;
}

.tour-tooltip.position-right::before {
    left: -7px;
    top: 50%;
    margin-top: -6px;
    border-top: none;
    border-right: none;
}

/* Tour header */
.tour-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.tour-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ocean-glow);
    margin: 0;
}

.tour-step-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

/* Tour content */
.tour-content {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Tour progress dots */
.tour-progress {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tour-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ocean-mid);
    transition: background 0.2s ease, transform 0.2s ease;
}

.tour-dot.active {
    background: var(--ocean-glow);
    transform: scale(1.25);
}

/* Tour footer with buttons */
.tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.tour-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
    border: none;
}

.tour-btn:active {
    transform: scale(0.98);
}

.tour-btn-primary {
    background: var(--ocean-glow);
    color: var(--ocean-abyss);
}

.tour-btn-primary:hover {
    background: var(--ocean-foam);
}

.tour-btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--ocean-mid);
}

.tour-btn-secondary:hover {
    background: var(--ocean-mid);
    color: var(--text-primary);
}

.tour-skip {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8125rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.tour-skip:hover {
    color: var(--text-secondary);
}

.tour-nav {
    display: flex;
    gap: 0.5rem;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .tour-overlay,
    .tour-tooltip,
    .tour-dot {
        transition: none;
    }

    .tour-tooltip.active {
        transform: none;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .tour-tooltip {
        width: calc(100vw - 32px);
        left: 16px !important;
        right: 16px;
    }

    .tour-tooltip.position-top::before,
    .tour-tooltip.position-bottom::before {
        left: 50%;
    }

    .tour-highlighted {
        box-shadow: 0 0 0 3px var(--ocean-glow), 0 0 15px rgba(59, 158, 206, 0.3);
    }
}

/* Print - hide tour elements */
@media print {
    .tour-overlay,
    .tour-tooltip {
        display: none !important;
    }
}

/* ============================================================================
   Modal Overlay (shared across pages)
   ============================================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 13, 24, 0.9);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay.active { display: flex; }

.modal {
    background: linear-gradient(135deg, var(--ocean-mid), var(--ocean-dark));
    border: 1px solid var(--card-border);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--card-border);
}

.modal-header h2 { font-size: 1.125rem; font-weight: 600; margin: 0; }
.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0.25rem;
    transition: color 0.2s;
}
.modal-close:hover { color: var(--text-primary); }

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}

/* ============================================================================
   Keyboard Shortcuts Modal
   ============================================================================ */
.shortcuts-modal {
    max-width: 400px;
}

.shortcuts-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.shortcut-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(59, 158, 206, 0.1);
}

.shortcut-item:last-child {
    border-bottom: none;
}

.shortcut-item kbd {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: rgba(59, 158, 206, 0.15);
    border: 1px solid rgba(59, 158, 206, 0.3);
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    color: var(--ocean-glow);
    min-width: 1.5rem;
    text-align: center;
}

.shortcut-item span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.shortcut-keys {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.shortcut-keys .key-dash {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* =========================================
   Admin Quick-Edit Button & Modal
   ========================================= */
.admin-quick-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--card-border);
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--text-muted);
    cursor: pointer;
    vertical-align: middle;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.admin-quick-edit-btn svg {
    width: 14px;
    height: 14px;
}

.admin-quick-edit-btn:hover {
    color: var(--ocean-glow);
    border-color: var(--ocean-glow);
    background: rgba(var(--ocean-glow-rgb, 56, 189, 248), 0.08);
}

.admin-edit-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    align-items: center;
    justify-content: center;
}

.admin-edit-overlay.active {
    display: flex;
}

.admin-edit-modal {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.admin-edit-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--card-border);
}

.admin-edit-modal-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.admin-edit-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 1.25rem;
    line-height: 1;
}

.admin-edit-modal-close:hover {
    color: var(--text-primary);
}

.admin-edit-modal-body {
    padding: 1.25rem;
}

.admin-edit-modal-body .field-group {
    margin-bottom: 1rem;
}

.admin-edit-modal-body .field-group:last-child {
    margin-bottom: 0;
}

.admin-edit-modal-body .field-section-heading {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin: 1rem 0 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--card-border);
}

.admin-edit-modal-body .field-section-heading:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.admin-edit-modal-body .field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.admin-edit-modal-body label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.admin-edit-modal-body input,
.admin-edit-modal-body select,
.admin-edit-modal-body textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--card-border);
    border-radius: 6px;
    background: var(--bg-primary, var(--card-bg));
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: inherit;
    box-sizing: border-box;
}

.admin-edit-modal-body textarea {
    resize: vertical;
    min-height: 60px;
}

.admin-edit-modal-body input:focus,
.admin-edit-modal-body select:focus,
.admin-edit-modal-body textarea:focus {
    outline: none;
    border-color: var(--ocean-glow);
    box-shadow: 0 0 0 2px rgba(var(--ocean-glow-rgb, 56, 189, 248), 0.15);
}

.admin-edit-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--card-border);
    gap: 0.5rem;
}

.admin-edit-modal-footer .admin-edit-link {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
}

.admin-edit-modal-footer .admin-edit-link:hover {
    color: var(--ocean-glow);
}

.admin-edit-modal-footer .admin-edit-actions {
    display: flex;
    gap: 0.5rem;
}

.admin-edit-modal-footer .btn-cancel {
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--card-border);
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
}

.admin-edit-modal-footer .btn-cancel:hover {
    background: rgba(var(--ocean-glow-rgb, 56, 189, 248), 0.05);
}

.admin-edit-modal-footer .btn-save {
    padding: 0.4rem 0.75rem;
    border: none;
    border-radius: 6px;
    background: var(--ocean-glow);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
}

.admin-edit-modal-footer .btn-save:hover {
    filter: brightness(1.1);
}

.admin-edit-modal-footer .btn-save:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Print - hide modals */
@media print {
    .modal-overlay,
    .admin-edit-overlay {
        display: none !important;
    }
}

/* ============================================================================
   Home Harbor Feature
   ============================================================================ */

/* Home harbor button - can be inline with actions or standalone */
.home-harbor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    background: transparent;
    border: 1px solid var(--card-border);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.home-harbor-btn:hover {
    background: rgba(59, 158, 206, 0.1);
    border-color: rgba(59, 158, 206, 0.3);
    color: var(--ocean-glow);
}

.home-harbor-btn.active {
    background: rgba(59, 158, 206, 0.2);
    border-color: var(--ocean-glow);
    color: var(--ocean-glow);
}

.home-harbor-btn .home-harbor-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.home-harbor-btn .home-harbor-text {
    white-space: nowrap;
}

/* Icon-only variant for compact spaces */
.home-harbor-btn.icon-only {
    padding: 0.5rem;
}

.home-harbor-btn.icon-only .home-harbor-text {
    display: none;
}

/* Nav home harbor quick-access link */
.nav-home-harbor {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem;
    margin-left: 0.5rem;
    color: var(--ocean-glow);
    border-radius: 8px;
    transition: all 0.2s;
    vertical-align: middle;
}

.nav-home-harbor:hover {
    background: rgba(59, 158, 206, 0.15);
}

.nav-home-harbor svg {
    width: 18px;
    height: 18px;
}

/* Mobile menu home harbor link */
.mobile-home-harbor-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--ocean-glow);
    background: rgba(59, 158, 206, 0.1);
    border: 1px solid rgba(59, 158, 206, 0.2);
    border-radius: 8px;
    margin: 0.5rem 1rem 1rem;
    text-decoration: none;
    transition: all 0.2s;
}

.mobile-home-harbor-link:hover {
    background: rgba(59, 158, 206, 0.2);
    border-color: rgba(59, 158, 206, 0.4);
}

.mobile-home-harbor-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.mobile-home-harbor-link .home-harbor-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-home-harbor-link .home-harbor-name {
    font-weight: 600;
    color: var(--text-primary);
}

/* Home harbor indicator badge on cards */
.home-harbor-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.375rem;
    background: rgba(59, 158, 206, 0.15);
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--ocean-glow);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 0.5rem;
}

.home-harbor-indicator svg {
    width: 10px;
    height: 10px;
}

/* ============================================================================
   User Authentication Menu
   ============================================================================ */

.nav-user-section {
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
}

/* Sign In Button */
.nav-signin-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-signin-btn:hover {
    background: var(--bg-primary);
    border-color: var(--ocean-glow);
}

.nav-signin-btn .google-icon {
    flex-shrink: 0;
}

/* User Dropdown */
.nav-user-dropdown {
    position: relative;
}

.nav-user-trigger {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
}

.nav-user-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ocean-glow);
}

.nav-user-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ocean-glow), var(--status-restricted));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: white;
    font-weight: 600;
    border: 2px solid var(--ocean-glow);
}

.nav-user-trigger .nav-dropdown-chevron {
    color: var(--text-muted);
    transition: transform 0.2s;
}

.nav-user-dropdown:hover .nav-dropdown-chevron,
.nav-user-dropdown:focus-within .nav-dropdown-chevron {
    transform: rotate(180deg);
}

.nav-user-menu {
    min-width: 200px;
    right: 0;
    left: auto;
}

.nav-user-info {
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.nav-user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.nav-user-email {
    font-size: 0.75rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-user-divider {
    height: 1px;
    background: var(--card-border);
    margin: 0.25rem 0;
}

.nav-signout {
    color: var(--status-closed) !important;
}

.nav-signout:hover {
    background: rgba(244, 67, 54, 0.1) !important;
}

/* Mobile User Section */
.mobile-user-section {
    padding: 1rem;
    border-top: 1px solid var(--card-border);
    margin-top: auto;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.mobile-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ocean-glow);
}

.mobile-user-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ocean-glow), var(--status-restricted));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    font-weight: 600;
}

.mobile-user-details {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    overflow: hidden;
}

.mobile-user-name {
    font-weight: 600;
    color: var(--text-primary);
}

.mobile-user-email {
    font-size: 0.8rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s;
}

.mobile-menu-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.mobile-signout {
    color: var(--status-closed);
}

.mobile-signout:hover {
    background: rgba(244, 67, 54, 0.1);
}

.mobile-signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem;
    background: white;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: #3c4043;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.mobile-signin-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Hide sign in text on smaller screens */
@media (max-width: 900px) {
    .nav-signin-btn .signin-text {
        display: none;
    }

    .nav-signin-btn {
        padding: 0.5rem;
    }
}

/* ============================================================================
   Return Visitor Banner
   ============================================================================ */

.return-visitor-banner {
    background: linear-gradient(135deg, rgba(59, 158, 206, 0.15) 0%, rgba(59, 158, 206, 0.05) 100%);
    border: 1px solid rgba(59, 158, 206, 0.25);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.return-visitor-banner.dismissed {
    display: none;
}

.return-visitor-banner .banner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(59, 158, 206, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
}

.return-visitor-banner .banner-icon svg {
    width: 18px;
    height: 18px;
    color: var(--ocean-glow);
}

.return-visitor-banner .banner-content {
    flex: 1;
    min-width: 0;
}

.return-visitor-banner .banner-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.return-visitor-banner .banner-text {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.return-visitor-banner .banner-changes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.return-visitor-banner .change-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    font-size: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
}

.return-visitor-banner .change-pill:hover {
    border-color: var(--ocean-glow);
    background: rgba(59, 158, 206, 0.1);
}

.return-visitor-banner .change-arrow {
    color: var(--text-muted);
    font-size: 0.625rem;
}

.return-visitor-banner .change-status {
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    font-size: 0.6875rem;
    text-transform: uppercase;
}

.return-visitor-banner .change-status.open {
    background: var(--status-open-bg);
    color: var(--status-open);
}

.return-visitor-banner .change-status.restricted {
    background: var(--status-restricted-bg);
    color: var(--status-restricted);
}

.return-visitor-banner .change-status.closed {
    background: var(--status-closed-bg);
    color: var(--status-closed);
}

.return-visitor-banner .banner-dismiss {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}

.return-visitor-banner .banner-dismiss:hover {
    color: var(--text-primary);
}

.return-visitor-banner .banner-dismiss svg {
    width: 18px;
    height: 18px;
}

/* No changes message */
.return-visitor-banner .no-changes-msg {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-style: italic;
}

@media (max-width: 480px) {
    .return-visitor-banner {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
    }

    .return-visitor-banner .banner-icon {
        width: 32px;
        height: 32px;
    }

    .return-visitor-banner .banner-icon svg {
        width: 16px;
        height: 16px;
    }

    .return-visitor-banner .banner-title {
        font-size: 0.875rem;
    }

    .return-visitor-banner .banner-text {
        font-size: 0.75rem;
    }

    .return-visitor-banner .change-pill {
        font-size: 0.6875rem;
        padding: 0.2rem 0.375rem;
    }
}

.banner-show-more {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    background: rgba(59, 158, 206, 0.15);
    border: 1px dashed rgba(59, 158, 206, 0.35);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--ocean-glow);
    cursor: pointer;
    transition: all 0.2s;
}

.banner-show-more:hover {
    background: rgba(59, 158, 206, 0.25);
    border-color: var(--ocean-glow);
}

.change-pill-hidden {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

/* ============================================================================
   Inline Edit (Species Detail)
   ============================================================================ */

.info-card {
    position: relative;
}

.inline-edit-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s, border-color 0.2s;
    z-index: 2;
}

.info-card:hover .inline-edit-btn,
.fun-facts:hover .inline-edit-btn,
.id-tips-section:hover .inline-edit-btn {
    opacity: 1;
}

.inline-edit-btn:hover {
    background: var(--ocean-deep);
    border-color: var(--card-border);
    color: var(--ocean-glow);
}

.inline-edit-form {
    padding: 0.5rem 0;
}

.inline-field-group {
    margin-bottom: 0.75rem;
}

.inline-field-group label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.25rem;
}

.inline-field-group input,
.inline-field-group textarea,
.inline-field-group select {
    width: 100%;
    padding: 0.5rem 0.625rem;
    background: var(--ocean-deep);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: inherit;
    box-sizing: border-box;
}

.inline-field-group input:focus,
.inline-field-group textarea:focus,
.inline-field-group select:focus {
    outline: none;
    border-color: var(--ocean-glow);
}

.inline-edit-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.inline-edit-save {
    padding: 0.4rem 1rem;
    background: var(--ocean-glow);
    border: none;
    border-radius: 6px;
    color: var(--ocean-deep);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.inline-edit-save:hover {
    background: var(--ocean-foam);
}

.inline-edit-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.inline-edit-cancel {
    padding: 0.4rem 1rem;
    background: transparent;
    border: 1px solid var(--card-border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: border-color 0.2s;
}

.inline-edit-cancel:hover {
    border-color: var(--text-muted);
}

.suggest-edit-section-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.6875rem;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 2;
}

.info-card:hover .suggest-edit-section-btn,
.fun-facts:hover .suggest-edit-section-btn,
.id-tips-section:hover .suggest-edit-section-btn {
    opacity: 1;
}

.suggest-edit-section-btn:hover {
    background: var(--ocean-deep);
    border-color: var(--card-border);
    color: var(--ocean-glow);
}

@media (max-width: 768px) {
    .inline-edit-btn,
    .suggest-edit-section-btn {
        opacity: 1;
    }
}
