/* AuroraVision Web - Aurora Dark Theme (Mobile App Style) */

:root {
    /* Aurora Colors - Match mobile app exactly */
    --aurora-cyan: #00ffcc;
    --aurora-green: #00ff88;
    --aurora-purple: #bb86fc;
    --aurora-pink: #ff6b9d;
    --aurora-orange: #ff9800;
    
    /* Dark Theme - Very dark like app */
    --bg-primary: #0a0a0f;
    --bg-secondary: #151520;
    --bg-card: #1a1a28;
    --bg-card-highlight: #20202e;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-dim: #64748b;
    --border-subtle: #2a2a38;
    
    /* Status Colors */
    --status-poor: #8b7355;
    --status-good: #00ff88;
    --status-excellent: #00ffcc;
    --status-indicator-green: #4ade80;
    --status-indicator-orange: #fb923c;
    --status-indicator-red: #ef4444;
}

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

/* Ensure script tags are never visible */
script { display: none !important; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

/* ============================================
   HEADER
============================================ */
.app-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--aurora-cyan), var(--aurora-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.5rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--aurora-cyan);
    transition: transform 0.2s, filter 0.2s;
    text-decoration: none;
}

.icon-btn:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px var(--aurora-cyan));
}

/* Language toggle button */
.lang-toggle {
    background: rgba(0, 255, 204, 0.1);
    border: 1px solid rgba(0, 255, 204, 0.4);
    color: var(--aurora-cyan);
    border-radius: 10px;
    padding: 0.28rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    letter-spacing: 0.03em;
    flex-shrink: 0;
    line-height: 1.4;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.lang-toggle:hover {
    background: rgba(0, 255, 204, 0.22);
    border-color: var(--aurora-cyan);
}

/* ============================================
   MAIN CONTENT
============================================ */
.main-content {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ============================================
   DOWNLOAD APP CARD
============================================ */
.download-app-card {
    background: linear-gradient(135deg, rgba(0,255,204,0.08) 0%, rgba(187,134,252,0.08) 100%);
    border: 1px solid rgba(0,255,204,0.25);
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.download-app-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.download-app-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #00ffcc;
    white-space: nowrap;
}

.download-app-sub {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.55);
}

.download-app-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.store-badge-link {
    display: block;
    transition: opacity 0.2s, transform 0.2s;
}

.store-badge-link:hover {
    opacity: 0.85;
    transform: scale(1.04);
}

.store-badge {
    height: 40px;
    width: auto;
    display: block;
    border-radius: 8px;
}

.google-play-badge {
    height: 44px;
}

.app-store-badge {
    height: 40px;
    background: #000;
    border-radius: 8px;
    padding: 2px;
}

/* ============================================
   LOCATION CARD
============================================ */
.location-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.location-icon {
    font-size: 2rem;
    color: var(--aurora-cyan);
}

.location-info {
    flex: 1;
}

.location-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.location-dropdown {
    width: 100%;
    background: var(--bg-primary);
    border: 2px solid var(--aurora-cyan);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--aurora-cyan);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.location-dropdown:hover {
    background: rgba(0, 255, 204, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
}

.location-dropdown:focus {
    outline: none;
    box-shadow: 0 0 30px rgba(0, 255, 204, 0.5);
}

.location-dropdown option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 0.5rem;
}

.gps-badge {
    background: rgba(0, 255, 204, 0.2);
    color: var(--aurora-cyan);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.location-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--aurora-cyan);
}

.location-coords {
    font-size: 0.875rem;
    color: var(--text-dim);
}

/* ============================================
   LIVE SCORE CARD (Big center card)
============================================ */
.live-score-card {
    background: linear-gradient(135deg, #1a2a3a 0%, #0f1824 100%);
    border: 2px solid rgba(0, 255, 204, 0.3);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 255, 204, 0.1);
}

.live-badge {
    display: inline-block;
    background: rgba(0, 255, 204, 0.2);
    color: var(--aurora-cyan);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.live-score-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--aurora-cyan);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.info-icon {
    opacity: 0.6;
    font-size: 1rem;
}

.live-score-value {
    font-size: 5rem;
    font-weight: 700;
    color: var(--aurora-cyan);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px rgba(0, 255, 204, 0.5);
}

.percent {
    font-size: 3rem;
}

.live-score-status {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.live-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.metric {
    text-align: center;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.metric-value.highlight {
    color: var(--aurora-green);
}

.aurora-power {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.aurora-power-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--aurora-green);
}

/* ============================================
   TIMELINE CARD (Bz/Speed Now)
============================================ */
.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1rem;
}

.timeline-header {
    display: flex;
    justify-content: space-around;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-dim);
}

.timeline-values {
    display: flex;
    justify-content: space-around;
}

.timeline-metric {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-icon {
    font-size: 1.5rem;
}

.timeline-val {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   SUN & MOON CARD
============================================ */
.sun-moon-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.5rem;
}

.sun-section, .moon-section {
    margin-bottom: 1.5rem;
}

.sun-section:last-child, .moon-section:last-child {
    margin-bottom: 0;
}

.sun-moon-card h3 {
    font-size: 1.125rem;
    color: var(--aurora-orange);
    margin-bottom: 1rem;
}

.moon-section h3 {
    color: var(--aurora-cyan);
}

.sun-moon-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.sun-moon-item {
    text-align: center;
}

.sun-moon-icon, .moon-icon, .moon-phase-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.sun-moon-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 0.25rem;
}

