/* ══════════════════════════════════════════════════
   MarginMax — The Break-Even ROAS Decoder
   Design: Dark finance dashboard with green/red P&L
   ══════════════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
    --clr-bg: #0a0f1a;
    --clr-bg-gradient: linear-gradient(135deg, #0a0f1a 0%, #0d1425 50%, #0a0f1a 100%);
    --clr-surface: #111827;
    --clr-surface-2: #1a2235;
    --clr-surface-3: #1e2740;
    --clr-border: #2a3448;
    --clr-border-hover: #3b4a63;
    --clr-text: #e8ecf4;
    --clr-text-muted: #8896ae;
    --clr-text-dim: #5a6880;
    --clr-accent: #22c55e;
    --clr-accent-hover: #16a34a;
    --clr-accent-glow: rgba(34, 197, 94, 0.15);
    --clr-accent-glow-strong: rgba(34, 197, 94, 0.3);
    --clr-danger: #ef4444;
    --clr-danger-glow: rgba(239, 68, 68, 0.15);
    --clr-danger-glow-strong: rgba(239, 68, 68, 0.3);
    --clr-warning: #f59e0b;
    --clr-blue: #3b82f6;
    --clr-blue-glow: rgba(59, 130, 246, 0.15);
    --clr-waterfall-revenue: linear-gradient(90deg, #22c55e, #4ade80);
    --clr-waterfall-deduct: linear-gradient(90deg, #dc2626, #ef4444);
    --clr-waterfall-net-pos: linear-gradient(90deg, #2563eb, #60a5fa);
    --clr-waterfall-net-neg: linear-gradient(90deg, #dc2626, #f87171);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 4px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow-green: 0 0 30px rgba(34, 197, 94, 0.2);
    --shadow-glow-red: 0 0 30px rgba(239, 68, 68, 0.2);
    --shadow-glow-blue: 0 0 30px rgba(59, 130, 246, 0.2);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 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, #111827 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(34, 197, 94, 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(34, 197, 94, 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: 400px;
    background: var(--clr-accent-glow);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 100px;
    font-size: 0.76rem; font-weight: 500; color: var(--clr-accent);
    letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════
   MODE TOGGLE
   ═══════════════════════════════════════════ */
.mode-toggle-wrap {
    display: flex; justify-content: center; gap: 0.5rem;
    margin: 1rem auto 1.5rem; max-width: 400px;
}
.mode-toggle {
    flex: 1;
    padding: 0.6rem 1rem;
    font-size: 0.82rem; font-weight: 600;
    font-family: var(--font-sans);
    color: var(--clr-text-muted);
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    display: flex; align-items: center; justify-content: center; gap: 0.4rem;
}
.mode-toggle:hover { border-color: var(--clr-border-hover); color: var(--clr-text); }
.mode-toggle.active {
    color: var(--clr-accent);
    border-color: var(--clr-accent);
    background: var(--clr-accent-glow);
}
.mode-icon { font-size: 1rem; }

/* ═══════════════════════════════════════════
   APP GRID
   ═══════════════════════════════════════════ */
.app-grid {
    display: grid; gap: 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-group { margin-bottom: 0.85rem; }
.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='%238896ae' 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; }

/* Input rows (side-by-side) */
.input-row {
    display: flex; gap: 0.75rem;
}
.input-group--half { flex: 1; }

/* ═══════════════════════════════════════════
   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: #fff; background: linear-gradient(135deg, var(--clr-accent), #16a34a);
    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(34, 197, 94, 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; }

/* ═══════════════════════════════════════════
   SUMMARY GRID
   ═══════════════════════════════════════════ */
.summary-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
    margin-bottom: 1rem;
}
.summary-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;
}
.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.summary-card--highlight {
    border-color: var(--clr-accent);
    background: linear-gradient(135deg, var(--clr-accent-glow), var(--clr-surface-2));
    box-shadow: var(--shadow-glow-green);
}
.summary-card--highlight::before {
    content: '★';
    position: absolute; top: 0.4rem; right: 0.5rem;
    font-size: 0.7rem; color: var(--clr-accent); opacity: 0.6;
}
.summary-label {
    display: block; font-size: 0.68rem; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--clr-text-muted); margin-bottom: 0.3rem;
    font-weight: 600;
}
.summary-value {
    display: block; font-size: 1.3rem; font-weight: 800;
    font-family: var(--font-mono); line-height: 1.2;
}

/* ═══════════════════════════════════════════
   WATERFALL CHART
   ═══════════════════════════════════════════ */
.waterfall-chart {
    margin-bottom: 1.25rem; min-height: 180px;
    position: relative;
}
.waterfall-placeholder {
    color: var(--clr-text-dim); text-align: center;
    padding: 3rem 1rem; font-size: 0.9rem; line-height: 1.7;
}
.placeholder-hint {
    font-size: 0.75rem; opacity: 0.6; display: block; margin-top: 0.25rem;
}

