:root {
    --tl-primary: #2563EB;
    --tl-primary-hover: #1D4ED8;
    --tl-primary-dark: #1E40AF;
    --tl-bg: #F8FAFC;
    --tl-surface: #FFFFFF;
    --tl-border: #E2E8F0;
    --tl-text: #0F172A;
    --tl-text-muted: #64748B;
    --tl-success: #059669;
    --tl-warning: #D97706;
    --tl-danger: #DC2626;
    --tl-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 8px 24px rgba(15, 23, 42, 0.06);
    --tl-radius: 12px;
    --tl-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    margin: 0;
    font-family: var(--tl-font);
    background: var(--tl-bg);
    color: var(--tl-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.container { width: min(1140px, 92vw); margin: 0 auto; }
.container-narrow { width: min(720px, 92vw); margin: 0 auto; }

/* Header */
.site-header {
    background: var(--tl-surface);
    border-bottom: 1px solid var(--tl-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 24px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--tl-text);
}
.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--tl-primary), var(--tl-primary-dark));
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
}
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: var(--tl-text-muted); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--tl-primary); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: background .15s, transform .1s, box-shadow .15s;
    text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--tl-primary); color: #fff; }
.btn-primary:hover { background: var(--tl-primary-hover); color: #fff; box-shadow: 0 4px 14px rgba(37,99,235,.35); }
.btn-outline { background: transparent; color: var(--tl-primary); border: 1.5px solid var(--tl-border); }
.btn-outline:hover { border-color: var(--tl-primary); color: var(--tl-primary-hover); }
.btn-ghost { background: transparent; color: var(--tl-text-muted); }
.btn-sm { padding: 7px 14px; font-size: 0.875rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

/* Hero */
.hero {
    padding: 72px 0 56px;
    background: linear-gradient(180deg, #EFF6FF 0%, var(--tl-bg) 100%);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}
.hero h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin: 0 0 16px;
}
.hero-lead {
    font-size: 1.125rem;
    color: var(--tl-text-muted);
    margin: 0 0 28px;
    max-width: 520px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.trust-badges { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--tl-surface);
    border: 1px solid var(--tl-border);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.875rem;
    color: var(--tl-text-muted);
    box-shadow: var(--tl-shadow);
}
.trust-badge strong { color: var(--tl-text); }

/* Cards */
.card {
    background: var(--tl-surface);
    border: 1px solid var(--tl-border);
    border-radius: var(--tl-radius);
    box-shadow: var(--tl-shadow);
}
.card-body { padding: 24px; }
.card-title { margin: 0 0 8px; font-size: 1.05rem; }
.card-text { margin: 0; color: var(--tl-text-muted); font-size: 0.925rem; }

/* Escrow flow */
.escrow-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 32px 0;
}
.escrow-step {
    text-align: center;
    padding: 20px 12px;
    background: var(--tl-surface);
    border: 1px solid var(--tl-border);
    border-radius: var(--tl-radius);
    position: relative;
}
.escrow-step::after {
    content: '→';
    position: absolute;
    right: -18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tl-primary);
    font-weight: 700;
}
.escrow-step:last-child::after { display: none; }
.escrow-step .icon { font-size: 1.5rem; margin-bottom: 8px; }
.escrow-step h4 { margin: 0 0 4px; font-size: 0.95rem; }
.escrow-step p { margin: 0; font-size: 0.8rem; color: var(--tl-text-muted); }

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--tl-surface);
    border: 1px solid var(--tl-border);
    border-radius: var(--tl-radius);
    padding: 20px;
    box-shadow: var(--tl-shadow);
}
.stat-label { font-size: 0.8rem; color: var(--tl-text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.stat-value { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.stat-value.primary { color: var(--tl-primary); }
.stat-sub { font-size: 0.8rem; color: var(--tl-text-muted); margin-top: 4px; }

/* Dashboard layout */
.app-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 65px); }
.sidebar {
    background: var(--tl-surface);
    border-right: 1px solid var(--tl-border);
    padding: 24px 16px;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--tl-text-muted);
    font-weight: 500;
    margin-bottom: 4px;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
    background: #EFF6FF;
    color: var(--tl-primary);
}
.main-content { padding: 28px 32px; }
.page-header { margin-bottom: 24px; }
.page-header h1 { margin: 0 0 6px; font-size: 1.5rem; letter-spacing: -0.02em; }
.page-header p { margin: 0; color: var(--tl-text-muted); }

