/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:focus-visible {
    outline: 2px solid var(--accent-teal);
    outline-offset: 2px;
}

:root {
    /* ===== DESIGN TOKENS (UI UX Pro Max) ===== */
    /* Background palette — deep ocean blues */
    --bg-primary: #060b15;
    --bg-secondary: #0b1422;
    --bg-card: rgba(12, 20, 38, 0.88);
    --bg-elevated: rgba(16, 26, 48, 0.92);
    --bg-hover: rgba(28, 42, 68, 0.6);
    --bg-surface: rgba(14, 24, 44, 0.7);
    /* Border palette */
    --border: rgba(40, 65, 105, 0.3);
    --border-light: rgba(55, 85, 130, 0.25);
    --border-focus: rgba(61, 232, 212, 0.4);
    /* Text palette — high contrast hierarchy */
    --text-primary: #f0f4f8;
    --text-secondary: #9bb0cc;
    --text-muted: #6b84a6;
    --text-dim: #4a6080;
    /* Accent palette — ocean-inspired */
    --accent-teal: #3de8d4;
    --accent-cyan: #3de8d4;
    --accent-blue: #5b9cf6;
    --accent-green: #34d399;
    --accent-yellow: #fbbf24;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;
    --accent-warm: #fbbf24;
    /* Score colors */
    --score-excellent: #34d399;
    --score-good: #3de8d4;
    --score-fair: #fbbf24;
    --score-poor: #ef4444;
    /* Typography */
    --font-main: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-display: 'Syne', 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'IBM Plex Mono', 'JetBrains Mono', monospace;
    /* Type scale */
    --text-xs: 0.65rem;
    --text-sm: 0.75rem;
    --text-base: 0.85rem;
    --text-lg: 1rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.6rem;
    --text-3xl: 2.2rem;
    --text-hero: 3.2rem;
    /* Spacing scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    /* Border radius */
    --radius: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-full: 9999px;
    /* Glass morphism */
    --glass-bg: rgba(14, 24, 44, 0.85);
    --glass-border: rgba(60, 90, 140, 0.25);
    --glass-blur: blur(24px);
    /* Shadows & glows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.15);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.2);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.3);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.4);
    --glow-teal: 0 0 24px rgba(61, 232, 212, 0.12);
    --glow-green: 0 0 24px rgba(52, 211, 153, 0.12);
    --glow-score: 0 4px 20px rgba(61, 232, 212, 0.15);
    --card-bg: var(--bg-card);
    --border-subtle: rgba(40, 65, 105, 0.2);
    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 0.15s;
    --duration-base: 0.25s;
    --duration-slow: 0.4s;
}

html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    background-image:
        radial-gradient(ellipse at 10% 0%, rgba(61, 232, 212, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 100%, rgba(52, 211, 153, 0.02) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-primary) 0%, #0a1220 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    letter-spacing: -0.015em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 15px;
}

/* Atmospheric gradient overlay */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 20% 0%, rgba(61, 232, 212, 0.04) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 100%, rgba(61, 217, 160, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* --- Sidebar --- */
.sidebar {
    width: 230px;
    background: rgba(6, 11, 21, 0.97);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-right: 1px solid rgba(40, 60, 100, 0.15);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(61, 232, 212, 0.1) transparent;
}
.sidebar-header {
    padding: 18px 16px;
    border-bottom: 1px solid var(--glass-border);
}
.sidebar-header h1 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 2px;
    letter-spacing: -0.02em;
}
.sidebar-live {
    font-size: 0.65rem;
    font-family: var(--font-mono);
    color: var(--accent-green);
    letter-spacing: 0.02em;
}
.sidebar-days {
    padding: 8px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sidebar-day {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: left;
    transition: background 0.1s;
    width: 100%;
}
.sidebar-day:hover { background: var(--bg-hover); }
.sidebar-day.active { background: rgba(34, 211, 238, 0.1); color: var(--accent-teal); border: 1px solid rgba(34, 211, 238, 0.2); }
.sidebar-day.today .sd-label { font-weight: 700; }
.sd-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-score { font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem; text-shadow: 0 1px 3px rgba(0,0,0,0.5); min-width: 24px; text-align: right; }
.sd-badge {
    font-size: 0.625rem;
    padding: 1px 5px;
    border-radius: 8px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.sidebar-nav {
    padding: 8px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.nav-item {
    display: block;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.78rem;
    cursor: pointer;
    transition: background 0.1s;
    text-decoration: none;
    border: none;
    background: none;
    text-align: left;
    width: 100%;
    font-family: inherit;
}
.nav-item:hover { background: var(--bg-hover); }
.nav-item.active { background: rgba(34, 211, 238, 0.1); color: var(--accent-teal); }
.sidebar-stats {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
}
.sidebar-stat { text-align: center; flex: 1; }
.sidebar-stat-val { display: block; font-weight: 700; font-size: 0.9rem; color: var(--accent-teal); font-family: var(--font-mono); }
.sidebar-stat-label { font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase; }

/* --- Main content --- */
.main-content {
    flex: 1;
    margin-left: 230px;
    padding: var(--space-5) var(--space-6);
    min-height: 100vh;
    position: relative;
    z-index: 1;
}
.panel-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-5);
    letter-spacing: -0.02em;
    color: var(--text-primary);
}
.panel { animation: fadeInPanel 0.3s ease; }
@keyframes fadeInPanel { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* --- Spot toggle strip --- */
.spot-toggle-strip {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.spot-toggle-strip::-webkit-scrollbar { display: none; }
.spot-toggle-btn {
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.spot-toggle-btn:hover {
    background: rgba(255,255,255,0.04);
    border-color: var(--border-light);
    color: var(--text-secondary);
}
.spot-toggle-btn.active {
    background: rgba(61, 232, 212, 0.1);
    border-color: rgba(61, 232, 212, 0.3);
    color: var(--accent-teal);
}
.spot-toggle-btn .spot-toggle-score {
    font-family: var(--font-mono);
    font-weight: 700;
    margin-left: 4px;
}

/* --- Stat cards row --- */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
}
.stat-cards-spot-label {
    grid-column: 1 / -1;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: -4px;
}
.live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(34,197,94,0); }
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: var(--space-4) var(--space-5);
    transition: all var(--duration-base) var(--ease-out);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-teal), transparent);
    opacity: 0;
    transition: opacity var(--duration-base);
}
.stat-card:hover {
    border-color: rgba(61, 232, 212, 0.15);
    box-shadow: var(--shadow-md), var(--glow-teal);
    transform: translateY(-3px);
}
.stat-card:hover::before {
    opacity: 1;
}
/* Staggered entrance animations */
.stat-card {
    animation: cardReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.stat-card:nth-child(2) { animation-delay: 0.05s; }
.stat-card:nth-child(3) { animation-delay: 0.1s; }
.stat-card:nth-child(4) { animation-delay: 0.15s; }
.stat-card:nth-child(5) { animation-delay: 0.2s; }
@keyframes cardReveal {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.stat-card-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 6px;
    font-family: var(--font-mono);
}
.stat-card-val {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.stat-card-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* --- Two-column dashboard row --- */
.dash-row {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 16px;
    align-items: start;
}
.dash-col-main { min-width: 0; }
.dash-col-chat {
    position: sticky;
    top: 20px;
}
.dash-col-chat .chat-inline {
    height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
}
.dash-col-chat .chat-messages {
    flex: 1;
    overflow-y: auto;
}

/* --- Mobile top bar --- */
.mobile-topbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: rgba(8, 14, 28, 0.92);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    z-index: 99;
    align-items: center;
    padding: 0 12px;
    gap: 10px;
}
.mobile-topbar h1 { font-size: 1rem; flex: 1; font-weight: 700; letter-spacing: -0.01em; }
.mobile-live { font-size: 0.65rem; color: var(--accent-green); font-family: var(--font-mono); }
.hamburger {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px;
}

/* --- Mobile responsive --- */
@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--duration-base) var(--ease-out);
        width: 260px;
        box-shadow: var(--shadow-xl);
    }
    .sidebar.open { transform: translateX(0); }
    .mobile-topbar { display: flex; }
    .main-content {
        margin-left: 0;
        padding: 60px var(--space-4) var(--space-5);
    }
    .dash-row { grid-template-columns: 1fr; }
    .dash-col-chat { position: static; }
    .dash-col-chat .chat-inline { height: 380px; }
    .stat-cards { grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
    .stat-card { padding: var(--space-3); }
    .stat-card-val { font-size: var(--text-xl); }
    .day-rec-alts { flex-wrap: wrap; }
    .forecast-grid-section { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .hero-score-big { font-size: var(--text-3xl); }
    .hero-title-text { display: block; margin-top: var(--space-2); font-size: var(--text-base); }
}

@media (max-width: 480px) {
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .stat-card-val { font-size: var(--text-lg); }
    .main-content { padding: 55px var(--space-2) var(--space-4); }
    .day-rec { padding: var(--space-4) var(--space-4); }
    .hero-score-big { font-size: var(--text-2xl); }
}

/* Golden Gate Bridge background with extended gradient fade */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('gg-bg.jpg');
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.15) 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.15) 70%, transparent 100%);
}

/* Wave background removed */
main, header, footer { position: relative; z-index: 1; }

/* ===== HEADER ===== */
header {
    background: rgba(8, 14, 28, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
    padding: 20px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.header-left h1 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 2px;
}

.header-right {
    text-align: right;
}

.last-updated {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.auto-refresh {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ===== MAIN ===== */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

/* ===== TOP PICK BANNER ===== */
.top-pick {
    background: linear-gradient(135deg, rgba(12, 30, 52, 0.85) 0%, rgba(18, 50, 75, 0.8) 50%, rgba(12, 30, 52, 0.85) 100%);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(61, 232, 212, 0.2);
    border-radius: var(--radius);
    padding: 24px 32px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(61, 232, 212, 0.06);
}

.top-pick::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(61, 232, 212, 0.3), transparent);
    pointer-events: none;
}

.top-pick-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent-teal);
    text-transform: uppercase;
    margin-bottom: 6px;
    font-family: var(--font-mono);
}

.top-pick-spot {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.top-pick-reason {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.5;
}

/* ===== QUICK COMPARE ===== */
.quick-compare {
    margin-bottom: 32px;
}

.compare-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.compare-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.compare-card:hover {
    border-color: rgba(61, 232, 212, 0.3);
    transform: translateY(-3px);
    box-shadow: var(--glow-teal);
}

.compare-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.compare-score {
    font-size: 2.4rem;
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: -0.03em;
    line-height: 1;
}

.compare-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== SPOT CARDS ===== */
.spot-cards {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.spot-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: var(--space-6);
    transition: all var(--duration-base) var(--ease-out);
    margin-bottom: var(--space-3);
}
.spot-card:hover {
    border-color: rgba(61, 232, 212, 0.12);
}

.spot-card:hover {
    border-color: rgba(61, 232, 212, 0.15);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.spot-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.spot-title-row h2 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.spot-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-teal);
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 20px;
    padding: 3px 10px;
    margin-top: 6px;
}

