* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0071e3;
    --primary-light: #2997ff;
    --primary-dark: #005bb5;
    --teal: #34c759;
    --secondary: #8e8e93;
    --success: #34c759;
    --warning: #ff9500;
    --danger: #ff3b30;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-tertiary: #e8e8ed;
    --text-primary: #1d1d1f;
    --text-secondary: #8e8e93;
    --border-color: #d2d2d7;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.06), 0 12px 40px rgba(0, 0, 0, 0.04);
    --radius-sm: 8px;
    --radius: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrollbar - minimal Apple-style */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.3); }
* { -webkit-tap-highlight-color: transparent; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Inter, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.47;
    letter-spacing: -0.01em;
    overscroll-behavior: none;
    -webkit-tap-highlight-color: transparent;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
}

/* Scrollbars - minimal, Apple-like */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.25); }

/* Focus - accessible ring, no jarring outline */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
    z-index: 100;
    flex-shrink: 0;
}

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

/* Logo + brand grouped together */
.header-identity {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

/* Brand block (title + tagline) */
.header-brand {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}

.header-tagline {
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.85;
    line-height: 1.2;
}

.header-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.header h1 {
    font-family: 'Plus Jakarta Sans', Inter, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.game-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: rgba(0, 113, 227, 0.08);
    border: 1px solid rgba(0, 113, 227, 0.2);
    border-radius: var(--radius);
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    min-height: 36px;
    padding: 0.5rem 0.7rem;
    transition: all 0.25s var(--ease);
}
.game-btn:hover {
    background: rgba(0, 113, 227, 0.12);
    border-color: rgba(0, 113, 227, 0.35);
}
.game-btn-label { white-space: nowrap; }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
        min-height: 40px;
    padding: 0.5rem;
}

/* Alert / bell button */
.alert-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: rgba(0, 113, 227, 0.08);
    border: 1px solid rgba(0, 113, 227, 0.2);
    border-radius: var(--radius);
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    min-height: 36px;
    padding: 0.5rem 0.9rem;
    transition: all 0.25s var(--ease);
}
.alert-btn:hover {
    background: rgba(0, 113, 227, 0.12);
    border-color: rgba(0, 113, 227, 0.35);
}
.alert-btn.active {
    background: rgba(0, 113, 227, 0.12);
    border-color: var(--primary);
}
.alert-btn-label {
    white-space: nowrap;
}

.header-stats {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}
.stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}
/* "data age" uses smaller value text since it's verbose */
.stat-updated-value {
    font-size: 0.85rem;
}