.sun-moon-time {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   SOLAR STORM WATCH
============================================ */
.solar-storm-card {
    background: linear-gradient(135deg, #1a2818 0%, #0f1810 100%);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
}

.solar-storm-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--aurora-green);
    margin-bottom: 1rem;
}

.storm-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

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

.status-indicator.green {
    background: var(--status-indicator-green);
    box-shadow: 0 0 10px var(--status-indicator-green);
}

.status-indicator.orange {
    background: var(--status-indicator-orange);
    box-shadow: 0 0 10px var(--status-indicator-orange);
}

.status-indicator.red {
    background: var(--status-indicator-red);
    box-shadow: 0 0 10px var(--status-indicator-red);
}

.storm-details h4 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.storm-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.storm-metric:last-child {
    border-bottom: none;
}

.metric-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* ============================================
   FORECAST FOR TONIGHT
============================================ */
.tonight-forecast-card {
    background: linear-gradient(135deg, #2a1a3a 0%, #1a1028 100%);
    border: 2px solid rgba(187, 134, 252, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
}

.tonight-forecast-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--aurora-purple);
    margin-bottom: 1rem;
}

.tonight-status {
    text-align: center;
    margin-bottom: 1.5rem;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    background: rgba(139, 115, 85, 0.3);
    color: var(--status-poor);
    border: 2px solid var(--status-poor);
}

.status-badge.good {
    background: rgba(0, 255, 136, 0.2);
    color: var(--status-good);
    border-color: var(--status-good);
}

.status-badge.excellent {
    background: rgba(0, 255, 204, 0.2);
    color: var(--status-excellent);
    border-color: var(--status-excellent);
}

.tonight-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.tonight-metric {
    text-align: center;
}

.tonight-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.tonight-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--aurora-purple);
    margin-bottom: 0.25rem;
}

.tonight-label {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* ============================================
   BEST SPOTS SECTION
============================================ */
.best-spots-section {
    margin: 1rem 0;
}

.best-spots-section h3 {
    font-size: 1.125rem;
    color: var(--aurora-green);
    margin-bottom: 1rem;
}

.best-spots-btn {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-primary);
}

.best-spots-btn:hover {
    background: var(--bg-card-highlight);
    border-color: var(--aurora-green);
    transform: translateY(-2px);
}

.best-spots-icon {
    font-size: 2rem;
    color: var(--aurora-green);
}

.best-spots-text {
    flex: 1;
    text-align: left;
}

.best-spots-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.best-spots-subtitle {
    font-size: 0.875rem;
    color: var(--text-dim);
}

.best-spots-arrow {
    font-size: 2rem;
    color: var(--text-dim);
}

/* ============================================
   NAVIGATION BUTTONS (Map & Forecast)
============================================ */
.nav-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.nav-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 255, 204, 0.2);
}

.map-btn {
    border-color: rgba(0, 255, 136, 0.3);
}

.map-btn:hover {
    border-color: var(--aurora-green);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, var(--bg-card) 100%);
}

.forecast-btn {
    border-color: rgba(187, 134, 252, 0.3);
}

.forecast-btn:hover {
    border-color: var(--aurora-purple);
    background: linear-gradient(135deg, rgba(187, 134, 252, 0.1) 0%, var(--bg-card) 100%);
}

.pro-btn {
    border-color: rgba(0, 255, 204, 0.3);
}

.pro-btn:hover {
    border-color: var(--aurora-cyan);
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.1) 0%, var(--bg-card) 100%);
}

.nightsky-btn {
    border-color: rgba(187, 134, 252, 0.3);
}

.nightsky-btn:hover {
    border-color: var(--aurora-purple);
    background: linear-gradient(135deg, rgba(187, 134, 252, 0.1) 0%, var(--bg-card) 100%);
}

.nav-btn-icon {
    font-size: 3rem;
}

.map-btn .nav-btn-icon {
    color: var(--aurora-green);
}

.forecast-btn .nav-btn-icon {
    color: var(--aurora-purple);
}

.pro-btn .nav-btn-icon {
    color: var(--aurora-cyan);
}

.nightsky-btn .nav-btn-icon {
    color: var(--aurora-purple);
}

.nav-btn-label {
    font-size: 1.125rem;
    font-weight: 600;
}

/* ============================================
   I SEE AURORA (SIGHTINGS)
============================================ */
.sightings-section {
    margin: 1rem 0;
}

.sightings-section h3 {
    font-size: 1.125rem;
    color: var(--aurora-purple);
    margin-bottom: 1rem;
}

.sightings-list {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1rem;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sighting-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-card-highlight);
    border-radius: 12px;
}

.sighting-icon {
    font-size: 1.5rem;
}

.sighting-info {
    flex: 1;
}