.spot-score-badge {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: -0.04em;
    min-width: 64px;
    text-align: center;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* ===== CONDITIONS GRID ===== */
.conditions-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.condition-item {
    background: rgba(18, 28, 50, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(60, 90, 140, 0.15);
    border-radius: var(--radius-sm);
    padding: 14px 12px;
    text-align: center;
    transition: border-color 0.2s;
}
.condition-item:hover {
    border-color: rgba(61, 232, 212, 0.15);
}

.condition-icon {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.condition-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.condition-value {
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

/* ===== BEST WINDOWS ===== */
.best-windows {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.window-card {
    background: rgba(18, 28, 50, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(60, 90, 140, 0.15);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    border-left: 4px solid var(--accent-teal);
}

.window-card.morning {
    border-left-color: var(--accent-yellow);
}

.window-card.afternoon {
    border-left-color: var(--accent-orange);
}

.window-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.window-time {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font-mono);
    margin-bottom: 2px;
}

.window-score {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== REPORT ===== */
.report-section {
    margin-bottom: 24px;
}

.report-section h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.report-text {
    background: rgba(18, 28, 50, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(60, 90, 140, 0.12);
    border-radius: var(--radius-sm);
    padding: 20px;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-primary);
    white-space: pre-wrap;
}

.report-text p {
    margin-bottom: 12px;
}

.report-text p:last-child {
    margin-bottom: 0;
}

/* ===== HOURLY TABLE ===== */
.hourly-section h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.hourly-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: rgba(12, 20, 38, 0.5);
}

.hourly-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    font-family: var(--font-mono);
}

.hourly-table thead {
    background: var(--bg-elevated);
}

.hourly-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.hourly-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.hourly-table tbody tr:hover {
    background: var(--bg-hover);
}

.hourly-table tbody tr.current-hour {
    background: rgba(34, 211, 238, 0.08);
    border-left: 3px solid var(--accent-teal);
}

.hourly-table tbody tr.best-window-row {
    background: rgba(52, 211, 153, 0.08);
}

.score-cell {
    font-weight: 700;
    border-radius: 4px;
    padding: 2px 8px;
    display: inline-block;
    min-width: 36px;
    text-align: center;
}

.score-excellent { color: var(--score-excellent); }
.score-good { color: var(--score-good); }
.score-fair { color: var(--score-fair); }
.score-poor { color: var(--score-poor); }

/* ===== EXPLAINER ===== */
.explainer {
    margin-top: 40px;
    padding: 28px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
}

.explainer h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.explainer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.explainer-item {
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    padding: 18px;
}

.explainer-item h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-teal);
    margin-bottom: 8px;
}

.explainer-item p {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== FOOTER ===== */
footer {
    max-width: 1400px;
    margin: 40px auto 0;
    padding: 24px;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

footer a {
    color: var(--accent-teal);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ===== STICKY DAY NAVIGATION ===== */
.day-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 14, 26, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 0 8px;
    margin: 0 -20px 20px;
    padding-left: 20px;
    padding-right: 20px;
}

.day-nav-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.day-nav-arrow {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}
.day-nav-arrow:hover:not(:disabled) { border-color: var(--accent-teal); color: var(--accent-teal); }
.day-nav-arrow:disabled { opacity: 0.3; cursor: default; }

.day-nav-center {
    flex: 1;
    text-align: center;
}

.day-nav-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.day-nav-sub {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.day-nav-dots {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 8px;
}

.day-dot {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 6px;
    width: 28px;
    height: 24px;
    font-size: 0.6rem;
    font-weight: 700;
    font-family: var(--font-mono);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.1s;
}
.day-dot:hover { border-color: var(--accent-teal); }
.day-dot.active {
    border-color: var(--accent-teal);
    background: rgba(34, 211, 238, 0.15);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.3);
}

/* ===== COLLAPSED SPOT CARDS ===== */
.spots-section { margin-bottom: 24px; }
.spots-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}
.spots-hint { font-weight: 400; font-size: 0.72rem; }

.spot-card.collapsed .day-content {
    display: none;
    /* Will be animated via JS */
}
.spot-card.collapsed .spot-header { cursor: pointer; margin-bottom: 0; }
.spot-card.collapsed { padding-bottom: 0; margin-bottom: 8px; }
.spot-card.collapsed .spot-header::after {
    content: '▸';
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-left: auto;
    padding-left: 12px;
    transition: transform 0.3s ease;
}
.spot-card:not(.collapsed) .spot-header::after {
    content: '▾';
    transform: rotate(0deg);
}
.spot-card:not(.collapsed) .day-content {
    animation: expandIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes expandIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.spot-card:not(.collapsed) {
    border-color: rgba(61, 232, 212, 0.15);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.spot-card:not(.collapsed) .spot-header::after {
    color: var(--accent-teal);
    font-size: 1.2rem;
    margin-left: auto;
    padding-left: 12px;
}
.spot-card .spot-header {
    cursor: pointer;
}

/* ===== INLINE CHAT ===== */
.chat-inline {
    background: rgba(8, 16, 32, 0.9);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(61, 232, 212, 0.12);
    border-radius: var(--radius);
    margin-bottom: var(--space-6);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.chat-inline::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(61, 232, 212, 0.25), transparent);
    pointer-events: none;
}
.chat-inline-header {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-teal);
    padding: 12px 16px 0;
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}
.chat-inline .chat-messages {
    max-height: 250px;
    overflow-y: auto;
    padding: 8px 16px;
}
.chat-inline .chat-input-wrap {
    border-top: 1px solid var(--border);
    padding: 8px;
    display: flex;
    gap: 8px;
}
.chat-inline .chat-input {
    flex: 1;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 10px 14px;
    font-size: 0.85rem;
    font-family: var(--font-main);
}
.chat-inline .chat-input:focus { outline: none; border-color: var(--accent-teal); }
.chat-inline .chat-send {
    background: var(--accent-teal);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    font-weight: 700;
    font-family: var(--font-main);
    cursor: pointer;
}
.voice-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.15s;
}
.voice-btn:hover { border-color: var(--accent-teal); }
.voice-btn.listening {
    border-color: var(--accent-red);
    background: rgba(239, 68, 68, 0.15);
    animation: pulse-glow-red 1s ease-in-out infinite alternate;
}
@keyframes pulse-glow-red {
    from { box-shadow: 0 0 5px rgba(239, 68, 68, 0.3); }
    to { box-shadow: 0 0 15px rgba(239, 68, 68, 0.6); }
}

/* ===== MORE TOOLS ===== */
.more-tools { margin-bottom: 24px; }
.more-tools-toggle {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-main);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    cursor: pointer;
    text-align: left;
    transition: all 0.15s;
}
.more-tools-toggle:hover { border-color: var(--accent-teal); color: var(--text-primary); }
.more-tools-toggle.open { border-radius: var(--radius) var(--radius) 0 0; border-color: var(--accent-teal); }
.more-tools-toggle.open::after { content: ' ▾'; }
.more-tools-content {
    display: none;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 20px;
}
.more-tools-content.open { display: block; }

/* Hide floating chat bubble since chat is now inline */
.chat-bubble { display: none !important; }
.chat-panel { display: none !important; }

/* ===== DAY RECOMMENDATION ===== */
.day-rec {
    animation: cardReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    background: linear-gradient(135deg, rgba(12, 30, 52, 0.9) 0%, rgba(18, 45, 72, 0.85) 50%, rgba(12, 30, 52, 0.9) 100%);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(61, 232, 212, 0.25);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 24px;
    animation: fadeInRec 0.4s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(61, 232, 212, 0.08);
    position: relative;
    overflow: hidden;
}
.day-rec::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(61, 232, 212, 0.3), transparent);
}

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

.day-rec-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.day-rec-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

/* Hero score — big, unmissable */
.hero-score-big {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-right: 12px;
    vertical-align: middle;
}
.hero-verdict {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 6px;
    color: #fff;
    vertical-align: middle;
    margin-right: 12px;
}
.hero-title-text {
    font-size: 1rem;
    font-weight: 600;
    vertical-align: middle;
    color: var(--text-primary);
}
.day-rec-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

/* Quick alt pills for simple mode */
.hero-alts-simple {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.hero-alt-pill {
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 16px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    background: rgba(255,255,255,0.03);
}

/* Details toggle for detailed mode */
.rec-details {
    margin-top: 12px;
}
.rec-details-toggle {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-teal);
    cursor: pointer;
    padding: 6px 0;
    list-style: none;
    user-select: none;
}
.rec-details-toggle::marker { display: none; }
.rec-details-toggle::-webkit-details-marker { display: none; }
.rec-details-toggle::before {
    content: '▸ ';
    transition: transform 0.2s;
}
.rec-details[open] .rec-details-toggle::before {
    content: '▾ ';
}
.rec-details[open] > .day-rec-sessions {
    animation: expandIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* View mode toggle */
.view-mode-toggle {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-bottom: var(--space-4);
    background: var(--bg-surface);
    border-radius: var(--radius-full);
    padding: 3px;
    border: 1px solid var(--border);
}
.view-mode-btn {
    padding: 6px 18px;
    border-radius: var(--radius-full);
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}
.view-mode-btn.active {
    background: rgba(61, 232, 212, 0.12);
    color: var(--accent-teal);
    box-shadow: 0 0 12px rgba(61, 232, 212, 0.1);
}
.view-mode-btn:hover:not(.active) {
    color: var(--text-secondary);
}

/* Simple mode: hide technical stuff, simplify what remains */
body.simple-mode .swell-model-compare,
body.simple-mode .condition-alerts,
body.simple-mode .best-day-callout,
body.simple-mode .swell-overview,
body.simple-mode .hourly-timeline,
body.simple-mode #swell-model-compare,
body.simple-mode .compass-rose,
body.simple-mode .compass-meta,
body.simple-mode .wind-spark-wrap,
body.simple-mode .mini-tide-wrap,
body.simple-mode .spot-toggle-strip,
body.simple-mode .stat-card-sub {
    display: none !important;
}
/* Bigger, friendlier stat cards in simple mode */
body.simple-mode .stat-card-val {
    font-size: 1.6rem;
}
body.simple-mode .stat-card-label {
    font-size: 0.7rem;
}
body.simple-mode .stat-cards {
    grid-template-columns: repeat(2, 1fr);
}
/* Friendlier hero in simple mode */
body.simple-mode .hero-score-big {
    font-size: 3.5rem;
}
body.simple-mode .day-rec-reason {
    font-size: 1rem;
}
/* Hide nav items that aren't useful for casual users */
body.simple-mode .dp-nav-btn {
    display: none;
}

/* AI summary bar */
.ai-summary-bar {
    background: linear-gradient(135deg, rgba(61, 232, 212, 0.05), rgba(52, 211, 153, 0.03));
    border: 1px solid rgba(61, 232, 212, 0.1);
    border-radius: var(--radius);
    padding: var(--space-4) var(--space-5);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.6;
    animation: cardReveal var(--duration-slow) var(--ease-out) backwards;
    animation-delay: 0.1s;
    position: relative;
    overflow: hidden;
}
.ai-summary-bar::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(61, 232, 212, 0.15), transparent);
}
.ai-summary-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.ai-summary-text {
    flex: 1;
}
.ai-summary-text .ai-highlight {
    color: var(--accent-teal);
    font-weight: 600;
}
.ai-summary-loading {
    color: var(--text-muted);
    font-style: italic;
}
.ai-insight-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(61, 232, 212, 0.1);
    border: 1px solid rgba(61, 232, 212, 0.2);
    color: var(--accent-teal);
    margin-left: 6px;
    vertical-align: middle;
}
.ai-explain-btn {
    background: none;
    border: 1px solid rgba(61, 232, 212, 0.2);
    color: var(--accent-teal);
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-main);
    margin-top: 6px;
    transition: all 0.2s;
}
.ai-explain-btn:hover {
    background: rgba(61, 232, 212, 0.1);
}

@media (max-width: 900px) {
    .hero-score-big { font-size: 2.2rem; }
    .hero-title-text { font-size: 0.85rem; display: block; margin-top: 4px; }
    .view-mode-toggle { margin-bottom: 8px; }
}

