:root {
    --bg-dark: #0a0a0f;
    --bg-card: #111118;
    --bg-card-hover: #16161f;
    --accent-red: #ff2e2e;
    --accent-orange: #ff6b35;
    --accent-yellow: #ffc107;
    --accent-green: #00c853;
    --text-primary: #eaeaea;
    --text-secondary: #a8a8b0;
    --text-muted: #5a5a6e;
    --border: #1e1e2e;
    --gradient-crisis: linear-gradient(135deg, #ff2e2e, #ff6b35, #ffc107);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
}

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

/* ===== TICKER BAR ===== */
.ticker-bar {
    background: linear-gradient(90deg, #1a0505, #2a0a0a, #1a0505);
    border-bottom: 2px solid var(--accent-red);
    padding: 0.6rem 0;
    overflow: hidden;
    width: 100%;
    position: relative;
}

.ticker-content {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    animation: scroll-ticker 60s linear infinite;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    white-space: nowrap;
    padding-left: 100%;
}

@keyframes scroll-ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.ticker-alert {
    background: var(--accent-red);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-weight: 900;
    font-size: 0.75rem;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.ticker-label { color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }
.ticker-count { color: var(--accent-red); font-weight: 900; font-size: 1rem; }
.ticker-trend { color: var(--accent-yellow); font-weight: 700; }
.ticker-sep { color: var(--text-muted); }
.ticker-item { color: var(--text-secondary); }

/* ===== HERO ===== */
.hero {
    text-align: center;
    padding: 5rem 2rem 4rem;
    background: radial-gradient(ellipse at center top, rgba(255, 46, 46, 0.08) 0%, transparent 60%);
}

.hero h1 {
    font-size: clamp(3.5rem, 12vw, 9rem);
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.hero .crisis {
    background: var(--gradient-crisis);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 650px;
}

.hero-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin: 0 auto 0.75rem;
    flex-wrap: wrap;
}

.hero-donate-btn {
    display: inline-block;
    padding: 1.1rem 2.5rem;
    background: var(--gradient-crisis);
    color: white;
    font-weight: 900;
    font-size: 1.3rem;
    border-radius: 60px;
    text-decoration: none;
    box-shadow: 0 6px 30px rgba(255, 46, 46, 0.5), 0 0 60px rgba(255, 107, 53, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: donate-glow 2s ease-in-out infinite alternate;
    white-space: nowrap;
}

@keyframes donate-glow {
    0% { box-shadow: 0 6px 30px rgba(255, 46, 46, 0.5), 0 0 60px rgba(255, 107, 53, 0.2); }
    100% { box-shadow: 0 8px 40px rgba(255, 46, 46, 0.7), 0 0 80px rgba(255, 107, 53, 0.35); }
}

.hero-donate-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 10px 50px rgba(255, 46, 46, 0.7), 0 0 100px rgba(255, 107, 53, 0.4);
    text-decoration: none;
}

.subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ===== SECTIONS ===== */
.section {
    max-width: 1200px;
    margin: 0 auto 5rem;
    padding: 0 1.5rem;
}

.section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

/* ===== NEWS GRID ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.75rem;
    transition: all 0.2s ease;
}

.news-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    border-color: var(--accent-orange);
}

.news-card.urgent { border-left: 4px solid var(--accent-red); }
.news-card.warning { border-left: 4px solid var(--accent-yellow); }

.category {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-orange);
    margin-bottom: 0.5rem;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 3px;
}

.news-card.urgent .category { color: var(--accent-red); background: rgba(255, 46, 46, 0.1); }

.news-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; line-height: 1.4; }
.news-card p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 0.75rem; }
.news-card code { background: rgba(255, 255, 255, 0.05); padding: 0.15rem 0.4rem; border-radius: 3px; font-size: 0.8rem; }
.source-link { font-size: 0.8rem; font-weight: 600; display: inline-block; margin-bottom: 0.5rem; }
.meta { display: block; font-size: 0.75rem; color: var(--text-muted); font-style: italic; }

/* ===== STATS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: border-color 0.2s;
}

.stat-card:hover { border-color: var(--accent-orange); }

.stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    background: var(--gradient-crisis);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.stat-unit { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin: 0.25rem 0 0.5rem; }
.stat-label { color: var(--text-secondary); font-size: 0.8rem; }

/* ===== OFFENDERS ===== */
.offenders-list { list-style: none; }

.offenders-list li {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

.offenders-list li:hover { border-color: var(--accent-red); }

.offender-rank {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent-red);
    min-width: 2.5rem;
}

.offender-details { display: flex; flex-direction: column; gap: 0.3rem; }
.offender-name { font-weight: 700; font-size: 1rem; }
.offender-crime { color: var(--text-secondary); font-size: 0.9rem; }
.offender-tokens { color: var(--accent-orange); font-size: 0.8rem; font-weight: 700; margin-top: 0.25rem; }

/* ===== TIPS ===== */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tip-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.75rem;
}

.tip-card h4 { margin-bottom: 0.75rem; font-size: 1.05rem; }
.tip-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* ===== HEADLINES ===== */
.headlines-list { display: flex; flex-direction: column; gap: 1.25rem; }

.headline-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent-orange);
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
}