.sighting-location {
    font-weight: 600;
    color: var(--text-primary);
}

.sighting-time {
    font-size: 0.875rem;
    color: var(--text-dim);
}

.sightings-note {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

/* ============================================
   PRO DATA SECTION
============================================ */
.pro-data-section {
    margin: 1rem 0;
}

.pro-data-btn {
    width: 100%;
    background: linear-gradient(135deg, #2a1a3a 0%, #1a1028 100%);
    border: 1px solid rgba(187, 134, 252, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
}

.pro-data-btn:hover {
    background: linear-gradient(135deg, #3a2a4a 0%, #2a1838 100%);
    border-color: var(--aurora-purple);
    transform: translateY(-2px);
}

.pro-data-icon {
    font-size: 2rem;
    color: var(--aurora-purple);
}

.pro-data-text {
    flex: 1;
    text-align: left;
}

.pro-data-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pro-data-subtitle {
    font-size: 0.875rem;
    color: var(--text-dim);
}

.pro-data-arrow {
    font-size: 2rem;
    color: var(--text-dim);
}

/* ============================================
   FOOTER
============================================ */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    padding: 2rem 1rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.footer-section h4 {
    color: var(--aurora-cyan);
    margin-bottom: 0.75rem;
}

.footer-section p, .footer-section a {
    font-size: 0.875rem;
    color: var(--text-dim);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--aurora-cyan);
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
    width: fit-content;
}
.social-link:hover { transform: translateX(3px); color: inherit; }

.social-fb { color: #4f9cf9; }
.social-fb:hover { background: rgba(79,156,249,0.12); }
.social-ig { color: #e1306c; }
.social-ig:hover { background: rgba(225,48,108,0.12); }
.social-tt { color: rgba(255,255,255,0.85); }
.social-tt:hover { background: rgba(255,255,255,0.08); }

.footer-app-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.875rem;
    color: var(--text-dim);
}

.powered-by {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.powered-by-text {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.ice-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.ice-logo-link:hover { opacity: 1; }

.ice-logo-ice {
    font-size: 1rem;
    font-weight: 800;
    color: #2d9e38;
    font-style: italic;
    letter-spacing: -0.01em;
}

.ice-logo-globe {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.ice-logo-veflausnir {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #3a5a6a;
    text-transform: uppercase;
}

/* ============================================
   LOADING OVERLAY
============================================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-subtle);
    border-top-color: var(--aurora-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-overlay p {
    margin-top: 1rem;
    color: var(--text-secondary);
}

/* ============================================
   AD SLOTS
============================================ */
.ad-slot {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px dashed rgba(255,255,255,0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 60px;
}

.ad-slot-banner {
    min-height: 60px;
}

.ad-slot-rect {
    min-height: 260px;
}

.ad-slot ins, .ad-slot > * {
    display: block;
    width: 100%;
}

/* Sticky bottom ad bar */
.ad-sticky-bottom {
    position: fixed;
    bottom: 64px; /* above bottom nav */
    left: 0;
    right: 0;
    z-index: 900;
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    padding: 4px;
}

/* ============================================
   BOTTOM NAV BAR
============================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 40, 0.97);
    border-top: 1px solid var(--border-subtle);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: stretch;
    height: 64px;
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.65rem;
    font-weight: 500;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
    padding: 8px 0 6px;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--aurora-cyan);
}

.bottom-nav-icon {
    font-size: 1.4rem;
    line-height: 1;
}

/* ============================================
   RESPONSIVE - Mobile First
============================================ */

/* Padding so content isn't hidden behind sticky bars */
.main-content {
    padding-bottom: calc(1rem + 60px + 64px); /* content + ad + bottom nav */
}

@media (max-width: 480px) {
    .app-title {
        font-size: 1.25rem;
    }

    .live-score-value {
        font-size: 5rem;
    }

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

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

    .download-app-badges {
        flex-direction: column;
        gap: 4px;
    }

    .store-badge {
        height: 36px;
    }

    .google-play-badge {
        height: 38px;
    }

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

    .nav-btn-icon {
        font-size: 2rem;
    }
}

/* Desktop - wider layout */
@media (min-width: 768px) {
    .app-container {
        max-width: 780px;
    }

    .bottom-nav {
        display: none; /* Hide bottom nav on desktop — use footer links */
    }

    .ad-sticky-bottom {
        bottom: 0;
    }

    .main-content {
        padding-bottom: calc(1rem + 70px);
    }

    /* On desktop: 4-column nav tiles instead of 2 */
    .nav-buttons {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Wider tonight forecast metrics stay 4-col */
    .tonight-metrics {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 900px) {
    .app-container {
        max-width: 860px;
    }
}

/* ============================================
   PAGE LAYOUT - 3 column with sidebar ads
============================================ */
.page-layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar ads - hidden on mobile/tablet */
.sidebar-ad {
    display: none;
    width: 160px;
    min-height: 600px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
    align-self: flex-start;
}

.sidebar-ad ins {
    width: 160px !important;
    min-height: 600px;
}

/* Show sidebars on desktop */
@media (min-width: 900px) {
    .sidebar-ad {
        display: block;
    }

    .page-layout {
        gap: 16px;
        padding: 0 8px;
    }

    .app-container {
        min-width: 0;
        flex: 1 1 auto;
        max-width: 860px;
    }
}

/* Wide desktop - use 300px half-page ads */
@media (min-width: 1200px) {
    .sidebar-ad {
        width: 300px;
        min-height: 600px;
    }

    .sidebar-ad ins {
        width: 300px !important;
    }

    .page-layout {
        gap: 20px;
    }
}

/* ============================================
   AURORA ANIMATIONS — HERO & TILES
============================================ */

/* Pulsing aurora glow on live-score-card border */
@keyframes aurora-pulse {
    0%, 100% {
        box-shadow: 0 0 24px rgba(0,255,204,0.15), 0 8px 32px rgba(0,255,204,0.10);
        border-color: rgba(0,255,204,0.30);
    }
    50% {
        box-shadow: 0 0 56px rgba(0,255,204,0.50), 0 8px 56px rgba(0,255,204,0.30), 0 0 100px rgba(0,200,255,0.15);
        border-color: rgba(0,255,204,0.80);
    }
}

/* Shimmer glow on the big score number */
@keyframes score-shimmer {
    0%, 100% { text-shadow: 0 0 30px rgba(0,255,204,0.50); }
    50%       { text-shadow: 0 0 70px rgba(0,255,204,1.00), 0 0 120px rgba(0,200,255,0.40); }
}

/* Live badge pulse */
@keyframes live-badge-pulse {
    0%, 100% { background: rgba(0,255,204,0.18); box-shadow: none; }
    50%       { background: rgba(0,255,204,0.38); box-shadow: 0 0 18px rgba(0,255,204,0.45); }
}

/* Gentle float for nav tiles */
@keyframes tile-float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-7px); }
}

/* Per-colour glow pulses for each tile */
@keyframes tile-glow-map {
    0%, 100% { box-shadow: 0 4px 16px rgba(0,255,136,0.08); }
    50%       { box-shadow: 0 10px 36px rgba(0,255,136,0.45); }
}
@keyframes tile-glow-forecast {
    0%, 100% { box-shadow: 0 4px 16px rgba(187,134,252,0.08); }
    50%       { box-shadow: 0 10px 36px rgba(187,134,252,0.45); }
}
@keyframes tile-glow-pro {
    0%, 100% { box-shadow: 0 4px 16px rgba(0,255,204,0.08); }
    50%       { box-shadow: 0 10px 36px rgba(0,255,204,0.45); }
}
@keyframes tile-glow-nightsky {
    0%, 100% { box-shadow: 0 4px 16px rgba(187,134,252,0.08); }
    50%       { box-shadow: 0 10px 36px rgba(255,107,157,0.45); }
}

/* Download-app card shimmer gradient sweep */
@keyframes card-shimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}

/* Apply aurora-pulse to live-score-card */
.live-score-card {
    animation: aurora-pulse 3.5s ease-in-out infinite;
}

/* Shimmer on score number */
.live-score-value {
    animation: score-shimmer 3.5s ease-in-out infinite;
}

/* Live badge pulse */
.live-badge {
    animation: live-badge-pulse 2s ease-in-out infinite;
}

/* Nav tiles — floating + colour glow, staggered delays */
.map-btn {
    animation: tile-float 4s ease-in-out infinite, tile-glow-map 4s ease-in-out infinite;
    animation-delay: 0s, 0s;
}
.forecast-btn {
    animation: tile-float 4s ease-in-out infinite, tile-glow-forecast 4s ease-in-out infinite;
    animation-delay: 0.7s, 0.7s;
}
.pro-btn {
    animation: tile-float 4s ease-in-out infinite, tile-glow-pro 4s ease-in-out infinite;
    animation-delay: 1.4s, 1.4s;
}
.nightsky-btn {
    animation: tile-float 4s ease-in-out infinite, tile-glow-nightsky 4s ease-in-out infinite;
    animation-delay: 2.1s, 2.1s;
}

/* Pause animations on hover so the card stays still while user interacts */
.nav-btn:hover {
    animation-play-state: paused;
    transform: translateY(-4px) scale(1.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Shimmer sweep on download-app-card */
.download-app-card {
    background-size: 200% auto;
    position: relative;
    overflow: hidden;
}
.download-app-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
        transparent 40%,
        rgba(0,255,204,0.08) 50%,
        transparent 60%
    );
    background-size: 200% 100%;
    animation: card-shimmer 3s linear infinite;
    pointer-events: none;
    border-radius: inherit;
}

/* Subtle aurora glow on tonight-forecast-card */
@keyframes purple-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(187,134,252,0.10); border-color: rgba(187,134,252,0.30); }
    50%       { box-shadow: 0 8px 40px rgba(187,134,252,0.35); border-color: rgba(187,134,252,0.70); }
}
.tonight-forecast-card {
    animation: purple-pulse 4s ease-in-out infinite;
    animation-delay: 1s;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .live-score-card,
    .live-score-value,
    .live-badge,
    .map-btn, .forecast-btn, .pro-btn, .nightsky-btn,
    .download-app-card::after,
    .tonight-forecast-card {
        animation: none !important;
    }
}

/* ── New feature styles ──────────────────────────────────────── */

.card-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--aurora-cyan);
    margin: 0 0 0.75rem;
}

/* Best Viewing Time widget */
.best-time-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.best-time-row {
    display: flex;
    gap: 1rem;
}
.best-time-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.best-time-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
}
.best-time-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}
.best-time-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem 0;
    margin: 0;
}