/* Forms */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 6px; }
.form-hint { font-size: 0.8rem; color: var(--tl-text-muted); margin-top: 4px; }
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--tl-border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--tl-surface);
    transition: border-color .15s, box-shadow .15s;
}
.form-control:focus {
    outline: none;
    border-color: var(--tl-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.input-money {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.media-split-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
}
.media-split-item {
    min-width: 0;
}
.media-split-item .form-control {
    width: 100%;
}
textarea.form-control { min-height: 100px; resize: vertical; }

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.925rem;
}
.alert-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.alert-info { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }

/* Table */
.table-wrap { overflow-x: auto; }
table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
table.data-table th, table.data-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--tl-border);
}
table.data-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--tl-text-muted);
    background: #F8FAFC;
}
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-pending { background: #FEF3C7; color: #92400E; }
.badge-approved, .badge-active { background: #D1FAE5; color: #065F46; }
.badge-draft { background: #E2E8F0; color: #475569; }
.badge-paused, .badge-budget_exceeded { background: #FEE2E2; color: #991B1B; }

/* Audience suggestion chips */
.audience-suggestions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}
.audience-suggestion-group {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
}
.audience-suggestion-label {
    flex: 0 0 auto;
    min-width: 56px;
    padding-top: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tl-text-muted);
}
.audience-badges {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}
.audience-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--tl-border);
    background: var(--tl-surface);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.audience-chip:hover {
    border-color: var(--tl-primary);
    box-shadow: 0 0 0 2px rgba(37,99,235,.1);
}
.audience-chip-recent {
    background: #F8FAFC;
    color: #334155;
}
.audience-chip-recent:hover {
    background: #EFF6FF;
    color: var(--tl-primary);
}
.audience-chip-trend {
    background: #FDF4FF;
    border-color: #E9D5FF;
    color: #7E22CE;
}
.audience-chip-trend:hover {
    background: #FAE8FF;
    border-color: #C084FC;
    color: #6B21A8;
}
.audience-chip-recommended {
    background: #ECFDF5;
    border-color: #A7F3D0;
    color: #047857;
}
.audience-chip-recommended:hover {
    background: #D1FAE5;
    border-color: #6EE7B7;
    color: #065F46;
}
.audience-chip-industry {
    background: #FFF7ED;
    border-color: #FED7AA;
    color: #C2410C;
}
.audience-chip-industry:hover {
    background: #FFEDD5;
    border-color: #FDBA74;
    color: #9A3412;
}
.audience-chip-season {
    background: #EFF6FF;
    border-color: #BFDBFE;
    color: #1D4ED8;
}
.audience-chip-season:hover {
    background: #DBEAFE;
    border-color: #93C5FD;
    color: #1E40AF;
}
.audience-chip.is-applied {
    border-color: var(--tl-primary);
    box-shadow: 0 0 0 2px rgba(37,99,235,.15);
}
.form-control.is-applied {
    border-color: var(--tl-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* Media tabs */
.media-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.media-tab {
    padding: 10px 18px;
    border-radius: 8px;
    border: 1.5px solid var(--tl-border);
    background: var(--tl-surface);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
}
.media-tab.active { border-color: var(--tl-primary); background: #EFF6FF; color: var(--tl-primary); }
.media-panel { display: none; }
.media-panel.active { display: block; }

/* Shorts grid */
.shorts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}
.short-card {
    border: 1px solid var(--tl-border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--tl-surface);
}
.short-card img { width: 100%; aspect-ratio: 9/16; object-fit: cover; display: block; background: #0F172A; }
.short-card .meta { padding: 10px; font-size: 0.8rem; }
.short-card .meta strong { display: block; margin-bottom: 4px; }

/* Split bar */
.split-bar {
    display: flex;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    margin: 8px 0;
}
.split-meta { background: #1877F2; }
.split-google { background: #EA4335; }
.split-tiktok { background: #000; }

/* Footer */
.site-footer {
    background: var(--tl-surface);
    border-top: 1px solid var(--tl-border);
    padding: 32px 0;
    margin-top: 64px;
    color: var(--tl-text-muted);
    font-size: 0.875rem;
}

/* Sections */
.section { padding: 56px 0; }
.section-title { text-align: center; margin: 0 0 12px; font-size: 1.75rem; letter-spacing: -0.02em; }
.section-lead { text-align: center; color: var(--tl-text-muted); margin: 0 auto 40px; max-width: 560px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

@media (max-width: 900px) {
    .hero-grid, .feature-grid, .escrow-flow { grid-template-columns: 1fr; }
    .escrow-step::after { display: none; }
    .app-layout { grid-template-columns: 1fr; }
    .sidebar { border-right: none; border-bottom: 1px solid var(--tl-border); }
    .form-row { grid-template-columns: 1fr; }
    .media-split-row { grid-template-columns: 1fr; }
    .app-shell { flex-direction: column; }
    .app-sidebar { width: 100%; height: auto; }
    .app-main { padding: 20px 16px; }
    .metrics-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   App Shell — Cursor / SaaS billing style dashboard
   ============================================================ */
body.app-mode {
    background: var(--tl-bg);
    overflow: hidden;
}

.app-shell {
    display: flex;
    height: 100vh;
    width: 100%;
}

.app-sidebar {
    width: 248px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #FAFAFA;
    border-right: 1px solid #E5E7EB;
}

.app-sidebar-brand {
    padding: 18px 16px 12px;
}

.app-brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--tl-text);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
}

.app-brand-link:hover { color: var(--tl-text); }

.app-brand-text { letter-spacing: -0.02em; }

.app-sidebar-nav {
    flex: 1;
    padding: 8px 10px;
    overflow-y: auto;
}

.app-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin-bottom: 2px;
    border-radius: 8px;
    color: #6B7280;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .12s, color .12s;
}

.app-sidebar-nav a:hover {
    background: #F3F4F6;
    color: #111827;
}

.app-sidebar-nav a.active {
    background: #EDEDED;
    color: #111827;
    font-weight: 600;
}

.app-nav-icon {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.app-nav-icon svg {
    width: 18px;
    height: 18px;
}

.app-sidebar-footer {
    padding: 12px 14px;
    border-top: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #FAFAFA;
}

.app-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.app-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tl-primary), var(--tl-primary-dark));
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.app-user-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-user-meta strong {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-user-meta span {
    font-size: 0.75rem;
    color: #9CA3AF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-logout {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #9CA3AF;
    flex-shrink: 0;
}

.app-logout:hover {
    background: #F3F4F6;
    color: #374151;
}

.app-logout svg {
    width: 16px;
    height: 16px;
}

.app-main {
    flex: 1;
    overflow-y: auto;
    background: var(--tl-bg);
    padding: 36px 44px 48px;
}

.app-page-title {
    margin: 0 0 28px;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #111827;
}

.app-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    margin-bottom: 20px;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 10px;
}

.app-banner-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.app-banner-text strong {
    font-size: 0.875rem;
    color: #14532D;
}

.app-banner-text span {
    font-size: 0.8125rem;
    color: #166534;
}

.panel {
    background: var(--tl-surface);
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #F3F4F6;
}

.panel-head h2 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

.panel-head-meta {
    font-size: 0.75rem;
    color: #9CA3AF;
}

.panel-head-with-action .panel-head-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.panel-body {
    padding: 4px 20px 16px;
}

.panel-body-flush {
    padding: 0;
}

.panel-body-table {
    padding: 0 20px 8px;
}

.panel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #F3F4F6;
}

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

.panel-row-label {
    font-size: 0.8125rem;
    color: #6B7280;
    margin-bottom: 4px;
}

.panel-row-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    letter-spacing: -0.02em;
}

.panel-row-sub {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #111827;
}

.panel-row-sub .muted {
    color: #9CA3AF;
    font-weight: 400;
}

.panel-row-side {
    text-align: right;
}

.panel-meta {
    font-size: 0.8125rem;
    color: #9CA3AF;
}

.btn-panel {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .12s, border-color .12s;
}

.btn-panel:hover {
    background: #F9FAFB;
    border-color: #D1D5DB;
    color: #111827;
}

.btn-panel-primary {
    border-color: var(--tl-primary);
    color: var(--tl-primary);
}

.btn-panel-primary:hover {
    background: #EFF6FF;
    border-color: var(--tl-primary-hover);
    color: var(--tl-primary-hover);
}

.metrics-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.metric-cell {
    padding: 18px 20px;
    border-right: 1px solid #F3F4F6;
}

.metric-cell:last-child {
    border-right: none;
}

.metric-label {
    display: block;
    font-size: 0.75rem;
    color: #9CA3AF;
    margin-bottom: 6px;
}

.metric-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    letter-spacing: -0.02em;
}

.metric-value.accent {
    color: var(--tl-primary);
}

.split-bar-lg {
    height: 8px;
    border-radius: 999px;
    margin: 8px 0 12px;
}

.split-bar-wrap {
    outline: none;
    margin-bottom: 0;
}

.split-bar-wrap.is-active .split-bar-hint {
    color: var(--tl-primary);
}

.split-bar-wrap.is-active .split-bar-track {
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.35), 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.panel-body-split {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.split-bar-interactive {
    position: relative;
    height: 56px;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    touch-action: none;
}

.split-bar-track {
    display: flex;
    width: 100%;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
    transition: box-shadow 0.15s;
}

.split-bar-interactive .split-segment {
    position: relative;
    height: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.05s linear;
    border-right: 2px solid rgba(255, 255, 255, 0.35);
}

.split-bar-interactive .split-segment:last-child {
    border-right: none;
}

.split-bar-interactive.is-dragging .split-segment {
    transition: none;
}

.split-segment-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0 6px;
    min-width: 0;
    color: #fff;
    text-align: center;
    pointer-events: none;
    line-height: 1.2;
}

.split-segment-name {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    opacity: 0.92;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.split-segment-pct {
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.split-segment.is-narrow .split-segment-name {
    display: none;
}

.split-segment.is-narrow .split-segment-pct {
    font-size: 0.75rem;
}

.split-handle {
    position: absolute;
    top: 50%;
    left: 0;
    width: 10px;
    height: 52px;
    margin: 0;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 6px;
    background: linear-gradient(180deg, #F9FAFB 0%, #E5E7EB 100%);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
    transform: translate(-50%, -50%);
    cursor: ew-resize;
    z-index: 2;
    transition: box-shadow 0.15s, transform 0.15s;
}

.split-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 18px;
    transform: translate(-50%, -50%);
    border-radius: 1px;
    background: repeating-linear-gradient(
        180deg,
        #9CA3AF 0,
        #9CA3AF 2px,
        transparent 2px,
        transparent 5px
    );
}

.split-handle:hover,
.split-handle.is-active {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.28), 0 2px 8px rgba(15, 23, 42, 0.16);
    transform: translate(-50%, -50%) scale(1.04);
}

.split-bar-hint {
    margin: 10px 0 0;
    font-size: 0.75rem;
    color: #9CA3AF;
    transition: color 0.15s;
    text-align: center;
}

.split-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.split-breakdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #F9FAFB;
    border: 1px solid #F3F4F6;
    border-radius: 10px;
    border-left-width: 3px;
}

.split-breakdown-item[data-platform="meta"] {
    border-left-color: #1877F2;
}

.split-breakdown-item[data-platform="google"] {
    border-left-color: #EA4335;
}

.split-breakdown-item[data-platform="tiktok"] {
    border-left-color: #111827;
}

.split-breakdown-icon {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
}

.split-breakdown-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.split-breakdown-name {
    font-size: 0.75rem;
    color: #6B7280;
}

.split-breakdown-pct {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
}

.split-legend strong {
    font-weight: 600;
    color: #374151;
}

.split-legend {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
    color: #6B7280;
}

.split-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot-meta { background: #1877F2; }
.dot-google { background: #EA4335; }
.dot-tiktok { background: #111827; }

.minimal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.minimal-table th {
    text-align: left;
    padding: 10px 0;
    font-weight: 500;
    color: #9CA3AF;
    border-bottom: 1px solid #E5E7EB;
}

.minimal-table td {
    padding: 12px 0;
    border-bottom: 1px solid #F3F4F6;
    color: #374151;
}

.minimal-table tbody tr:last-child td {
    border-bottom: none;
}

.minimal-table .cell-strong {
    font-weight: 500;
    color: #111827;
}

.minimal-table .cell-action {
    text-align: right;
    white-space: nowrap;
}

.minimal-table .cell-action a,
.minimal-table .cell-action .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
}

.campaign-row-clickable {
    cursor: pointer;
    transition: background 0.15s ease;
}

.campaign-row-clickable:hover {
    background: #F9FAFB;
}

.campaign-detail-btn {
    position: relative;
    z-index: 1;
}

.status-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    background: #F3F4F6;
    color: #6B7280;
}

.status-pill.status-active,
.status-pill.status-ready,
.status-pill.status-uploaded {
    background: #ECFDF5;
    color: #047857;
}

.status-pill.status-draft {
    background: #F3F4F6;
    color: #6B7280;
}

.status-pill.status-paused,
.status-pill.status-budget_exceeded,
.status-pill.status-failed {
    background: #FEF2F2;
    color: #B91C1C;
}

.panel-empty {
    text-align: center;
    padding: 32px 16px;
    color: #9CA3AF;
    font-size: 0.875rem;
}

.panel-empty.compact {
    padding: 20px 16px;
}

.panel-empty p {
    margin: 0 0 12px;
}

.creative-list {
    display: flex;
    flex-direction: column;
}

.creative-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #F3F4F6;
}

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

.creative-rank {
    width: 22px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #9CA3AF;
    text-align: center;
}

.creative-thumb {
    width: 40px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
    background: #F3F4F6;
    flex-shrink: 0;
}

.creative-thumb-empty {
    background: linear-gradient(180deg, #E5E7EB, #F3F4F6);
}

.creative-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.creative-info strong {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.creative-info span {
    font-size: 0.75rem;
    color: #9CA3AF;
}

.app-page-desc {
    margin: -16px 0 28px;
    font-size: 0.875rem;
    color: #6B7280;
}

.app-page-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.app-page-top .app-page-title {
    margin-bottom: 6px;
}

.app-page-top .app-page-desc {
    margin: 0;
}

.app-page-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.panel-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.panel-form {
    padding: 16px 20px 20px;
}

.panel-form .form-group:last-child {
    margin-bottom: 0;
}

.input-action-row {
    display: flex;
    gap: 8px;
}

.input-action-row .form-control {
    flex: 1;
}

.form-actions {
    margin-top: 8px;
    margin-bottom: 24px;
}

body.form-submit-loading {
    overflow: hidden;
}

.form-submit-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

.form-submit-overlay[hidden] {
    display: none !important;
}

.form-submit-overlay-card {
    width: min(100%, 400px);
    padding: 32px 28px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
    text-align: center;
}

.form-submit-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    border: 4px solid #E5E7EB;
    border-top-color: var(--tl-primary);
    border-radius: 50%;
    animation: form-submit-spin 0.75s linear infinite;
}

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

.form-submit-title {
    margin: 0 0 8px;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.form-submit-desc {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #6B7280;
}

.form-submit-cancel-btn {
    margin-top: 20px;
}

#campaign-submit-btn.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

#campaign-submit-btn.is-loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    vertical-align: -2px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: form-submit-spin 0.75s linear infinite;
}

.inline-form {
    display: inline;
}

.fee-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.metric-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.6875rem;
    color: #9CA3AF;
    line-height: 1.4;
}

.finance-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.finance-summary-item {
    padding: 14px 16px;
    background: #F9FAFB;
    border: 1px solid #F3F4F6;
    border-radius: 10px;
}

.finance-summary-label {
    display: block;
    font-size: 0.75rem;
    color: #9CA3AF;
    margin-bottom: 6px;
}

.finance-summary-item strong {
    font-size: 0.9375rem;
    color: #111827;
}

.finance-equation {
    font-size: 0.8125rem;
    line-height: 1.6;
    margin: 0;
}

.finance-next-tier {
    font-size: 0.8125rem;
    color: #374151;
    margin: 0 0 12px;
    padding: 10px 14px;
    background: #EFF6FF;
    border-radius: 8px;
}

.fee-tier-table tfoot td {
    border-top: 2px solid #E5E7EB;
    background: #F9FAFB;
}

.fee-tier-active {
    background: #EFF6FF;
}

.fee-tier-active td {
    color: #1D4ED8;
}

.accent-text {
    color: var(--tl-primary);
}

.fee-calc-explainer {
    margin-top: 20px;
    padding: 16px 18px;
    background: #F9FAFB;
    border: 1px solid #F3F4F6;
    border-radius: 10px;
}

.fee-calc-explainer p {
    margin: 0 0 10px;
    font-size: 0.875rem;
    color: #111827;
}

.fee-calc-explainer ul {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.8125rem;
    color: #4B5563;
    line-height: 1.7;
}

.fee-calc-explainer li + li {
    margin-top: 4px;
}

@media (max-width: 768px) {
    .finance-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .finance-summary-grid {
        grid-template-columns: 1fr;
    }
}

.form-control-sm {
    width: 72px;
    padding: 6px 10px;
    font-size: 0.8125rem;
}

.checkbox-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.minimal-table .muted,
.muted {
    color: #9CA3AF;
}

.link-break {
    word-break: break-all;
    font-size: 0.8125rem;
}

.url-info-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.url-info-row + .url-info-row {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #F3F4F6;
}

.url-info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6B7280;
}

.metrics-strip.panel {
    box-shadow: none;
}

.shorts-grid-app {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.short-card-app {
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    text-align: left;
}

.short-card-app-clickable {
    padding: 0;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    font: inherit;
    color: inherit;
    width: 100%;
}

.short-card-app-clickable:hover {
    border-color: #93C5FD;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

.short-card-app-media {
    position: relative;
}

.short-card-app img,
.short-card-app-placeholder {
    width: 100%;
    aspect-ratio: 9/16;
    object-fit: cover;
    display: block;
    background: #F3F4F6;
}

.short-card-app-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    font-size: 0.75rem;
    font-weight: 600;
}

.short-card-app-play {
    position: absolute;
    inset: auto 8px 8px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.short-card-app-play svg {
    width: 14px;
    height: 14px;
}

.short-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.short-preview-modal[hidden] {
    display: none;
}

body.short-preview-open {
    overflow: hidden;
}

.short-preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.short-preview-dialog {
    position: relative;
    width: min(920px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
}

.short-preview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #F3F4F6;
}

.short-preview-label {
    display: inline-block;
    margin-bottom: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #2563EB;
}

.short-preview-title {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.short-preview-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: #F3F4F6;
    color: #374151;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.short-preview-close:hover {
    background: #E5E7EB;
}

.short-preview-body {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 20px;
    padding: 20px;
}

.short-preview-phone-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.short-preview-phone {
    width: 100%;
    aspect-ratio: 9/16;
    border-radius: 16px;
    overflow: hidden;
    background: #0F172A;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(15, 23, 42, 0.18);
}

.short-preview-player {
    position: relative;
    width: 100%;
    height: 100%;
}

.short-preview-slide {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.short-preview-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #0F172A;
}

.short-preview-media[hidden],
.short-preview-player-ui[hidden],
.short-preview-slide[hidden] {
    display: none !important;
}

.short-preview-slide.is-playing .short-preview-media {
    animation: short-preview-kenburns var(--short-preview-duration, 15s) linear forwards;
    transform-origin: center center;
}

@keyframes short-preview-kenburns {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.short-preview-player-ui {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.88) 100%);
}

.short-preview-play-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.short-preview-play-btn svg {
    width: 16px;
    height: 16px;
}

.short-preview-play-btn.is-playing svg {
    display: none;
}

.short-preview-play-btn.is-playing::after {
    content: '';
    width: 10px;
    height: 10px;
    background: #111827;
    border-radius: 2px;
}

.short-preview-progress {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    overflow: hidden;
}

.short-preview-progress-bar {
    width: 0%;
    height: 100%;
    background: #fff;
    border-radius: inherit;
    transition: width 0.1s linear;
}

.short-preview-time {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.short-preview-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    font-size: 0.8125rem;
}

.short-preview-duration {
    font-size: 0.75rem;
    color: #6B7280;
}

.short-preview-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.short-preview-block-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6B7280;
}

.short-preview-block-text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #111827;
    white-space: pre-wrap;
}