.stat-label {
    font-size: 0.6rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* ── Fishing score bar — floats over the map top-center ─────── */
.fishing-score-bar {
    position: absolute;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 450;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.65rem 0.6rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
    border-radius: 2rem;
    border: 1.5px solid rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: var(--text-secondary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.13);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: auto;
}
.fishing-score-bar.hidden { display: none; }
.fishing-score-best  { background: rgba(220,255,240,0.97); color: #065f46; border-color: rgba(16,185,129,0.35); }
.fishing-score-good  { background: rgba(255,247,220,0.97); color: #92400e; border-color: rgba(245,158,11,0.35); }
.fishing-score-fair  { background: rgba(255,255,255,0.96); }
[data-theme="dark"] .fishing-score-bar   { background: rgba(22,34,64,0.95); border-color: rgba(255,255,255,0.12); color: var(--text-secondary); }
[data-theme="dark"] .fishing-score-best  { background: rgba(16,185,129,0.18); color: #6ee7b7; border-color: rgba(16,185,129,0.35); }
[data-theme="dark"] .fishing-score-good  { background: rgba(245,158,11,0.15); color: #fcd34d; border-color: rgba(245,158,11,0.3); }
.fsb-dot    { opacity: 0.3; }
.fsb-moon   { font-size: 0.9rem; font-weight: 600; }
.fsb-rating { font-weight: 700; }
.fsb-sun    { opacity: 0.85; }
.fsb-species { opacity: 0.75; }
.fsb-close {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.1rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0,0,0,0.09);
    border: none;
    color: inherit;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
}
.fsb-close:hover { background: rgba(0,0,0,0.18); }
[data-theme="dark"] .fsb-close { background: rgba(255,255,255,0.12); }
[data-theme="dark"] .fsb-close:hover { background: rgba(255,255,255,0.22); }
@media (max-width: 768px) {
    .fsb-species, .fsb-dot-hide-sm, .fsb-hide-sm { display: none; }
    .fishing-score-bar { top: 0.5rem; font-size: 0.74rem; padding: 0.45rem 0.5rem 0.45rem 0.85rem; gap: 0.4rem; }
    .fsb-close { width: 22px; height: 22px; }
}

/* Main Content */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* Sidebar */
.sidebar {
    width: 340px;
    background: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 50;
}

.sidebar-header {
    display: none;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h2 {
    font-family: 'Plus Jakarta Sans', Inter, sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
        min-height: 40px;
}

.search-section {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.search-section label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.search-section input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.search-section input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.search-results {
    margin-top: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.search-result-item {
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
        min-height: 40px;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: var(--border-color);
}

.search-result-name {
    font-weight: 600;
    font-size: 0.875rem;
}

.search-result-info {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.filter-section {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 0.625rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.filter-group small {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
        min-height: 40px;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

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

.btn-all-nearby {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 2px solid var(--primary);
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-all-nearby:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

.btn-all-nearby:active {
    transform: translateY(0);
}

/* Results Section */
.results-section {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.results-section h3 {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.results-section h3 span {
    color: var(--primary);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.results-header h3 { margin: 0; }
.sort-nearby {
    font-size: 0.8rem;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}
.preset-chips {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}
.preset-chip {
    font-size: 0.8rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-primary);
    cursor: pointer;
    min-height: 40px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s ease;
}
.preset-chip:hover {
    background: var(--bg-tertiary);
    color: var(--primary);
    border-color: var(--primary);
}
.preset-chip[data-preset="week"],
.preset-chip[data-preset-recent="week"] {
    border-color: rgba(5, 150, 105, 0.4);
    background: rgba(5, 150, 105, 0.06);
}
.preset-chip[data-preset="week"]:hover,
.preset-chip[data-preset-recent="week"]:hover {
    background: rgba(5, 150, 105, 0.12);
    color: var(--success);
}

.results-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}
.results-tab {
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}
.results-tab:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.results-tab.active { background: var(--primary); color: white; border-color: var(--primary); }

.hatchery-list {
    flex: 1;
    overflow-y: auto;
}
.hatchery-card {
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    border-left: 4px solid var(--primary);
}
.hatchery-name { font-weight: 700; color: var(--primary); margin-bottom: 0.35rem; }
.hatchery-stats { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.25rem; }
.hatchery-species { font-size: 0.75rem; color: var(--text-primary); margin-bottom: 0.25rem; }
.hatchery-lakes { font-size: 0.75rem; color: var(--text-secondary); line-height: 1.4; }

.hatchery-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--primary);
    text-decoration: none;
}
.hatchery-link:hover { text-decoration: underline; }

.offline-banner {
    background: var(--warning);
    color: #1c1917;
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}
.offline-banner.hidden { display: none; }

/* Install app banner */
.install-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: 0.85rem;
    box-shadow: 0 2px 12px rgba(0, 113, 227, 0.25);
    position: relative;
}
.install-banner.hidden { display: none; }
.install-banner-text { flex: 1; }
.install-banner-btn {
    flex-shrink: 0;
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
}
.install-banner-btn:hover { background: white; }
.install-banner-dismiss {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}
.install-banner-dismiss:hover { color: white; }
.btn-sm { padding: 0.35rem 0.65rem; font-size: 0.8rem; }
.info-header { position: relative; }

/* Maps actions: copy coords + open in Google Maps — prominent on mobile */
.maps-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.btn-maps {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
        min-height: 40px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-copy-coords {
    background: var(--primary);
    color: white;
}
.btn-copy-coords:hover, .btn-copy-coords:active {
    background: #1a5276;
}
.btn-open-maps {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-open-maps:hover, .btn-open-maps:active {
    background: var(--border-color);
}
.maps-label {
    width: 100%;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}
.maps-hint {
    width: 100%;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0.25rem 0 0;
}

.nearby-list {
    flex: 1;
    overflow-y: auto;
}

.nearby-item {
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 0.6rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    min-height: 40px;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.nearby-item:hover {
    background: var(--border-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.nearby-item.recent {
    border-left-color: var(--success);
    background: rgba(5, 150, 105, 0.06);
}

.nearby-item.medium {
    border-left-color: var(--warning);
}

.nearby-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.nearby-item-name {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.nearby-item-distance {
    font-size: 0.7rem;
    color: white;
    background: var(--primary);
    padding: 0.125rem 0.5rem;
    border-radius: 1rem;
    white-space: nowrap;
}

.nearby-item-details {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.nearby-item-date {
    font-size: 0.7rem;
    color: var(--success);
    font-weight: 500;
    margin-top: 0.25rem;
}

/* ── HOT badge on recently stocked list items ───────────────── */
.nearby-hot-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.38rem;
    margin-left: 0.3rem;
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.4;
    animation: hotBadgePop 0.4s var(--ease) both;
}
@keyframes hotBadgePop {
    from { transform: scale(0.7); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
[data-theme="dark"] .nearby-hot-badge {
    background: rgba(16,185,129,0.2);
    color: #6ee7b7;
    border-color: rgba(16,185,129,0.4);
}


.loading-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-align: center;
    padding: 2rem 1rem;
}
.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-secondary);
}
.empty-state-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}
.empty-state-title {
    font-family: 'Plus Jakarta Sans', Inter, sans-serif;
    font-weight: 600;
    color: var(--text-primary);
}
.empty-state p { margin: 0.5rem 0; }
.empty-state-hint { font-size: 0.8rem; color: var(--text-secondary); opacity: 0.9; }

/* Map Container */
.map-container {
    flex: 1;
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
    background: #e5e7eb;
}

.dark-tiles {
    filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

.map-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.map-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-primary);
    cursor: pointer;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
}

.map-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
}

.map-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: opacity 0.3s;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

/* Pull to refresh (mobile) */
.pull-to-refresh {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
    z-index: 1101;
    transform: translateY(-100%);
    transition: transform 0.2s ease;
}
.pull-to-refresh.ready .pull-to-refresh-icon { color: var(--primary); }
.pull-to-refresh.refreshing .pull-to-refresh-icon { animation: spin 1s linear infinite; }
.pull-to-refresh-icon { font-size: 1.25rem; color: var(--text-secondary); }
.pull-to-refresh-text { font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); }
@media (min-width: 769px) { .pull-to-refresh { display: none; } }

/* Weather in lake popup */
.weather-section {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
}
.weather-section h3 {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.weather-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
}
.weather-temp { font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.weather-desc { font-size: 0.9rem; color: var(--text-primary); }
.weather-wind { font-size: 0.85rem; color: var(--text-secondary); }
.weather-loading { font-size: 0.85rem; color: var(--text-secondary); margin: 0; }

/* License CTA */
.license-cta {
    display: block;
    margin-top: 1rem;
    padding: 0.6rem 0.85rem;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    color: var(--primary);
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border: 1px solid #bae6fd;
    transition: all 0.2s ease;
}

.license-cta:hover {
    background: linear-gradient(135deg, #bae6fd 0%, #e0f2fe 100%);
    border-color: var(--primary);
}

/* Fishing tips in info panel */
.fishing-tips {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    font-size: 0.85rem;
}

.fishing-tips h3 {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.fishing-tips ul {
    margin: 0;
    padding-left: 1rem;
}

.fishing-tips li { margin: 0.25rem 0; }

/* Rules & Access section */
/* Rules for this lake (cached, daily refresh) */
.rules-for-lake {
    margin-top: 1rem;
}

.rules-for-lake .rules-card {
    padding: 1.15rem 1.35rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, var(--bg-secondary) 100%);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.rules-for-lake-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.85rem 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.rules-for-lake-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--primary);
    border-radius: 2px;
}

.rules-general-list {
    margin: 0 0 1rem 0;
    padding: 0 0 0 1.25rem;
    list-style: none;
    color: var(--text-primary);
    line-height: 1.55;
}

.rules-general-list li {
    position: relative;
    margin: 0.5rem 0;
    padding-left: 0.35rem;
}

.rules-general-list li::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0.55em;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.8;
}

.rules-general-p {
    margin: 0.4rem 0;
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 0.85rem;
}

.rules-emergency-block {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.rules-emergency-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 0.5rem 0;
}

.rules-emergency-list {
    margin: 0;
    padding-left: 1.1rem;
    list-style: none;
}

.rules-emergency-list li {
    margin: 0.4rem 0;
    position: relative;
    line-height: 1.4;
}

.rules-emergency-list li::before {
    content: '→';
    position: absolute;
    left: -1rem;
    color: var(--primary);
    font-size: 0.75rem;
}

.rules-emergency-list a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
}

.rules-emergency-list a:hover {
    text-decoration: underline;
}

.rules-updated {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin: 1rem 0 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

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

.rules-access-section {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    font-size: 0.85rem;
}

.rules-access-section h3 {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.rules-access-hint {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.rules-access-links {
    margin: 0;
    padding-left: 1rem;
    list-style: none;
}

.rules-access-links li {
    margin: 0.35rem 0;
}

.rules-access-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.rules-access-links a:hover {
    text-decoration: underline;
}

/* Info Panel */
.info-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1500;
    max-height: 50vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 1rem 1rem 0 0;
}

.info-panel.active {
    transform: translateY(0);
    border-top: 0.5px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08);
}

/* Desktop: floating lake card only while open — avoids layout fighting base .info-panel */
@media (min-width: 1024px) {
    .info-panel.anchored-desktop.active {
        left: auto;
        right: auto;
        bottom: auto;
        width: min(480px, calc(100vw - 24px));
        max-height: min(74vh, 700px);
        border: 1px solid var(--border-color);
        border-radius: 14px;
        box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
        /* top/left set inline by JS from map coords */
    }

    .info-panel.anchored-desktop.active .info-panel-handle {
        display: none;
    }
}

.info-panel-handle {
    flex-shrink: 0;
    width: 36px;
    height: 4px;
    margin: 0.5rem auto 0;
    background: var(--border-color);
    border-radius: 2px;
}

.info-panel-header {
    flex-shrink: 0;
    position: relative;
    padding: 1rem 1.5rem 0.5rem;
}

.info-panel-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 1.5rem 1.5rem;
}

/* Info panel overlay - tap to close (mobile) */
.info-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1499;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.info-panel-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0;
    z-index: 10;
    touch-action: manipulation;
    background: var(--bg-tertiary);
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    min-height: 40px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.info-header {
    margin-bottom: 1rem;
    padding-right: 2rem;
}

.info-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.info-item {
    background: var(--bg-tertiary);
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.info-item-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-item-value {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.info-item-value.highlight {
    color: var(--primary);
}

/* Share with a friend */
.share-with-friend {
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.06) 0%, rgba(41, 151, 255, 0.04) 100%);
    border: 1px solid rgba(0, 113, 227, 0.15);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.share-with-friend-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    margin: 0 0 0.35rem 0;
}

.share-with-friend-hook {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
    line-height: 1.35;
}

.share-with-friend-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-share {
    flex: 1;
    min-width: 100px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}

.btn-share-email {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-share-email:hover {
    background: var(--bg-tertiary);
}

.btn-share-text {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #fff;
}

.btn-share-text:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Leaflet Popup */
.leaflet-popup-content-wrapper {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
}

.leaflet-popup-tip {
    background: var(--bg-primary);
}

.leaflet-popup-content {
    margin: 0.75rem 1rem;
}

.popup-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.popup-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.popup-info strong {
    color: var(--text-primary);
}

.popup-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* ── Pulsing marker rings ───────────────────────────────────── */

@keyframes markerPulse {
    0%   { transform: translate(-50%, -50%) scale(1);   opacity: 0.75; }
    70%  { transform: translate(-50%, -50%) scale(2.6); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(2.6); opacity: 0; }
}

.marker-ring {
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: markerPulse 2s ease-out infinite;
}

/* Hot (≤3 days): vivid green double ring */
.marker-ring-hot {
    border: 2.5px solid #10b981;
}
.marker-ring-2 {
    animation-delay: 0.9s;
}

/* Fresh (4–7 days): single amber ring, slower, subtler */
.marker-ring-fresh {
    border: 2px solid #f59e0b;
    animation-duration: 2.8s;
    animation-name: markerPulse;
}

/* Hot dot slightly elevated shadow */
.marker-dot-hot {
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.55) !important;
}

/* Marker Cluster */
.marker-cluster-small {
    background-color: rgba(16, 185, 129, 0.4);
}
.marker-cluster-small div {
    background-color: rgba(16, 185, 129, 0.9);
}

.marker-cluster-medium {
    background-color: rgba(245, 158, 11, 0.4);
}
.marker-cluster-medium div {
    background-color: rgba(245, 158, 11, 0.9);
}

.marker-cluster-large {
    background-color: rgba(37, 99, 235, 0.4);
}
.marker-cluster-large div {
    background-color: rgba(37, 99, 235, 0.9);
}

.marker-cluster {
    background-clip: padding-box;
    border-radius: 50%;
}
.marker-cluster div {
    width: 30px;
    height: 30px;
    margin-left: 5px;
    margin-top: 5px;
    text-align: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    color: white;
    line-height: 30px;
}

/* Mobile FAB - hidden, using header button instead */
.mobile-fab {
    display: none;
}

/* Recently stocked button (mobile) - single pill at bottom */
.recently-stocked-btn {
    display: none;
}
.recently-stocked-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1399;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.recently-stocked-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.recently-stocked-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 0.5rem 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1400;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 1rem 1rem 0 0;
}
.recently-stocked-panel.active {
    transform: translateY(0);
}
.recently-stocked-handle {
    flex-shrink: 0;
    width: 36px;
    height: 4px;
    margin: 0.5rem auto 0;
    background: var(--border-color);
    border-radius: 2px;
}
.recently-stocked-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-right: 2.5rem;
}
.recently-stocked-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}
.recently-stocked-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.75rem;
}
.recently-stocked-toolbar .sort-nearby {
    flex: 1;
    min-width: 120px;
}
.recently-stocked-chips {
    display: flex;
    gap: 0.5rem;
}
.recently-stocked-panel .nearby-list {
    max-height: 50vh;
    overflow-y: auto;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .header {
        padding: 0.5rem 1rem;
    }

    .header h1 {
        font-size: 1rem;
    }

    /* Hide tagline on narrow phones to save space */
    .header-tagline {
        display: none;
    }

    .header-content {
        flex-direction: row-reverse;
        gap: 0.45rem;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem 0.65rem;
        border-radius: 8px;
        background: rgba(0, 113, 227, 0.08);
        border: 1.5px solid rgba(0, 113, 227, 0.2);
        color: var(--primary);
        font-size: 0.8rem;
        font-weight: 600;
        box-shadow: 0 1px 2px rgba(0, 113, 227, 0.06);
    }
    .menu-toggle:hover {
        background: rgba(0, 113, 227, 0.12);
        border-color: var(--primary);
        box-shadow: 0 2px 6px rgba(0, 113, 227, 0.12);
    }
    /* Mobile: show hamburger, hide funnel and text label */
    .menu-icon-hamburger { display: block; }
    .menu-icon-funnel    { display: none; }
    .menu-toggle-label   { display: none; }

    .game-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem 0.65rem;
        border-radius: 8px;
        background: rgba(0, 113, 227, 0.12);
        border: 1.5px solid rgba(0, 113, 227, 0.32);
        box-shadow: 0 1px 2px rgba(0, 113, 227, 0.08);
    }
    /* Icon-only on mobile */
    .game-btn-label   { display: none; }
    .alert-btn-label  { display: none; }
    .alert-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem 0.65rem;
        border-radius: 8px;
    }

    .header-stats {
        display: none;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 9999;
        background: var(--bg-primary);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-header {
        display: flex;
        position: sticky;
        top: 0;
        background: var(--bg-primary);
        z-index: 10;
        border-bottom: 1px solid var(--border-color);
    }

    .close-sidebar {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
    }

    .search-section {
        padding: 1rem;
    }

    .search-section input {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .filter-section {
        padding: 1rem;
    }

    .filter-group {
        margin-bottom: 1.25rem;
    }

    .filter-group select,
    .filter-group input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.875rem;
    }

    .filter-actions {
        flex-direction: column;
        gap: 0.75rem;
        padding-bottom: 1rem;
    }

    .btn {
        padding: 1rem;
        font-size: 1rem;
    }

    .results-section {
        padding: 1rem;
        max-height: 300px;
    }

    .results-section h3 {
        position: sticky;
        top: 0;
        background: var(--bg-primary);
        padding: 0.5rem 0;
        margin: -0.5rem 0 0.5rem 0;
    }

    .info-panel {
        left: 0;
        max-height: 60vh;
    }

    /* Close button: 44px tap target on mobile */
    .info-panel .close-btn,
    .recently-stocked-panel .close-btn {
        width: 44px;
        height: 44px;
        font-size: 1.75rem;
    }

    /* Recently stocked button - compact pill at bottom, far right */
    .recently-stocked-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        bottom: 1rem;
        left: auto;
        right: 1rem;
        z-index: 1100;
        padding: 0.5rem 1rem;
        min-height: 40px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        color: var(--primary);
        border: 1px solid rgba(0, 113, 227, 0.25);
        border-radius: 999px;
        font-size: 0.8rem;
        font-weight: 600;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.15s, box-shadow 0.15s;
    }
    .recently-stocked-btn:hover,
    .recently-stocked-btn:active {
        background: rgba(255, 255, 255, 1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }

    /* Maps section: obvious tap targets, full-width on phone */
    .maps-actions {
        flex-direction: column;
        margin-top: 1rem;
        gap: 0.6rem;
    }
    .maps-label {
        font-size: 0.75rem;
        margin-bottom: 0.35rem;
    }
    .maps-label {
        font-size: 0.75rem;
        margin-bottom: 0.35rem;
    }
    .btn-maps {
        width: 100%;
        min-height: 44px;
        font-size: 0.95rem;
        padding: 0.65rem 1rem;
    }
    .maps-hint {
        font-size: 0.8rem;
        margin-top: 0.35rem;
        line-height: 1.4;
        color: var(--text-primary);
        opacity: 0.9;
    }
    .maps-label {
        font-size: 0.75rem;
    }

    .map-controls {
        top: 0.75rem;
        right: 0.75rem;
    }

    .map-btn {
        width: 44px;
        height: 44px;
    }

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

    /* Hide results section on mobile sidebar - show only filters */
    .results-section {
        display: none;
    }
}

@media (max-width: 480px) {
    .info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .info-title {
        font-size: 1.1rem;
    }
}

/* ── Mobile accessibility / readability scale-up ───────────── */
@media (max-width: 768px) {

    /* Header title — keep it compact, one line */
    .header h1 { font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    /* Larger touch targets and text on icon buttons */
    .alert-btn, .game-btn, .theme-btn, .menu-toggle {
        min-width: 48px;
        min-height: 48px;
    }

    /* Sidebar filter labels and inputs */
    .filter-group label { font-size: 0.9rem; }
    .filter-group select,
    .filter-group input  { font-size: 16px; padding: 0.9rem; }
    .filter-group small  { font-size: 0.8rem; }
    .btn { font-size: 1.05rem; padding: 1rem; min-height: 50px; }

    /* Lake list items in sidebar and recently stocked panel */
    .nearby-item          { padding: 0.9rem 0.85rem; gap: 0.35rem; }
    .nearby-item-name     { font-size: 1rem; font-weight: 600; }
    .nearby-item-details  { font-size: 0.85rem; margin-top: 0.3rem; line-height: 1.5; }
    .nearby-item-date     { font-size: 0.8rem; }
    .nearby-item-distance { font-size: 0.78rem; padding: 0.2rem 0.5rem; }

    /* Recently stocked panel header */
    .recently-stocked-header h3 { font-size: 1.2rem; }

    /* "Recently stocked" pill button at bottom */
    .recently-stocked-btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
        min-height: 46px;
    }

    /* Info panel */
    .info-title  { font-size: 1.2rem; line-height: 1.3; }
    .info-panel .popup-info,
    .info-panel table { font-size: 0.9rem; }
    .info-panel td, .info-panel th { padding: 0.6rem 0.5rem !important; }

    /* Info panel close button — extra large for easy tapping */
    .info-panel .close-btn { width: 48px; height: 48px; font-size: 2rem; }

    /* Popup on map */
    .popup-title { font-size: 1rem; }
    .popup-info  { font-size: 0.85rem; line-height: 1.6; }
}

/* ============================================================
   Game Modal (Bobber tap)
   ============================================================ */

.game-modal-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.game-modal-overlay.hidden { display: none !important; }

.game-modal {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.25s var(--ease);
}

.game-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}
.game-modal-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.game-modal-body {
    padding: 1.25rem;
}

.game-instructions {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.game-play-btn, .game-again-btn {
    width: 100%;
    margin-bottom: 0.5rem;
}

.game-play {
    min-height: 240px;
    position: relative;
    display: block;
    border: 1px dashed rgba(0, 113, 227, 0.2);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(0,113,227,0.03), rgba(255,255,255,0.9));
    overflow: hidden;
}

.game-wait {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 1rem;
}

.game-fish {
    position: absolute;
    font-size: 2.8rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.2rem;
    width: 68px;
    height: 68px;
    line-height: 1;
    transition: transform 0.1s, filter 0.1s;
    animation: bobberBounce 0.6s ease infinite;
    touch-action: manipulation;
    user-select: none;
}
.game-fish:hover, .game-fish:focus {
    transform: scale(1.1);
    outline: none;
    filter: drop-shadow(0 0 6px rgba(0, 113, 227, 0.25));
}

@keyframes bobberBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.game-round {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    margin: 0.6rem 0 0.2rem 0;
}

.game-net-cast {
    position: absolute;
    transform: translate(-50%, -50%) scale(0.6);
    font-size: 2rem;
    line-height: 1;
    pointer-events: none;
    animation: netCast 0.32s ease-out forwards;
}

@keyframes netCast {
    0% { opacity: 0.2; transform: translate(-50%, -50%) scale(0.45); }
    35% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.35); }
}

.game-plus-one {
    position: absolute;
    transform: translate(-50%, -50%);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--success);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    pointer-events: none;
    animation: plusOneFloat 0.5s ease-out forwards;
}