.day-rec-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent-teal);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.day-rec-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.day-rec-reason {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.day-rec-alt-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.day-rec-alt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.day-rec-alt-name {
    font-weight: 700;
    min-width: 110px;
}

.day-rec-alt-surf {
    font-family: var(--font-mono);
    color: var(--accent-teal);
    min-width: 60px;
}

.day-rec-alt-time {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.day-rec-alt-score {
    margin-left: auto;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1rem;
}

.day-rec-sessions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.day-rec-session-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.day-rec-session-card {
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    border-left: 4px solid var(--border);
    margin-bottom: 8px;
}

.day-rec-session-card.rec-good { border-left-color: var(--score-excellent); }
.day-rec-session-card.rec-ok { border-left-color: var(--score-fair); }
.day-rec-session-card.rec-poor { border-left-color: var(--score-poor); }

.rec-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.rec-spot {
    font-weight: 800;
    font-size: 1rem;
}

.rec-time {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.rec-score {
    margin-left: auto;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1.2rem;
}

.rec-card-board {
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.rec-board-why {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.rec-card-owned {
    font-size: 0.82rem;
    color: var(--accent-green);
    margin-bottom: 6px;
    padding-top: 4px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.rec-card-detail {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.log-session-btn {
    margin-top: 8px;
    padding: 5px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-main);
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 16px;
    color: var(--accent-teal);
    cursor: pointer;
    transition: all 0.15s;
}

.log-session-btn:hover { background: rgba(34, 211, 238, 0.2); }
.log-session-btn:disabled { opacity: 0.5; cursor: default; }

/* Confidence & Safety badges */
.conf-badge, .safety-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 4px;
}

.conf-high { background: rgba(52, 211, 153, 0.15); color: var(--accent-green); }
.conf-med { background: rgba(251, 191, 36, 0.15); color: var(--accent-yellow); }
.conf-low { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); }

.safety-ok { background: rgba(52, 211, 153, 0.15); color: var(--accent-green); }
.safety-caution { background: rgba(251, 191, 36, 0.15); color: var(--accent-yellow); }
.safety-danger { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); }

/* ===== PREFERENCES PANEL ===== */
.prefs-panel {
    margin-bottom: 24px;
}

.prefs-toggle {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-main);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    cursor: pointer;
    text-align: left;
    transition: all 0.15s;
}

.prefs-toggle:hover { border-color: var(--accent-teal); color: var(--text-primary); }
.prefs-toggle::after { content: ' ▸'; }
.prefs-toggle.open { border-radius: var(--radius) var(--radius) 0 0; border-color: var(--accent-teal); }
.prefs-toggle.open::after { content: ' ▾'; }

.prefs-panel-content {
    display: none;
    background: rgba(12, 20, 38, 0.8);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(61, 232, 212, 0.2);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 20px;
}

.prefs-panel-content.open { display: block; }

.prefs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.pref-group {
    flex: 1;
    min-width: 200px;
}

.pref-group.pref-mode-group, .pref-group.pref-drive-group {
    flex-basis: 100%;
}

.pref-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
}

.pref-val {
    color: var(--accent-teal);
    font-family: var(--font-mono);
}

.pref-slider {
    width: 100%;
    accent-color: var(--accent-teal);
}

.pref-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.pref-select {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 8px 12px;
    font-size: 0.85rem;
    font-family: var(--font-main);
    cursor: pointer;
    width: 100%;
}

.pref-select:focus { outline: none; border-color: var(--accent-teal); }

.mode-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.mode-btn {
    padding: 10px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    text-align: left;
    font-family: var(--font-main);
    font-size: 0.78rem;
    transition: all 0.15s;
}

.mode-btn strong { display: block; color: var(--text-primary); margin-bottom: 2px; font-size: 0.82rem; }
.mode-btn span { font-size: 0.7rem; color: var(--text-muted); }
.mode-btn:hover { border-color: var(--border-light); }
.mode-btn.active { border-color: var(--accent-teal); background: rgba(34, 211, 238, 0.08); }
.mode-btn.active strong { color: var(--accent-teal); }

.drive-inputs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.drive-input-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.drive-input {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 6px 10px;
    font-size: 0.82rem;
    font-family: var(--font-mono);
    width: 100%;
}

.drive-input:focus { outline: none; border-color: var(--accent-teal); }

/* ===== SESSION LOG ===== */
.session-log {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 32px;
}

.session-log h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.session-log-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 8px;
}

.session-log-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.session-log-date { font-weight: 700; font-size: 0.85rem; }
.session-log-spot { font-weight: 600; color: var(--accent-teal); font-size: 0.85rem; }
.session-log-board { font-size: 0.8rem; color: var(--text-secondary); }
.session-log-time { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); margin-left: auto; }

.session-log-conditions {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.session-log-rating {
    display: flex;
    gap: 4px;
}

.star {
    font-size: 1.2rem;
    color: var(--border-light);
    cursor: pointer;
    transition: color 0.1s;
}

.star:hover, .star-filled { color: var(--accent-yellow); }

@media (max-width: 768px) {
    .day-rec-sessions { grid-template-columns: 1fr; }
    .mode-buttons { grid-template-columns: repeat(2, 1fr); }
    .drive-inputs { grid-template-columns: repeat(2, 1fr); }
}

/* ===== DAY TABS ===== */
.day-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.day-tab {
    padding: 8px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
    font-family: var(--font-main);
}

.day-tab:hover {
    border-color: var(--border-light);
    color: var(--text-primary);
}

.day-tab.active {
    background: var(--accent-teal);
    color: var(--bg-primary);
    border-color: var(--accent-teal);
    font-weight: 700;
}

.day-tab .tab-score {
    font-family: var(--font-mono);
    font-weight: 700;
    margin-left: 4px;
    font-size: 0.72rem;
}

/* ===== DAY CONTENT (generated) ===== */
.day-content {
    min-height: 100px;
}

.day-summary {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.day-summary .condition-item {
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    padding: 14px 12px;
    text-align: center;
}

/* ===== TIDE CHART ===== */
.tide-chart-section {
    margin-bottom: 24px;
}

.tide-chart-section h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.tide-chart-wrap {
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    padding: 16px;
    position: relative;
}

.tide-chart-wrap canvas {
    width: 100%;
    height: 120px;
    display: block;
}

/* ===== DIRECTION ARROWS ===== */
.dir-arrow {
    display: inline-block;
    font-size: 0.9em;
    margin-right: 2px;
    transition: transform 0.2s;
}

/* ===== SUN TIMES ===== */
.sun-times {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sun-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    padding: 6px 12px;
    border-radius: 20px;
}

.sun-item .sun-icon {
    font-size: 1rem;
}

.sun-item .sun-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sun-item .sun-value {
    font-family: var(--font-mono);
    font-weight: 600;
}

/* ===== SPARKLINE ===== */
.week-day-sparkline {
    margin-top: 6px;
    height: 20px;
}

.week-day-sparkline canvas {
    width: 100%;
    height: 20px;
    display: block;
}

/* ===== BAY AREA SWELL OVERVIEW ===== */
.swell-overview {
    margin-bottom: 20px;
}
.swell-overview-content {
    background: linear-gradient(135deg, rgba(12, 26, 48, 0.95) 0%, rgba(18, 34, 68, 0.92) 50%, rgba(13, 31, 58, 0.95) 100%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 18px 24px;
}
.swell-overview-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.swell-overview-buoy {
    font-size: 0.75rem;
    color: var(--accent-teal);
    font-family: var(--font-mono);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

/* ===== SCORE RUBRIC ===== */
.score-rubric-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    margin-top: 8px;
    font-family: var(--font-main);
    padding: 0;
}
.score-rubric-toggle:hover { color: var(--accent-teal); }

.score-rubric {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.score-rubric.open { display: block; }

.rubric-scale {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.rubric-chip {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 0.04em;
}
.rubric-epic { background: rgba(52, 211, 153, 0.15); color: var(--accent-green); }
.rubric-good { background: rgba(34, 211, 238, 0.15); color: var(--accent-teal); }
.rubric-fair { background: rgba(251, 191, 36, 0.15); color: var(--accent-yellow); }
.rubric-poor { background: rgba(249, 115, 22, 0.15); color: var(--accent-orange); }
.rubric-flat { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); }

.rubric-factors {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 16px;
    margin-bottom: 8px;
}
.rubric-factor {
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.rubric-pct {
    color: var(--accent-teal);
    font-weight: 700;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    margin-right: 4px;
}
.rubric-note {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-style: italic;
}

@media (max-width: 768px) {
    .rubric-factors { grid-template-columns: 1fr; }
}

/* ===== BEST DAY CALLOUT ===== */
.best-day-callout {
    background: linear-gradient(135deg, rgba(13, 40, 32, 0.8), rgba(20, 60, 48, 0.7));
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(61, 217, 160, 0.25);
    border-radius: var(--radius);
    padding: 20px 28px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(61, 217, 160, 0.08);
    position: relative;
    overflow: hidden;
}
.best-day-callout::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(61, 217, 160, 0.3), transparent);
    pointer-events: none;
}

.best-day-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.best-day-text {
    flex: 1;
}

.best-day-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-green);
    margin-bottom: 4px;
}

.best-day-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.best-day-detail {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ===== WEBCAM LINKS ===== */
.webcam-links {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.webcam-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--accent-teal);
    text-decoration: none;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 16px;
    padding: 4px 10px;
    transition: all 0.15s;
}

.webcam-link:hover {
    background: rgba(34, 211, 238, 0.15);
    border-color: var(--accent-teal);
}

/* ===== SESSION PLANNER ===== */
.session-planner {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 32px;
}

.session-planner h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.planner-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    align-items: flex-end;
}

.planner-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.planner-group label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.planner-group select,
.planner-group input {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 8px 12px;
    font-size: 0.85rem;
    font-family: var(--font-main);
    cursor: pointer;
}

.planner-group select:focus,
.planner-group input:focus {
    outline: none;
    border-color: var(--accent-teal);
}

.planner-slots {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.planner-slot {
    display: grid;
    grid-template-columns: 120px 1fr 80px 60px;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--border);
}

.planner-slot.rank-1 { border-left-color: var(--accent-green); }
.planner-slot.rank-2 { border-left-color: var(--accent-teal); }
.planner-slot.rank-3 { border-left-color: var(--accent-yellow); }

.planner-slot-day {
    font-weight: 700;
    font-size: 0.88rem;
}

.planner-slot-detail {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.planner-slot-spot {
    font-size: 0.82rem;
    font-weight: 600;
}

.planner-slot-score {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1.1rem;
    text-align: right;
}

.planner-empty {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== WATER TEMP ===== */
.water-temp-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 4px 10px;
}

/* ===== LOADING SHIMMER ===== */
.loading-shimmer {
    background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-hover) 50%, var(--bg-elevated) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .conditions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .explainer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-right {
        text-align: left;
    }
    .compare-cards {
        grid-template-columns: 1fr;
    }
    .conditions-grid, .day-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    .best-windows {
        grid-template-columns: 1fr;
    }
    .explainer-grid {
        grid-template-columns: 1fr;
    }
    .spot-header {
        flex-direction: column;
        gap: 8px;
    }
    .spot-card {
        padding: 20px;
    }
    main {
        padding: 16px;
    }
    .top-pick {
        padding: 18px 20px;
    }
    .top-pick-spot {
        font-size: 1.2rem;
    }
    .week-overview {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .conditions-grid, .day-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    .hourly-table {
        font-size: 0.72rem;
    }
    .hourly-table th, .hourly-table td {
        padding: 6px 8px;
    }
    .planner-slot {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .best-day-callout {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    .sun-times {
        gap: 8px;
    }
}

/* ===== WEBCAM SECTION ===== */
.webcam-section {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 32px;
}
.webcam-section h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.webcam-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 12px; }
.webcam-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.webcam-label {
    padding: 10px 16px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent-teal);
    border-bottom: 1px solid var(--border);
}
.webcam-frame {
    width: 100%;
    height: 350px;
    border: none;
    background: var(--bg-primary);
}
.webcam-short { height: 350px; }
.webcam-links-bar {
    display: flex;
    gap: 16px;
    padding: 10px 0;
}
.webcam-links-bar a {
    font-size: 0.78rem;
    color: var(--accent-teal);
    text-decoration: none;
}
.webcam-links-bar a:hover { text-decoration: underline; }
@media (max-width: 768px) {
    .webcam-grid { grid-template-columns: 1fr; }
    .webcam-frame { height: 250px; }
    .webcam-links-bar { flex-wrap: wrap; gap: 8px; }
}

/* ===== F1: BUOY INLINE ===== */
.buoy-inline {
    font-size: 0.8rem;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    font-family: var(--font-mono);
}
.buoy-ok { background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.3); color: var(--accent-green); }
.buoy-off { background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.3); color: var(--accent-yellow); }

