/* ══════════════════════════════════════════════════
   RateRealist — The Freelance Day-Rate Reverse-Engineer
   Design: Warm dark theme with amber/gold accent
   ══════════════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
    --clr-bg: #0f0d13;
    --clr-bg-gradient: linear-gradient(135deg, #0f0d13 0%, #141020 50%, #0f0d13 100%);
    --clr-surface: #1a1721;
    --clr-surface-2: #221f2b;
    --clr-surface-3: #2a2636;
    --clr-border: #332e3d;
    --clr-border-hover: #4a4358;
    --clr-text: #ede8f5;
    --clr-text-muted: #9589a8;
    --clr-text-dim: #6b5f80;
    --clr-accent: #f59e0b;
    --clr-accent-hover: #d97706;
    --clr-accent-glow: rgba(245, 158, 11, 0.12);
    --clr-accent-glow-strong: rgba(245, 158, 11, 0.25);
    --clr-secondary: #8b5cf6;
    --clr-secondary-glow: rgba(139, 92, 246, 0.15);
    --clr-danger: #ef4444;
    --clr-danger-glow: rgba(239, 68, 68, 0.15);
    --clr-success: #22c55e;
    --clr-success-glow: rgba(34, 197, 94, 0.15);
    --clr-waterfall-revenue: linear-gradient(90deg, #f59e0b, #fbbf24);
    --clr-waterfall-deduct: linear-gradient(90deg, #dc2626, #ef4444);
    --clr-waterfall-takehome-ok: linear-gradient(90deg, #22c55e, #4ade80);
    --clr-waterfall-takehome-warn: linear-gradient(90deg, #dc2626, #f87171);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 4px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.45);
    --shadow-glow-amber: 0 0 30px rgba(245, 158, 11, 0.2);
    --shadow-glow-red: 0 0 30px rgba(239, 68, 68, 0.2);
    --font-sans: 'DM Sans', 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

/* ═══════════════════════════════════════════
   AD SLOTS
   ═══════════════════════════════════════════ */
.ad-slot {
    display: flex; align-items: center; justify-content: center;
    border: 1px dashed var(--clr-border); color: var(--clr-text-dim);
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
    background: var(--clr-surface); border-radius: var(--radius-xs);
}
.ad-slot--mobile { height: 50px; max-width: 320px; margin: 0 auto 1rem; }
.ad-slot--desktop { display: none; height: 90px; max-width: 728px; margin: 1.5rem auto; }
@media (min-width: 768px) {
    .ad-slot--mobile { display: none; }
    .ad-slot--desktop { display: flex; }
}

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.site-header {
    text-align: center;
    padding: 2.5rem 1rem 1.5rem;
    background: linear-gradient(180deg, var(--clr-surface) 0%, var(--clr-bg) 100%);
    border-bottom: 1px solid var(--clr-border);
    position: relative;
    overflow: hidden;
}
.site-header::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 200px;
    background: radial-gradient(ellipse, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.brand { display: flex; align-items: center; justify-content: center; gap: 0.6rem; position: relative; }
.brand-icon { font-size: 2.2rem; filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.3)); }
.brand-name { font-size: 1.85rem; font-weight: 800; letter-spacing: -0.02em; }
.brand-accent { color: var(--clr-accent); }
.brand-tagline {
    font-size: 0.95rem; color: var(--clr-accent); margin-top: 0.3rem;
    font-weight: 600; letter-spacing: 0.03em;
}
.brand-subtitle {
    font-size: 0.85rem; color: var(--clr-text-muted); margin-top: 0.4rem;
    opacity: 0.8;
}

/* ═══════════════════════════════════════════
   PRIVACY BADGE
   ═══════════════════════════════════════════ */