@keyframes plusOneFloat {
    0% { opacity: 0; transform: translate(-50%, -40%) scale(0.85); }
    20% { opacity: 1; transform: translate(-50%, -55%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -95%) scale(1.05); }
}

.game-miss {
    position: absolute;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    font-weight: 700;
    color: #ef4444;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    pointer-events: none;
    animation: missFloat 0.42s ease-out forwards;
}

@keyframes missFloat {
    0% { opacity: 0; transform: translate(-50%, -35%) scale(0.85); }
    30% { opacity: 0.95; transform: translate(-50%, -45%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -70%) scale(0.95); }
}

.game-over {
    text-align: center;
    padding: 0.5rem 0;
}

.game-score-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0 0 0.25rem 0;
}

.game-score-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 1rem 0;
}

.game-submit {
    margin-bottom: 1rem;
}

.game-submit input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.game-offline-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.game-leaderboard {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.game-leaderboard h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 0.5rem 0;
}

.leaderboard-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
}

.leaderboard-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.leaderboard-rank {
    font-weight: 700;
    color: var(--primary);
    min-width: 1.5rem;
}

.leaderboard-name {
    flex: 1;
    color: var(--text-primary);
}

.leaderboard-score {
    font-weight: 600;
    color: var(--text-secondary);
}