/* ===== F4: SWELL ARRIVAL BADGE ===== */
.swell-arrival-badge {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--accent-yellow);
    background: rgba(251, 191, 36, 0.12);
    padding: 2px 6px;
    border-radius: 8px;
    margin-top: 4px;
    text-align: center;
}

/* ===== F5: HISTORICAL MATCH ===== */
.historical-match {
    font-size: 0.8rem;
    color: var(--accent-green);
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.2);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    margin-top: 12px;
    text-align: center;
}

/* ===== F6: WETSUIT REC ===== */
.wetsuit-rec {
    font-size: 0.82rem;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    margin-bottom: 16px;
}

/* ===== SUNRISE/SUNSET RATING + SPECTATOR ===== */
.sun-rating-section { margin-bottom: 20px; }
.sun-rating-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.sun-rating-card { background: var(--bg-elevated); border-radius: var(--radius-sm); padding: 12px 16px; }
.sun-rating-title { font-weight: 700; font-size: 0.88rem; margin-bottom: 4px; }
.sun-rating-stars { font-size: 1rem; color: var(--accent-yellow); margin-bottom: 4px; letter-spacing: 1px; }
.sun-rating-desc { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 4px; }
.sun-rating-sky { font-size: 0.7rem; color: var(--text-muted); font-family: var(--font-mono); }
.spectator-section { background: var(--bg-elevated); border-radius: var(--radius-sm); padding: 14px 16px; }
.spectator-title { font-weight: 700; font-size: 0.85rem; margin-bottom: 10px; }
.spectator-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spectator-card { font-size: 0.82rem; }
.spectator-time { font-weight: 600; color: var(--accent-teal); display: block; margin-bottom: 2px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.spectator-desc { font-size: 0.75rem; color: var(--text-secondary); margin-top: 4px; line-height: 1.4; }
.spectator-bring { font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; font-style: italic; }
@media (max-width: 600px) { .sun-rating-grid, .spectator-grid { grid-template-columns: 1fr; } }

/* ===== F7: DAYLIGHT BAR ===== */
.daylight-bar-wrap { margin-bottom: 16px; }
.daylight-bar {
    display: flex;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 6px;
}
.dl-night { background: #0d1b2a; }
.dl-dawn { background: linear-gradient(90deg, #1a3050, #3d6090); }
.dl-day { background: linear-gradient(90deg, #3d6090, #6ba3d6, #6ba3d6, #3d6090); }
.dl-dusk { background: linear-gradient(90deg, #3d6090, #1a3050); }
.daylight-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ===== F3: WIND CONFIDENCE ===== */
.wind-conf-steady { color: var(--accent-green); }
.wind-conf-moderate { color: var(--text-primary); }
.wind-conf-variable { color: var(--accent-yellow); }

/* ===== F8: SPOT COMPARISON TABLE ===== */
.spot-compare {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}
.spot-compare h3 { font-size: 1rem; margin-bottom: 10px; }
.compare-hour-select { max-width: 200px; margin-bottom: 12px; }
.compare-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.compare-tbl th, .compare-tbl td {
    padding: 8px 12px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.compare-tbl th { color: var(--accent-teal); font-weight: 600; }
.compare-label { text-align: left !important; color: var(--text-muted); font-weight: 600; }

/* ===== F9: SHARE BUTTON + TOAST ===== */
.share-btn {
    font-size: 0.65rem;
    padding: 2px 10px;
    border-radius: 12px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: var(--accent-teal);
    cursor: pointer;
    margin-left: 8px;
    font-family: var(--font-main);
    font-weight: 600;
    vertical-align: middle;
}
.share-btn:hover { background: rgba(34, 211, 238, 0.2); }
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-teal);
    color: var(--bg-primary);
    padding: 10px 24px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}
.toast-show { opacity: 1; }

/* ===== F10: CROWD HEATMAP ===== */
.crowd-heatmap {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}
.crowd-heatmap h3 { font-size: 1rem; margin-bottom: 12px; }
.heatmap-grid {
    display: grid;
    gap: 2px;
    font-size: 0.7rem;
}
.hm-corner { background: transparent; }
.hm-hour { text-align: center; color: var(--text-muted); padding: 4px 0; font-family: var(--font-mono); }
.hm-spot { display: flex; align-items: center; color: var(--text-secondary); font-weight: 600; padding-right: 8px; font-size: 0.72rem; }
.hm-cell {
    border-radius: 3px;
    min-height: 28px;
    cursor: default;
    transition: opacity 0.1s;
}
.hm-cell:hover { opacity: 0.7; }

/* ===== F12: GO NOW BANNER ===== */
.go-now-banner {
    background: linear-gradient(135deg, rgba(13, 51, 32, 0.85), rgba(26, 92, 58, 0.8), rgba(13, 51, 32, 0.85));
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 2px solid rgba(61, 217, 160, 0.4);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
    animation: pulse-glow 2s ease-in-out infinite alternate;
    overflow: hidden;
}
.go-now-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(61, 217, 160, 0.4), transparent);
    pointer-events: none;
}
@keyframes pulse-glow {
    from { box-shadow: 0 0 10px rgba(52, 211, 153, 0.2); }
    to { box-shadow: 0 0 25px rgba(52, 211, 153, 0.5); }
}
.go-now-content { text-align: center; }
.go-now-title { font-size: 1.6rem; font-weight: 800; color: var(--accent-green); margin-bottom: 8px; }
.go-now-spot { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.go-now-detail { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 4px; }
.go-now-time { font-family: var(--font-mono); color: var(--accent-teal); font-size: 0.9rem; }
.go-now-dismiss {
    position: absolute; top: 8px; right: 12px;
    background: none; border: none; color: var(--text-muted);
    font-size: 1.2rem; cursor: pointer;
}

/* ===== F13: TRIP PLANNER ===== */
.trip-planner {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 32px;
}
.trip-planner h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.trip-day-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.trip-day-check {
    font-size: 0.82rem;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-elevated);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all 0.1s;
}
.trip-day-check:has(input:checked) { border-color: var(--accent-teal); color: var(--accent-teal); }
.trip-cb { accent-color: var(--accent-teal); }
.trip-plan-btn {
    padding: 8px 20px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid var(--accent-teal);
    border-radius: var(--radius-sm);
    color: var(--accent-teal);
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    margin-bottom: 16px;
}
.trip-plan-btn:hover { background: rgba(34, 211, 238, 0.2); }
.trip-itinerary { display: flex; flex-direction: column; gap: 8px; }
.trip-day-header {
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent-teal);
    margin-top: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border);
}
.trip-slot {
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    border-left: 3px solid var(--accent-teal);
}
.trip-am { border-left-color: var(--accent-yellow); }
.trip-pm { border-left-color: var(--accent-blue); }
.trip-slot-period { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; color: var(--text-muted); }
.trip-slot-spot { font-size: 1rem; font-weight: 700; margin: 2px 0; }
.trip-slot-time { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-secondary); }
.trip-slot-conditions { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.trip-slot-board { font-size: 0.8rem; color: var(--text-secondary); margin-top: 2px; }

/* ===== F14: PERIOD EDUCATION ===== */
.period-toggle {
    font-size: 0.6rem;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: rgba(34, 211, 238, 0.15);
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: var(--accent-teal);
    cursor: pointer;
    vertical-align: middle;
    margin-left: 4px;
    padding: 0;
    line-height: 1;
}
.period-edu {
    display: none;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    border-left: 3px solid var(--accent-teal);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    line-height: 1.6;
}
.period-edu.open { display: block; }

/* ===== F15: SESSION NOTES + STATS ===== */
.session-notes {
    width: 100%;
    min-height: 36px;
    max-height: 80px;
    margin-top: 6px;
    padding: 8px;
    font-size: 0.78rem;
    font-family: var(--font-main);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    resize: vertical;
}
.session-notes:focus { outline: none; border-color: var(--accent-teal); }
.session-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.stat-item {
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
}
.stat-num {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-teal);
    margin-bottom: 2px;
}
.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ===== STRAVA STATS DASHBOARD ===== */
.strava-stats-dashboard { margin-bottom: 24px; }
.stats-hero-row, .stats-hr-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}
.stats-hr-row { margin-bottom: 16px; }
.stats-hr-row .stat-num { color: #ef4444; }
.stats-spots-section { margin-top: 8px; }
.stats-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.spot-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.spot-bar-name {
    font-size: 0.78rem;
    color: var(--text-secondary);
    min-width: 100px;
    text-align: right;
}
.spot-bar-bg {
    flex: 1;
    height: 8px;
    background: var(--bg-elevated);
    border-radius: 4px;
    overflow: hidden;
}
.spot-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-green));
    border-radius: 4px;
    transition: width 0.5s ease;
}
.spot-bar-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 24px;
}
@media (max-width: 600px) {
    .stats-hero-row, .stats-hr-row { grid-template-columns: repeat(2, 1fr); }
}

/* ===== JOURNAL ===== */
.journal-add { margin-bottom: 16px; }
.journal-add h4 {
    font-size: 0.85rem;
    color: var(--accent-teal);
    padding: 8px 0;
}
.journal-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0;
}
.journal-form-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.journal-form-row select, .journal-form-row input {
    flex: 1;
    min-width: 80px;
}
.journal-timeline { display: flex; flex-direction: column; gap: 8px; }
.journal-month {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-top: 12px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border);
}
.journal-entry {
    background: rgba(18, 28, 50, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(60, 90, 140, 0.12);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    border-left: 3px solid var(--accent-teal);
    transition: border-color 0.2s, background 0.2s;
}
.journal-entry:hover {
    background: rgba(18, 28, 50, 0.8);
}
.journal-entry-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.journal-entry-date { font-weight: 700; font-size: 0.85rem; }
.journal-entry-spot { font-weight: 600; color: var(--accent-teal); font-size: 0.85rem; }
.journal-entry-board { font-size: 0.78rem; color: var(--text-secondary); }
.journal-entry-time { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); margin-left: auto; }
.journal-entry-conditions {
    display: flex;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.journal-dp-data {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 6px 0;
}
.dp-stat {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-green);
    background: rgba(52, 211, 153, 0.08);
    padding: 2px 8px;
    border-radius: 10px;
}
.journal-entry-duration {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-green);
    background: rgba(52, 211, 153, 0.1);
    padding: 1px 8px;
    border-radius: 10px;
}
.journal-entry-rating { margin: 4px 0; }

/* Expandable Strava detail */
.journal-entry.has-strava { cursor: pointer; transition: border-color 0.2s; }
.journal-entry.has-strava:hover { border-left-color: var(--accent-green); }
.journal-strava-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
}
.journal-entry.expanded .journal-strava-detail {
    max-height: 200px;
    padding-top: 10px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
}
.strava-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
}
.strava-stat {
    text-align: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 8px 4px;
}
.strava-stat-val {
    display: block;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent-green);
}
.strava-stat-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.strava-source {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: right;
}

@media (max-width: 480px) {
    .journal-form-row { flex-direction: column; }
    .journal-entry-header { gap: 4px; }
    .journal-entry-time { margin-left: 0; }
    .strava-detail-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== OB RIGHT NOW ===== */
.ob-now-section {
    background: rgba(16, 28, 52, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}
.ob-now-section h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 14px; }
.ob-now-grid { display: flex; flex-direction: column; gap: 10px; }
.ob-now-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
}
.ob-now-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.ob-now-name { font-weight: 700; font-size: 0.95rem; }
.ob-now-score { font-size: 1.4rem; font-weight: 800; margin-left: auto; }
.ob-now-main { margin-bottom: 6px; }
.ob-now-surf {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent-teal);
    line-height: 1.2;
}
.ob-now-detail {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 2px;
}
.ob-now-row {
    display: flex;
    gap: 16px;
    font-size: 0.78rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.ob-now-wind-trend {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    padding: 12px 0 0 0;
    flex-wrap: wrap;
}
.ob-now-trend-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-right: 4px;
    align-self: center;
}
.wind-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.wind-bar {
    width: 14px;
    border-radius: 3px 3px 0 0;
    min-height: 2px;
}
.wind-bar-val { font-size: 0.6rem; color: var(--text-secondary); font-family: var(--font-mono); }
.wind-bar-hr { font-size: 0.55rem; color: var(--text-muted); }