.short-preview-block-pre {
    margin: 0;
    padding: 12px;
    border-radius: 10px;
    background: #F9FAFB;
    border: 1px solid #F3F4F6;
    font-family: inherit;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #111827;
    white-space: pre-wrap;
    word-break: break-word;
}

.short-card-app-meta {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.short-card-app-meta strong {
    font-size: 0.75rem;
    color: #6B7280;
}

.short-card-app-meta span {
    font-size: 0.75rem;
    color: #111827;
    line-height: 1.4;
}

.short-card-app-status {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

@media (max-width: 900px) {
    .panel-grid-2 { grid-template-columns: 1fr; }
    .app-page-top { flex-direction: column; }
    .split-breakdown { grid-template-columns: 1fr; }
    .split-bar-interactive { height: 52px; }
    .split-bar-track { height: 44px; }
    .split-handle { height: 48px; }
    .short-preview-body { grid-template-columns: 1fr; }
    .short-preview-phone-wrap { max-width: 280px; margin: 0 auto; }
}

/* ============================================================
   Landing page (index)
   ============================================================ */
body.landing {
    --tl-font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --landing-dark: #0B1120;
    --landing-dark-2: #111827;
    --landing-glow: rgba(59, 130, 246, 0.45);
    background: var(--landing-dark);
    color: #E2E8F0;
}

body.landing a { color: #93C5FD; }
body.landing a:hover { color: #BFDBFE; }

body.landing .site-header--landing {
    background: rgba(11, 17, 32, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
body.landing .site-header .logo { color: #F8FAFC; }
body.landing .nav-links a { color: #94A3B8; }
body.landing .nav-links a:hover { color: #F1F5F9; }
body.landing .nav-links a.btn-primary,
body.landing .nav-links a.btn-primary:hover {
    color: #fff;
}
body.landing .btn-primary {
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 50%, #2563EB 100%);
    color: #fff;
    font-weight: 700;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.14) inset,
        0 4px 20px rgba(96, 165, 250, 0.45);
}
body.landing .btn-primary:hover {
    background: linear-gradient(135deg, #93C5FD 0%, #60A5FA 50%, #3B82F6 100%);
    color: #fff;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.18) inset,
        0 6px 28px rgba(96, 165, 250, 0.6);
}
body.landing .btn-outline {
    color: #E2E8F0;
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(255,255,255,.04);
}
body.landing .btn-outline:hover {
    border-color: rgba(148, 163, 184, 0.6);
    color: #fff;
    background: rgba(255,255,255,.08);
}
body.landing .btn-ghost { color: #CBD5E1; }
body.landing .btn-ghost:hover { color: #fff; background: rgba(255,255,255,.06); }

/* Hero */
.landing-hero {
    position: relative;
    padding: 48px 0 0;
    min-height: 92vh;
    display: flex;
    flex-direction: column;
}
.landing-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.landing-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    animation: landing-float 18s ease-in-out infinite;
}
.landing-orb--1 {
    width: 520px; height: 520px;
    background: radial-gradient(circle, #2563EB 0%, transparent 70%);
    top: -120px; right: -80px;
}
.landing-orb--2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #7C3AED 0%, transparent 70%);
    bottom: 10%; left: -100px;
    animation-delay: -6s;
}
.landing-orb--3 {
    width: 280px; height: 280px;
    background: radial-gradient(circle, #06B6D4 0%, transparent 70%);
    top: 40%; left: 35%;
    opacity: 0.35;
    animation-delay: -12s;
}
.landing-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148,163,184,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148,163,184,.06) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 75%);
}
@keyframes landing-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(24px, -20px) scale(1.04); }
    66% { transform: translate(-16px, 12px) scale(0.96); }
}

.landing-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
    padding: 40px 0 64px;
}
.landing-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 10px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #93C5FD;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    margin-bottom: 24px;
}
.landing-eyebrow-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.8);
    animation: landing-pulse 2s ease-in-out infinite;
}
@keyframes landing-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.85); }
}
.landing-headline {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
    font-weight: 800;
    margin: 0 0 20px;
    color: #F8FAFC;
}
.landing-gradient-text {
    background: linear-gradient(135deg, #60A5FA 0%, #A78BFA 50%, #38BDF8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.landing-lead {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #94A3B8;
    margin: 0 0 32px;
    max-width: 520px;
}
.landing-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.landing-btn-glow:hover {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.18) inset,
        0 8px 36px rgba(96, 165, 250, 0.55) !important;
}
.landing-btn-ghost {
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255,255,255,.04);
}
.landing-trust-list {
    list-style: none;
    margin: 36px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px 28px;
}
.landing-trust-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #94A3B8;
    font-weight: 500;
}
.landing-trust-list svg {
    width: 18px; height: 18px;
    color: #60A5FA;
    flex-shrink: 0;
}