.leaderboard-empty {
    color: var(--text-secondary);
    font-style: italic;
    padding: 0.5rem 0 !important;
}

.leaderboard-offline {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================================
   Subscribe Modal
   ============================================================ */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.open { display: flex; }

.modal {
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 24px 64px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.2s ease;
}

@keyframes modalIn {
    from { transform: translateY(20px) scale(0.98); opacity: 0; }
    to   { transform: translateY(0) scale(1);      opacity: 1; }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.modal-header h2 {
    font-family: 'Plus Jakarta Sans', Inter, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.modal-header-icon { font-size: 1.25rem; }

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
        min-height: 40px;
    line-height: 1;
    padding: 0.25rem;
}
.modal-close:hover { color: var(--text-primary); }

.modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modal-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.form-group input {
    padding: 0.6rem 0.75rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: border-color 0.15s;
}
.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

/* Chip grid for county/species selection */
.chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    max-height: 130px;
    overflow-y: auto;
    padding: 0.25rem 0;
}
.chip {
    padding: 0.3rem 0.7rem;
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: pointer;
        min-height: 40px;
    transition: all 0.12s;
    white-space: nowrap;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.modal-actions { display: flex; flex-direction: column; gap: 0.6rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-danger {
    background: white;
    border: 1.5px solid var(--danger);
    color: var(--danger);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
        min-height: 40px;
    transition: all 0.15s;
}
.btn-danger:hover { background: #fef2f2; }

.modal-feedback {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
}
.modal-feedback.success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.modal-feedback.error   { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.hidden { display: none !important; }

/* Mode tabs */
.sub-tabs {
    display: flex;
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 3px;
    gap: 3px;
}
.sub-tab {
    flex: 1;
    padding: 0.45rem 0;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    cursor: pointer;
        min-height: 40px;
    transition: all 0.15s;
}
.sub-tab.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Location row inside modal */
.location-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.location-status {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: monospace;
}
.location-status.has-location { color: var(--success); font-weight: 600; }

.btn-locate {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border: 1.5px solid var(--primary);
    border-radius: 8px;
    background: white;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
        min-height: 40px;
    white-space: nowrap;
    transition: all 0.15s;
}
.btn-locate:hover { background: #eff6ff; }
.btn-locate:disabled { opacity: 0.5; cursor: not-allowed; }

/* Radius slider */
.radius-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.radius-row input[type="range"] {
    flex: 1;
    accent-color: var(--primary);
    border: none;
    padding: 0;
}
#subRadiusVal {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    min-width: 3.5rem;
    text-align: right;
}

/* Email verify row */
.email-verify-row {
    display: flex;
    gap: 0.5rem;
}
.email-verify-row input {
    flex: 1;
}
.btn-verify {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
        min-height: 40px;
    white-space: nowrap;
    transition: opacity 0.15s;
}
.btn-verify:hover { opacity: 0.9; }
.btn-verify:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-verify.btn-full { width: 100%; margin-bottom: 0.75rem; }
.resend-link {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.8rem;
    cursor: pointer;
        min-height: 40px;
    padding: 4px 0;
    margin-top: 4px;
    text-decoration: underline;
}
.resend-link:hover { opacity: 0.7; }

/* Phone row */
.phone-row {
    display: flex;
    gap: 0.5rem;
}
.phone-row input {
    flex: 1;
}
.phone-row select {
    width: 140px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.85rem;
    background: var(--bg-primary);
    color: var(--text-primary);
}
.form-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 4px 0 0;
}

/* Schedule row */
.schedule-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.schedule-row select {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.85rem;
    background: var(--bg-primary);
    color: var(--text-primary);
}
.schedule-at, .schedule-tz {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
}
.schedule-tz {
    font-weight: 600;
    font-size: 0.75rem;
    opacity: 0.6;
}

/* Expiry info banner */
.sub-expiry-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: #1e40af;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.sub-expiry-info.warn {
    background: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

/* ============================================================
   Theme toggle button
   ============================================================ */

.theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: rgba(0, 113, 227, 0.08);
    border: 1px solid rgba(0, 113, 227, 0.2);
    border-radius: var(--radius);
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    min-height: 36px;
    padding: 0.5rem 0.7rem;
    transition: all 0.25s var(--ease);
}
.theme-btn:hover {
    background: rgba(0, 113, 227, 0.12);
    border-color: rgba(0, 113, 227, 0.35);
}
.theme-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.theme-btn-label { white-space: nowrap; }

@media (max-width: 768px) {
    .theme-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem 0.65rem;
        border-radius: 8px;
        background: rgba(0, 113, 227, 0.08);
        border: 1.5px solid rgba(0, 113, 227, 0.2);
    }
    .theme-btn-label { display: none; }
}

/* ============================================================
   Dark theme — CSS custom property overrides
   ============================================================ */

[data-theme="dark"] {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-tertiary: #1e2a4a;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --border-color: #2a3a5c;
    --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 2px 6px rgba(0,0,0,0.2);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.4), 0 12px 40px rgba(0,0,0,0.3);
    --primary: #2997ff;
    --primary-light: #60b8ff;
    --primary-dark: #1a7fd4;
}

/* Scrollbars */
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); }