/* History chart */
.history-chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

/* Power bar (moon darkness in best-time widget) */
.power-bar-bg {
    background: rgba(255,255,255,0.1);
    border-radius: 99px;
    height: 8px;
    overflow: hidden;
}
.power-bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.6s;
}

/* Share FAB */
.share-fab-wrap {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0;
}
.share-fab {
    background: linear-gradient(135deg, var(--aurora-cyan), var(--aurora-purple));
    border: none;
    color: #fff;
    font-size: 1.4rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,255,204,0.35);
    transition: transform 0.2s;
}
.share-fab:hover { transform: scale(1.1); }

/* Error card */
.error-card {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e1b2e;
    border: 1px solid #ff6b9d;
    color: #ff6b9d;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 340px;
    width: 90%;
}
.error-card-icon { font-size: 1.2rem; }
.error-card #errorMsg { flex: 1; font-size: 0.88rem; }
.error-card-close {
    background: none;
    border: none;
    color: #ff6b9d;
    font-size: 1.1rem;
    cursor: pointer;
}

/* Share overlay */
.share-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.share-overlay.open { display: flex; }
.share-overlay-box {
    background: var(--bg-card);
    border: 1px solid rgba(0,255,204,0.3);
    border-radius: 18px;
    padding: 1.5rem;
    max-width: 320px;
    width: 90%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.share-overlay-box h3 { margin: 0 0 0.25rem; color: var(--aurora-cyan); }
.share-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}
.share-link.twitter   { background: rgba(29,161,242,0.15);  color: #1da1f2; }
.share-link.whatsapp  { background: rgba(37,211,102,0.15);  color: #25d366; }
.share-link.facebook  { background: rgba(66,103,178,0.15);  color: #4267b2; }
.share-link.instagram { background: rgba(225,48,108,0.15);  color: #e1306c; }
.share-overlay-close {
    background: rgba(255,255,255,0.08);
    border: none;
    color: var(--text-secondary);
    padding: 0.6rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Cookie Consent Banner */
.cookie-consent {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 2px solid var(--aurora-cyan);
    padding: 1.5rem;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    animation: slideUp 0.4s ease-out;
}

.cookie-consent.show {
    display: block;
}

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

.cookie-consent-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.cookie-consent-close {
    position: absolute;
    top: -8px;
    right: 0;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.cookie-consent-close:hover {
    color: var(--aurora-cyan);
}

.cookie-consent-title {
    color: var(--aurora-cyan);
    font-size: 1.3rem;
    margin: 0 0 0.75rem;
    font-weight: 600;
}

.cookie-consent-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 1.25rem;
    max-width: 800px;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.cookie-btn-accept {
    background: var(--aurora-cyan);
    color: #0a0a0f;
}

.cookie-btn-accept:hover {
    background: var(--aurora-green);
    transform: translateY(-2px);
}

.cookie-btn-deny {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.cookie-btn-deny:hover {
    background: rgba(255, 255, 255, 0.15);
}

.cookie-consent-link {
    color: var(--aurora-purple);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
}

.cookie-consent-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cookie-consent {
        padding: 1.25rem;
    }
    
    .cookie-consent-title {
        font-size: 1.15rem;
        margin-right: 2rem;
    }
    
    .cookie-consent-text {
        font-size: 0.88rem;
    }
    
    .cookie-consent-actions {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 0.85rem;
    }
}

/* ============================================================
   NEW SITE STRUCTURE – Marketing + Science + Live (2026)
============================================================ */

/* ─── Site Navigation ─────────────────────────────────────── */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: rgba(10, 10, 20, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

.site-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
    height: 72px;
    gap: 1rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo-img {
    height: 120px;
    width: auto;
    display: block;
    margin: -28px -20px;
}

.site-logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #b8f040 0%, #40e060 55%, #12b83a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.site-nav-links a:hover { color: var(--aurora-cyan); }

.nav-app-link {
    background: linear-gradient(135deg, var(--aurora-purple), var(--aurora-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700 !important;
}

.nav-hamburger {
    display: none;
    background: none;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 1.2rem;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    cursor: pointer;
}

.site-nav-mobile {
    display: none;
    flex-direction: column;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 0.5rem 0;
}

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

.site-nav-mobile a {
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.2s;
}

.site-nav-mobile a:hover { background: var(--bg-card); color: var(--aurora-cyan); }

@media (max-width: 680px) {
    .site-nav-links { display: none; }
    .nav-hamburger { display: block; }
}

/* ─── New Layout ─────────────────────────────────────────── */
.app-container.new-layout {
    max-width: 760px;
}

/* ─── Generic Section ────────────────────────────────────── */
.section {
    padding: 2rem 1rem;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

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

.section-sub {
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* ─── Hero Stars Canvas ─────────────────────────────────── */
.hero-stars {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ─── Hero Live Strip ────────────────────────────────────── */
.hero-live-strip {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 100px;
    padding: 0.5rem 1.4rem;
    margin-top: 1.25rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hls-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
    gap: 0.1rem;
}

.hls-label {
    font-size: 0.6rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.hls-value {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.hls-sep {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .hero-live-strip { display: none; }
}

/* ─── Hero Section ───────────────────────────────────────── */
.hero-section {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 3rem 1.5rem 2.5rem;
}

.hero-aurora-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to bottom, rgba(5,8,20,0.45) 0%, rgba(5,8,20,0.72) 100%),
        url('../assets/bakround.png');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    animation: heroPulse 8s ease-in-out infinite alternate;
}

@keyframes heroPulse {
    from { opacity: 0.8; }
    to   { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 255, 140, 0.12);
    border: 1px solid rgba(0, 255, 140, 0.35);
    color: var(--aurora-green);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    background: linear-gradient(135deg, #fff 40%, var(--aurora-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    max-width: 600px;
}

.hero-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 440px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--aurora-purple), var(--aurora-cyan));
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1.6rem;
    border-radius: 100px;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 4px 24px rgba(187, 134, 252, 0.35);
}

.btn-hero-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-hero-secondary {
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.73rem 1.6rem;
    border-radius: 100px;
    border: 1px solid var(--border-subtle);
    transition: border-color 0.2s, color 0.2s;
}

.btn-hero-secondary:hover { border-color: var(--aurora-cyan); color: var(--aurora-cyan); }

.btn-outlined {
    display: inline-block;
    color: var(--aurora-cyan);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(0, 255, 204, 0.35);
    padding: 0.55rem 1.25rem;
    border-radius: 100px;
    transition: background 0.2s;
}

.btn-outlined:hover { background: rgba(0,255,204,0.08); }

.btn-link {
    color: var(--aurora-cyan);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-link:hover { text-decoration: underline; }

/* ─── Location Row ────────────────────────────────────────── */
.location-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.location-row-icon { font-size: 1rem; }

.location-coords-small {
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-left: auto;
}

/* ─── Visibility Hero Card ───────────────────────────────── */
.visibility-hero-card {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    border-radius: 20px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.visibility-hero-inner {
    padding: 1.5rem;
    width: 100%;
    text-align: center;
}

.vis-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

/* ─── Conditions Grid ────────────────────────────────────── */
.conditions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}

.cond-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 0.9rem 0.6rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cond-icon { font-size: 1.3rem; }

.cond-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cond-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.cond-value-sm { font-size: 0.75rem; }

/* ─── Tonight Section ────────────────────────────────────── */
.tonight-section .tonight-forecast-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 1.5rem;
}

.tonight-location-line {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.tonight-cta {
    margin-top: 1.25rem;
    text-align: center;
}

.tonight-value-sm { font-size: 0.85rem !important; }

/* ─── Why Section ────────────────────────────────────────── */
.why-section { padding: 0 1rem 1.5rem; }

.why-card {
    background: linear-gradient(135deg, rgba(187,134,252,0.08), rgba(0,255,204,0.06));
    border: 1px solid rgba(187,134,252,0.25);
    border-radius: 18px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.why-icon { font-size: 2rem; }

.why-text h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.why-text p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ─── Education Grid ─────────────────────────────────────── */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.edu-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.25rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: border-color 0.2s, transform 0.2s;
}

.edu-card:hover {
    border-color: var(--aurora-cyan);
    transform: translateY(-2px);
}

.edu-card-icon { font-size: 1.8rem; }

.edu-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.edu-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
    flex: 1;
}

.edu-link {
    font-size: 0.82rem;
    color: var(--aurora-cyan);
    font-weight: 600;
    margin-top: auto;
}

/* ─── App CTA Section ────────────────────────────────────── */
.app-cta-section {
    background: linear-gradient(135deg, rgba(187,134,252,0.1), rgba(0,255,204,0.07));
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    margin: 1rem 0;
}

.app-cta-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.app-cta-text h2 {
    font-size: clamp(1.2rem, 3.5vw, 1.7rem);
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--aurora-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.25;
    margin-bottom: 0.4rem;
}

.app-cta-text p {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.app-cta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

/* ─── Sub-page shared layout ─────────────────────────────── */
.subpage-hero {
    padding: 2.5rem 1.5rem 2rem;
    text-align: center;
    background: linear-gradient(to bottom, rgba(187,134,252,0.06) 0%, transparent 100%);
    border-bottom: 1px solid var(--border-subtle);
}

.subpage-hero-badge {
    display: inline-block;
    background: rgba(0,255,140,0.1);
    border: 1px solid rgba(0,255,140,0.3);
    color: var(--aurora-green);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 0.75rem;
}

.subpage-hero h1 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff 40%, var(--aurora-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.subpage-hero p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* ─── Content prose ──────────────────────────────────────── */
.prose-section {
    padding: 1.5rem 1rem;
}

.prose-section h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    margin-top: 1.25rem;
}

.prose-section h2:first-child { margin-top: 0; }

.prose-section p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.prose-section ul {
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.prose-section li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.3rem;
}

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

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 1rem;
}

.info-card .info-icon { font-size: 1.5rem; margin-bottom: 0.4rem; }

.info-card h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.info-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Responsive fixes */
@media (max-width: 480px) {
    .conditions-grid { grid-template-columns: repeat(2, 1fr); }
    .edu-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────
   CONDITIONS SUMMARY LINE
───────────────────────────────────────────────────────── */
.conditions-summary {
    text-align: center;
    font-size: 0.88rem;
    color: var(--aurora-cyan);
    margin-top: 1rem;
    padding: 0.7rem 1rem;
    background: rgba(0,255,136,0.06);
    border: 1px solid rgba(0,255,136,0.18);
    border-radius: 10px;
}

/* ─────────────────────────────────────────────────────────
   SECTION 3 — BEST TIME TONIGHT
───────────────────────────────────────────────────────── */
.best-time-section { padding: 2rem 1rem; }

.best-time-hero-card {
    background: linear-gradient(135deg, rgba(10,10,20,0.9) 0%, rgba(20,10,40,0.95) 100%);
    border: 1px solid rgba(76,175,254,0.25);
    border-radius: 18px;
    padding: 2rem 1.5rem;
    box-shadow: 0 0 30px rgba(0,200,255,0.08);
}

.best-time-cols {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.best-time-col { text-align: center; }

.best-time-col-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.best-time-col-value {
    font-size: 1.9rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.03em;
}

.best-time-divider {
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,0.12);
    flex-shrink: 0;
}

.best-time-bar-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.best-time-bar-track {
    flex: 1;
    min-width: 100px;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 99px;
    overflow: hidden;
}

.best-time-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--aurora-green), var(--aurora-cyan));
    border-radius: 99px;
    transition: width 0.8s ease;
}

.best-time-bar-pct {
    font-weight: 700;
    color: var(--aurora-green);
    min-width: 36px;
    text-align: right;
}

.best-time-tonight-cta { text-align: center; }

/* ─────────────────────────────────────────────────────────
   SECTION 4 — WHAT THIS MEANS
───────────────────────────────────────────────────────── */
.what-means-section { padding: 1.5rem 1rem; }

.what-means-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(20,10,40,0.6);
    border: 1px solid rgba(187,134,252,0.2);
    border-radius: 18px;
    padding: 1.75rem 1.5rem;
}

.what-means-icon { font-size: 2.2rem; }

.what-means-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.what-means-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.what-means-link {
    align-self: flex-start;
    font-size: 0.9rem;
}

/* ─────────────────────────────────────────────────────────
   SECTION 5 — WHY AURORA HAPPENS (DIAGRAM GRID)
───────────────────────────────────────────────────────── */
.aurora-why-section { padding: 2rem 1rem; }

/* 2×2 image grid */
.aurora-diagram-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    max-width: 820px;
    margin: 0 auto;
}

.aurora-diag-card {
    border-radius: 14px;
    overflow: hidden;
    background: rgba(5,5,15,0.8);
    border: 1px solid rgba(0,255,136,0.1);
    transition: border-color 0.2s, transform 0.2s;
}

.aurora-diag-card:hover {
    border-color: rgba(0,255,136,0.3);
    transform: translateY(-2px);
}

.aurora-diag-img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 540px) {
    .aurora-diagram-grid { grid-template-columns: 1fr; }
}

/* ── Keep old step styles for other pages that may use them ── */
.aurora-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 640px;
    margin: 0 auto;
}

.aurora-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(10,10,20,0.6);
    border: 1px solid rgba(0,255,136,0.12);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    position: relative;
}

.aurora-step-num {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--aurora-green);
    min-width: 1.6rem;
    line-height: 1;
    padding-top: 0.15rem;
}

.aurora-step-icon {
    font-size: 1.6rem;
    min-width: 2rem;
    text-align: center;
}

.aurora-step-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.aurora-step-text strong {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.aurora-step-text span {
    font-size: 0.78rem;
    color: var(--text-dim);
}

.aurora-step-arrow {
    text-align: center;
    font-size: 1.3rem;
    color: var(--aurora-cyan);
    padding: 0.15rem 0;
    line-height: 1;
    opacity: 0.6;
}

.aurora-diagram {
    margin: 1.5rem auto 0;
    max-width: 520px;
    text-align: center;
}

.aurora-diagram-inner {
    background: rgba(5,5,15,0.7);
    border: 1px solid rgba(0,255,136,0.1);
    border-radius: 16px;
    padding: 1rem;
    overflow: hidden;
}

.aurora-svg-diagram {
    width: 100%;
    height: auto;
    display: block;
}

.aurora-diagram-cap {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
    font-style: italic;
}

/* ─────────────────────────────────────────────────────────
   SECTION 6 — WHAT YOU NEED CHECKLIST
───────────────────────────────────────────────────────── */
.checklist-section { padding: 2rem 1rem; }

.checklist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    max-width: 680px;
    margin: 0 auto;
}

.checklist-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 0.6rem;
    background: rgba(10,10,20,0.7);
    border: 1px solid rgba(0,255,136,0.12);
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.checklist-icon { font-size: 1.2rem; }

.checklist-label {
    font-size: 0.82rem;
    color: var(--text-primary);
    font-weight: 600;
}

.checklist-hint {
    font-size: 0.7rem;
    color: var(--text-dim);
    grid-column: 3;
}

.checklist-live-val {
    font-size: 0.7rem;
    color: var(--aurora-cyan);
    grid-column: 3;
}

.checklist-tick {
    font-size: 0.9rem;
    color: var(--text-dim);
    font-weight: 700;
}

.checklist-tick.pass { color: var(--aurora-green); }
.checklist-tick.fail { color: #f44336; }

.checklist-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 1rem;
}

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

/* ─────────────────────────────────────────────────────────
   SECTION 7 — VISIBILITY SCORE FORMULA
───────────────────────────────────────────────────────── */
.score-formula-section { padding: 2rem 1rem; }

.formula-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
    max-width: 780px;
}

.formula-factor {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(10,10,20,0.7);
    border: 1px solid rgba(0,200,255,0.18);
    border-radius: 12px;
    padding: 0.8rem 0.9rem;
    min-width: 78px;
    text-align: center;
    gap: 0.25rem;
}

.formula-factor-icon { font-size: 1.4rem; }

.formula-factor-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 600;
    line-height: 1.2;
}