/* Dashboard preview */
.landing-preview {
    position: relative;
    perspective: 1200px;
}
.landing-preview-window {
    position: relative;
    z-index: 2;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.18);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 0 0 1px rgba(255,255,255,.04) inset,
        0 24px 64px rgba(0,0,0,.45),
        0 0 80px rgba(37, 99, 235, 0.12);
    transform: rotateY(-4deg) rotateX(2deg);
    transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}
.landing-preview:hover .landing-preview-window {
    transform: rotateY(0deg) rotateX(0deg);
}
.landing-preview-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(0,0,0,.2);
    border-radius: 16px 16px 0 0;
}
.landing-preview-chrome span {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.25);
}
.landing-preview-chrome span:nth-child(1) { background: #EF4444; }
.landing-preview-chrome span:nth-child(2) { background: #F59E0B; }
.landing-preview-chrome span:nth-child(3) { background: #22C55E; }
.landing-preview-url {
    margin-left: auto;
    font-size: 0.75rem;
    color: #64748B;
    font-family: ui-monospace, monospace;
    padding: 4px 10px;
    background: rgba(0,0,0,.25);
    border-radius: 6px;
}
.landing-preview-body { padding: 20px; }
.landing-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #E2E8F0;
}
.landing-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #4ADE80;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(34, 197, 94, 0.12);
}
.landing-live-badge i {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #22C55E;
    animation: landing-pulse 1.5s ease-in-out infinite;
}
.landing-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}
.landing-metric {
    padding: 14px;
    border-radius: 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(148, 163, 184, 0.1);
}
.landing-metric--accent {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(59, 130, 246, 0.25);
}
.landing-metric-label {
    display: block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748B;
    margin-bottom: 4px;
}
.landing-metric-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #F1F5F9;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}
.landing-metric--accent .landing-metric-value { color: #60A5FA; }
.landing-split-wrap { margin-top: 4px; }
.landing-split-bar {
    display: flex;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(0,0,0,.3);
}
.landing-split-legend {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.75rem;
    color: #64748B;
}
.landing-split-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.landing-split-legend .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.dot-meta { background: #1877F2; }
.dot-google { background: #EA4335; }
.dot-tiktok { background: #fff; }

.landing-preview-glow {
    position: absolute;
    inset: 20% -10%;
    background: radial-gradient(ellipse, rgba(37,99,235,.35) 0%, transparent 65%);
    z-index: 0;
    filter: blur(40px);
}

/* Platform logos */
.landing-logos {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 28px 0 48px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    margin-top: auto;
}
.landing-logos-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}
.landing-logos-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.landing-platform {
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(148, 163, 184, 0.15);
    background: rgba(255,255,255,.03);
    color: #CBD5E1;
}
.landing-platform--meta { border-color: rgba(24, 119, 242, 0.35); color: #93C5FD; }
.landing-platform--google { border-color: rgba(234, 67, 53, 0.35); color: #FCA5A5; }
.landing-platform--tiktok { border-color: rgba(255, 255, 255, 0.2); color: #E2E8F0; }

/* Sections */
.landing-section {
    position: relative;
    padding: 96px 0;
    background: #F8FAFC;
    color: var(--tl-text);
}
.landing-section--dark {
    background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
    color: #E2E8F0;
}
.landing-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}
.landing-section-tag {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tl-primary);
    margin-bottom: 12px;
}
.landing-section--dark .landing-section-tag { color: #60A5FA; }
.landing-section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 16px;
    line-height: 1.2;
}
.landing-section-lead {
    font-size: 1.0625rem;
    color: var(--tl-text-muted);
    margin: 0;
    line-height: 1.7;
}
.landing-section--dark .landing-section-lead { color: #94A3B8; }

/* Escrow timeline */
.landing-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}
.landing-timeline::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, var(--tl-primary), #7C3AED, var(--tl-primary));
    opacity: 0.25;
}
.landing-timeline-step {
    position: relative;
    text-align: center;
    padding: 0 12px;
}
.landing-timeline-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid var(--tl-border);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    position: relative;
    z-index: 1;
    transition: transform 0.25s, box-shadow 0.25s;
}
.landing-timeline-icon svg {
    width: 28px; height: 28px;
    color: var(--tl-primary);
}
.landing-timeline-step:hover .landing-timeline-icon {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.15);
}
.landing-step-num {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--tl-primary);
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}
.landing-timeline-content h3 {
    margin: 0 0 8px;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.landing-timeline-content p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--tl-text-muted);
    line-height: 1.55;
}