/* ===== SURFLINE BADGE ===== */
.sl-badge {
    display: inline-block;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    color: #fff;
    vertical-align: middle;
    margin-left: 4px;
    letter-spacing: 0.03em;
}

/* ===== SOCIAL PROOF ===== */
.social-proof-badge {
    font-size: 0.7rem;
    color: var(--accent-green);
    margin-top: 4px;
}

/* ===== CALIBRATION STATUS ===== */
.cal-status {
    font-size: 0.65rem;
    color: var(--text-muted);
    cursor: help;
}

/* ===== COLLAPSIBLE SECTIONS ===== */
.collapsible .collapsible-content {
    display: none;
    animation: collapseFadeIn 0.25s ease;
}
.collapsible.open .collapsible-content { display: block; }
@keyframes collapseFadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.collapsible-toggle {
    cursor: pointer;
    user-select: none;
    transition: color 0.15s, background 0.15s;
    background: rgba(16, 28, 52, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.collapsible-toggle::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(-45deg);
    transition: transform 0.25s ease;
    margin-left: auto;
    flex-shrink: 0;
}
.collapsible-toggle:hover { color: var(--accent-teal); background: var(--bg-hover); }
.collapsible.open .collapsible-toggle::after { transform: rotate(45deg); }

/* ===== SCORE EXPLAINER ===== */
.score-clickable { cursor: pointer; }
.score-clickable:hover { text-decoration: underline; }
.score-explain-popup {
    display: none;
    position: absolute;
    right: 0;
    z-index: 50;
    background: var(--bg-card);
    border: 1px solid var(--accent-teal);
    border-radius: var(--radius-sm);
    padding: 12px;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.score-explain-popup.open { display: block; }
.explain-title { font-weight: 700; font-size: 0.78rem; margin-bottom: 8px; color: var(--accent-teal); }
.explain-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 0.72rem; }
.explain-label { width: 100px; color: var(--text-secondary); flex-shrink: 0; }
.explain-bar-bg { flex: 1; height: 6px; background: var(--bg-primary); border-radius: 3px; overflow: hidden; }
.explain-bar-fill { height: 100%; border-radius: 3px; transition: width 0.3s; }
.explain-val { width: 24px; text-align: right; font-weight: 600; color: var(--text-primary); font-family: var(--font-mono); }
.explain-note { font-size: 0.68rem; color: var(--text-muted); margin-top: 4px; font-style: italic; }
.explain-cap { font-size: 0.65rem; color: var(--accent-yellow, #fbbf24); margin-top: 6px; padding: 4px 8px; background: rgba(251,191,36,0.08); border-radius: 6px; border: 1px solid rgba(251,191,36,0.15); }

/* Score breakdown popup */
.score-popup { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); animation: fadeIn 0.15s; }
.score-popup-inner { background: var(--card-bg, #111827); border: 1px solid var(--border, rgba(255,255,255,0.1)); border-radius: 16px; padding: 20px; max-width: 360px; width: 90%; box-shadow: 0 12px 40px rgba(0,0,0,0.5); }
.score-popup-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 700; font-size: 0.88rem; color: var(--text-primary, #e2e8f0); }
.score-popup-close { background: none; border: none; color: var(--text-muted); font-size: 1.1rem; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.score-popup-close:hover { background: rgba(255,255,255,0.1); }
.score-popup-peak { font-size: 0.75rem; color: var(--text-muted, #94a3b8); margin-bottom: 12px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
td { position: relative; }

/* ===== LOGISTICS PANEL ===== */
.logistics-panel { margin-top: 16px; }
.logistics-toggle {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px 0;
}
.logistics-toggle:hover { color: var(--accent-teal); }
.logistics-content { display: none; }
.logistics-panel.open .logistics-content { display: block; }
.logistics-panel.open .logistics-toggle::after { content: ''; }
.logistics-item {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.logistics-item strong { color: var(--text-primary); }

/* ===== QUIVER MANAGER ===== */
.quiver-list { margin-bottom: 12px; }
.quiver-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}
.quiver-remove {
    background: none;
    border: none;
    color: var(--accent-red);
    cursor: pointer;
    font-size: 1rem;
}
.quiver-add-form {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.quiver-add-form input, .quiver-add-form select {
    flex: 1;
    min-width: 80px;
}

/* ===== BOARD SELECTOR ===== */
.board-selector { margin-bottom: 16px; }
.board-selector-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    margin-bottom: 12px;
}
.board-sel-btn {
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-main);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}
.board-sel-btn:hover { border-color: var(--border-light); }
.board-sel-btn.active {
    border-color: var(--accent-teal);
    background: rgba(34, 211, 238, 0.1);
    color: var(--accent-teal);
}
.board-rec-result {
    background: var(--bg-elevated);
    border-left: 3px solid var(--accent-teal);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 8px;
}
.board-rec-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.board-rec-spot {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}
.board-rec-detail {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}
.board-rec-alt {
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 6px 16px;
}

/* ===== 14-DAY FORECAST GRID ===== */
.forecast-grid-section {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}
.forecast-grid-section h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.fg-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}
.fg-grid {
    display: grid;
    gap: 1px;
    min-width: 600px;
}
.fg-corner {
    background: transparent;
    padding: 4px;
}
.fg-day-header {
    text-align: center;
    padding: 6px 2px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.1s;
}
.fg-day-header:hover { background: var(--bg-hover); }
.fg-day-header.fg-today {
    background: rgba(34, 211, 238, 0.08);
}
.fg-day-header.fg-selected {
    background: rgba(34, 211, 238, 0.15);
    border: 1px solid var(--accent-teal);
}
.fg-day-name {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}
.fg-day-num {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
}
.fg-spot-name {
    display: flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    padding: 8px 4px;
    white-space: nowrap;
}
.fg-cell {
    text-align: center;
    padding: 6px 2px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.1s;
}
.fg-cell:hover { background: var(--bg-hover); }
.fg-cell.fg-selected { background: rgba(34, 211, 238, 0.08); }
.fg-surf {
    display: block;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-primary);
}
/* Surfline-style colored dots */
.sl-dots {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-top: 4px;
}
.sl-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

@media (max-width: 480px) {
    .forecast-grid-section { padding: 12px; }
    .forecast-grid-section h3 { font-size: 0.9rem; }
    .fg-spot-name { font-size: 0.65rem; padding: 6px 2px; }
    .fg-surf { font-size: 0.7rem; }
    .fg-day-name { font-size: 0.55rem; }
    .fg-day-num { font-size: 0.72rem; }
    .fg-grid { min-width: 500px; }
    .sl-dot { width: 6px; height: 6px; }
    .sl-dots { gap: 2px; margin-top: 3px; }
}

/* ===== DOT RUBRIC ===== */
.dot-rubric-toggle {
    display: block;
    margin-top: 10px;
    font-size: 0.72rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    padding: 4px 0;
}
.dot-rubric-toggle:hover { color: var(--text-secondary); }
.dot-rubric {
    display: none;
    margin-top: 8px;
    padding: 12px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
}
.dot-rubric.open { display: block; }
.dot-rubric-title {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.dot-rubric-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 3px 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.dot-rubric-row .sl-dots { margin: 0; min-width: 44px; }
.dot-rubric-note {
    margin-top: 8px;
    font-size: 0.65rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===== WEATHER TIMELINE ===== */
.weather-timeline {
    margin-bottom: 16px;
}
.weather-timeline-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.weather-timeline-scroll {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}
.wt-hour {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 38px;
    padding: 6px 4px;
    background: var(--bg-elevated);
    border-radius: 6px;
}
.wt-icon { font-size: 1rem; line-height: 1.2; }
.wt-temp {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
}
.wt-hr {
    font-size: 0.55rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

@media (max-width: 480px) {
    .wt-hour { min-width: 32px; padding: 4px 2px; }
    .wt-icon { font-size: 0.85rem; }
    .wt-temp { font-size: 0.65rem; }
}

/* ===== SURF STATS BAR ===== */
.surf-stats-bar {
    display: flex;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.surf-stats-bar span { display: flex; align-items: center; gap: 4px; }

@media (max-width: 768px) {
    .session-stats { grid-template-columns: repeat(2, 1fr); }
    .heatmap-grid { font-size: 0.6rem; }
    .compare-tbl { font-size: 0.72rem; }
    .trip-day-selector { gap: 4px; }
    .quiver-add-form { flex-direction: column; }
    .quiver-add-form input, .quiver-add-form select { min-width: 100%; }
    .chat-panel { width: 100% !important; right: 0 !important; bottom: 0 !important; border-radius: 0 !important; height: 70vh !important; }
}

/* ===== CHAT WIDGET ===== */
.chat-bubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(34, 211, 238, 0.3);
    z-index: 999;
    transition: transform 0.15s, box-shadow 0.15s;
    border: none;
}
.chat-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(34, 211, 238, 0.5);
}

.chat-panel {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 400px;
    height: 520px;
    background: rgba(13, 21, 37, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(61, 232, 212, 0.2);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 30px rgba(61, 232, 212, 0.08);
    overflow: hidden;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, #0f2942, #163a5f);
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent-teal);
}

.chat-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.chat-close:hover { color: var(--text-primary); }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-msg {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.82rem;
    line-height: 1.55;
    max-width: 85%;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.chat-msg.user {
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.2);
    color: var(--text-primary);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-msg.assistant {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-msg.typing {
    color: var(--text-muted);
    font-style: italic;
    align-self: flex-start;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}
.chat-msg.assistant {
    animation: chatFadeIn 0.3s ease-out;
}
@keyframes chatFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.typing-dots span {
    animation: typingBounce 1.4s infinite;
    display: inline-block;
    font-size: 1.2em;
    line-height: 1;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

.chat-input-wrap {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
}

.chat-input {
    flex: 1;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 8px 16px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: var(--font-main);
    outline: none;
}
.chat-input:focus { border-color: var(--accent-teal); }
.chat-input::placeholder { color: var(--text-muted); }

.chat-send {
    padding: 8px 16px;
    background: var(--accent-teal);
    border: none;
    border-radius: 20px;
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 0.82rem;
    font-family: var(--font-main);
    cursor: pointer;
    transition: opacity 0.1s;
}
.chat-send:hover { opacity: 0.85; }

/* ===== BOARD COMPARISON ===== */
.dash-board-compare {
    margin: 16px 0;
    padding: 16px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
}
.board-compare-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.board-compare-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}
.board-compare-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.board-compare-card {
    background: rgba(13, 21, 37, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 14px;
    text-align: center;
    position: relative;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.board-compare-card:hover {
    transform: translateY(-3px);
    border-color: rgba(61, 232, 212, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.board-compare-card.best {
    border-color: rgba(61, 217, 160, 0.35);
    background: rgba(52, 211, 153, 0.08);
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.12), inset 0 1px 0 rgba(61, 217, 160, 0.1);
}
.board-compare-pick {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-green);
    color: var(--bg-primary);
    font-size: 0.55rem;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 10px;
    letter-spacing: 0.08em;
    white-space: nowrap;
}
.board-compare-name {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 2px;
}
.board-compare-type {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.board-compare-score {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.board-compare-bar {
    height: 4px;
    background: var(--bg-hover);
    border-radius: 3px;
    margin-bottom: 8px;
    overflow: hidden;
}
.board-compare-detail {
    font-size: 0.72rem;
    color: var(--text-secondary);
}
@media (max-width: 480px) {
    .board-compare-cards { grid-template-columns: 1fr; gap: 8px; }
}

/* ===== I'M GOING BUTTON ===== */
.im-going-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--accent-green);
    color: var(--bg-primary);
    border: none;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.82rem;
    font-family: var(--font-main);
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.15s;
}
.im-going-btn:hover { opacity: 0.85; }
.im-going-btn.logged { background: var(--text-muted); cursor: default; }

/* (collapsible styles defined above) */

/* ===== TEXT CONTRAST FIX ===== */
.condition-label { color: var(--text-secondary); }
.condition-value { color: var(--text-primary); }
.rec-card-detail { color: var(--text-secondary); }
.day-rec-reason { color: var(--text-secondary); }
.report-text p { color: var(--text-secondary); line-height: 1.7; }
.planner-empty { color: var(--text-secondary); }

/* ===== STICKY DAY INDICATOR ===== */
.sticky-day-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8, 14, 26, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 8px 20px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 700;
    font-size: 0.9rem;
}
.sticky-day-bar.visible { display: flex; }
.sticky-day-bar .sticky-score {
    font-family: var(--font-mono);
    font-size: 1.1rem;
}

/* ===== COMPREHENSIVE MOBILE ===== */
@media (max-width: 480px) {
    main { padding: 0 10px; }
    header { padding: 12px 10px; }
    h1 { font-size: 1.3rem; }
    .subtitle { font-size: 0.7rem; }
    .header-right { font-size: 0.7rem; }

    /* Top pick — compact */
    .top-pick { padding: 16px; margin-bottom: 12px; }
    .top-pick-spot { font-size: 1.3rem; }
    .top-pick-reason { font-size: 0.78rem; }

    /* Week overview — horizontal scroll, smaller cards */
    .week-overview {
        display: flex;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    .week-day-card {
        min-width: 80px;
        padding: 10px 8px;
        font-size: 0.72rem;
    }
    .week-day-best { font-size: 1.4rem; }
    .week-day-spot { font-size: 0.6rem; }

    /* Day rec — compact */
    .day-rec { padding: 16px; margin-bottom: 12px; }
    .day-rec-title { font-size: 1rem; }
    .day-rec-sessions { grid-template-columns: 1fr; gap: 8px; }
    .rec-card-top { flex-wrap: wrap; gap: 4px; }
    .rec-spot { font-size: 0.9rem; }
    .rec-time { font-size: 0.7rem; }

    /* Spot cards — full width, less padding */
    .spot-card { padding: 16px; margin-bottom: 12px; }
    .spot-header { flex-direction: column; gap: 8px; }
    .spot-title-row { flex-direction: column; gap: 4px; }
    .spot-score-badge { font-size: 1.8rem; }

    /* Conditions grid — 2 columns on phone */
    .day-summary { grid-template-columns: repeat(2, 1fr) !important; gap: 6px; }
    .condition-item { padding: 8px 6px; }
    .condition-icon { font-size: 1.1rem; }
    .condition-label { font-size: 0.6rem; }
    .condition-value { font-size: 0.78rem; }

    /* Best windows — stack */
    .best-windows { grid-template-columns: 1fr; gap: 6px; }

    /* Day tabs — scroll */
    .day-tabs { gap: 3px; }
    .day-tab { padding: 6px 10px; font-size: 0.7rem; }

    /* Hourly table — smaller text */
    .hourly-table { font-size: 0.65rem; }
    .hourly-table th, .hourly-table td { padding: 4px 3px; }

    /* Comparison table */
    .compare-tbl { font-size: 0.65rem; }
    .compare-tbl th, .compare-tbl td { padding: 4px 6px; }

    /* Heatmap */
    .hm-cell { min-height: 20px; }
    .hm-spot { font-size: 0.6rem; }

    /* Prefs panel — stack */
    .prefs-grid { flex-direction: column; }
    .mode-buttons { grid-template-columns: 1fr 1fr; }
    .drive-inputs { grid-template-columns: 1fr 1fr; }

    /* Trip planner */
    .trip-day-selector { gap: 4px; }
    .trip-day-check { font-size: 0.72rem; padding: 4px 8px; }
    .trip-slot { padding: 10px 12px; }

    /* Session log */
    .session-stats { grid-template-columns: repeat(2, 1fr); }
    .session-log-top { flex-direction: column; gap: 4px; }
    .session-log-time { margin-left: 0; }

    /* Board selector */
    .board-sel-btn { padding: 5px 10px; font-size: 0.7rem; }

    /* Chat panel — full screen on mobile */
    #chat-panel {
        width: 100vw !important;
        height: 60vh !important;
        right: 0 !important;
        bottom: 60px !important;
        border-radius: 12px 12px 0 0 !important;
    }

    /* OB Now */
    .ob-now-section { padding: 16px; }
    .ob-now-surf { font-size: 1.3rem; }

    /* Daylight bar */
    .daylight-labels { font-size: 0.6rem; }

    /* Quiver */
    .quiver-add-form { flex-direction: column; }
    .quiver-add-form input, .quiver-add-form select { min-width: 100%; }

    /* Sun/sunset ratings */
    .sun-rating-grid, .spectator-grid { grid-template-columns: 1fr !important; }

    /* Score rubric */
    .rubric-scale { flex-wrap: wrap; }
}

@media (max-width: 768px) {
    .day-summary { grid-template-columns: repeat(3, 1fr) !important; }
    .ob-now-grid { gap: 8px; }
    .wind-bar-col { min-width: 16px; }
    #chat-panel {
        width: 340px !important;
        right: 10px !important;
    }
}

/* ===== ★ HERO ANSWER ===== */
/* Hero card — horizontal layout: score left, info right */
.hero-answer {
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    transition: all 0.4s ease;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    position: relative;
    overflow: hidden;
}
.hero-answer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    pointer-events: none;
}
.hero-epic { background: linear-gradient(135deg, rgba(13, 51, 32, 0.85), rgba(26, 92, 58, 0.8)); border-color: rgba(61, 217, 160, 0.3); }
.hero-epic::before { background: linear-gradient(90deg, transparent, rgba(61, 217, 160, 0.3), transparent); }
.hero-good { background: linear-gradient(135deg, rgba(15, 41, 66, 0.85), rgba(22, 58, 95, 0.8)); border-color: rgba(61, 232, 212, 0.25); }
.hero-good::before { background: linear-gradient(90deg, transparent, rgba(61, 232, 212, 0.25), transparent); }
.hero-meh { background: var(--glass-bg); border-color: var(--glass-border); }
.hero-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.hero-score > span:first-child {
    font-size: 2.4rem;
    font-weight: 700;
    font-family: var(--font-mono);
    line-height: 1;
}
.hero-sl-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.hero-right { flex: 1; min-width: 0; }
.hero-headline {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
}
.hero-detail {
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.hero-action {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent-teal);
    margin-top: 3px;
}
.hero-why-toggle {
    font-size: 0.72rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 4px;
    font-family: var(--font-main);
}
.hero-why-toggle:hover { color: var(--text-secondary); }
.hero-why {
    display: none;
    margin-top: 8px;
    text-align: left;
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.6;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 8px;
}
.hero-why.open { display: block; }
.hero-why p { margin-bottom: 4px; }
.hero-why p:last-child { margin-bottom: 0; }
.hero-why strong { color: var(--text-primary); }
.hero-verdict { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,0.06); }

/* ===== ★ ACCURACY CHECK ===== */
.accuracy-check {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 12px;
    font-size: 0.72rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.acc-label { color: var(--text-muted); font-weight: 600; }
.acc-item { color: var(--text-secondary); }

/* ===== ★ CONDITION ALERTS ===== */
.condition-alerts { margin-bottom: 16px; }
.alert-triggered {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.82rem;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.alert-dismiss {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
}
.alert-add-btn {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
}
.alert-form {
    display: none;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 0;
    align-items: center;
}
.alert-form.open { display: flex; }

/* ===== ★ FRIENDS ===== */
.friends-list { margin-bottom: 10px; }
.friend-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
}
.friend-name { font-weight: 600; }
.friend-phone { color: var(--text-muted); font-size: 0.75rem; margin-left: auto; }

/* ===== SURF CAM GRID ===== */
.cam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 8px;
}
.cam-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cam-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-teal);
}
.cam-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-secondary);
}
.cam-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cam-card-live {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(220, 38, 38, 0.85);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    font-family: var(--font-mono);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}
.cam-card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px 4px;
}
.cam-card-name {
    font-weight: 600;
    font-size: 0.9rem;
}
.cam-card-score {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1.1rem;
}
.cam-card-link {
    display: block;
    padding: 6px 14px 12px;
    font-size: 0.72rem;
    color: var(--accent-teal);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.15s;
}
.cam-card-link:hover { opacity: 1; }
.cam-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== ★ LOADING SKELETONS ===== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-hover) 50%, var(--bg-elevated) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}
.skeleton-title { height: 32px; width: 60%; margin: 0 auto 12px; }
.skeleton-text { height: 16px; width: 80%; margin: 0 auto 8px; }
.skeleton-text.short { width: 50%; }
.skeleton-grid { height: 120px; width: 100%; }
.skeleton-card { height: 80px; width: 100%; margin-bottom: 8px; }
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== ★ SMOOTH TRANSITIONS ===== */
.day-content { transition: opacity 0.3s ease; }
.day-content.fade-out { opacity: 0.3; }
.spot-card { transition: all 0.3s ease; }
.hero-answer { transition: all 0.4s ease; }