/* Header glassmorphism */
[data-theme="dark"] .header {
    background: rgba(26, 26, 46, 0.88);
    border-bottom-color: rgba(255,255,255,0.06);
}

/* Sidebar sticky header & results h3 */
[data-theme="dark"] .sidebar-header { background: var(--bg-primary); }
[data-theme="dark"] .results-section h3 { background: var(--bg-primary); }

/* Map background */
[data-theme="dark"] #map { background: #0f0f1a; }

/* Map control buttons */
[data-theme="dark"] .map-btn {
    background: rgba(22, 33, 62, 0.96);
    color: var(--text-primary);
    border-color: var(--border-color);
}
[data-theme="dark"] .map-btn:hover { background: var(--bg-tertiary); }
[data-theme="dark"] .map-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Loading overlay */
[data-theme="dark"] .loading-overlay { background: rgba(26, 26, 46, 0.96); }

/* Pull-to-refresh */
[data-theme="dark"] .pull-to-refresh {
    background: rgba(26, 26, 46, 0.96);
    border-bottom-color: var(--border-color);
}

/* Lunar card */
/* Recently stocked pill button (mobile) */
[data-theme="dark"] .recently-stocked-btn {
    background: rgba(22, 33, 62, 0.96);
    border-color: rgba(41, 151, 255, 0.3);
    color: var(--primary);
}
[data-theme="dark"] .recently-stocked-btn:hover,
[data-theme="dark"] .recently-stocked-btn:active {
    background: var(--bg-tertiary);
}

/* Info panel & recently stocked panel */
[data-theme="dark"] .info-panel { box-shadow: 0 -8px 32px rgba(0,0,0,0.4); }
[data-theme="dark"] .recently-stocked-panel { box-shadow: 0 -4px 20px rgba(0,0,0,0.4); }

/* License CTA */
[data-theme="dark"] .license-cta {
    background: linear-gradient(135deg, rgba(41,151,255,0.12) 0%, rgba(41,151,255,0.07) 100%);
    border-color: rgba(41,151,255,0.25);
    color: var(--primary);
}
[data-theme="dark"] .license-cta:hover {
    background: linear-gradient(135deg, rgba(41,151,255,0.2) 0%, rgba(41,151,255,0.13) 100%);
    border-color: var(--primary);
}

/* Rules card */
[data-theme="dark"] .rules-for-lake .rules-card {
    background: linear-gradient(135deg, rgba(30,42,74,0.95) 0%, var(--bg-secondary) 100%);
    border-color: var(--border-color);
}
[data-theme="dark"] .rules-emergency-block { border-top-color: rgba(255,255,255,0.07); }
[data-theme="dark"] .rules-updated { border-top-color: rgba(255,255,255,0.06); }

/* Leaflet popup */
[data-theme="dark"] .leaflet-popup-content-wrapper {
    background: var(--bg-secondary);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
[data-theme="dark"] .leaflet-popup-tip { background: var(--bg-secondary); }

/* Marker glow on dark tiles */
[data-theme="dark"] .leaflet-marker-icon {
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.35));
}
[data-theme="dark"] .leaflet-div-icon {
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.35));
}