.privacy-badge {
    display: flex; align-items: center; gap: 0.5rem; justify-content: center;
    padding: 0.55rem 1.1rem; margin: 1.5rem auto 0.75rem; max-width: 420px;
    background: var(--clr-accent-glow);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 100px;
    font-size: 0.76rem; font-weight: 500; color: var(--clr-accent);
    letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════
   APP GRID
   ═══════════════════════════════════════════ */
.app-grid {
    display: grid; gap: 1.5rem; margin-top: 1.5rem;
}
@media (min-width: 768px) {
    .app-grid { grid-template-columns: 1fr 1.15fr; }
}

/* ═══════════════════════════════════════════
   PANELS
   ═══════════════════════════════════════════ */
.panel {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: border-color var(--transition);
}
.panel:hover { border-color: var(--clr-border-hover); }
.panel-title {
    font-size: 1.05rem; font-weight: 700; margin-bottom: 1.25rem;
    padding-bottom: 0.75rem; border-bottom: 1px solid var(--clr-border);
    display: flex; align-items: center; gap: 0.5rem;
}
.panel-title-icon { font-size: 1.1rem; }

/* ═══════════════════════════════════════════
   INPUT STYLING
   ═══════════════════════════════════════════ */
.input-fieldset {
    border: 1px solid var(--clr-border); border-radius: var(--radius-sm);
    padding: 1rem; margin-bottom: 1rem;
}
.input-fieldset legend {
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--clr-accent); padding: 0 0.4rem;
}
.input-group { margin-bottom: 0.85rem; }
.input-group:last-child { margin-bottom: 0; }
.input-group label {
    display: block; font-size: 0.75rem; font-weight: 600;
    color: var(--clr-text-muted); margin-bottom: 0.3rem;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.input-group input,
.input-group select {
    width: 100%; padding: 0.65rem 0.85rem; font-size: 0.95rem;
    font-family: var(--font-mono); background: var(--clr-surface-2);
    border: 1px solid var(--clr-border); border-radius: var(--radius-sm);
    color: var(--clr-text);
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none; -webkit-appearance: none;
}
.input-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239589a8' d='M1.4 0L6 4.6 10.6 0 12 1.4l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    padding-right: 2.2rem;
    cursor: pointer;
}
.input-group input:focus,
.input-group select:focus {
    outline: none; border-color: var(--clr-accent);
    box-shadow: 0 0 0 3px var(--clr-accent-glow);
}
.input-group input::placeholder { color: var(--clr-text-dim); opacity: 0.6; }

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn-calculate {
    display: flex; align-items: center; justify-content: center; gap: 0.4rem;
    width: 100%; padding: 0.85rem; margin-top: 0.75rem;
    font-size: 1rem; font-weight: 700; font-family: var(--font-sans);
    color: #1a1721; background: linear-gradient(135deg, var(--clr-accent), #d97706);
    border: none; border-radius: var(--radius-sm); cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    text-transform: uppercase; letter-spacing: 0.04em;
}
.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}
.btn-calculate:active { transform: translateY(0); }
.btn-icon { font-size: 1.1rem; }

/* Export buttons */
.export-bar {
    display: flex; gap: 0.5rem; margin-top: 0.75rem;
}
.btn-export {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.35rem;
    padding: 0.6rem 0.75rem; font-size: 0.78rem; font-weight: 600;
    font-family: var(--font-sans); color: var(--clr-text-muted);
    background: var(--clr-surface-2); border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm); cursor: pointer;
    transition: all var(--transition);
}
.btn-export:hover {
    color: var(--clr-text); border-color: var(--clr-border-hover);
    transform: translateY(-1px);
}
.btn-export-icon { font-size: 0.9rem; }

/* ═══════════════════════════════════════════
   RATE CARDS — 3×2 Grid
   ═══════════════════════════════════════════ */
.rate-cards {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
    margin-bottom: 1.25rem;
}
@media (min-width: 768px) {
    .rate-cards { grid-template-columns: 1fr 1fr 1fr; }
}
.rate-card {
    background: var(--clr-surface-2);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 0.75rem; text-align: center;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative; overflow: hidden;
}
.rate-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.rate-card--primary {
    border-color: var(--clr-accent);
    background: linear-gradient(135deg, var(--clr-accent-glow), var(--clr-surface-2));
    box-shadow: var(--shadow-glow-amber);
}
.rate-card--primary::before {
    content: '★';
    position: absolute; top: 0.4rem; right: 0.5rem;
    font-size: 0.65rem; color: var(--clr-accent); opacity: 0.5;
}
.rate-label {
    display: block; font-size: 0.65rem; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--clr-text-muted); margin-bottom: 0.3rem;
    font-weight: 600;
}
.rate-value {
    display: block; font-size: 1.3rem; font-weight: 800;
    font-family: var(--font-mono); line-height: 1.2;
    color: var(--clr-text);
}
.rate-card--primary .rate-value { color: var(--clr-accent); }