@media (max-width: 480px) {
    .hero-answer { flex-direction: column; align-items: center; text-align: center; padding: 14px 16px; gap: 8px; }
    .hero-score { flex-direction: row; gap: 8px; }
    .hero-score > span:first-child { font-size: 2rem; }
    .hero-headline { font-size: 1.1rem; }
    .hero-detail { font-size: 0.75rem; }
    .hero-action { font-size: 0.72rem; }
    .alert-form { flex-direction: column; }
    .friend-card { flex-wrap: wrap; }
}

/* ===== DASHBOARD SESSION STATS + SURF CALENDAR ===== */
.dash-stats-wrap {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 16px;
}
.dash-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 6px;
}
.dash-stats-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}
.dash-stats-month {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.dash-stats-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.dash-stat {
    flex: 1;
    min-width: 70px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-md);
    padding: 10px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dash-stat-num {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-cyan);
    line-height: 1.1;
}
.dash-stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* Calendar heatmap */
.dash-calendar {
    position: relative;
}
.dash-cal-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.cal-months {
    position: relative;
    height: 16px;
    margin-bottom: 2px;
    margin-left: 18px;
}
.cal-months span {
    position: absolute;
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 500;
}
.cal-labels {
    display: none; /* hide on mobile, show on desktop */
}
.cal-grid {
    display: grid;
    grid-template-rows: repeat(7, 1fr);
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 2px;
    margin-left: 18px;
}
.cal-cell {
    aspect-ratio: 1;
    border-radius: 2px;
    min-width: 0;
    min-height: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: default;
}
.cal-cell {
    position: relative;
}
.cal-cell:hover {
    transform: scale(1.6);
    z-index: 10;
    box-shadow: 0 0 6px rgba(0,0,0,0.5);
}
.cal-cell:hover::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 16, 30, 0.95);
    color: #e0e8f0;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.68rem;
    white-space: nowrap;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    max-width: 280px;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
    z-index: 100;
}
.cal-cell:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(10, 16, 30, 0.95);
    pointer-events: none;
    z-index: 100;
}
.cal-empty {
    background: rgba(255,255,255,0.04);
}
.cal-surfed {
    background: #1a5c2a;
}
.cal-ok {
    background: #2d8a4e;
}
.cal-good {
    background: #3fb950;
}
.cal-epic {
    background: #56d364;
    box-shadow: 0 0 4px rgba(86,211,100,0.3);
}
.cal-future {
    opacity: 0.15;
}
.cal-today {
    outline: 2px solid var(--accent-cyan, #00e5ff);
    outline-offset: -1px;
    z-index: 1;
    box-shadow: 0 0 6px rgba(0,229,255,0.5);
}
.cal-today.cal-empty {
    background: rgba(0,229,255,0.15);
}

/* Legend */
.cal-legend {
    display: flex;
    align-items: center;
    gap: 3px;
    justify-content: flex-end;
    margin-top: 6px;
}
.cal-legend-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    margin: 0 3px;
}
.cal-legend-cell {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}
.cal-legend-cell:hover {
    transform: none;
    box-shadow: none;
}

