/* ============================================
   FROST PROTOCOL THEME — Valorant Inspired
   ============================================ */

:root {
    --paper: #E8EDF2;
    --paper-elevated: #F4F7FA;
    --ink: #0A0F14;
    --ink-soft: #2A3542;
    --ink-muted: #5A6B7D;
    --line: #C5D0DC;
    --line-strong: #9AAEC2;
    --accent: #E8202D;
    --accent-dark: #B01520;
    --accent-soft: #FDE8EA;
    --ice: #7EB6E8;
    --ice-soft: #D6E8F7;
    --white: #FFFFFF;
    --success: #00C853;
    --error: #E8202D;
    --unit: 8px;
    --shadow-sm: 0 1px 2px rgba(10,15,20,0.06);
    --shadow-md: 0 4px 14px rgba(10,15,20,0.10);
    --shadow-lg: 0 16px 40px rgba(10,15,20,0.16);
    --glow-red: 0 0 24px rgba(232,32,45,0.35);
    --glow-ice: 0 0 24px rgba(126,182,232,0.25);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
    --paper: #0A0F14;
    --paper-elevated: #111820;
    --ink: #E8EDF2;
    --ink-soft: #C5D0DC;
    --ink-muted: #5A6B7D;
    --line: #1E2836;
    --line-strong: #2E3E52;
    --accent: #FF2D3F;
    --accent-dark: #E8202D;
    --accent-soft: #2A1215;
    --ice: #4A9FE8;
    --ice-soft: #122030;
    --white: #111820;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.5);
    --shadow-lg: 0 16px 40px rgba(0,0,0,0.6);
}

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

html, body { height: 100%; }

body {
    font-family: 'Chakra Petch', system-ui, sans-serif;
    background: var(--paper);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* ---------- THEME TOGGLE ---------- */
.theme-toggle {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 0;
    border: 1px solid var(--line);
    background: var(--paper-elevated);
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.25s var(--ease-out);
    box-shadow: var(--shadow-sm);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--glow-red);
}

.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ---------- LAYOUT ---------- */
.app-shell {
    width: 100%;
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}

/* ---------- HERO ---------- */
.campaign-hero {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--paper) 0%, var(--ice-soft) 100%);
    color: var(--ink);
    padding: 64px 56px 56px 80px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 48px;
    min-height: 380px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
}

/* Ice texture overlay */
.campaign-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 50 L30 20 L50 50 L80 30 L100 60' stroke='%237EB6E8' stroke-width='0.5' fill='none' opacity='0.3'/%3E%3Cpath d='M20 0 L40 40 L10 100' stroke='%237EB6E8' stroke-width='0.3' fill='none' opacity='0.2'/%3E%3Cpath d='M80 0 L60 50 L90 100' stroke='%237EB6E8' stroke-width='0.3' fill='none' opacity='0.2'/%3E%3C/svg%3E");
    opacity: 0.06;
    pointer-events: none;
}

/* Vertical red line — left edge */
.hero-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    box-shadow: var(--glow-red);
    animation: pulse-height 3s ease-in-out infinite;
}

@keyframes pulse-height {
    0%, 100% { opacity: 0.6; }
    50%      { opacity: 1; }
}

/* Kicker — vertical text like VALORANT */
.hero-kicker {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--paper);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
    padding: 12px 16px;
    background: var(--ink);
    border-left: 3px solid var(--accent);
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl;
}

.hero-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 0;
    box-shadow: 0 0 8px var(--accent);
    flex-shrink: 0;
}

.campaign-hero h1 {
    font-size: clamp(40px, 6vw, 84px);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    text-transform: uppercase;
    color: var(--ink);
}

.hero-accent {
    color: var(--accent);
    text-shadow: 0 0 30px rgba(232,32,45,0.3);
    display: inline-block;
    position: relative;
}

.hero-accent:hover {
    animation: glitch 0.3s ease infinite;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20%      { transform: translate(-2px, 1px); }
    40%      { transform: translate(2px, -1px); }
    60%      { transform: translate(-1px, -1px); }
    80%      { transform: translate(1px, 1px); }
}

.hero-sub {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.75;
    max-width: 520px;
    line-height: 1.55;
}

.hero-shortcuts {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    opacity: 0.6;
}

.hero-shortcuts kbd {
    background: var(--ink);
    color: var(--paper);
    padding: 4px 10px;
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    border: 1px solid var(--line-strong);
}

.hero-right { text-align: right; }

.hero-stat .stat-value {
    display: block;
    font-size: 104px;
    font-weight: 700;
    line-height: 0.85;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}