/* Bento grid */
.landing-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}
.landing-bento-card {
    position: relative;
    padding: 28px;
    border-radius: 20px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(148, 163, 184, 0.12);
    overflow: hidden;
    transition: border-color 0.25s, transform 0.25s;
}
.landing-bento-card:hover {
    border-color: rgba(96, 165, 250, 0.35);
    transform: translateY(-2px);
}
.landing-bento-card--wide {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto 1fr;
    gap: 0 24px;
    align-items: start;
}
.landing-bento-card--wide .landing-bento-icon { grid-row: 1; }
.landing-bento-card--wide h3 { grid-column: 1; grid-row: 1; align-self: center; margin-left: 56px; }
.landing-bento-card--wide p { grid-column: 1; grid-row: 2; margin-left: 56px; }
.landing-bento-card--wide .landing-bento-visual { grid-column: 2; grid-row: 1 / -1; align-self: center; }
.landing-bento-card h3 {
    margin: 0 0 10px;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.landing-bento-card p {
    margin: 0;
    font-size: 0.9375rem;
    color: #94A3B8;
    line-height: 1.6;
}
.landing-bento-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
}
.landing-bento-card--wide .landing-bento-icon {
    position: absolute;
    top: 28px; left: 28px;
    margin: 0;
}
.landing-bento-icon svg { width: 22px; height: 22px; }
.landing-bento-icon--video { background: rgba(236, 72, 153, 0.15); color: #F472B6; }
.landing-bento-icon--media { background: rgba(59, 130, 246, 0.15); color: #60A5FA; }
.landing-bento-icon--shield { background: rgba(34, 197, 94, 0.15); color: #4ADE80; }
.landing-bento-visual { padding: 8px 0; }
.landing-short-stack {
    display: flex;
    gap: -8px;
}
.landing-short-stack div {
    width: 48px;
    height: 72px;
    border-radius: 8px;
    background: linear-gradient(180deg, #334155, #1E293B);
    border: 2px solid rgba(148, 163, 184, 0.2);
    margin-left: -12px;
    box-shadow: 0 8px 20px rgba(0,0,0,.3);
}
.landing-short-stack div:first-child { margin-left: 0; transform: rotate(-6deg); }
.landing-short-stack div:nth-child(2) { transform: rotate(2deg); z-index: 1; }
.landing-short-stack div:nth-child(3) { transform: rotate(8deg); }
.landing-bento-card--stat {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37,99,235,.2), rgba(124,58,237,.15));
    border-color: rgba(96, 165, 250, 0.25);
}
.landing-stat-highlight { text-align: center; }
.landing-stat-num {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #60A5FA, #A78BFA);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}
.landing-stat-desc {
    display: block;
    margin-top: 8px;
    font-size: 0.875rem;
    color: #94A3B8;
}

/* CTA */
.landing-cta {
    padding: 80px 0 96px;
    background: var(--landing-dark);
}
.landing-cta-inner {
    text-align: center;
    padding: 64px 48px;
    border-radius: 24px;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(37,99,235,.25), transparent),
        rgba(255,255,255,.03);
    border: 1px solid rgba(148, 163, 184, 0.12);
}
.landing-cta-inner h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 12px;
    color: #F8FAFC;
    line-height: 1.25;
}
.landing-cta-inner p {
    color: #94A3B8;
    margin: 0 0 28px;
    font-size: 1.0625rem;
}
.landing-cta .landing-hero-actions { justify-content: center; }

/* Footer */
body.landing .site-footer--landing {
    margin-top: 0;
    background: #070B14;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    padding: 56px 0 32px;
    color: #64748B;
}
.landing-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.landing-footer-brand p {
    margin: 16px 0 0;
    font-size: 0.875rem;
    line-height: 1.65;
    max-width: 280px;
}
.landing-footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.landing-footer-links strong {
    color: #E2E8F0;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}
.landing-footer-links a {
    font-size: 0.875rem;
    color: #64748B;
    transition: color 0.15s;
}
.landing-footer-links a:hover { color: #CBD5E1; }
.landing-footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    font-size: 0.8125rem;
}

/* Scroll reveal */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(.2,.8,.2,1), transform 0.7s cubic-bezier(.2,.8,.2,1);
}
[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 960px) {
    .landing-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .landing-preview-window { transform: none; }
    .landing-preview:hover .landing-preview-window { transform: none; }
    .landing-timeline { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
    .landing-timeline::before { display: none; }
    .landing-bento { grid-template-columns: 1fr; }
    .landing-bento-card--wide {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
    .landing-bento-card--wide h3,
    .landing-bento-card--wide p { margin-left: 0; }
    .landing-bento-card--wide .landing-bento-icon { position: static; margin-bottom: 16px; }
    .landing-bento-card--wide .landing-bento-visual { grid-column: 1; grid-row: auto; }
    .landing-footer-grid { grid-template-columns: 1fr; }
    .landing-logos { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 560px) {
    .landing-hero { min-height: auto; padding-top: 24px; }
    .landing-timeline { grid-template-columns: 1fr; }
    .landing-cta-inner { padding: 40px 24px; }
    .landing-metrics { grid-template-columns: 1fr; }
    body.landing .nav-links { gap: 12px; }
}

/* Landing auth pages (register, login) */
.landing-auth-main { min-height: calc(100vh - 65px); }
.landing-auth {
    position: relative;
    padding: 48px 0 72px;
    min-height: calc(100vh - 65px);
    display: flex;
    align-items: center;
}
.landing-auth-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.landing-auth-headline {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    margin-bottom: 20px;
}
.landing-auth-card {
    background: rgba(17, 24, 39, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 20px;
    padding: 36px 32px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 24px 48px rgba(0, 0, 0, 0.35),
        0 0 80px rgba(59, 130, 246, 0.08);
}
.landing-auth-card-header {
    margin-bottom: 24px;
}
.landing-auth-card-title {
    margin: 8px 0 6px;
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #F8FAFC;
}
.landing-auth-card-lead {
    margin: 0;
    font-size: 0.9375rem;
    color: #94A3B8;
    line-height: 1.55;
}
.landing-auth-form .form-group:last-of-type { margin-bottom: 22px; }
.landing-auth-footer-hint {
    margin: 20px 0 0;
    text-align: center;
    font-size: 0.875rem;
    color: #64748B;
}
.landing-auth-footer-hint a {
    color: #93C5FD;
    font-weight: 600;
}
.landing-auth-footer-hint a:hover { color: #BFDBFE; }

body.landing .landing-auth-card .form-label {
    color: #CBD5E1;
    font-size: 0.8125rem;
}
body.landing .landing-auth-card .form-control {
    background: rgba(11, 17, 32, 0.65);
    border-color: rgba(148, 163, 184, 0.22);
    color: #F1F5F9;
}
body.landing .landing-auth-card .form-control::placeholder {
    color: #64748B;
}
body.landing .landing-auth-card .form-control:focus {
    border-color: rgba(96, 165, 250, 0.65);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background: rgba(11, 17, 32, 0.85);
}
body.landing .landing-auth-card .alert-error {
    background: rgba(220, 38, 38, 0.12);
    color: #FCA5A5;
    border: 1px solid rgba(248, 113, 113, 0.35);
}
body.landing .landing-auth-card .alert-success {
    background: rgba(5, 150, 105, 0.12);
    color: #6EE7B7;
    border: 1px solid rgba(52, 211, 153, 0.35);
}
body.landing .landing-auth-card .alert-info {
    background: rgba(59, 130, 246, 0.12);
    color: #93C5FD;
    border: 1px solid rgba(96, 165, 250, 0.35);
}

@media (max-width: 960px) {
    .landing-auth-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .landing-auth-copy { text-align: center; }
    .landing-auth-copy .landing-lead { margin-left: auto; margin-right: auto; }
    .landing-auth-copy .landing-trust-list {
        justify-content: center;
    }
    .landing-auth {
        padding: 32px 0 56px;
        min-height: auto;
    }
}

@media (max-width: 560px) {
    .landing-auth-card { padding: 28px 20px; }
    .landing-auth-form .form-row { grid-template-columns: 1fr; }
}

/* PG provider selector (wallet) */
.pg-provider-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.pg-provider-option {
    cursor: pointer;
    position: relative;
}
.pg-provider-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.pg-provider-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--tl-border);
    background: var(--tl-surface);
    transition: border-color .15s, box-shadow .15s;
}
.pg-provider-card strong {
    font-size: 0.9375rem;
    color: var(--tl-text);
}
.pg-provider-card span {
    font-size: 0.8125rem;
    color: var(--tl-text-muted);
}
.pg-provider-option input:checked + .pg-provider-card {
    border-color: var(--tl-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.pg-provider-option.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
@media (max-width: 560px) {
    .pg-provider-grid { grid-template-columns: 1fr; }
}

/* Live dashboard — Meta · Google · TikTok real-time analytics */
#live-dashboard {
    position: relative;
}
#live-dashboard.is-fetching {
    opacity: 0.92;
    transition: opacity .2s;
}
.dash-live-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--tl-border);
    background: linear-gradient(180deg, #F8FAFC 0%, #fff 100%);
}
.dash-live-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.dash-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.dash-live-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}
.dash-live-badge.is-live {
    background: #ECFDF5;
    color: #059669;
}
.dash-live-badge.is-live::before {
    animation: dash-pulse 1.4s ease-in-out infinite;
}
.dash-live-badge.is-demo {
    background: #FEF3C7;
    color: #B45309;
}
.dash-live-badge.is-sync {
    background: #EFF6FF;
    color: #2563EB;
}
@keyframes dash-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.85); }
}
.dash-live-status {
    font-size: 0.8125rem;
    color: var(--tl-text-muted);
}
.dash-live-updated {
    font-size: 0.75rem;
    color: var(--tl-text-muted);
    font-variant-numeric: tabular-nums;
}
.dash-live-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.dash-countdown {
    font-size: 0.8125rem;
    color: var(--tl-text-muted);
    font-variant-numeric: tabular-nums;
    min-width: 72px;
    text-align: right;
}
.dash-countdown strong {
    color: var(--tl-primary);
    font-weight: 700;
}
.dash-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--tl-border);
    background: var(--tl-surface);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--tl-text);
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.dash-refresh-btn:hover:not(:disabled) {
    border-color: var(--tl-primary);
    background: #EFF6FF;
}
.dash-refresh-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}
.dash-refresh-btn.is-loading svg {
    animation: dash-spin .8s linear infinite;
}
@keyframes dash-spin {
    to { transform: rotate(360deg); }
}
.dash-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: var(--tl-border);
    border-bottom: 1px solid var(--tl-border);
}
.dash-kpi-cell {
    background: var(--tl-surface);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dash-kpi-cell.is-accent {
    background: linear-gradient(135deg, #EFF6FF 0%, #fff 100%);
}
.dash-kpi-label {
    font-size: 0.75rem;
    color: var(--tl-text-muted);
    font-weight: 500;
}
.dash-kpi-value {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--tl-text);
}
.dash-kpi-cell.is-accent .dash-kpi-value {
    color: var(--tl-primary);
}
.dash-kpi-sub {
    font-size: 0.6875rem;
    color: var(--tl-text-muted);
}
.dash-platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px;
}
.dash-platform-card {
    border: 1px solid var(--tl-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--tl-surface);
    transition: box-shadow .15s, border-color .15s;
}
.dash-platform-card:hover {
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}
.dash-platform-card[data-platform-card="meta"] { border-top: 3px solid #1877F2; }
.dash-platform-card[data-platform-card="google"] { border-top: 3px solid #EA4335; }
.dash-platform-card[data-platform-card="tiktok"] { border-top: 3px solid #111827; }
.dash-platform-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--tl-border);
    background: #F8FAFC;
}
.dash-platform-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.875rem;
}
.dash-platform-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.dash-connection-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
}
.dash-connection-badge.is-live {
    background: #ECFDF5;
    color: #059669;
}
.dash-connection-badge.is-offline {
    background: #F1F5F9;
    color: #64748B;
}
.dash-platform-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--tl-border);
}
.dash-platform-metric {
    background: var(--tl-surface);
    padding: 10px 12px;
}
.dash-platform-metric-label {
    display: block;
    font-size: 0.6875rem;
    color: var(--tl-text-muted);
    margin-bottom: 2px;
}
.dash-platform-metric-value {
    font-size: 0.9375rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.dash-charts-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
    padding: 0 20px 20px;
}
.dash-chart-panel {
    border: 1px solid var(--tl-border);
    border-radius: 12px;
    background: var(--tl-surface);
    overflow: hidden;
}
.dash-chart-panel.is-wide {
    grid-column: 1 / -1;
}
.dash-chart-head {
    padding: 12px 16px;
    border-bottom: 1px solid var(--tl-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.dash-chart-head h3 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
}
.dash-chart-head span {
    font-size: 0.75rem;
    color: var(--tl-text-muted);
}
.dash-chart-body {
    position: relative;
    height: 240px;
    padding: 12px 14px 8px;
}
.dash-chart-body.is-sm {
    height: 200px;
}
.dash-charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 0 20px 20px;
}
@media (max-width: 1100px) {
    .dash-kpi-grid { grid-template-columns: repeat(3, 1fr); }
    .dash-platform-grid { grid-template-columns: 1fr; }
    .dash-charts-grid { grid-template-columns: 1fr; }
    .dash-charts-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .dash-kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .dash-live-header { flex-direction: column; align-items: flex-start; }
}