.headline-item p { font-size: 1rem; margin-bottom: 0.5rem; color: var(--text-primary); }
.headline-item cite { font-size: 0.8rem; color: var(--text-muted); }

/* ===== CRISIS METER ===== */
.crisis-meter-section { text-align: center; }

.crisis-meter { max-width: 700px; margin: 0 auto 1.5rem; }

.meter-bar {
    height: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.meter-fill {
    height: 100%;
    width: 94%;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-yellow), var(--accent-orange), var(--accent-red));
    border-radius: 1rem;
    transition: width 1s ease;
}

.meter-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 0 0.5rem;
}

.meter-labels .active-level { color: var(--accent-red); font-weight: 900; }
.meter-caption { color: var(--text-muted); font-size: 0.85rem; font-style: italic; }

/* ===== FOOTER ===== */
footer {
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    text-align: center;
}

/* ===== CALCULATOR ===== */
.calculator-section { }
.calc-subtitle { color: var(--text-secondary); margin-bottom: 2rem; font-size: 1.05rem; }

.calc-container {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 2.5rem;
    align-items: start;
    background: linear-gradient(145deg, rgba(20, 20, 30, 0.8), rgba(10, 10, 15, 0.9));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.calc-controls {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.calc-control {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    transition: border-color 0.2s;
}

.calc-control:hover {
    border-color: rgba(255, 107, 53, 0.3);
}

.calc-control label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.slider-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.calc-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-red));
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.calc-slider:hover { opacity: 1; }

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: 3px solid var(--accent-orange);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    transition: transform 0.15s;
}

.calc-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }

.calc-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: 3px solid var(--accent-orange);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

.slider-value {
    min-width: 6rem;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-weight: 800;
    color: white;
    font-size: 0.95rem;
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid rgba(255, 107, 53, 0.3);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
}

.calc-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(15, 15, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.calc-select:focus { border-color: var(--accent-orange); }

.calc-select option {
    background: #1a1a24;
    color: var(--text-primary);
    padding: 0.5rem;
}

.calc-results {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 46, 46, 0.2);
    border-radius: 14px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.calc-results::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-crisis);
}

.calc-results h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.impact-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 4px;
    margin-bottom: 1.5rem;
}

.impact-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    color: var(--accent-orange);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 800;
    border-bottom: 2px solid rgba(255, 107, 53, 0.3);
}

.impact-table td {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.impact-table tr:hover td {
    background: rgba(255, 107, 53, 0.05);
}

.impact-table td:first-child {
    font-weight: 600;
    color: var(--text-secondary);
    width: 45%;
}

.impact-table td:last-child {
    font-family: 'Courier New', monospace;
    font-weight: 700;
}

.verdict-cell { font-weight: 800 !important; font-family: -apple-system, sans-serif !important; }

.impact-gauges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.015);
    border-radius: 10px;
}

.gauge-item { text-align: center; padding: 0.5rem; flex: 1; }
.gauge-label { display: block; font-size: 0.75rem; color: var(--accent-orange); margin-bottom: 0.5rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; min-height: 1.2em; }
.gauge-value { display: block; font-family: 'Courier New', monospace; font-size: 1.6rem; font-weight: 900; color: white; text-shadow: 0 0 20px rgba(255, 107, 53, 0.3); }

/* ===== DONATE BUTTONS ===== */
.donate-btn {
    display: block;
    width: 100%;
    padding: 1.25rem 2rem;
    background: var(--gradient-crisis);
    color: white;
    text-align: center;
    font-weight: 900;
    font-size: 1.2rem;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 25px rgba(255, 46, 46, 0.4);
    letter-spacing: 0.5px;
}

.donate-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 40px rgba(255, 46, 46, 0.6);
    text-decoration: none;
}

.sticky-donate {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 0.9rem 1.5rem;
    background: var(--gradient-crisis);
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(255, 46, 46, 0.4);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.sticky-donate.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.sticky-donate:hover {
    box-shadow: 0 6px 30px rgba(255, 46, 46, 0.6);
    text-decoration: none;
    transform: translateY(-2px);
}

.footer-main { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 0.75rem; }
.footer-disclaimer { font-size: 0.8rem; color: var(--text-muted); font-style: italic; margin-bottom: 0.5rem; }
.footer-meta { font-size: 0.7rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .ticker-content { font-size: 0.75rem; }
    .hero { padding: 3rem 1rem 2.5rem; }
    .hero-row { flex-direction: column; gap: 1.5rem; }
    .hero-donate-btn { font-size: 1.1rem; padding: 1rem 2rem; }
    .news-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .offenders-list li { flex-direction: column; gap: 0.5rem; }
    .tips-grid { grid-template-columns: 1fr; }
    .meter-labels { font-size: 0.6rem; }
}

@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .calc-container { grid-template-columns: 1fr; }
}

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