/* Marker clusters on dark tiles */
[data-theme="dark"] .marker-cluster-small { background-color: rgba(16,185,129,0.25); }
[data-theme="dark"] .marker-cluster-small div { background-color: rgba(16,185,129,0.85); }
[data-theme="dark"] .marker-cluster-medium { background-color: rgba(245,158,11,0.25); }
[data-theme="dark"] .marker-cluster-medium div { background-color: rgba(245,158,11,0.85); }
[data-theme="dark"] .marker-cluster-large { background-color: rgba(41,151,255,0.25); }
[data-theme="dark"] .marker-cluster-large div { background-color: rgba(41,151,255,0.85); }

/* Modal backgrounds */
[data-theme="dark"] .modal { box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 24px 80px rgba(0,0,0,0.3); }
[data-theme="dark"] .game-modal { box-shadow: 0 4px 24px rgba(0,0,0,0.5); }

/* Modal feedback banners */
[data-theme="dark"] .modal-feedback.success {
    background: rgba(21,128,61,0.18);
    color: #4ade80;
    border-color: rgba(74,222,128,0.3);
}
[data-theme="dark"] .modal-feedback.error {
    background: rgba(220,38,38,0.18);
    color: #f87171;
    border-color: rgba(248,113,113,0.3);
}

/* Sub expiry info */
[data-theme="dark"] .sub-expiry-info {
    background: rgba(30,64,175,0.18);
    border-color: rgba(96,165,250,0.25);
    color: #93c5fd;
}
[data-theme="dark"] .sub-expiry-info.warn {
    background: rgba(120,53,15,0.25);
    border-color: rgba(253,230,138,0.25);
    color: #fcd34d;
}

/* Subscribe modal — mode tabs */
[data-theme="dark"] .sub-tab.active {
    background: var(--bg-tertiary);
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.35);
}

/* Btn locate */
[data-theme="dark"] .btn-locate {
    background: var(--bg-tertiary);
    border-color: var(--primary);
    color: var(--primary);
}
[data-theme="dark"] .btn-locate:hover { background: var(--bg-secondary); }

/* Btn danger */
[data-theme="dark"] .btn-danger {
    background: transparent;
    border-color: var(--danger);
    color: var(--danger);
}
[data-theme="dark"] .btn-danger:hover { background: rgba(255,59,48,0.1); }

/* Btn secondary */
[data-theme="dark"] .btn-secondary { color: var(--text-primary); }
[data-theme="dark"] .btn-all-nearby {
    background: color-mix(in srgb, var(--primary) 20%, transparent);
    border-color: var(--primary);
    color: #7ec8f5;
}
[data-theme="dark"] .btn-all-nearby:hover { background: var(--primary); color: #fff; }

/* Game play area */
[data-theme="dark"] .game-play {
    background: linear-gradient(180deg, rgba(41,151,255,0.07), rgba(22,33,62,0.92));
    border-color: rgba(41,151,255,0.2);
}
[data-theme="dark"] .game-plus-one { text-shadow: 0 1px 4px rgba(0,0,0,0.8); }
[data-theme="dark"] .game-miss { text-shadow: 0 1px 4px rgba(0,0,0,0.8); }

/* Leaderboard */
[data-theme="dark"] .leaderboard-list li { border-bottom-color: rgba(255,255,255,0.05); }

/* Share block */
[data-theme="dark"] .share-with-friend {
    background: linear-gradient(135deg, rgba(41,151,255,0.1) 0%, rgba(41,151,255,0.06) 100%);
    border-color: rgba(41,151,255,0.2);
}
[data-theme="dark"] .btn-share-email {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-primary);
}
[data-theme="dark"] .btn-share-email:hover { background: var(--bg-secondary); }

/* Theme button in dark mode */
[data-theme="dark"] .theme-btn {
    background: rgba(41,151,255,0.1);
    border-color: rgba(41,151,255,0.25);
}
[data-theme="dark"] .theme-btn:hover {
    background: rgba(41,151,255,0.18);
    border-color: rgba(41,151,255,0.4);
}

/* Menu toggle in dark mode */
[data-theme="dark"] .menu-toggle {
    background: rgba(41,151,255,0.1);
    border-color: rgba(41,151,255,0.25);
}

/* Alert / game buttons in dark mode */
[data-theme="dark"] .alert-btn,
[data-theme="dark"] .game-btn {
    background: rgba(41,151,255,0.1);
    border-color: rgba(41,151,255,0.25);
}
[data-theme="dark"] .alert-btn:hover,
[data-theme="dark"] .game-btn:hover {
    background: rgba(41,151,255,0.18);
    border-color: rgba(41,151,255,0.4);
}

/* Search input */
[data-theme="dark"] .search-section input {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}
[data-theme="dark"] .search-section input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(41,151,255,0.2);
}

/* Filter inputs & selects */
[data-theme="dark"] .filter-group select,
[data-theme="dark"] .filter-group input {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}
[data-theme="dark"] .filter-group select:focus,
[data-theme="dark"] .filter-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(41,151,255,0.2);
}
[data-theme="dark"] .sort-nearby {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Form inputs in modals */
[data-theme="dark"] .form-group input {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}
[data-theme="dark"] .form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(41,151,255,0.2);
}

/* Schedule selects */
[data-theme="dark"] .schedule-row select,
[data-theme="dark"] .phone-row select {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

/* Game submit input */
[data-theme="dark"] .game-submit input {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

/* Chips */
[data-theme="dark"] .chip {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-secondary);
}
[data-theme="dark"] .chip:hover { border-color: var(--primary); color: var(--primary); }
[data-theme="dark"] .chip.selected { background: var(--primary); border-color: var(--primary); color: white; }

/* Preset chips */
[data-theme="dark"] .preset-chip {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-secondary);
}
[data-theme="dark"] .preset-chip[data-preset="week"],
[data-theme="dark"] .preset-chip[data-preset-recent="week"] {
    border-color: rgba(52,199,89,0.3);
    background: rgba(52,199,89,0.08);
}
[data-theme="dark"] .preset-chip:hover {
    background: var(--bg-secondary);
    color: var(--primary);
    border-color: var(--primary);
}

/* Install banner */
[data-theme="dark"] .install-banner {
    background: linear-gradient(135deg, #1a3a6e 0%, #0d2045 100%);
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
[data-theme="dark"] .install-banner-btn {
    background: rgba(255,255,255,0.12);
    color: #e0e0e0;
}
[data-theme="dark"] .install-banner-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* Nearby item (list cards) */
[data-theme="dark"] .nearby-item { background: var(--bg-secondary); }
[data-theme="dark"] .nearby-item:hover { background: var(--bg-tertiary); }
[data-theme="dark"] .nearby-item.recent { background: rgba(52,199,89,0.08); }

/* Search result items */
[data-theme="dark"] .search-result-item { background: var(--bg-tertiary); }
[data-theme="dark"] .search-result-item:hover { background: var(--bg-secondary); }

/* Hatchery cards */
[data-theme="dark"] .hatchery-card { background: var(--bg-tertiary); }

/* Info panel body items */
[data-theme="dark"] .info-item { background: var(--bg-tertiary); }

/* Weather / fishing tips / rules sections */
[data-theme="dark"] .weather-section,
[data-theme="dark"] .fishing-tips,
[data-theme="dark"] .rules-access-section { background: var(--bg-secondary); }

/* Results tabs */
[data-theme="dark"] .results-tab { background: var(--bg-secondary); }
[data-theme="dark"] .results-tab:hover { background: var(--bg-tertiary); color: var(--text-primary); }
[data-theme="dark"] .results-tab.active { background: var(--primary); color: white; }

/* ============================================================
   WDFW badge
   ============================================================ */

.wdfw-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-size: 0.75rem;
}

.wdfw-badge-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}
.wdfw-badge-link:hover { text-decoration: underline; }
.wdfw-badge-link svg { flex-shrink: 0; }