.hero-stat .stat-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.6;
    font-weight: 600;
}

.hero-stat-secondary {
    display: flex;
    gap: 32px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.mini-stat { text-align: right; }

.mini-value {
    display: block;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}

.mini-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.55;
    font-weight: 600;
    margin-top: 6px;
    display: block;
}

/* ---------- KPI CARDS ---------- */
.kpi-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.kpi-card {
    background: var(--paper-elevated);
    border: 1px solid var(--line);
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 150px;
    justify-content: space-between;
    transition: all 0.25s var(--ease-out);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.kpi-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Corner accent */
.kpi-card::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.kpi-card:hover::after {
    opacity: 1;
}

.kpi-card--accent {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--accent);
}

.kpi-card--accent .kpi-label {
    color: var(--accent);
}

.kpi-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.kpi-value {
    font-size: 52px;
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
}

.kpi-meta {
    font-size: 12px;
    color: var(--ink-muted);
    font-weight: 500;
}

/* ---------- WORKSPACE ---------- */
.workspace {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 16px;
}

/* ---------- INPUT PANEL ---------- */
.input-panel {
    background: var(--paper-elevated);
    border: 1px solid var(--line);
    padding: 36px;
    align-self: start;
    box-shadow: var(--shadow-sm);
}

.panel-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-muted);
    display: block;
    margin-bottom: 16px;
}

.input-wrap {
    display: flex;
    align-items: center;
    background: var(--paper);
    border: 1px solid var(--line);
    transition: all 0.2s ease;
    position: relative;
}

.input-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.input-prefix {
    padding: 0 8px 0 18px;
    font-size: 14px;
    opacity: 0.45;
}

#url-input {
    flex: 1;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    padding: 18px 12px 18px 8px;
    border: none;
    background: transparent;
    color: var(--ink);
    outline: none;
    min-width: 0;
}

.input-clear {
    background: none;
    border: none;
    color: var(--ink-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 0 18px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.input-wrap:focus-within .input-clear,
#url-input:not(:placeholder-shown) ~ .input-clear {
    opacity: 1;
}

.input-clear:hover { color: var(--accent); }

/* ---------- PREVIEW ---------- */
.preview-card {
    margin-top: 16px;
    padding: 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 3px solid var(--ice);
    display: flex;
    gap: 16px;
    align-items: center;
    animation: slide-in 0.3s ease;
}

.preview-card.hidden { display: none; }

@keyframes slide-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.preview-art {
    width: 60px;
    height: 60px;
    background: var(--line);
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--line);
}

.preview-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.preview-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-artist {
    font-size: 12px;
    color: var(--ink-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-meta {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    color: var(--ink-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 4px;
}

/* ---------- FORMAT CARDS ---------- */
.format-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 28px;
}

.format-card {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 22px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.22s var(--ease-out);
    font-family: inherit;
    color: inherit;
    text-align: center;
    position: relative;
    overflow: hidden;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.format-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    background: var(--accent-soft);
}

.format-card.active {
    background: var(--ink);
    border-color: var(--accent);
    color: var(--paper);
    box-shadow: var(--glow-red);
}

/* Red stripe on active */
.format-card.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--accent);
}

.format-card.active .format-icon {
    color: var(--accent);
    filter: drop-shadow(0 0 8px rgba(232,32,45,0.5));
}

.format-icon {
    width: 26px;
    height: 26px;
    margin-bottom: 2px;
    transition: transform 0.2s ease;
}

.format-card:hover .format-icon {
    transform: scale(1.08);
}

.format-name {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.format-sub {
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.6;
    font-weight: 600;
}

/* ---------- BUTTON ---------- */
.btn-primary {
    width: 100%;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 15px;
    font-weight: 700;
    padding: 18px 24px;
    background: var(--ink);
    color: var(--paper);
    border: none;
    cursor: pointer;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.2s var(--ease-out);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent);
    box-shadow: var(--glow-red);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    background: var(--line);
    color: var(--ink-muted);
    cursor: not-allowed;
}

.btn-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.btn-primary.loading .btn-spinner {
    display: block;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: scan 1.2s linear infinite;
}

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

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