.formula-factor-weight {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--aurora-cyan);
}

.formula-plus, .formula-equals {
    font-size: 1.5rem;
    font-weight: 900;
    color: rgba(255,255,255,0.35);
    flex-shrink: 0;
}

.formula-equals { color: rgba(255,255,255,0.55); }

.formula-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, rgba(0,255,136,0.12), rgba(0,200,255,0.08));
    border: 1px solid rgba(0,255,136,0.3);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    min-width: 90px;
    text-align: center;
    gap: 0.3rem;
    box-shadow: 0 0 18px rgba(0,255,136,0.12);
}

.formula-result-icon { font-size: 1.5rem; }

.formula-result-label {
    font-size: 0.68rem;
    color: var(--aurora-green);
    font-weight: 700;
    line-height: 1.2;
}

.formula-result-val {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
}

.formula-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 1rem;
}

/* ─────────────────────────────────────────────────────────
   SECTION 8 — GET ALERTED CTA
───────────────────────────────────────────────────────── */
.get-alerted-section {
    padding: 3rem 1rem;
    background: linear-gradient(160deg, rgba(15,5,35,1) 0%, rgba(5,15,30,1) 100%);
    border-top: 1px solid rgba(187,134,252,0.15);
    border-bottom: 1px solid rgba(187,134,252,0.15);
}