.wdfw-badge-sep { color: var(--border-color); }

.wdfw-badge-note {
    color: var(--text-secondary);
    white-space: nowrap;
}

[data-theme="dark"] .wdfw-badge { background: var(--bg-tertiary); }

/* ============================================================
   Header tagline — dark mode
   ============================================================ */

[data-theme="dark"] .header-tagline { color: var(--text-secondary); }

/* ============================================================
   Coach-marks (first-visit tour)
   ============================================================ */

/*
 * The overlay provides the dark backdrop.
 * A child .coach-spotlight div is positioned via JS over the target
 * element using getBoundingClientRect() — this avoids stacking-context
 * issues (e.g. header's backdrop-filter creates its own context).
 */
.coach-overlay {
    position: fixed;
    inset: 0;
    z-index: 19000;
    background: rgba(0, 0, 0, 0.58);
    pointer-events: auto; /* block all underlying interactions */
}
/* global .hidden { display:none !important } handles show/hide */

/* Spotlight: a glowing border frame at the target's screen position */
.coach-spotlight {
    position: fixed;
    z-index: 19001;
    pointer-events: none;
    border: 2.5px solid rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow:
        0 0 0 4px rgba(41, 151, 255, 0.55),
        0 0 18px rgba(41, 151, 255, 0.35);
    transition: top 0.22s ease, left 0.22s ease,
                width 0.22s ease, height 0.22s ease,
                border-radius 0.22s ease, opacity 0.2s;
}

.coach-card {
    position: fixed;
    bottom: 5.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(360px, calc(100vw - 2rem));
    background: #ffffff;
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(0,0,0,0.28), 0 2px 8px rgba(0,0,0,0.14);
    padding: 1.25rem 1.5rem 1rem;
    z-index: 19002;
    animation: coachCardIn 0.25s var(--ease);
}

@keyframes coachCardIn {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.coach-step-dots {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}
.coach-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d1d5db;
    transition: background 0.2s, transform 0.2s;
}
.coach-dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

.coach-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1d1d1f;
    line-height: 1.55;
    margin: 0 0 1.1rem 0;
}