.progress-bar {
    height: 2px;
    background: var(--line);
    margin-top: 14px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.progress-bar.visible {
    opacity: 1;
}

.progress-fill {
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: progress-slide 1.4s ease-in-out infinite;
}

@keyframes progress-slide {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
}

.input-hint {
    font-size: 12px;
    color: var(--ink-muted);
    margin-top: 14px;
    transition: color 0.2s ease;
    line-height: 1.5;
}

.input-hint.error {
    color: var(--error);
}

/* ---------- LOG PANEL ---------- */
.contact-list-panel {
    background: var(--paper-elevated);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    border-bottom: 1px solid var(--line);
}

.panel-header .panel-label {
    margin-bottom: 0;
}

.panel-count {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: var(--ink-muted);
}

.contact-list {
    max-height: 600px;
    overflow-y: auto;
    flex: 1;
}

.contact-row {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 18px 32px;
    border-bottom: 1px solid var(--line);
    border-left: 3px solid transparent;
    font-size: 14px;
    animation: row-in 0.35s ease;
    cursor: pointer;
    transition: all 0.15s ease;
}

.contact-row:hover {
    border-left-color: var(--ice);
    background: var(--ice-soft);
}

@keyframes row-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.contact-row:last-child {
    border-bottom: none;
}

.row-status {
    width: 8px;
    height: 8px;
    border-radius: 0;
    background: var(--ice);
    animation: pulse 1.2s ease-in-out infinite;
    flex-shrink: 0;
}

.row-status.done {
    background: var(--success);
    box-shadow: 0 0 12px rgba(0,200,83,0.5);
    animation: none;
}

.row-status.error {
    background: var(--accent);
    box-shadow: 0 0 12px rgba(232,32,45,0.5);
    animation: error-pulse 1s ease-in-out infinite;
}

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

@keyframes error-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}

.row-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--ink-muted);
    flex-shrink: 0;
}

.row-icon svg {
    width: 16px;
    height: 16px;
}

.row-title {
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.row-meta {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: var(--ink-muted);
    white-space: nowrap;
}

/* ---------- EMPTY STATE ---------- */
.empty-state {
    padding: 120px 32px;
    text-align: center;
    color: var(--ink-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.empty-icon {
    width: 48px;
    height: 48px;
    opacity: 0.3;
    margin-bottom: 20px;
}

.empty-state p {
    font-size: 14px;
    font-weight: 500;
}

.empty-state .empty-sub {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 6px;
    font-weight: 400;
}

/* ---------- TOASTS ---------- */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 200;
    pointer-events: none;
}

.toast {
    background: var(--ink);
    color: var(--paper);
    padding: 14px 22px;
    font-size: 13px;
    font-weight: 600;
    border-left: 3px solid var(--accent);
    animation: toast-in 0.3s var(--ease-out);
    max-width: 360px;
    box-shadow: var(--shadow-lg);
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.toast.success {
    border-left-color: var(--success);
}

.toast.error {
    border-left-color: var(--error);
}

@keyframes toast-in {
    from { opacity: 0; transform: translateX(30px) scale(0.95); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* ---------- MODAL ---------- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10,15,20,0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
    animation: fade-in 0.2s ease;
    padding: 24px;
}

.modal-backdrop.hidden {
    display: none;
}

@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal {
    background: var(--paper-elevated);
    border: 1px solid var(--line);
    padding: 40px;
    max-width: 480px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: modal-in 0.3s var(--ease-out);
    clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--paper);
    color: var(--ink);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--accent);
    color: var(--paper);
}

.modal-art {
    width: 100px;
    height: 100px;
    background: var(--line);
    background-size: cover;
    background-position: center;
    margin-bottom: 20px;
    border: 1px solid var(--line);
}

.modal-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.modal-subtitle {
    font-size: 14px;
    color: var(--ink-muted);
    margin-bottom: 24px;
}

.modal-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.modal-details div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.modal-details dt {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    font-weight: 600;
}

.modal-details dd {
    font-size: 13px;
    font-weight: 600;
    word-break: break-word;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .workspace { grid-template-columns: 1fr; }
    .contact-list { max-height: none; }
}

@media (max-width: 900px) {
    .campaign-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 48px 32px 48px 64px;
    }
    .hero-kicker {
        left: 16px;
        padding: 8px 12px;
    }
    .hero-right { text-align: left; }
    .hero-stat .stat-value { font-size: 72px; }
    .hero-stat-secondary { justify-content: flex-start; }
    .kpi-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .app-shell { padding: 12px; }
    .campaign-hero { padding: 36px 24px 36px 48px; }
    .hero-kicker {
        left: 12px;
        font-size: 9px;
    }
    .input-panel { padding: 24px; }
    .format-cards { grid-template-columns: 1fr; }
    .hero-stat .stat-value { font-size: 56px; }
    .modal-details { grid-template-columns: 1fr; }
    .contact-row { padding: 16px 20px; gap: 12px; }
    .panel-header { padding: 16px 20px; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}