/* 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: 90px; 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: 26px;
    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(34, 197, 94, 0.25);
}
.wf-bar--deduct {
    background: var(--clr-waterfall-deduct);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.15);
}
.wf-bar--net-pos {
    left: 0;
    background: var(--clr-waterfall-net-pos);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}
.wf-bar--net-neg {
    left: 0;
    background: var(--clr-waterfall-net-neg);
    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.65rem; 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%; right: -4px; transform: translate(100%, -50%);
    font-size: 0.63rem; 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;
}

/* ═══════════════════════════════════════════
   ROAS 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;
}
.roas-table {
    width: 100%; border-collapse: collapse;
    font-size: 0.82rem;
}
.roas-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;
}
.roas-table tbody td {
    padding: 0.6rem 0.75rem;
    font-family: var(--font-mono); font-weight: 500;
    border-bottom: 1px solid rgba(42, 52, 72, 0.5);
    white-space: nowrap;
}
.roas-table tbody tr {
    transition: background var(--transition);
}
.roas-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}
.roas-table .row-positive td { color: var(--clr-accent); }
.roas-table .row-negative td { color: var(--clr-danger); }
.roas-table .row-breakeven {
    background: var(--clr-accent-glow);
    border-left: 3px solid var(--clr-accent);
}
.roas-table .row-breakeven td {
    color: var(--clr-accent); font-weight: 700;
}
.roas-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;
}

/* ═══════════════════════════════════════════
   COMPARISON VIEW
   ═══════════════════════════════════════════ */
.compare-view { margin-top: 0; }
.compare-view.hidden { display: none; }
.single-view.hidden { display: none; }

.compare-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1rem; gap: 1rem;
    flex-wrap: wrap;
}
.compare-header .panel-title {
    margin-bottom: 0; padding-bottom: 0; border-bottom: none;
}

.btn-add-product {
    display: flex; align-items: center; gap: 0.3rem;
    padding: 0.55rem 1rem; font-size: 0.8rem; font-weight: 700;
    font-family: var(--font-sans); color: var(--clr-accent);
    background: var(--clr-accent-glow); border: 1px solid var(--clr-accent);
    border-radius: var(--radius-sm); cursor: pointer;
    transition: all var(--transition);
}
.btn-add-product:hover {
    background: var(--clr-accent-glow-strong);
    transform: translateY(-1px);
}
.btn-add-product:disabled {
    opacity: 0.4; cursor: not-allowed; transform: none;
}
.btn-add-product span { font-size: 1.1rem; }

.compare-columns {
    display: grid; gap: 1rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .compare-columns { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

/* Compare product card */
.compare-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    position: relative;
    animation: fadeSlideUp 0.35s ease forwards;
}
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.compare-card-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1rem; padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--clr-border);
}
.compare-card-title {
    font-size: 0.9rem; font-weight: 700; color: var(--clr-text);
}
.btn-remove-product {
    width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: var(--clr-text-muted);
    background: transparent; border: 1px solid var(--clr-border);
    border-radius: 50%; cursor: pointer;
    transition: all var(--transition);
}
.btn-remove-product:hover {
    color: var(--clr-danger); border-color: var(--clr-danger);
    background: var(--clr-danger-glow);
}

.compare-card .input-group { margin-bottom: 0.6rem; }
.compare-card .input-group label { font-size: 0.65rem; }
.compare-card .input-group input,
.compare-card .input-group select { padding: 0.5rem 0.7rem; font-size: 0.85rem; }
.compare-card .input-row { gap: 0.5rem; }

/* Compare metrics mini-grid */
.compare-metrics {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem;
    margin-top: 0.75rem;
}
.compare-metric {
    background: var(--clr-surface-2);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-xs);
    padding: 0.5rem; text-align: center;
}
.compare-metric-label {
    display: block; font-size: 0.58rem; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--clr-text-dim); margin-bottom: 0.15rem;
}
.compare-metric-value {
    display: block; font-size: 0.95rem; font-weight: 800;
    font-family: var(--font-mono);
}
.compare-metric--highlight {
    border-color: var(--clr-accent);
    background: var(--clr-accent-glow);
}

/* Compare ranking summary */
.compare-summary {
    margin-top: 1.25rem;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}
.compare-summary.hidden { display: none; }
.compare-summary-title {
    font-size: 0.9rem; font-weight: 700; margin-bottom: 0.75rem;
    display: flex; align-items: center; gap: 0.4rem;
}
.rank-row {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.5rem 0.6rem; margin-bottom: 0.3rem;
    border-radius: var(--radius-xs);
    transition: background var(--transition);
}
.rank-row:hover { background: rgba(255, 255, 255, 0.03); }
.rank-medal {
    font-size: 1.2rem; flex-shrink: 0;
}
.rank-name {
    font-size: 0.82rem; font-weight: 600; flex: 1;
}
.rank-values {
    display: flex; gap: 1rem;
    font-size: 0.78rem; font-family: var(--font-mono); font-weight: 600;
}

/* ═══════════════════════════════════════════
   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-green);
    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; }

/* ═══════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════ */
.text-positive { color: var(--clr-accent) !important; }
.text-negative { color: var(--clr-danger) !important; }
.text-blue { color: var(--clr-blue) !important; }

/* ═══════════════════════════════════════════
   RESPONSIVE TWEAKS
   ═══════════════════════════════════════════ */
@media (max-width: 480px) {
    .brand-name { font-size: 1.5rem; }
    .brand-tagline { font-size: 0.82rem; }
    .summary-value { font-size: 1.1rem; }
    .wf-label { width: 70px; font-size: 0.6rem; }
    .wf-value { font-size: 0.58rem; }
    .roas-table { font-size: 0.75rem; }
    .roas-table thead th { font-size: 0.62rem; padding: 0.5rem; }
    .roas-table tbody td { padding: 0.5rem; }
    .export-bar { flex-direction: column; }
}

@media (min-width: 768px) {
    .brand-name { font-size: 2.1rem; }
    .summary-value { font-size: 1.45rem; }
    .wf-label { width: 110px; font-size: 0.72rem; }
}

/* ═══════════════ 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-blue);
    font-weight: 600;
    text-decoration: none;
}
.affiliate-gear a:hover {
    color: var(--clr-text);
    text-decoration: underline;
}