.get-alerted-inner {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.get-alerted-inner h2 {
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.25;
    margin: 0;
}

.get-alerted-sub {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.get-alerted-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    text-align: left;
}

.get-alerted-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.alert-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--aurora-green);
    flex-shrink: 0;
    box-shadow: 0 0 6px var(--aurora-green);
}

.get-alerted-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.get-alerted-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

/* ─────────────────────────────────────────────────────────
   SECTION 9 — EXPLORE MORE GRID
───────────────────────────────────────────────────────── */
.explore-section { padding: 2rem 1rem; }

.explore-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    max-width: 680px;
    margin: 0 auto;
}

.explore-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(10,10,20,0.65);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color 0.2s, background 0.2s;
}

.explore-card:hover {
    border-color: rgba(0,255,136,0.28);
    background: rgba(0,255,136,0.04);
}

.explore-card-icon { font-size: 1.5rem; flex-shrink: 0; }

.explore-card-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
}

.explore-card-text strong {
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--text-primary);
}

.explore-card-text span {
    font-size: 0.72rem;
    color: var(--text-dim);
}

.explore-card-arrow {
    font-size: 1rem;
    color: var(--aurora-cyan);
    opacity: 0.6;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .explore-grid { grid-template-columns: 1fr; }
    .best-time-cols { flex-direction: column; gap: 1rem; }
    .best-time-divider { display: none; }
    .formula-flow { gap: 0.4rem; }
    .formula-factor { min-width: 64px; padding: 0.6rem 0.7rem; }
}

/* ─── Mobile Responsive — New Site (≤ 480px) ──────────────── */
@media (max-width: 480px) {
    /* Hero */
    .hero-section {
        padding: 1.75rem 1rem 1.5rem;
        min-height: unset;
    }

    .hero-sub {
        font-size: 0.88rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    /* Visibility hero card */
    .visibility-hero-card {
        min-height: unset;
    }

    /* Conditions grid smaller padding */
    .cond-card {
        padding: 0.75rem 0.4rem;
    }

    /* Get Alerted section */
    .get-alerted-section {
        padding: 2rem 1rem;
    }

    .get-alerted-inner h2 {
        font-size: 1.3rem;
    }

    /* Store badges */
    .store-badge {
        height: 38px;
        width: auto;
    }
}