/* ═══════════════════════════════════════════
   DEDUCTION WATERFALL CHART
   ═══════════════════════════════════════════ */
.waterfall-section { margin-bottom: 1.5rem; }
.chart-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.chart-subtitle { font-size: 0.82rem; color: var(--clr-text-muted); margin-bottom: 1rem; }
.waterfall-chart { min-height: 180px; position: relative; }
.chart-placeholder {
    color: var(--clr-text-dim); text-align: center;
    padding: 3rem 1rem; font-size: 0.88rem; line-height: 1.7;
}

/* Waterfall row */
.wf-row {
    display: flex; align-items: center; gap: 0; margin-bottom: 0.35rem;
    position: relative;
    opacity: 0;
    transform: translateX(-30px);
    animation: wfSlideIn 0.5s ease forwards;
}
.wf-row:nth-child(1) { animation-delay: 0.05s; }
.wf-row:nth-child(2) { animation-delay: 0.1s; }
.wf-row:nth-child(3) { animation-delay: 0.15s; }
.wf-row:nth-child(4) { animation-delay: 0.2s; }
.wf-row:nth-child(5) { animation-delay: 0.25s; }
.wf-row:nth-child(6) { animation-delay: 0.3s; }
.wf-row:nth-child(7) { animation-delay: 0.35s; }
.wf-row:nth-child(8) { animation-delay: 0.4s; }
.wf-row:nth-child(9) { animation-delay: 0.45s; }
.wf-row:nth-child(10) { animation-delay: 0.5s; }

@keyframes wfSlideIn {
    to { opacity: 1; transform: translateX(0); }
}

.wf-label {
    width: 100px; flex-shrink: 0;
    font-size: 0.68rem; font-weight: 600;
    color: var(--clr-text-muted);
    text-align: right; padding-right: 0.6rem;
    line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wf-track {
    flex: 1; position: relative; height: 28px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-xs);
    overflow: visible;
}

/* Bar */
.wf-bar {
    position: absolute; top: 0; height: 100%;
    border-radius: var(--radius-xs);
    transition: width 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex; align-items: center;
    min-width: 2px;
}
.wf-bar--revenue {
    left: 0;
    background: var(--clr-waterfall-revenue);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}
.wf-bar--deduct {
    background: var(--clr-waterfall-deduct);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.15);
}
.wf-bar--takehome-ok {
    left: 0;
    background: var(--clr-waterfall-takehome-ok);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
}
.wf-bar--takehome-warn {
    left: 0;
    background: var(--clr-waterfall-takehome-warn);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
    animation: pulseRed 1.5s ease-in-out infinite;
}
@keyframes pulseRed {
    0%, 100% { box-shadow: 0 0 12px rgba(239, 68, 68, 0.3); }
    50% { box-shadow: 0 0 25px rgba(239, 68, 68, 0.6); }
}