@media (min-width: 600px) {
    .cal-labels {
        display: grid;
        grid-template-rows: repeat(7, 1fr);
        gap: 2px;
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 16px;
    }
    .cal-labels span {
        font-size: 0.55rem;
        color: var(--text-muted);
        display: flex;
        align-items: center;
    }
    .dash-stats-row { gap: 12px; }
    .dash-stat { padding: 12px 10px; }
    .dash-stat-num { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    .dash-stats-wrap { padding: 14px 14px; }
    .dash-stat { padding: 8px 6px; min-width: 60px; }
    .dash-stat-num { font-size: 1.15rem; }
    .dash-stat-label { font-size: 0.58rem; }
    .cal-cell { border-radius: 1.5px; }
}

/* ===== CAM LINKS ===== */
.cam-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 20px;
    color: var(--accent-teal);
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.cam-link:hover {
    background: rgba(6, 182, 212, 0.25);
    border-color: var(--accent-teal);
}
.cam-links-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.cam-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.cam-link-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-teal);
    color: var(--accent-teal);
}

/* ===== EMBEDDED CAMS ===== */
.cam-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.cam-embeds-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}
.cam-btns-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}
.cam-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #0a1628;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.2s;
}
.cam-btn:hover {
    border-color: var(--accent-teal);
    background: rgba(6, 182, 212, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.cam-btn-icon {
    font-size: 1.3rem;
}
.cam-btn-text {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}
.cam-btn-live {
    font-size: 0.68rem;
    font-weight: 700;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.03em;
}
.cam-btn:hover .cam-btn-live {
    background: rgba(239, 68, 68, 0.25);
}
@media (max-width: 480px) {
    .cam-btns-row { grid-template-columns: 1fr; gap: 8px; }
    .cam-btn { padding: 12px 14px; }
}
.cam-embed-card {
    background: #000000;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.cam-embed-card iframe,
.cam-embed-card img {
    background: #000000;
}
.cam-embed-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 6px 10px 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.cam-iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    display: block;
    border-radius: 0 0 var(--radius) var(--radius);
}
.cam-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 var(--radius) var(--radius);
}
.cam-still {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}
.cam-embed-card:hover .cam-still {
    transform: scale(1.03);
}
.cam-live-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.03em;
    pointer-events: none;
}
.cam-embed-card:hover .cam-live-badge {
    background: rgba(220, 38, 38, 1);
}
@media (max-width: 600px) {
    .cam-embeds-row { grid-template-columns: 1fr; }
}

/* ===== CROWD HEATMAP (Dashboard) ===== */
#dash-crowd-heatmap {
    margin-bottom: 16px;
}
.dash-heatmap-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.dash-heatmap-grid {
    display: grid;
    grid-template-columns: 100px repeat(6, 1fr);
    gap: 3px;
    align-items: center;
}
.hm-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 600;
    padding: 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hm-header {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-align: center;
    font-weight: 500;
}
.hm-cell {
    height: 22px;
    border-radius: 3px;
    opacity: 0.85;
    transition: opacity 0.15s;
    cursor: default;
}
.hm-cell:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ===== BUOY SPARKLINE ===== */
.buoy-trend {
    margin: 8px 0;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
    padding: 8px;
}
.buoy-trend-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 500;
}
.buoy-trend canvas {
    width: 100%;
    height: 60px;
}

