/* ============================================================
   MONITOR TERMINÓW v2 — Design System
   ============================================================ */

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

:root {
    --bg:         #0f172a;
    --surface:    #1e293b;
    --surface2:   #263347;
    --border:     #334155;
    --text:       #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim:   #475569;
    --primary:    #3b82f6;
    --primary-h:  #2563eb;
    --success:    #10b981;
    --danger:     #ef4444;
    --warning:    #f59e0b;
    --radius:     10px;
    --radius-lg:  16px;
    /* glassmorphism helpers */
    --glass-bg:   rgba(30, 41, 59, 0.78);
    --glass-bg-card: rgba(30, 41, 59, 0.82);
    --glass-border: rgba(255,255,255,0.08);
}

/* ---- LIGHT THEME ---- */
body[data-theme="light"] {
    --bg:         #f1f5f9;
    --surface:    #ffffff;
    --surface2:   #f8fafc;
    --border:     #e2e8f0;
    --text:       #0f172a;
    --text-muted: #475569;
    --text-dim:   #94a3b8;
    --glass-bg:   rgba(255,255,255,0.82);
    --glass-bg-card: rgba(255,255,255,0.88);
    --glass-border: rgba(0,0,0,0.07);
}
body[data-theme="light"]::before {
    background:
        radial-gradient(ellipse at 20% 20%, rgba(59,130,246,0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 80%, rgba(99,102,241,0.04) 0%, transparent 50%);
}
body[data-theme="light"] .toast-success { background: #d1fae5; color: #065f46; border-color: rgba(16,185,129,0.3); }
body[data-theme="light"] .toast-error   { background: #fee2e2; color: #7f1d1d; border-color: rgba(239,68,68,0.3); }
body[data-theme="light"] .toast-info    { background: #dbeafe; color: #1e3a5f; border-color: rgba(59,130,246,0.3); }
body[data-theme="light"] .cron-ok    { background: #d1fae5; color: #065f46; }
body[data-theme="light"] .cron-warning { background: #fef3c7; color: #78350f; }
body[data-theme="light"] .cron-error { background: #fee2e2; color: #7f1d1d; }
body[data-theme="light"] .sc-ok  { background: #10b981; }
body[data-theme="light"] .sc-err { background: #ef4444; }
body[data-theme="light"] .sc-none { background: #cbd5e1; }
body[data-theme="light"] .trend-up   { background: #d1fae5; color: #065f46; }
body[data-theme="light"] .trend-down { background: #fee2e2; color: #7f1d1d; }
body[data-theme="light"] .trend-stable { background: #dbeafe; color: #1e3a5f; }
body[data-theme="light"] .ariel-card { background: #fff; border-color: #e5e7eb; }
body[data-theme="light"] .ariel-card:hover { border-color: #d1d5db; }
body[data-theme="light"] .onboarding-step { background: rgba(255,255,255,0.9); border-color: rgba(0,0,0,0.08); }

html { font-size: 16px; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 60px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 8px;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
    min-width: 0;
}
.navbar-brand:hover { text-decoration: none; opacity: .85; }
.brand-icon { font-size: 18px; flex-shrink: 0; }
.brand-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.brand-badge {
    font-size: 10px;
    font-weight: 700;
    background: var(--warning);
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
.theme-toggle { font-size: 18px; padding: 4px 8px; line-height: 1; flex-shrink: 0; }
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.navbar-user {
    color: var(--text-muted);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

/* Mobile navbar — ukryj nazwę marki na bardzo małych ekranach */
@media (max-width: 480px) {
    .brand-name { display: none; }
    .navbar-actions .btn { padding: 6px 10px; font-size: 12px; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1;
    white-space: nowrap;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary  { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover:not(:disabled) { background: var(--primary-h); border-color: var(--primary-h); }
.btn-ghost    { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn-ghost:hover:not(:disabled) { background: var(--surface2); color: var(--text); }
.btn-danger   { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: rgba(239,68,68,.1); }
.btn-sm  { padding: 6px 12px; font-size: 13px; }
.btn-lg  { padding: 13px 26px; font-size: 16px; }

/* ============================================================
   LANDING
   ============================================================ */
.landing { max-width: 960px; margin: 0 auto; padding: 60px 24px; }

/* ============================================================
   AURORA ANIMATED BACKGROUND
   ============================================================ */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
}
.aurora-blob.a1 {
    width: 700px; height: 500px;
    background: radial-gradient(ellipse, rgba(59,130,246,0.38) 0%, transparent 70%);
    top: -180px; left: -180px;
    opacity: 0.28;
    animation: aurora-1 14s ease-in-out infinite;
}
.aurora-blob.a2 {
    width: 650px; height: 650px;
    background: radial-gradient(ellipse, rgba(99,102,241,0.32) 0%, transparent 70%);
    bottom: -200px; right: -150px;
    opacity: 0.22;
    animation: aurora-2 18s ease-in-out infinite;
}
.aurora-blob.a3 {
    width: 500px; height: 400px;
    background: radial-gradient(ellipse, rgba(139,92,246,0.28) 0%, transparent 70%);
    top: 42%; left: 33%;
    opacity: 0.16;
    animation: aurora-3 22s ease-in-out infinite;
}
@keyframes aurora-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(110px, 90px) scale(1.13); }
    66%  { transform: translate(-50px, 130px) scale(0.93); }
}
@keyframes aurora-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(-90px, -70px) scale(1.09); }
    66%  { transform: translate(65px, -110px) scale(1.19); }
}
@keyframes aurora-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(-110px, -85px) scale(0.87); }
}
body[data-theme="light"] .aurora-blob.a1 { opacity: 0.12; }
body[data-theme="light"] .aurora-blob.a2 { opacity: 0.10; }
body[data-theme="light"] .aurora-blob.a3 { opacity: 0.08; }

body > * { position: relative; z-index: 1; }
.aurora { position: fixed !important; z-index: 0 !important; }

.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 80px; }
@media (max-width: 700px) { .hero { grid-template-columns: 1fr; gap: 40px; } }

.hero-tag {
    display: inline-block;
    background: rgba(59,130,246,.15);
    color: var(--primary);
    border: 1px solid rgba(59,130,246,.3);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}
.hero-title {
    font-size: 42px; font-weight: 800; line-height: 1.15; margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text) 0%, #60a5fa 55%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradient-text 5s ease infinite alternate;
}
body[data-theme="light"] .hero-title {
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 55%, #6d28d9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    background-size: 200% auto;
}
@keyframes gradient-text {
    from { background-position: 0% center; }
    to   { background-position: 200% center; }
}
@media (max-width: 700px) { .hero-title { font-size: 30px; } }
.hero-desc { color: var(--text-muted); font-size: 17px; line-height: 1.65; margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero tag dot */
.hero-tag { display: inline-flex; align-items: center; gap: 7px; }
.hero-tag-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    display: inline-block;
    animation: pulse 2s infinite;
}

/* ============================================================
   HERO LIVE BOX
   ============================================================ */
.hero-live {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.live-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    flex-shrink: 0;
    animation: live-pulse 2s ease-out infinite;
}
.live-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--success);
}
.live-countdown-row {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}
.live-stat { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.live-stat-ring { flex-direction: row; align-items: center; gap: 10px; }
.land-ring-svg {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    transform: rotate(-90deg);
}
.land-ring-svg .ring-track  { stroke-width: 4; }
.land-ring-svg .ring-progress { stroke-width: 4; stroke-dasharray: 113; stroke-dashoffset: 113; }
.live-stat-val {
    font-size: 30px;
    font-weight: 800;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.live-stat-label { font-size: 12px; color: var(--text-muted); }
.live-last-check {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.live-last-check span { color: var(--text-muted); }
.live-facts {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.live-fact {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--surface2);
    padding: 5px 10px;
    border-radius: 6px;
}
.live-fact strong { color: var(--text); }

/* ============================================================
   CATEGORIES SECTION
   ============================================================ */
.categories-section {
    margin-bottom: 64px;
    text-align: center;
}
.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}
.section-sub {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 32px;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}
.cat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: border-color 0.15s, transform 0.15s;
}
.cat-card:hover { border-color: #4b6180; transform: translateY(-2px); }
.cat-card--highlight {
    border-color: rgba(59,130,246,.4);
    background: rgba(59,130,246,.06);
}
.cat-icon { font-size: 28px; line-height: 1; }
.cat-name { font-size: 12px; font-weight: 600; color: var(--text); text-align: center; }
.cat-codes { font-size: 11px; color: var(--text-muted); text-align: center; }

/* how-it-works section title override */
.how-it-works { margin-bottom: 60px; text-align: center; }

.hero-stats { display: flex; flex-direction: column; gap: 16px; }
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
}
.stat-value { font-size: 32px; font-weight: 800; color: var(--primary); }
.stat-label { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

.how-it-works { margin-bottom: 60px; }
.steps { display: flex; gap: 24px; }
@media (max-width: 700px) { .steps { flex-direction: column; } }
.step {
    flex: 1;
    display: flex;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.step-text { display: flex; flex-direction: column; gap: 4px; }
.step-text strong { font-size: 15px; }
.step-text span { font-size: 13px; color: var(--text-muted); }

/* cron log */
.cron-log { display: flex; flex-direction: column; gap: 4px; }
.cron-log-row { display: flex; align-items: center; gap: 8px; font-size: 12px; font-family: 'SF Mono', 'Fira Code', monospace; padding: 4px 0; border-bottom: 1px solid rgba(51,65,85,.5); }
.cron-log-row:last-child { border-bottom: none; }
.cron-log-icon { flex-shrink: 0; font-size: 10px; }
.cron-log-ts { color: var(--text-dim); flex-shrink: 0; }
.cron-log-status { flex: 1; }
.cron-ok { color: #10b981; }
.cron-warning { color: #f59e0b; }
.cron-error { color: #ef4444; }
.cron-log-empty { font-size: 12px; color: var(--text-dim); }

/* finds ticker */
.finds-ticker { display: flex; align-items: center; gap: 12px; background: rgba(16,185,129,.07); border: 1px solid rgba(16,185,129,.2); border-radius: 10px; padding: 10px 16px; margin: 0 0 32px; }
.finds-ticker-label { font-size: 11px; font-weight: 800; color: #10b981; white-space: nowrap; text-transform: uppercase; letter-spacing: .5px; flex-shrink: 0; }
.finds-ticker-track { flex: 1; overflow: hidden; }
.finds-ticker-item { font-size: 13px; color: var(--text-muted); transition: opacity .4s; display: block; }
.finds-ticker-item strong { color: var(--text); }

/* faq */
.faq-section { margin-bottom: 56px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-q { width: 100%; background: none; border: none; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; color: var(--text); font-size: 15px; font-weight: 600; text-align: left; }
.faq-q:hover { background: var(--surface2); }
.faq-arrow { font-size: 16px; color: var(--text-dim); transition: transform .25s; flex-shrink: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; font-size: 14px; color: var(--text-muted); line-height: 1.7; padding: 0 20px; }
.faq-item.open .faq-a { padding: 0 20px 18px; }

/* trend badge */
.trend-badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; margin-left: 8px; }
.trend-up     { background: rgba(16,185,129,.12); color: #10b981; }
.trend-down   { background: rgba(239,68,68,.12);  color: #ef4444; }
.trend-stable { background: rgba(100,116,139,.12); color: #64748b; }

/* notification history */
.btn-history-toggle { background: none; border: none; border-top: 1px solid var(--border); width: 100%; padding: 8px; font-size: 12px; color: var(--text-dim); cursor: pointer; display: block; text-align: center; }
.btn-history-toggle:hover { color: var(--text-muted); background: var(--surface2); }
.sub-history { border-top: 1px solid var(--border); padding: 12px 16px; background: var(--bg); }
.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-item { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.history-dot  { width: 6px; height: 6px; border-radius: 50%; background: #10b981; flex-shrink: 0; }
.history-date { color: var(--text-muted); flex: 1; }
.history-count{ color: var(--primary); font-weight: 600; }
.history-loading, .history-empty { font-size: 13px; color: var(--text-dim); text-align: center; padding: 8px 0; }

/* status chart */
.status-chart-wrap { margin: 12px 0 4px; }
.status-chart-wrap--dash { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 24px; }
.status-chart-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.status-chart-bars { display: flex; gap: 2px; align-items: flex-end; height: 28px; }
.sc-bar { flex: 1; min-width: 0; height: 100%; border-radius: 2px; cursor: default; transition: opacity .15s; }
.sc-bar:hover { opacity: .75; }
.sc-ok   { background: #10b981; }
.sc-err  { background: #ef4444; }
.sc-none { background: #1e293b; border: 1px solid #334155; }

/* origin story / ariel tribute */
.origin-story { margin: 0 0 56px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.origin-context { font-size: 15px; color: var(--text-muted); text-align: center; max-width: 520px; margin: 0; line-height: 1.7; }

/* Ariel Instagram profile card */
.ariel-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 28px 36px;
    text-decoration: none;
    min-width: 220px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.ariel-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.28);
}
.ariel-avatar-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    margin-bottom: 4px;
}
.ariel-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.ariel-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}
.ariel-handle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: -4px;
}
.ariel-bio {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}
.ariel-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 20px;
}

.landing-footer { text-align: center; color: var(--text-dim); font-size: 14px; }
.landing-footer a { color: var(--text-dim); }
.landing-footer a:hover { color: var(--text-muted); }

/* auth page (reset hasła, wypisz) */
.auth-page { display: flex; justify-content: center; align-items: flex-start; padding: 60px 24px 80px; min-height: calc(100vh - 64px); }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 36px 32px; width: 100%; max-width: 440px; }
.auth-icon { font-size: 40px; text-align: center; margin-bottom: 12px; }
.auth-title { font-size: 22px; font-weight: 800; margin: 0 0 6px; }
.auth-sub { color: var(--text-muted); font-size: 14px; margin: 0 0 24px; line-height: 1.5; }
.form-info { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); color: #10b981; border-radius: 8px; padding: 10px 14px; font-size: 13px; }
.unsub-details { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin: 8px 0; }
.unsub-details strong { display: block; color: var(--text); font-size: 15px; }
.unsub-details span { color: var(--text-muted); font-size: 13px; }

/* settings modal */
.settings-section { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.settings-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.settings-section-title { font-size: 14px; font-weight: 700; margin: 0 0 12px; color: var(--text); }
.settings-section-desc { font-size: 13px; color: var(--text-muted); margin: 0 0 12px; line-height: 1.5; }
.settings-section--danger .settings-section-title { color: #ef4444; }
.btn-danger { background: rgba(239,68,68,.15); color: #ef4444; border: 1px solid rgba(239,68,68,.3); }
.btn-danger:hover { background: rgba(239,68,68,.25); }

/* date range field */
.date-range-row { display: flex; align-items: center; gap: 8px; }
.date-range-row input[type="date"] { flex: 1; }
.field-hint-text { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

/* sub-date-filter info */
.sub-date-filter { font-size: 12px; color: var(--text-muted); margin: 6px 0 0; padding: 6px 10px; background: var(--surface2); border-radius: 6px; }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard { max-width: 960px; margin: 0 auto; padding: 40px 24px; }
.dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 16px;
}
.dashboard-header h1 { font-size: 28px; font-weight: 700; }
.dashboard-sub { color: var(--text-muted); margin-top: 4px; font-size: 14px; }

/* ============================================================
   COUNTDOWN WIDGET
   ============================================================ */
.countdown-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--success);
    border-radius: var(--radius-lg);
    padding: 18px 24px;
    margin-bottom: 24px;
}
.countdown-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.countdown-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    flex-shrink: 0;
    animation: pulse 2s infinite;
}
.countdown-label-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.countdown-label-top {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--success);
}
.countdown-label-bot {
    font-size: 12px;
    color: var(--text-dim);
}
.countdown-timer {
    font-weight: 800;
    font-size: 36px;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    letter-spacing: -1px;
    line-height: 1;
    margin-left: auto;
}
@media (max-width: 480px) {
    .countdown-bar { padding: 14px 16px; gap: 12px; }
    .countdown-timer { font-size: 28px; }
}

/* ============================================================
   SUBSCRIPTION CARDS
   ============================================================ */
#subscriptions-container { display: flex; flex-direction: column; gap: 16px; }

.sub-card {
    background: var(--glass-bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.sub-card:hover {
    border-color: rgba(59,130,246,0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}
.sub-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}
.sub-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sub-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(59,130,246,.15);
    color: var(--primary);
    border: 1px solid rgba(59,130,246,.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}
.sub-category-badge .cat-emoji { font-size: 15px; line-height: 1; }

/* Przycisk "Terminy" z liczbą */
.btn-dates {
    background: rgba(59,130,246,.12);
    color: var(--primary);
    border: 1px solid rgba(59,130,246,.3);
    font-weight: 700;
    transition: all 0.15s;
}
.btn-dates:hover:not(:disabled) {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.dates-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    line-height: 1;
}
.btn-dates:hover .dates-badge { background: #fff; color: var(--primary); }

/* Alert wolnych terminów */
.sub-slots-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16,185,129,.08);
    border: 1px solid rgba(16,185,129,.25);
    border-radius: var(--radius);
    padding: 8px 14px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--success);
    font-weight: 600;
}
.sub-slots-alert .alert-icon { font-size: 16px; }
.sub-word-name { font-weight: 700; font-size: 16px; }
.sub-province { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.sub-card-actions { display: flex; gap: 8px; }

.sub-stats {
    display: flex;
    gap: 24px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.sub-stat { display: flex; flex-direction: column; gap: 2px; }
.sub-stat-value { font-weight: 700; font-size: 15px; }
.sub-stat-value.accent-green { color: var(--success); }
.sub-stat-label { font-size: 12px; color: var(--text-muted); }

.sub-last-check { font-size: 12px; color: var(--text-dim); margin-top: 8px; }

/* ============================================================
   EMPTY STATE / LOADING
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-muted);
}
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.empty-state p { margin-bottom: 24px; font-size: 15px; }

.loading-placeholder {
    color: var(--text-muted);
    font-size: 14px;
    padding: 40px;
    text-align: center;
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
    backdrop-filter: blur(4px);
}
.modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-lg { max-width: 640px; }

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 18px; font-weight: 700; }
.modal-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
}
.modal-close:hover { background: var(--surface2); color: var(--text); }
.modal-body { padding: 20px 24px; }
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}
.modal-switch { font-size: 13px; color: var(--text-muted); }
.oauth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px 4px;
    color: var(--text-dim);
    font-size: 12px;
}
.oauth-divider::before, .oauth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.oauth-buttons {
    padding: 0 24px 20px;
}
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface2);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}
.btn-google:hover { background: var(--surface); border-color: var(--primary); }
.oauth-notice {
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-dim);
    line-height: 1.5;
    text-align: center;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.field-hint { font-weight: 400; color: var(--text-dim); }

input[type="text"],
input[type="email"],
input[type="password"],
select {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 12px;
    border-radius: var(--radius);
    font-size: 14px;
    width: 100%;
    transition: border-color 0.15s;
    appearance: none;
    -webkit-appearance: none;
}
input:focus, select:focus { outline: none; border-color: var(--primary); }
input::placeholder { color: var(--text-dim); }
select:disabled { opacity: 0.5; cursor: not-allowed; }

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-error {
    background: rgba(239,68,68,.1);
    border: 1px solid rgba(239,68,68,.3);
    color: #fca5a5;
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 13px;
}

/* ============================================================
   DATES TABLE (in modal)
   ============================================================ */
.dates-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.dates-table th {
    padding: 10px 12px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.dates-table td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.dates-table tr:last-child td { border-bottom: none; }
.dates-table tr:hover td { background: var(--surface2); }

.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.tag-blue   { background: rgba(59,130,246,.15); color: #60a5fa; }
.tag-green  { background: rgba(16,185,129,.15); color: #34d399; }
.tag-orange { background: rgba(245,158,11,.15); color: #fbbf24; }
.tag-red    { background: rgba(239,68,68,.15);  color: #f87171; }

.no-dates {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 14px;
}

/* ============================================================
   MODAL STATS BAR
   ============================================================ */
.modal-stats-bar {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.modal-stats-bar strong { color: var(--text); }

/* ============================================================
   MINI CALENDAR
   ============================================================ */
.mini-calendars {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.mini-cal {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    flex: 1;
    min-width: 190px;
}
.mini-cal-title {
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    margin-bottom: 8px;
    color: var(--text);
    letter-spacing: 0.2px;
}
.mini-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.cal-dow {
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    color: var(--text-dim);
    padding: 2px 0 4px;
    text-transform: uppercase;
}
.cal-dow-wend { color: #64748b; }
.cal-cell {
    font-size: 12px;
    text-align: center;
    padding: 4px 2px;
    border-radius: 50%;
    color: var(--text-muted);
    line-height: 1.4;
    min-height: 22px;
}
.cal-past    { opacity: 0.25; }
.cal-today   { background: var(--surface2); color: var(--text); font-weight: 700; }
.cal-weekend { color: var(--text-dim); }
.cal-has-slot {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 0 2px rgba(59,130,246,.3);
}
.cal-has-slot:hover { background: var(--primary-h); }

/* ============================================================
   DAY GROUPS
   ============================================================ */
.day-groups { display: flex; flex-direction: column; gap: 8px; }

.day-group {
    background: var(--bg);
    border: 1px solid var(--border);
    border-left: 3px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    transition: border-color 0.15s;
}
.day-group--urgent { border-left-color: var(--danger); }
.day-group--soon   { border-left-color: var(--warning); }

.day-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.day-group-date   { display: flex; flex-direction: column; gap: 2px; }
.day-name         { font-weight: 700; font-size: 14px; color: var(--text); }
.day-full         { font-size: 12px; color: var(--text-muted); }
.day-group-meta   { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.places-count     { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

.day-group-slots  { display: flex; gap: 8px; flex-wrap: wrap; }
.time-badge {
    background: rgba(59,130,246,.12);
    color: #60a5fa;
    border: 1px solid rgba(59,130,246,.25);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.2px;
}

/* ============================================================
   NOTIFICATIONS STATS (in sub card)
   ============================================================ */
.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    margin-right: 6px;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(1.3); }
}
@keyframes live-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.7); }
    70%  { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
    100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* ============================================================
   DONATE BANNER
   ============================================================ */
.donate-banner {
    background: linear-gradient(135deg, rgba(245,158,11,.08), rgba(251,191,36,.03));
    border: 1px solid rgba(245,158,11,.2);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    margin-top: 32px;
    text-align: center;
}
.donate-icon  { font-size: 36px; margin-bottom: 8px; }
.donate-title { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.donate-desc  {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.65;
    margin-bottom: 20px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}
.donate-options { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.donate-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.2s;
    flex: 1;
    max-width: 120px;
    min-width: 90px;
}
.donate-option:hover {
    border-color: #f59e0b;
    background: rgba(245,158,11,.08);
    transform: translateY(-2px);
    text-decoration: none;
}
.donate-coffee-icon { width: 36px; height: 36px; }
.donate-price { font-size: 15px; font-weight: 700; color: var(--text); }
.donate-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.donate-powered { margin-top: 14px; font-size: 12px; color: var(--text-dim); }
.donate-powered a { color: var(--text-dim); }
.donate-powered a:hover { color: #f59e0b; }


/* ============================================================
   CIRCULAR COUNTDOWN (dashboard)
   ============================================================ */
.countdown-ring-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 24px;
    margin-bottom: 16px;
}
.countdown-ring-svg {
    width: 84px;
    height: 84px;
    flex-shrink: 0;
    transform: rotate(-90deg);
}
.ring-track {
    fill: none;
    stroke: var(--surface2);
    stroke-width: 6;
}
.ring-progress {
    fill: none;
    stroke: var(--primary);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1s linear, stroke 0.5s;
}
.ring-progress.ring-warn    { stroke: var(--warning); }
.ring-progress.ring-urgent  { stroke: var(--danger); }
.ring-progress.ring-waiting { stroke: var(--border); animation: ring-pulse 2s ease-in-out infinite; }
@keyframes ring-pulse {
    0%, 100% { opacity: 0.35; }
    50%       { opacity: 0.8; }
}
.countdown-ring-info { display: flex; flex-direction: column; gap: 3px; }
.countdown-ring-live {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--success);
}
.countdown-ring-time {
    font-size: 30px;
    font-weight: 800;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.countdown-ring-sub { font-size: 13px; color: var(--text-muted); }
@media (max-width: 480px) {
    .countdown-ring-svg { width: 64px; height: 64px; }
    .countdown-ring-time { font-size: 24px; }
}

/* ============================================================
   USER PERSONAL STATS (dashboard header)
   ============================================================ */
.user-summary {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.user-summary-stat {
    font-size: 13px;
    color: var(--text-muted);
}
.user-summary-stat strong { color: var(--primary); }

/* ============================================================
   SPARKLINE (sub-card)
   ============================================================ */
.sub-sparkline {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.sub-sparkline-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
    padding-bottom: 2px;
}

/* ============================================================
   PUSH NOTIFICATION TOGGLE
   ============================================================ */
.push-toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--surface2);
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-muted);
}
.push-toggle-row .btn { flex-shrink: 0; }

/* ============================================================
   ONBOARDING EMPTY STATE
   ============================================================ */
.empty-onboarding {
    text-align: center;
    padding: 60px 24px 40px;
}
.empty-radar {
    width: 120px;
    height: 120px;
    margin: 0 auto 28px;
}
.radar-ring {
    transform-origin: center;
    animation: radar-expand 2.5s ease-out infinite;
    transform-box: fill-box;
}
.radar-ring:nth-child(2) { animation-delay: 0.6s; }
.radar-ring:nth-child(3) { animation-delay: 1.2s; }
@keyframes radar-expand {
    0%   { opacity: 0.7; transform: scale(0.3); }
    100% { opacity: 0;   transform: scale(1); }
}
.radar-sweep {
    transform-origin: 60px 60px;
    animation: radar-sweep 2.5s linear infinite;
}
@keyframes radar-sweep {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.empty-onboarding h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}
.empty-onboarding > p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 32px;
}
.onboarding-steps {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.onboarding-step {
    background: rgba(30,41,59,0.8);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    width: 180px;
    text-align: left;
}
.onboarding-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}
.onboarding-step-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.onboarding-step-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    min-width: 260px;
    max-width: 360px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    pointer-events: all;
    animation: toast-in 0.3s ease forwards;
}
.toast.hiding {
    animation: toast-out 0.3s ease forwards;
}
.toast-success { background: #065f46; border: 1px solid rgba(16,185,129,0.4); }
.toast-error   { background: #7f1d1d; border: 1px solid rgba(239,68,68,0.4); }
.toast-info    { background: #1e3a5f; border: 1px solid rgba(59,130,246,0.4); }
.toast-icon    { font-size: 18px; flex-shrink: 0; }
@keyframes toast-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes toast-out {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(10px); }
}
@media (max-width: 480px) {
    .toast-container { left: 16px; right: 16px; bottom: 16px; }
    .toast { min-width: unset; max-width: 100%; }
    .onboarding-steps { flex-direction: column; align-items: center; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
    .dashboard-header { flex-direction: column; }
    .sub-card-header  { flex-direction: column; align-items: flex-start; }
    .modal-footer     { flex-direction: column-reverse; }
    .modal-switch     { text-align: center; }
    .notif-stack      { display: none !important; }
    .hero-radar       { display: none; }
}

/* ============================================================
   INFOCAR STATUS BANNER
   ============================================================ */
#infocar-banner { position: sticky; top: 64px; z-index: 90; }
.infocar-banner-maintenance,
.infocar-banner-error {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 24px;
    font-size: 14px;
    line-height: 1.5;
}
.infocar-banner-maintenance {
    background: #78350f;
    color: #fef3c7;
    border-bottom: 1px solid #92400e;
}
.infocar-banner-error {
    background: #7f1d1d;
    color: #fee2e2;
    border-bottom: 1px solid #991b1b;
}
.infocar-banner-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
#infocar-banner strong { display: block; font-weight: 700; margin-bottom: 2px; }
body[data-theme="light"] .infocar-banner-maintenance { background: #fef3c7; color: #78350f; border-color: #fde68a; }
body[data-theme="light"] .infocar-banner-error { background: #fee2e2; color: #7f1d1d; border-color: #fecaca; }

/* ============================================================
   TYPEWRITER WORD
   ============================================================ */
/* Typewriter container — stały blok, zapobiega skakaniu layoutu */
.typewriter-line {
    display: block;
    min-height: 1.3em;
    overflow: hidden;
}
.typewriter-word {
    display: inline-block;
    white-space: nowrap;
    -webkit-text-fill-color: #60a5fa;
    color: #60a5fa;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
body[data-theme="light"] .typewriter-word { -webkit-text-fill-color: #1d4ed8; color: #1d4ed8; }
.typewriter-word.tw-out { opacity: 0; transform: translateY(-10px); }
.typewriter-word.tw-in  { opacity: 0; transform: translateY(10px); }

/* ============================================================
   HERO RADAR (background decoration)
   ============================================================ */
.hero { position: relative; }
.hero-content, .hero-live { position: relative; z-index: 1; }
.hero-radar {
    position: absolute;
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    width: 440px;
    height: 440px;
    opacity: 0.07;
    pointer-events: none;
    z-index: 0;
}
.hero-radar svg { width: 100%; height: 100%; }
.h-radar-circle { stroke: #3b82f6; stroke-width: 1; }
.h-radar-cross  { stroke: #3b82f6; stroke-width: 0.5; stroke-dasharray: 5 5; opacity: 0.6; }
.h-radar-sweep  {
    transform-origin: 200px 200px;
    animation: h-radar-spin 4s linear infinite;
}
@keyframes h-radar-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.h-radar-blip {
    fill: #3b82f6;
    transform-box: fill-box;
    transform-origin: center;
    animation: h-blip 3s ease-in-out infinite;
}
@keyframes h-blip {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50%       { opacity: 1; transform: scale(2); }
}

/* ============================================================
   FLOATING NOTIFICATION PREVIEW
   ============================================================ */
/* Notif stack — single rotating card */
.notif-stack {
    display: inline-flex;
    margin-top: 22px;
}
.notif-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--glass-bg-card);
    backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    max-width: 290px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.22), 0 0 0 1px rgba(59,130,246,0.08);
    animation: notif-float 4s ease-in-out infinite;
    transition: opacity 0.35s ease;
}
.notif-card.fading { opacity: 0; }
.notif-float-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
}
.notif-float-meta strong { color: var(--text); font-size: 11px; }
.notif-float-time { margin-left: auto; font-size: 10px; }
.notif-float-title { font-size: 13px; font-weight: 700; color: var(--text); }
.notif-float-body  { font-size: 11px; color: var(--text-muted); }
@keyframes notif-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-9px) scale(1); }
}


/* ============================================================
   SKELETON LOADING
   ============================================================ */
@keyframes skeleton-shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}
.skel {
    background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.6s ease infinite;
    border-radius: 6px;
}
.skel-title         { height: 20px; width: 55%; margin-bottom: 14px; }
.skel-line          { height: 13px; margin-bottom: 8px; }
.skel-line--short   { width: 38%; }
.skeleton-card      { pointer-events: none; }

/* ============================================================
   HEATMAP
   ============================================================ */
.heatmap { padding: 10px 0 4px; }
.hm-labels {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 3px;
}
.hm-label { font-size: 9px; color: var(--text-dim); text-align: center; }
.hm-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.hm-cell {
    aspect-ratio: 1;
    border-radius: 2px;
    cursor: default;
}
.hm-cell--0 { background: var(--surface); }
.hm-cell--1 { background: rgba(59,130,246,0.20); }
.hm-cell--2 { background: rgba(59,130,246,0.42); }
.hm-cell--3 { background: rgba(59,130,246,0.68); }
.hm-cell--4 { background: #3b82f6; }
.hm-legend {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 7px;
}
.hm-legend-label { font-size: 10px; color: var(--text-dim); }
.hm-legend .hm-cell { width: 11px; height: 11px; flex-shrink: 0; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ============================================================
   3D TILT — STEP CARDS
   ============================================================ */
.step {
    transition: transform 0.12s ease, box-shadow 0.2s ease;
    will-change: transform;
}
.step:hover { box-shadow: 0 20px 48px rgba(0,0,0,0.28); }