/* Bar value label */
.wf-value {
    font-size: 0.63rem; font-weight: 700;
    font-family: var(--font-mono);
    color: #fff;
    padding: 0 0.5rem;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.wf-value-outside {
    position: absolute; top: 50%; transform: translateY(-50%);
    font-size: 0.6rem; font-weight: 700;
    font-family: var(--font-mono);
    color: var(--clr-text-muted);
    white-space: nowrap;
    padding-left: 0.3rem;
}

/* Connector lines */
.wf-connector {
    position: absolute;
    top: 100%;
    width: 1px;
    height: 10px;
    border-left: 1px dotted var(--clr-text-dim);
    z-index: 2;
}

/* ═══════════════════════════════════════════
   BILLABLE REALITY CHART
   ═══════════════════════════════════════════ */
.reality-chart { margin-top: 1.25rem; }
.chart-container { min-height: 120px; }

.hour-bar-row {
    display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem;
}
.hour-bar-label {
    font-size: 0.72rem; width: 100px; flex-shrink: 0;
    color: var(--clr-text-muted); text-align: right; font-weight: 600;
}
.hour-bar-track {
    flex: 1; display: flex; height: 30px; border-radius: 6px; overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}
.hour-bar {
    height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; font-weight: 700; font-family: var(--font-mono);
    color: #fff; white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}
.hour-bar--billable {
    background: linear-gradient(90deg, var(--clr-accent), #fbbf24);
}
.hour-bar--unbillable {
    background: linear-gradient(90deg, var(--clr-secondary), #a78bfa);
}
.hour-bar--pto {
    background: linear-gradient(90deg, #6b7280, #9ca3af);
}
.hour-bar--working {
    background: linear-gradient(90deg, var(--clr-accent), #fbbf24);
}

/* Reality Stats below the chart */
.reality-stats {
    margin-top: 1rem;
    display: flex; flex-direction: column; gap: 0.5rem;
}
.reality-stat {
    background: var(--clr-surface-2);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--clr-text-muted);
    text-align: center;
}
.reality-stat strong {
    color: var(--clr-accent);
    font-family: var(--font-mono);
    font-weight: 700;
}
.reality-stat .multiplier {
    color: var(--clr-danger);
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1rem;
}

/* ═══════════════════════════════════════════
   RATE SCENARIO TABLE
   ═══════════════════════════════════════════ */
.panel--scenarios {
    margin-top: 1.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.panel--scenarios.visible {
    opacity: 1; transform: translateY(0);
}
.scenarios-subtitle {
    font-size: 0.82rem; color: var(--clr-text-muted);
    margin-bottom: 1rem; margin-top: -0.5rem;
}
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.5rem; padding: 0 0.5rem;
}
.scenario-table {
    width: 100%; border-collapse: collapse;
    font-size: 0.82rem;
}
.scenario-table thead th {
    text-align: left; padding: 0.65rem 0.75rem;
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--clr-text-muted);
    border-bottom: 2px solid var(--clr-border);
    white-space: nowrap;
}
.scenario-table tbody td {
    padding: 0.6rem 0.75rem;
    font-family: var(--font-mono); font-weight: 500;
    border-bottom: 1px solid rgba(51, 46, 61, 0.5);
    white-space: nowrap;
}
.scenario-table tbody tr {
    transition: background var(--transition);
}
.scenario-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}
.scenario-table .row-positive td { color: var(--clr-success); }
.scenario-table .row-negative td { color: var(--clr-danger); }
.scenario-table .row-breakeven {
    background: var(--clr-accent-glow);
    border-left: 3px solid var(--clr-accent);
}
.scenario-table .row-breakeven td {
    color: var(--clr-accent); font-weight: 700;
}
.scenario-table .row-breakeven td:first-child::before {
    content: '▸ ';
}
.placeholder-row td {
    text-align: center; color: var(--clr-text-dim);
    padding: 2rem 1rem; font-family: var(--font-sans);
    font-style: italic;
}

/* ═══════════════════════════════════════════
   SALARY vs FREELANCE COMPARISON
   ═══════════════════════════════════════════ */
.panel--comparison {
    margin-top: 1.5rem;
}
.comparison-header {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 0.5rem;
}
.comparison-header .panel-title {
    margin-bottom: 0; padding-bottom: 0; border-bottom: none;
}

/* Toggle switch */
.toggle-switch {
    display: flex; align-items: center; gap: 0.5rem; cursor: pointer;
    font-size: 0.8rem; font-weight: 600; color: var(--clr-text-muted);
    user-select: none;
}
.toggle-switch input { display: none; }
.toggle-slider {
    width: 40px; height: 22px;
    background: var(--clr-surface-2);
    border: 1px solid var(--clr-border);
    border-radius: 11px;
    position: relative;
    transition: background var(--transition), border-color var(--transition);
}
.toggle-slider::after {
    content: '';
    position: absolute; top: 2px; left: 2px;
    width: 16px; height: 16px;
    background: var(--clr-text-muted);
    border-radius: 50%;
    transition: transform var(--transition), background var(--transition);
}
.toggle-switch input:checked + .toggle-slider {
    background: var(--clr-accent-glow-strong);
    border-color: var(--clr-accent);
}
.toggle-switch input:checked + .toggle-slider::after {
    transform: translateX(18px);
    background: var(--clr-accent);
}

.comparison-body {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--clr-border);
    animation: fadeSlideUp 0.35s ease forwards;
}
.comparison-body.hidden { display: none; }
.comparison-intro {
    font-size: 0.82rem; color: var(--clr-text-muted);
    margin-bottom: 1rem;
}
.comparison-inputs {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
    margin-bottom: 1rem;
}
@media (max-width: 600px) {
    .comparison-inputs { grid-template-columns: 1fr; }
}

.comparison-result {
    background: var(--clr-surface-2);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    font-size: 0.88rem;
    line-height: 1.6;
    text-align: center;
    color: var(--clr-text-muted);
    min-height: 60px;
    display: flex; align-items: center; justify-content: center;
}
.comparison-result strong {
    color: var(--clr-accent);
    font-family: var(--font-mono);
    font-weight: 700;
}
.comparison-result .comp-highlight {
    display: block; font-size: 1.3rem; font-weight: 800;
    font-family: var(--font-mono); color: var(--clr-accent);
    margin: 0.5rem 0;
}

/* ═══════════════════════════════════════════
   INFO SECTION (HOW IT WORKS)
   ═══════════════════════════════════════════ */
.info-section { margin-top: 2.5rem; padding-bottom: 0.5rem; }
.info-section h2 {
    text-align: center; font-size: 1.3rem; margin-bottom: 1.25rem;
    font-weight: 800;
}
.info-grid {
    display: grid; gap: 0.85rem;
}
@media (min-width: 640px) {
    .info-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .info-grid { grid-template-columns: repeat(4, 1fr); }
}
.info-card {
    background: var(--clr-surface); border: 1px solid var(--clr-border);
    border-radius: var(--radius); padding: 1.25rem 1rem; text-align: center;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.info-card:hover {
    transform: translateY(-3px); border-color: var(--clr-border-hover);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.info-icon { font-size: 1.75rem; display: block; margin-bottom: 0.6rem; }
.info-card h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.35rem; }
.info-card p { font-size: 0.78rem; color: var(--clr-text-muted); line-height: 1.5; }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
    text-align: center; padding: 2rem 1rem; margin-top: 2.5rem;
    border-top: 1px solid var(--clr-border);
    font-size: 0.78rem; color: var(--clr-text-dim);
}
.footer-privacy {
    color: var(--clr-accent); margin-bottom: 0.3rem; font-weight: 500;
}
.footer-disclaimer {
    margin-bottom: 0.6rem; font-style: italic; opacity: 0.7;
}

/* ═══════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════ */
.toast {
    position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(120%);
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--clr-surface-3);
    border: 1px solid var(--clr-accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg), var(--shadow-glow-amber);
    font-size: 0.85rem; font-weight: 600; color: var(--clr-text);
    z-index: 1000;
    opacity: 0; pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.toast.show {
    opacity: 1; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.toast-icon { font-size: 1.1rem; }

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   RESPONSIVE TWEAKS
   ═══════════════════════════════════════════ */
@media (max-width: 480px) {
    .brand-name { font-size: 1.5rem; }
    .brand-tagline { font-size: 0.82rem; }
    .rate-value { font-size: 1.1rem; }
    .wf-label { width: 72px; font-size: 0.58rem; }
    .wf-value { font-size: 0.55rem; }
    .hour-bar-label { width: 72px; font-size: 0.62rem; }
    .hour-bar { font-size: 0.55rem; }
    .scenario-table { font-size: 0.75rem; }
    .scenario-table thead th { font-size: 0.6rem; padding: 0.5rem; }
    .scenario-table tbody td { padding: 0.5rem; }
    .export-bar { flex-direction: column; }
    .reality-stat { font-size: 0.78rem; }
    .comparison-inputs { grid-template-columns: 1fr; }
}

@media (min-width: 768px) {
    .brand-name { font-size: 2.1rem; }
    .rate-value { font-size: 1.4rem; }
    .wf-label { width: 115px; font-size: 0.72rem; }
    .hour-bar-label { width: 115px; font-size: 0.75rem; }
}

/* ═══════════════ AFFILIATE & SEO ═══════════════ */
.seo-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 2rem 0;
}
.seo-card h2 {
    color: var(--clr-text);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}
.seo-card p {
    color: var(--clr-text-muted);
    line-height: 1.6;
}
.affiliate-gear a {
    color: var(--clr-secondary);
    font-weight: 600;
    text-decoration: none;
}
.affiliate-gear a:hover {
    color: var(--clr-text);
    text-decoration: underline;
}