/* ===== HOURLY TIMELINE ===== */
.hourly-timeline { margin: 12px 0; background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border-radius: 14px; padding: 14px 12px 10px; border: 1px solid var(--glass-border); }
.timeline-header { display: flex; justify-content: center; align-items: center; margin-bottom: 10px; }
.tl-spot-btns { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.tl-spot-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); color: rgba(148,163,184,0.8); font-size: 0.68rem; padding: 4px 10px; border-radius: 14px; cursor: pointer; transition: all 0.2s; font-weight: 500; letter-spacing: 0.01em; }
.tl-spot-btn:hover { background: rgba(255,255,255,0.1); color: var(--text-primary, #e2e8f0); }
.tl-spot-btn.active { background: rgba(56,189,248,0.15); color: #7dd3fc; border-color: rgba(56,189,248,0.3); font-weight: 600; }

.tl-section { margin-bottom: 2px; }
.tl-section-label { font-size: 0.6rem; font-weight: 700; color: rgba(148,163,184,0.5); margin-bottom: 0; letter-spacing: 0.08em; text-transform: uppercase; }
.tl-section-label .tl-unit { font-weight: 400; opacity: 0.6; margin-left: 2px; }

.tl-chart-wrap { width: 100%; overflow: hidden; }
.tl-svg { width: 100%; height: auto; display: block; }
.tl-svg-val { font-size: 8px; fill: rgba(148,163,184,0.6); font-family: -apple-system, system-ui, sans-serif; }

.tl-time-row { display: flex; justify-content: space-around; margin-bottom: 2px; padding: 0 1px; }
.tl-time { font-size: 0.58rem; color: rgba(148,163,184,0.45); flex: 1; text-align: center; font-weight: 500; }
.tl-time-win { color: rgba(45,212,191,0.8); font-weight: 700; }
@media (max-width: 480px) { .tl-time-alt { font-size: 0; } }

.tl-legend { display: flex; gap: 10px; justify-content: center; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,0.03); }
.tl-legend-item { font-size: 0.58rem; color: rgba(148,163,184,0.5); display: flex; align-items: center; gap: 3px; }
.tl-legend-dot { width: 6px; height: 6px; border-radius: 1.5px; flex-shrink: 0; }
.tl-legend-swatch { width: 12px; height: 6px; border-radius: 1.5px; background: rgba(45,212,191,0.1); border: 1px solid rgba(45,212,191,0.2); flex-shrink: 0; }

/* Hourly timeline click overlay */
.tl-click-row { display: flex; position: relative; margin-top: -4px; }
.tl-click-cell { flex: 1; height: 32px; cursor: pointer; border-radius: 4px; transition: background 0.15s; }
.tl-click-cell:hover { background: rgba(255,255,255,0.04); }
.tl-click-cell.active { background: rgba(45,212,191,0.08); border-bottom: 2px solid var(--accent-teal, #06b6d4); }

/* Hour detail tooltip */
.tl-hour-detail { background: var(--card-bg, #111827); border: 1px solid var(--accent-teal, #06b6d4); border-radius: 12px; padding: 12px 16px; margin-top: 8px; animation: fadeIn 0.15s; }
.tl-detail-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.tl-detail-time { font-weight: 700; font-size: 0.85rem; color: var(--text-primary, #e2e8f0); }
.tl-detail-score { font-weight: 800; font-size: 1rem; font-family: var(--font-mono); }
.tl-detail-badge { font-size: 0.55rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; color: #111; text-transform: uppercase; }
.tl-detail-close { margin-left: auto; background: none; border: none; color: var(--text-muted); font-size: 1rem; cursor: pointer; padding: 2px 6px; border-radius: 4px; }
.tl-detail-close:hover { background: rgba(255,255,255,0.1); }
.tl-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.tl-detail-item { display: flex; justify-content: space-between; align-items: center; }
.tl-detail-label { font-size: 0.7rem; color: var(--text-muted, #94a3b8); text-transform: uppercase; }
.tl-detail-val { font-size: 0.78rem; font-weight: 600; color: var(--text-primary, #e2e8f0); }
.tl-detail-breakdown { display: block; width: 100%; margin-top: 10px; padding: 6px; background: rgba(45,212,191,0.06); border: 1px solid rgba(45,212,191,0.15); border-radius: 6px; color: var(--accent-teal, #06b6d4); font-size: 0.7rem; font-weight: 600; cursor: pointer; text-align: center; }
.tl-detail-breakdown:hover { background: rgba(45,212,191,0.12); }

/* ===== 3-DAY OUTLOOK ===== */
.three-day-outlook { margin: 8px 0; }
.outlook-strip { display: flex; gap: 8px; }
.outlook-day {
    flex: 1; background: var(--glass-bg); backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border); border-radius: 12px;
    padding: 12px 8px; text-align: center; cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative; overflow: hidden;
    animation: cardReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.outlook-day:nth-child(1) { animation-delay: 0.08s; }
.outlook-day:nth-child(2) { animation-delay: 0.14s; }
.outlook-day:nth-child(3) { animation-delay: 0.20s; }
.outlook-day:nth-child(4) { animation-delay: 0.26s; }
.outlook-day:nth-child(5) { animation-delay: 0.32s; }
.outlook-day::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
    pointer-events: none;
}
.outlook-day.outlook-epic::before { background: linear-gradient(135deg, rgba(61, 217, 160, 0.12), rgba(61, 232, 212, 0.06)); opacity: 1; }
.outlook-day.outlook-good::before { background: linear-gradient(135deg, rgba(61, 232, 212, 0.1), rgba(91, 156, 246, 0.05)); opacity: 1; }
.outlook-day.outlook-fair::before { background: linear-gradient(135deg, rgba(240, 192, 64, 0.08), rgba(232, 138, 61, 0.04)); opacity: 1; }
.outlook-day.outlook-poor::before { background: linear-gradient(135deg, rgba(232, 84, 84, 0.06), rgba(232, 84, 84, 0.02)); opacity: 1; }
.outlook-day > * { position: relative; z-index: 1; }
.outlook-day:hover { border-color: var(--accent-teal, #06b6d4); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.outlook-day.outlook-sel { border-color: var(--accent-teal, #06b6d4); background: rgba(6, 182, 212, 0.08); box-shadow: 0 0 0 1px rgba(61, 232, 212, 0.15), var(--glow-teal); }
.outlook-label { font-size: 0.7rem; font-weight: 600; color: var(--text-muted, #94a3b8); text-transform: uppercase; margin-bottom: 4px; }
.outlook-score { font-size: 1.4rem; font-weight: 800; line-height: 1.1; }
.outlook-badge { display: inline-block; font-size: 0.55rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; color: #fff; margin: 4px 0; text-transform: uppercase; }
.outlook-spot { font-size: 0.65rem; font-weight: 500; color: var(--text-secondary, #cbd5e1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.outlook-surf { font-size: 0.6rem; color: var(--text-muted, #94a3b8); }

/* ===== SPLIT-DAY HERO ===== */
.hero-split { display: flex; gap: 12px; margin: 8px 0; }
.hero-split-session { flex: 1; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.04); padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border, rgba(255,255,255,0.06)); }
.hero-split-label { font-size: 0.65rem; font-weight: 700; color: var(--accent-teal, #06b6d4); text-transform: uppercase; min-width: 24px; }
.hero-split-spot { font-weight: 700; font-size: 0.85rem; white-space: nowrap; }
.hero-split-detail { font-size: 0.72rem; color: var(--text-muted, #94a3b8); flex: 1; }
.hero-split-score { font-size: 1.1rem; font-weight: 800; }
.hero-sl-badge.mini { font-size: 0.5rem; padding: 1px 5px; }

/* ===== SIDEBAR PERSONAL SCORE ===== */
.sd-peak { font-size: 0.55rem; color: var(--text-muted, #94a3b8); opacity: 0.7; }

/* ===== MOBILE POLISH ===== */
@media (max-width: 600px) {
    .dash-heatmap-grid { grid-template-columns: 70px repeat(6, 1fr); }
    .hm-label { font-size: 0.6rem; }
    .cam-links-row { gap: 6px; }
    .cam-link-btn { padding: 6px 10px; font-size: 0.68rem; }
    /* Minimum 44px touch targets (Apple HIG) */
    .day-tab { min-height: 44px; }
    .nav-item { min-height: 44px; padding: 10px 12px; }
    .collapsible-toggle { min-height: 44px; display: flex; align-items: center; }
    /* Responsive improvements */
    .outlook-strip { gap: 4px; }
    .outlook-day { padding: 8px 4px; }
    .outlook-score { font-size: 1.1rem; }
    .outlook-spot { font-size: 0.58rem; }
    .hero-split { flex-direction: column; gap: 6px; }
    .tl-spot-btn { font-size: 0.62rem; padding: 3px 7px; }
    .tl-section-label { font-size: 0.55rem; }
    .tl-svg-val { font-size: 7px; }
    .tl-time { font-size: 0.5rem; }
    .tl-legend { gap: 6px; }
    .tl-legend-item { font-size: 0.5rem; }
}

/* Chat typing indicator */
.chat-typing .typing-dots span {
    animation: typingBounce 1.4s infinite;
    display: inline-block;
    font-weight: 800;
    font-size: 1.3em;
}
.chat-typing .typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing .typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* Loading skeleton pulse — consolidated */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 48px 24px;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.loading-state .loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent-teal);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loading-overlay .loading-brand {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.loading-overlay .loading-spinner {
    width: 80px;
    height: 40px;
    position: relative;
    overflow: hidden;
}
.loading-overlay .loading-spinner::before,
.loading-overlay .loading-spinner::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 160px;
    height: 160px;
    border-radius: 42%;
    animation: waveRoll 3s linear infinite;
}
.loading-overlay .loading-spinner::before {
    left: -40px;
    background: rgba(61, 232, 212, 0.15);
    animation-duration: 3s;
}
.loading-overlay .loading-spinner::after {
    left: -30px;
    background: rgba(61, 217, 160, 0.12);
    animation-duration: 3.5s;
    animation-delay: -0.5s;
}
@keyframes waveRoll {
    0%   { transform: translateY(35%) rotate(0deg); }
    100% { transform: translateY(35%) rotate(360deg); }
}
.loading-overlay .loading-status {
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    animation: loadPulse 2s ease-in-out infinite;
}
@keyframes loadPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ============================================================
   COMPASS ROSE — Swell Direction Visualization
   ============================================================ */
.compass-rose {
    width: 64px; height: 64px;
    position: relative;
    border-radius: 50%;
    background: rgba(14, 22, 40, 0.6);
    border: 1.5px solid rgba(34, 211, 238, 0.2);
    flex-shrink: 0;
}
.compass-arrow {
    position: absolute; top: 50%; left: 50%;
    width: 4px; height: 28px;
    background: linear-gradient(to top, var(--accent-teal), var(--accent-green));
    border-radius: 2px;
    transform-origin: bottom center;
    transform: translate(-50%, -100%) rotate(0deg);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.compass-label {
    position: absolute; font-size: 0.5rem; color: var(--text-muted);
    font-weight: 600; letter-spacing: 0.5px;
}
.compass-label.n { top: 2px; left: 50%; transform: translateX(-50%); }
.compass-label.s { bottom: 2px; left: 50%; transform: translateX(-50%); }
.compass-label.e { right: 4px; top: 50%; transform: translateY(-50%); }
.compass-label.w { left: 4px; top: 50%; transform: translateY(-50%); }
.compass-meta { font-size: 0.7rem; color: var(--text-secondary); margin-top: 4px; text-align: center; }

/* ============================================================
   MINI TIDE CURVE — Dashboard
   ============================================================ */
.mini-tide-wrap {
    position: relative;
    height: 48px;
    margin-top: 8px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.mini-tide-wrap canvas {
    width: 100%; height: 100%;
}
.mini-tide-now {
    position: absolute; top: 0; bottom: 0; width: 2px;
    background: var(--accent-teal);
    box-shadow: 0 0 6px var(--accent-teal);
    z-index: 2;
}
.mini-tide-dot {
    position: absolute; width: 8px; height: 8px;
    background: var(--accent-teal);
    border: 2px solid var(--bg-card);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

/* ============================================================
   WIND SPARKLINE
   ============================================================ */
.wind-spark-wrap {
    height: 32px;
    position: relative;
    margin-top: 6px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.wind-spark-wrap canvas {
    width: 100%; height: 100%;
}
.wind-spark-label {
    position: absolute; bottom: 2px; right: 4px;
    font-size: 0.6rem; color: var(--text-muted);
}

/* ============================================================
   DAWN PATROL MODE
   ============================================================ */
.dawn-patrol-overlay {
    position: fixed; inset: 0; z-index: 10000;
    background: #000;
    color: #fff;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 32px;
    text-align: center;
    animation: fadeIn 0.4s ease;
}
.dawn-patrol-overlay .dp-spot {
    font-size: 2.5rem; font-weight: 800;
    color: var(--accent-teal);
    margin-bottom: 8px;
    font-family: 'Syne', sans-serif;
}
.dawn-patrol-overlay .dp-score {
    font-size: 4rem; font-weight: 900;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-green));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    line-height: 1;
}
.dawn-patrol-overlay .dp-board {
    font-size: 1.3rem; margin-top: 16px;
    color: var(--text-secondary);
}
.dawn-patrol-overlay .dp-conditions {
    display: flex; gap: 24px; margin-top: 24px;
    font-size: 1.1rem;
}
.dawn-patrol-overlay .dp-cond-item {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.dawn-patrol-overlay .dp-cond-val {
    font-size: 1.5rem; font-weight: 700; color: #fff;
}
.dawn-patrol-overlay .dp-cond-label {
    font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 1px;
}
.dawn-patrol-overlay .dp-drive {
    margin-top: 24px; font-size: 1rem; color: var(--text-muted);
}
.dawn-patrol-overlay .dp-close {
    position: absolute; top: 20px; right: 20px;
    background: none; border: none; color: var(--text-muted);
    font-size: 1.5rem; cursor: pointer;
}
.dawn-patrol-overlay .dp-close:hover { color: #fff; }

/* ============================================================
   SWELL MODEL COMPARISON
   ============================================================ */
.model-compare {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
    margin-top: 12px;
}
.model-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 12px; text-align: center;
}
.model-card-source {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-muted); margin-bottom: 6px;
}
.model-card-val {
    font-size: 1.4rem; font-weight: 700; color: var(--accent-teal);
}
.model-card-detail {
    font-size: 0.75rem; color: var(--text-secondary); margin-top: 4px;
}
.model-confidence {
    text-align: center; margin-top: 8px; padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem; font-weight: 600;
}
.model-confidence.high { background: rgba(34, 197, 94, 0.15); color: var(--accent-green); }
.model-confidence.medium { background: rgba(240, 192, 64, 0.15); color: var(--accent-yellow); }
.model-confidence.low { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); }

/* ============================================================
   ACCURACY TRACKER
   ============================================================ */
.accuracy-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem; font-weight: 600;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    color: var(--accent-teal);
}
.accuracy-pct { font-size: 0.9rem; font-weight: 800; }

/* ============================================================
   SESSION REPLAY
   ============================================================ */
.session-replay {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 16px; margin-top: 12px;
}
.session-replay-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px;
}
.session-replay-title {
    font-size: 0.9rem; font-weight: 700;
}
.replay-conditions {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.replay-cond {
    text-align: center; padding: 8px;
    border-radius: var(--radius-sm);
    background: rgba(14, 22, 40, 0.5);
}
.replay-cond-val { font-size: 1rem; font-weight: 700; }
.replay-cond-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; margin-top: 2px; }

/* ============================================================
   STINSON BEACH SPOT CARD
   ============================================================ */
/* Uses existing .spot-card styles, no extra needed */

/* ============================================================
   WEBCAM CARD BACKGROUNDS
   ============================================================ */
.spot-card-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0.12;
    border-radius: inherit;
    filter: blur(2px);
    z-index: 0;
    pointer-events: none;
}
.spot-card { position: relative; overflow: hidden; }
.spot-card > * { position: relative; z-index: 1; }

/* Dawn patrol nav button */
.dp-nav-btn {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(34, 197, 94, 0.15));
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: var(--accent-teal);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem; font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s, border-color 0.2s;
}
.dp-nav-btn:hover {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.25), rgba(34, 197, 94, 0.25));
    border-color: var(--accent-teal);
}

/* ===== ONBOARDING MODAL ===== */
#onboarding-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 8, 16, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInPanel 0.4s ease;
}
.onboarding-modal {
    background: linear-gradient(135deg, rgba(12, 24, 48, 0.95), rgba(16, 32, 56, 0.95));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 36px 32px;
    max-width: 440px;
    width: 90%;
    animation: cardReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.onboarding-header {
    text-align: center;
    margin-bottom: 24px;
}
.onboarding-header h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-green));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.onboarding-header p {
    color: var(--text-muted);
    font-size: 0.8rem;
}
.onboard-field {
    margin-bottom: 16px;
}
.onboard-field label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.onboard-field input[type="text"],
.onboard-field input[type="number"],
.onboard-field select {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.85rem;
    width: 100%;
    transition: border-color 0.2s;
}
.onboard-field input:focus, .onboard-field select:focus {
    border-color: var(--accent-teal);
    outline: none;
}
.board-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.board-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s;
}
.board-check:hover {
    background: rgba(255,255,255,0.04);
    border-color: var(--border);
}
.board-check input[type="checkbox"] {
    accent-color: var(--accent-teal);
    width: 16px;
    height: 16px;
}
.onboarding-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
}
.ob-submit {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-green));
    color: #0a1628;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: var(--font-main);
    transition: transform 0.2s, box-shadow 0.2s;
}
.ob-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(61, 232, 212, 0.3);
}
.ob-skip {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 8px;
    font-family: var(--font-main);
}
.ob-skip:hover { color: var(--text-secondary); }

/* ===== SHARE CARD MODAL ===== */
#share-card-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 8, 16, 0.85);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInPanel 0.3s ease;
}
.share-card {
    background: linear-gradient(135deg, #0c1e34, #122d48);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 28px 24px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    animation: cardReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.share-card-score {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-mono);
    line-height: 1;
}
.share-card-verdict {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 3px 10px;
    border-radius: 6px;
    display: inline-block;
    margin: 8px 0 12px;
    color: #fff;
}
.share-card-spot {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.share-card-detail {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.share-card-url {
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-top: 12px;
    font-family: var(--font-mono);
}
.share-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    justify-content: center;
}
.share-card-actions button {
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.2s;
}
.share-card-actions button:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent-teal);
}
.share-card-actions button.share-primary {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-green));
    color: #0a1628;
    border: none;
}

/* ===== DASHBOARD HEADER ===== */
.dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}
.dash-greeting {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}
.dash-greeting strong {
    color: var(--text-primary);
    font-weight: 700;
}
@media (max-width: 480px) {
    .dash-header { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
}

/* ===== HELP TIP ===== */
.help-tip {
    background: rgba(61, 232, 212, 0.08);
    border: 1px solid rgba(61, 232, 212, 0.2);
    border-radius: 12px;
    padding: 12px 40px 12px 16px;
    margin-bottom: 12px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    animation: cardReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.help-tip strong {
    color: var(--accent-teal);
}
.help-tip-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
}

/* ===== GLOBAL POLISH ENHANCEMENTS ===== */

/* Smoother default transitions on interactive elements */
.nav-item, .sidebar-day, .compare-card, .cam-btn, .log-session-btn, .im-going-btn {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Subtle glow on the day-rec icon */
.day-rec-icon {
    animation: gentleFloat 3s ease-in-out infinite;
}
@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
}

/* Better compare card hover */
.compare-card {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.compare-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Chat send button glow */
.chat-send:hover {
    box-shadow: 0 0 16px rgba(61, 232, 212, 0.3);
}

/* Spot card stagger on page load */
.spot-card {
    animation: cardReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
#card-nob    { animation-delay: 0.05s; }
#card-rodeo  { animation-delay: 0.1s; }
#card-bolinas { animation-delay: 0.15s; }
#card-stinson { animation-delay: 0.2s; }
#card-sob    { animation-delay: 0.25s; }
#card-fortpoint { animation-delay: 0.3s; }

/* Mobile: subtle haptic-like feedback on day swipe */
@media (max-width: 900px) {
    .main-content {
        will-change: transform;
    }
    .outlook-strip {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .outlook-strip::-webkit-scrollbar { display: none; }
}

/* Score popup improvements */
.score-popup {
    animation: cardReveal 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Better loading brand with gradient text */
.loading-overlay .loading-brand {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