.coach-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.coach-skip {
    background: none;
    border: none;
    color: #8e8e93;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.35rem 0;
    min-height: 40px;
    transition: color 0.15s;
}
.coach-skip:hover { color: #1d1d1f; }

.coach-next {
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.6rem 1.35rem;
    cursor: pointer;
    min-height: 40px;
    transition: background 0.18s;
    white-space: nowrap;
}
.coach-next:hover { background: var(--primary-dark); }
.coach-next.is-done { background: #34c759; }

/* Dark mode */
[data-theme="dark"] .coach-card {
    background: #1e2a4a;
    box-shadow: 0 8px 32px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.35);
}
[data-theme="dark"] .coach-text { color: #e0e0e0; }
[data-theme="dark"] .coach-skip { color: #a0a0a0; }
[data-theme="dark"] .coach-skip:hover { color: #e0e0e0; }
[data-theme="dark"] .coach-dot { background: #2a3a5c; }

/* Mobile tweaks */
@media (max-width: 768px) {
    .coach-card {
        bottom: 4.5rem;
        width: calc(100vw - 2rem);
    }
    /* Hide the "data age" stat — not enough header space on mobile */
    #statUpdated { display: none; }
    .header-stats { gap: 1rem; }
}

/* ============================================================
   Water-type icons in results list
   ============================================================ */

.wt-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--text-secondary);
    opacity: 0.65;
    line-height: 0;
}

.wt-lake  { color: #0ea5e9; }   /* sky blue  — lakes / ponds / reservoirs */
.wt-river { color: #06b6d4; }   /* cyan      — rivers / creeks            */

[data-theme="dark"] .wt-lake  { color: #38bdf8; opacity: 0.75; }
[data-theme="dark"] .wt-river { color: #22d3ee; opacity: 0.75; }

/* ============================================================
   Weekly summary card
   ============================================================ */

.ws {
    position: fixed;
    inset: 0;
    z-index: 1600;
    pointer-events: none;
}

/* Transparent backdrop — captures outside clicks */
.ws-backdrop {
    position: absolute;
    inset: 0;
    pointer-events: auto;
}

/* Desktop: floating card at bottom-left */
.ws-card {
    position: absolute;
    bottom: 1.75rem;
    left: 1.75rem;
    width: 360px;
    max-height: calc(100vh - 10rem);
    overflow-y: auto;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.08);
    pointer-events: auto;
    animation: wsIn 0.3s var(--ease);
}

@keyframes wsIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ws-handle { display: none; }   /* desktop: no handle */

.ws-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--bg-tertiary);
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
    z-index: 1;
}
.ws-close:hover { background: var(--border-color); color: var(--text-primary); }

.ws-body { padding: 1.25rem 1.25rem 1rem; }

/* Heading row */
.ws-heading {
    font-family: 'Plus Jakarta Sans', Inter, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.9rem 0;
    padding-right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Spot list */
.ws-spots { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.85rem; }

.ws-spot {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.65rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.15s;
    border-left: 3px solid transparent;
}
.ws-spot:hover { background: var(--bg-tertiary); }
.ws-spot.ws-spot-recent { border-left-color: var(--success); }

.ws-spot-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.ws-spot-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.ws-spot-dist {
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    background: var(--primary);
    padding: 0.1rem 0.45rem;
    border-radius: 1rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.ws-spot-date {
    font-size: 0.7rem;
    color: var(--success);
    font-weight: 500;
}

/* Lunar best-days row */
.ws-lunar {
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0.6rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    margin-bottom: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    line-height: 1.4;
}
.ws-lunar strong { color: var(--text-primary); }

/* "See all" button */
.ws-see-all {
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s;
    text-align: center;
    min-height: 40px;
}
.ws-see-all:hover { background: var(--primary-dark); }

/* Empty state */
.ws-empty {
    text-align: center;
    padding: 1rem 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ── Mobile: bottom sheet ─────────────────────────────────── */
@media (max-width: 768px) {
    .ws-backdrop {
        background: rgba(0, 0, 0, 0.35);
    }

    .ws-card {
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 82vh;
        border-radius: 1rem 1rem 0 0;
        border-bottom: none;
        animation: wsSlideUp 0.32s var(--ease);
        padding-bottom: env(safe-area-inset-bottom);
    }

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

    .ws-handle {
        display: block;
        width: 36px;
        height: 4px;
        background: var(--border-color);
        border-radius: 2px;
        margin: 0.6rem auto 0;
    }

    .ws-close {
        top: 0.85rem;
        right: 1rem;
        width: 32px;
        height: 32px;
    }

    .ws-body { padding: 0.5rem 1rem 1.25rem; }
    .ws-heading { font-size: 1rem; margin-bottom: 1rem; }
    .ws-spot { padding: 0.75rem; }
}

/* ── Dark mode ─────────────────────────────────────────────── */
[data-theme="dark"] .ws-card {
    box-shadow: 0 8px 32px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.3);
    border-color: var(--border-color);
}
[data-theme="dark"] .ws-backdrop { /* dark mode mobile backdrop */ }
@media (max-width: 768px) {
    [data-theme="dark"] .ws-backdrop { background: rgba(0,0,0,0.5); }
}

/* ============================================================
   Desktop scale-up — larger text and touch targets for readability
   ============================================================ */
@media (min-width: 769px) {

    /* Header */
    .header { padding: 0.9rem 1.75rem; }
    .header h1 { font-size: 1.45rem; }
    .header-tagline { font-size: 0.72rem; }
    .header-logo { width: 46px; height: 46px; }

    /* Stats bar */
    .stat-value { font-size: 1.35rem; }
    .stat-updated-value { font-size: 1rem; }
    .stat-label { font-size: 0.68rem; letter-spacing: 0.05em; }
    .header-stats { gap: 1.75rem; }

    /* Header buttons */
    .alert-btn, .game-btn, .theme-btn {
        font-size: 0.9rem;
        padding: 0.55rem 1.1rem;
        min-height: 40px;
        border-radius: var(--radius);
    }

    /* Sidebar */
    .sidebar { width: 340px; }
    .sidebar-header h2 { font-size: 1.25rem; }
    .filter-group label { font-size: 0.85rem; }
    .filter-group select,
    .filter-group input {
        font-size: 1rem;
        padding: 0.7rem 0.85rem;
    }
    .filter-group small { font-size: 0.78rem; }

    /* Lake list items */
    .nearby-item { padding: 0.9rem 1rem; }
    .nearby-item-name { font-size: 0.95rem; font-weight: 600; }
    .nearby-item-details { font-size: 0.85rem; margin-top: 0.3rem; }
    .nearby-item-date { font-size: 0.78rem; }
    .nearby-item-distance {
        font-size: 0.78rem;
        padding: 0.2rem 0.5rem;
    }

    /* Info panel */
    .info-panel { width: 480px; }

    /* Popup */
    .popup-title { font-size: 1.05rem; }
    .popup-info { font-size: 0.88rem; }
}

/* =========================================================
   Species & Hatchery modals
   ========================================================= */

.species-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 20000;
    align-items: flex-end;
    justify-content: center;
}
.species-modal.active { display: flex; }

.species-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.species-modal-sheet {
    position: relative;
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 1.2rem 1.2rem 0 0;
    width: 100%;
    max-width: 600px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 1.5rem 1.25rem 2rem;
    box-shadow: 0 -4px 32px rgba(0,0,0,0.25);
}

@media (min-width: 769px) {
    .species-modal { align-items: center; }
    .species-modal-sheet {
        border-radius: 1rem;
        max-height: 82vh;
        margin: auto;
    }
}

.species-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--bg-secondary);
    border: none;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.15s;
}
.species-modal-close:hover { background: var(--border-color); }

.species-loading {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.species-img-wrap {
    width: 100%;
    height: 220px;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 1rem;
    background: var(--bg-secondary);
}
.species-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.species-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.species-content { padding: 0 0.25rem; }

.species-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
    color: var(--text-primary);
}
.species-scientific {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0 0 0.75rem;
}
.species-description {
    font-size: 0.93rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.species-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 1rem;
}
.species-stat {
    background: var(--bg-secondary);
    border-radius: 0.6rem;
    padding: 0.65rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.species-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.species-stat-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.species-section {
    margin-bottom: 0.9rem;
}
.species-section h3 {
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    margin: 0 0 0.4rem;
}
.species-section p {
    font-size: 0.93rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
}

.species-bait-list {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.93rem;
    color: var(--text-primary);
    line-height: 1.8;
}

.species-regulations {
    background: #fff8e1;
    border-left: 3px solid #f9a825;
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 0.65rem 0.9rem;
    font-size: 0.88rem;
    color: #6d4c00;
    margin-bottom: 0.75rem;
}
[data-theme="dark"] .species-regulations {
    background: rgba(249,168,37,0.12);
    color: #ffd54f;
}

.species-wdfw-link {
    display: inline-block;
    font-size: 0.88rem;
    color: var(--primary);
    text-decoration: none;
    margin-top: 0.25rem;
}
.species-wdfw-link:hover { text-decoration: underline; }

/* Species / Hatchery chips in info panel */
.species-chip, .hatchery-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 0.2rem 0.7rem;
    font-size: 0.82rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: background 0.15s, border-color 0.15s;
    margin: 0.15rem 0.15rem 0 0;
}
.species-chip:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.hatchery-chip:hover { background: var(--bg-tertiary); }

.info-item-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
    display: block;
}

/* Hatchery modal specifics */
.hm-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.hm-icon { font-size: 2.5rem; line-height: 1; }
.hm-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
}
.hm-total {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
}

.hm-species-list { display: flex; flex-direction: column; gap: 0.4rem; }
.hm-species-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}
.hm-species-name { color: var(--text-primary); }
.hm-species-count { font-weight: 600; color: var(--primary); }

.hm-tap-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0 0 0.5rem;
}
.hm-lakes-list { display: flex; flex-direction: column; gap: 0.35rem; }
.hm-lake {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.88rem;
    transition: background 0.15s;
}
.hm-lake:hover { background: var(--bg-tertiary); }
.hm-lake-name { color: var(--text-primary); font-weight: 500; }
.hm-lake-county { font-size: 0.8rem; color: var(--text-secondary); }

/* =========================================================
   Push alert button (header)
   ========================================================= */

.push-alert-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
    cursor: pointer;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.push-alert-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}
.push-alert-btn.push-on {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #81c784;
}
[data-theme="dark"] .push-alert-btn.push-on {
    background: rgba(46,125,50,0.2);
    color: #81c784;
    border-color: #388e3c;
}
@media (max-width: 768px) {
    .push-alert-label { display: none; }
    .push-alert-btn { padding: 0.45rem 0.6rem; }
}

/* =========================================================
   Predicted next stocking in info panel
   ========================================================= */

.info-item-pred {
    background: linear-gradient(135deg, #f3e5f5 0%, #e8eaf6 100%);
    border-radius: 0.6rem;
    padding: 0.65rem 0.85rem;
}
[data-theme="dark"] .info-item-pred {
    background: linear-gradient(135deg, rgba(156,39,176,0.15) 0%, rgba(63,81,181,0.15) 100%);
}
.pred-soon .info-item-pred { background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%); }
[data-theme="dark"] .pred-soon .info-item-pred {
    background: linear-gradient(135deg, rgba(76,175,80,0.2) 0%, rgba(139,195,74,0.15) 100%);
}
.pred-medium .info-item-pred { background: linear-gradient(135deg, #fff8e1 0%, #fff3e0 100%); }
[data-theme="dark"] .pred-medium .info-item-pred {
    background: linear-gradient(135deg, rgba(255,193,7,0.15) 0%, rgba(255,152,0,0.12) 100%);
}
