:root {
    color-scheme: dark;
    --bg: #08070d;
    --panel: #12101b;
    --panel-2: #19152a;
    --text: #f7f3ff;
    --muted: #b9accb;
    --line: rgba(255,255,255,.12);
    --accent: #8b5cf6;
    --accent-2: #15d0b5;
    --danger: #ef4444;
    --success: #22c55e;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 20% 0%, rgba(139, 92, 246, .28), transparent 34rem),
        radial-gradient(circle at 90% 10%, rgba(21, 208, 181, .16), transparent 28rem),
        var(--bg);
    color: var(--text);
}

a { color: inherit; text-decoration: none; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 32px;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 7, 13, .78);
    backdrop-filter: blur(18px);
}

.brand, .main-nav, .hero-actions, .section-head, .card-actions, .inline-form {
    display: flex;
    align-items: center;
}

.brand { gap: 10px; font-weight: 800; letter-spacing: .01em; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    font-size: 12px;
}

.main-nav { gap: 20px; font-size: 14px; color: var(--muted); }
.main-nav a { padding: 10px 0; }
.main-nav a:hover, .main-nav .is-active { color: var(--text); }
.language-select {
    width: auto;
    min-height: 38px;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
}
.nav-cta {
    padding: 10px 17px !important;
    color: white !important;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #c026d3);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
    align-items: center;
    gap: 64px;
    max-width: 1240px;
    min-height: calc(100svh - 72px);
    margin: 0 auto;
    padding: 80px 32px 96px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-2);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
    max-width: 880px;
    margin-bottom: 24px;
    font-size: clamp(46px, 7vw, 96px);
    line-height: .97;
    letter-spacing: -.045em;
}
h2 {
    margin-bottom: 18px;
    font-size: clamp(32px, 4.5vw, 62px);
    line-height: 1;
    letter-spacing: -.035em;
}
h3 { margin-bottom: 10px; font-size: 22px; }
p { color: var(--muted); line-height: 1.65; }
.lead, .hero-copy p { max-width: 670px; font-size: 20px; }

.button, button {
    border: 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 20px;
    color: white;
    font-weight: 800;
    cursor: pointer;
}
.button.primary, button {
    background: linear-gradient(135deg, var(--accent), #c026d3);
    box-shadow: 0 20px 50px rgba(139, 92, 246, .25);
}
.button.ghost {
    background: rgba(255,255,255,.07);
    border: 1px solid var(--line);
}
.hero-actions { gap: 14px; flex-wrap: wrap; margin-top: 34px; }

.hero-panel {
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
    box-shadow: 0 40px 120px rgba(0,0,0,.38);
}
.metric {
    padding: 28px;
    border-radius: 20px;
    background: #0f0d18;
}
.metric span, .metric small { display: block; color: var(--muted); }
.metric strong { display: block; margin: 8px 0; font-size: 64px; letter-spacing: -.05em; }
.clip-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 14px;
}
.clip-grid div {
    min-height: 150px;
    padding: 18px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    background:
        linear-gradient(180deg, transparent, rgba(0,0,0,.65)),
        linear-gradient(135deg, rgba(139,92,246,.8), rgba(21,208,181,.55));
    font-size: 30px;
    font-weight: 900;
}
.clip-grid span { font-size: 13px; color: rgba(255,255,255,.72); }

.section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 88px 32px;
}
.section.narrow, .auth-box {
    max-width: 760px;
    margin: 0 auto;
    padding: 88px 32px;
}
.section-head { justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.steps, .campaign-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.steps article, .campaign-card, .submit-box, .auth-box, .table-wrap {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.055);
}
.steps article { padding: 26px; }
.steps b { color: var(--accent-2); }

.campaign-card { padding: 22px; }
.card-topline, .campaign-card small, .muted { color: var(--muted); }
.card-topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 13px;
}
.campaign-card h3 a:hover { color: var(--accent-2); }
.campaign-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 18px 0;
}
.campaign-stats strong {
    display: block;
    padding: 12px;
    border-radius: 12px;
    background: rgba(0,0,0,.25);
    font-size: 18px;
}
.campaign-stats span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 600; }
.budget-bar {
    height: 8px;
    margin: 18px 0;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
}
.budget-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
}
.card-actions { justify-content: space-between; gap: 14px; color: var(--muted); font-size: 13px; }
.card-actions a { color: white; font-weight: 800; }

.search-form {
    display: flex;
    gap: 12px;
    margin: 22px 0;
}
input, textarea, select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    background: rgba(255,255,255,.07);
    color: var(--text);
}
textarea { resize: vertical; }
label { display: grid; gap: 8px; margin-bottom: 16px; color: var(--muted); font-weight: 700; }

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 32px;
}
.submit-box { padding: 24px; align-self: start; }
.info-list {
    border-top: 1px solid var(--line);
    margin-top: 28px;
    padding-top: 20px;
}
.back-link { display: inline-block; margin-bottom: 22px; color: var(--muted); }

.auth-box form { margin-top: 24px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.status {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(139,92,246,.22);
    color: white;
    font-size: 12px;
    font-weight: 800;
}
.inline-form { gap: 8px; }
.inline-form input, .inline-form select { width: 130px; min-height: 38px; }
.inline-form button { min-height: 38px; padding: 8px 12px; }

.app-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 32px;
}
.app-sidebar {
    position: sticky;
    top: 96px;
    align-self: start;
    min-height: calc(100svh - 128px);
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.045);
}
.side-group {
    display: grid;
    gap: 6px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
}
.side-group span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
}
.side-group a {
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 9px 11px;
    border-radius: 8px;
    color: var(--muted);
    font-weight: 750;
}
.side-group a:hover,
.side-group a.is-active {
    color: var(--text);
    background: rgba(255,255,255,.08);
}
.wallet-box {
    display: grid;
    gap: 7px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(0,0,0,.22);
}
.wallet-box span { color: var(--muted); font-size: 13px; }
.wallet-box strong { font-size: 26px; }
.wallet-box a { color: var(--accent-2); font-weight: 800; }
.app-main { min-width: 0; }
.app-main-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}
.app-main-head h1 {
    margin-bottom: 10px;
    font-size: clamp(36px, 4vw, 56px);
    letter-spacing: -.03em;
}
.app-main-head p { max-width: 660px; margin-bottom: 0; }
.wizard-shell { display: block; }
.wizard-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 20px;
}
.wizard-steps span {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(255,255,255,.045);
    font-size: 13px;
    font-weight: 850;
}
.wizard-steps .is-active {
    color: var(--text);
    border-color: rgba(21,208,181,.5);
    background: rgba(21,208,181,.12);
}
.wizard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 20px;
    align-items: start;
}
.builder-stack { display: grid; gap: 16px; }
.builder-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.052);
}
.builder-card h2 {
    margin-bottom: 14px;
    font-size: 24px;
    line-height: 1.12;
    letter-spacing: 0;
}
.builder-card p,
.field-hint {
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 14px;
}
.section-head.compact h2 { margin-bottom: 8px; font-size: 26px; letter-spacing: 0; }
.section-head.compact p { margin-bottom: 0; }
.choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.choice-grid.platforms { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 18px; }
.choice-card {
    min-height: 96px;
    margin: 0;
    padding: 14px;
    display: grid;
    align-content: start;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(0,0,0,.18);
    color: var(--text);
    cursor: pointer;
}
.choice-card input {
    width: 18px;
    min-height: 18px;
    accent-color: var(--accent-2);
}
.choice-card span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.dropzone {
    display: grid;
    place-items: center;
    min-height: 120px;
    border: 1px dashed rgba(255,255,255,.28);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(0,0,0,.18);
    text-align: center;
    padding: 18px;
}
.quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.quick-chips span,
.review-grid span {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(0,0,0,.18);
    font-size: 12px;
    font-weight: 800;
}
.toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.toggle-row input { width: 18px; min-height: 18px; accent-color: var(--accent-2); }
.review-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.summary-panel {
    position: sticky;
    top: 96px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(10, 9, 16, .92);
}
.summary-panel h2 {
    margin: 10px 0 18px;
    font-size: 24px;
    letter-spacing: 0;
}
.summary-line {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}
.summary-line span { color: var(--muted); }
.summary-line strong { text-align: right; }
.stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.stat-row article {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.052);
}
.stat-row span { display: block; color: var(--muted); }
.stat-row strong { display: block; margin-top: 8px; font-size: 34px; letter-spacing: -.02em; }
.creator-table td span { color: var(--muted); font-size: 13px; }
.row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.row-actions a,
.row-actions button {
    min-height: 32px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 850;
}
.row-actions a {
    border: 1px solid var(--line);
}
.row-actions form { margin: 0; }
.progress-list {
    display: grid;
    gap: 16px;
}
.progress-list div {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}
.progress-list div:last-child { border-bottom: 0; }
.progress-list span { color: var(--muted); }
.progress-list strong { color: var(--text); }
.progress-list i {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

body:has(.app-shell) {
    color-scheme: light;
    background: #f6f7fb;
    color: #111827;
}
body:has(.app-shell) .site-header {
    display: none;
}
body:has(.app-shell) .brand,
body:has(.app-shell) .main-nav a:hover,
body:has(.app-shell) .main-nav .is-active {
    color: #111827;
}
body:has(.app-shell) .main-nav { color: #64748b; }
body:has(.app-shell) .language-select,
body:has(.app-shell) input,
body:has(.app-shell) textarea,
body:has(.app-shell) select {
    border-color: #d9dee8;
    background: #fff;
    color: #111827;
}
body:has(.app-shell) .site-footer { display: none; }
body:has(.app-shell) .flash {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
body:has(.app-shell) .flash.error {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.app-shell {
    width: 100%;
    max-width: none;
    min-height: 100svh;
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
    gap: 0;
    padding: 0;
}
.app-sidebar {
    position: sticky;
    top: 0;
    min-height: 100svh;
    border: 0;
    border-right: 1px solid #e7eaf0;
    border-radius: 0;
    padding: 20px 18px;
    border-color: #e7eaf0;
    background: #fff;
    box-shadow: none;
}
.app-side-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    margin-bottom: 18px;
}
.app-side-brand strong,
.app-side-brand small {
    display: block;
}
.app-side-brand strong { color: #111827; }
.app-side-brand small {
    max-width: 170px;
    overflow: hidden;
    color: #667085;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.app-content {
    min-width: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}
.app-topbar {
    position: sticky;
    top: 0;
    z-index: 12;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 28px;
    border-bottom: 1px solid #e7eaf0;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(16px);
}
.app-search {
    position: relative;
    width: min(520px, 100%);
}
.app-search input {
    min-height: 42px;
    padding-left: 16px;
    padding-right: 48px;
    border-radius: 8px;
}
.app-search span {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: #98a2b3;
    font-size: 12px;
    font-weight: 800;
}
.app-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.top-link {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    color: #111827;
    background: #fff;
    font-size: 13px;
    font-weight: 850;
}
.theme-toggle {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    color: #111827;
    background: #fff;
    box-shadow: none;
    font-size: 13px;
}
.side-group { border-bottom-color: #eef1f5; }
.side-group span {
    color: #98a2b3;
    letter-spacing: .12em;
}
.side-group a {
    color: #667085;
    font-size: 14px;
}
.side-group a:hover,
.side-group a.is-active {
    color: #111827;
    background: #f2f4f7;
}
.wallet-box {
    border-color: #dce2ea;
    background: linear-gradient(180deg, #111827, #1f2937);
    color: #fff;
}
.wallet-box span { color: #cbd5e1; }
.wallet-box a { color: #67e8f9; }
.app-main-head {
    min-height: 86px;
    align-items: center;
    padding: 0;
}
.app-main-head h1 {
    color: #111827;
    font-size: clamp(34px, 3vw, 48px);
}
.app-main-head p { color: #667085; }
.app-main .eyebrow { color: #2563eb; letter-spacing: .11em; }
.app-main .status {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}
.wizard-steps {
    overflow: hidden;
    border: 1px solid #e6eaf0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .04);
}
.wizard-steps span {
    border: 0;
    border-right: 1px solid #eef1f5;
    border-radius: 0;
    background: transparent;
    color: #667085;
}
.wizard-steps span:last-child { border-right: 0; }
.wizard-steps .is-active {
    color: #111827;
    background: #eef6ff;
    border-color: transparent;
}
.wizard-grid {
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 18px;
}
.builder-stack { gap: 18px; }
.builder-card,
.stat-row article,
.summary-panel,
.table-wrap.creator-table {
    border-color: #e3e8ef;
    background: #fff;
    box-shadow: 0 18px 46px rgba(15, 23, 42, .055);
}
.builder-card {
    padding: 22px;
}
.builder-card h2,
.summary-panel h2,
.section-head.compact h2 {
    color: #111827;
}
.builder-card p,
.field-hint,
.choice-card span,
.summary-panel p,
.summary-line span,
.creator-table td span,
.stat-row span {
    color: #667085;
}
.choice-card {
    border-color: #e4e7ec;
    background: #fbfcfe;
    color: #111827;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.choice-card:hover {
    transform: translateY(-1px);
    border-color: #93c5fd;
    box-shadow: 0 14px 30px rgba(37, 99, 235, .08);
}
.choice-card input { accent-color: #2563eb; }
.dropzone {
    border-color: #b8c4d6;
    background: repeating-linear-gradient(135deg, #fbfcfe, #fbfcfe 12px, #f6f8fb 12px, #f6f8fb 24px);
    color: #667085;
}
.dropzone strong {
    display: block;
    color: #111827;
    margin-bottom: 4px;
}
.dropzone span { display: block; }
.segmented-tabs {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(110px, 1fr));
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #f8fafc;
}
.segmented-tabs button {
    min-height: 38px;
    border-radius: 0;
    color: #667085;
    background: transparent;
    box-shadow: none;
}
.segmented-tabs button.is-active {
    color: #111827;
    background: #fff;
}
.guardrail-note {
    display: grid;
    gap: 4px;
    margin-top: 2px;
    padding: 14px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #f8fafc;
}
.guardrail-note strong { color: #111827; }
.guardrail-note span { color: #667085; font-size: 13px; line-height: 1.45; }
.targeting-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.targeting-cards article {
    min-height: 86px;
    padding: 12px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #fbfcfe;
}
.targeting-cards strong,
.targeting-cards span {
    display: block;
}
.targeting-cards strong { color: #111827; font-size: 13px; }
.targeting-cards span { margin-top: 5px; color: #667085; font-size: 12px; line-height: 1.35; }
.launch-checklist {
    display: grid;
    gap: 8px;
    margin: 16px 0;
    padding: 14px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #f8fafc;
}
.launch-checklist strong { color: #111827; }
.launch-checklist span { color: #475467; font-size: 13px; }
.quick-chips span,
.review-grid span {
    border-color: #dbe3ee;
    background: #f8fafc;
    color: #475467;
}
.toggle-row span { color: #344054; }
.summary-panel {
    top: 92px;
    align-self: start;
}
.summary-line {
    border-top-color: #eef1f5;
    color: #111827;
}
.summary-line strong { color: #111827; }
.stat-row article strong { color: #111827; }
.creator-table table { color: #111827; }
.creator-table th {
    color: #667085;
    border-bottom-color: #eef1f5;
}
.creator-table td { border-bottom-color: #eef1f5; }
.creator-table .row-actions a {
    border-color: #d7dee8;
    color: #111827;
    background: #fff;
}
.creator-table .row-actions button,
.creator-table .inline-form button {
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 12px;
}
.creator-table .inline-form {
    align-items: center;
    flex-wrap: wrap;
}
.creator-table .inline-form input,
.creator-table .inline-form select {
    min-height: 34px;
    border-radius: 8px;
}
.progress-list div { border-bottom-color: #eef1f5; }
.progress-list span { color: #667085; }
.progress-list strong { color: #111827; }
.progress-list i { background: #2563eb; }
body:has(.app-shell) .button.primary,
body:has(.app-shell) button {
    background: #111827;
    box-shadow: 0 14px 28px rgba(17, 24, 39, .16);
}
body:has(.app-shell) .button.ghost {
    color: #111827;
    background: #fff;
    border-color: #d7dee8;
}
.mobile-app-nav { display: none; }
.app-main {
    width: min(100%, 1280px);
    margin: 0 auto;
    padding: 24px 28px 48px;
}
.head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.setup-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
    padding: 20px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(15, 23, 42, .055);
}
.setup-banner h2 {
    margin: 8px 0 8px;
    color: #111827;
    font-size: 28px;
    letter-spacing: 0;
}
.setup-banner p { margin-bottom: 0; color: #667085; }
.setup-next {
    display: grid;
    gap: 7px;
    padding: 14px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #f8fafc;
}
.setup-next strong { color: #2563eb; text-transform: uppercase; font-size: 11px; letter-spacing: .12em; }
.setup-next span { color: #111827; font-weight: 850; }
.setup-next small { color: #667085; }
.setup-list {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.setup-list span {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid #dbe3ee;
    border-radius: 999px;
    color: #667085;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 850;
}
.setup-list span.is-done {
    color: #047857;
    background: #ecfdf5;
    border-color: #a7f3d0;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.dash-card {
    min-height: 190px;
    padding: 18px;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(15, 23, 42, .055);
}
.dash-card h2 {
    margin-bottom: 10px;
    color: #111827;
    font-size: 18px;
    letter-spacing: 0;
}
.dash-card strong {
    display: block;
    color: #111827;
    font-size: 36px;
    line-height: 1;
    letter-spacing: -.02em;
}
.dash-card p,
.dash-card small { color: #667085; }
.dash-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.dash-card-head a { color: #2563eb; font-size: 13px; font-weight: 850; }
.metric-card { grid-column: span 1; }
.mini-stats {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.mini-stats span {
    padding: 6px 9px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #475467;
    font-size: 12px;
    font-weight: 800;
}
.activity-bars,
.sparkline {
    height: 72px;
    display: flex;
    align-items: end;
    gap: 10px;
    margin: 18px 0 8px;
}
.activity-bars span,
.sparkline i {
    flex: 1;
    min-width: 10px;
    border-radius: 999px 999px 0 0;
    background: #2563eb;
}
.sparkline i {
    height: 24px;
}
.sparkline i:nth-child(2) { height: 44px; }
.sparkline i:nth-child(3) { height: 32px; }
.sparkline i:nth-child(4) { height: 58px; }
.sparkline i:nth-child(5) { height: 70px; }
.activity-days {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    color: #98a2b3;
    font-size: 11px;
}
.wallet-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr);
    gap: 16px;
    margin-bottom: 16px;
}
.amount-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
}
.amount-grid button {
    min-height: 42px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    color: #111827;
    background: #f8fafc;
    box-shadow: none;
}
.amount-grid button.is-active,
.amount-grid button:hover {
    border-color: #2563eb;
    background: #eef6ff;
}
.paddle-card small {
    display: block;
    margin-top: 12px;
    color: #667085;
}
body:has(.app-shell).theme-dark {
    background: #09090b;
    color: #f4f4f5;
}
body:has(.app-shell).theme-dark .app-sidebar,
body:has(.app-shell).theme-dark .app-topbar,
body:has(.app-shell).theme-dark .builder-card,
body:has(.app-shell).theme-dark .summary-panel,
body:has(.app-shell).theme-dark .stat-row article,
body:has(.app-shell).theme-dark .dash-card,
body:has(.app-shell).theme-dark .setup-banner,
body:has(.app-shell).theme-dark .table-wrap.creator-table {
    border-color: #27272a;
    background: #18181b;
    color: #f4f4f5;
}
body:has(.app-shell).theme-dark .app-side-brand strong,
body:has(.app-shell).theme-dark .app-main-head h1,
body:has(.app-shell).theme-dark .builder-card h2,
body:has(.app-shell).theme-dark .summary-panel h2,
body:has(.app-shell).theme-dark .dash-card h2,
body:has(.app-shell).theme-dark .dash-card strong,
body:has(.app-shell).theme-dark .setup-banner h2,
body:has(.app-shell).theme-dark .summary-line strong,
body:has(.app-shell).theme-dark .creator-table table,
body:has(.app-shell).theme-dark .stat-row article strong {
    color: #f4f4f5;
}
body:has(.app-shell).theme-dark .app-main-head p,
body:has(.app-shell).theme-dark .dash-card p,
body:has(.app-shell).theme-dark .dash-card small,
body:has(.app-shell).theme-dark .setup-banner p,
body:has(.app-shell).theme-dark .summary-line span,
body:has(.app-shell).theme-dark .field-hint,
body:has(.app-shell).theme-dark .creator-table td span {
    color: #a1a1aa;
}
body:has(.app-shell).theme-dark input,
body:has(.app-shell).theme-dark textarea,
body:has(.app-shell).theme-dark select,
body:has(.app-shell).theme-dark .top-link,
body:has(.app-shell).theme-dark .theme-toggle,
body:has(.app-shell).theme-dark .choice-card,
body:has(.app-shell).theme-dark .setup-next,
body:has(.app-shell).theme-dark .guardrail-note,
body:has(.app-shell).theme-dark .targeting-cards article,
body:has(.app-shell).theme-dark .launch-checklist,
body:has(.app-shell).theme-dark .amount-grid button {
    border-color: #3f3f46;
    background: #27272a;
    color: #f4f4f5;
}
body:has(.app-shell).theme-dark .side-group a:hover,
body:has(.app-shell).theme-dark .side-group a.is-active,
body:has(.app-shell).theme-dark .mobile-app-nav a.is-active {
    color: #f4f4f5;
    background: #27272a;
}

.flash {
    max-width: 900px;
    margin: 20px auto 0;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(34,197,94,.16);
    color: #b8ffd0;
}
.flash.error { background: rgba(239,68,68,.16); color: #ffd1d1; }
pre {
    overflow: auto;
    padding: 16px;
    border-radius: 14px;
    background: rgba(0,0,0,.35);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    padding: 42px 32px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}
.site-footer p { max-width: 560px; margin-bottom: 0; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

[dir="rtl"] .site-header,
[dir="rtl"] .section-head,
[dir="rtl"] .site-footer {
    direction: rtl;
}

[dir="rtl"] .hero,
[dir="rtl"] .detail-layout {
    direction: rtl;
}

@media (max-width: 900px) {
    .site-header { align-items: flex-start; flex-direction: column; height: auto; padding: 16px 20px; }
    .main-nav { width: 100%; gap: 14px; flex-wrap: wrap; }
    .hero, .detail-layout { grid-template-columns: 1fr; }
    .hero { min-height: auto; padding-top: 58px; }
    .steps, .campaign-grid { grid-template-columns: 1fr; }
    .section-head, .site-footer { align-items: flex-start; flex-direction: column; }
    .search-form { flex-direction: column; }
    .app-shell, .wizard-grid, .form-grid, .choice-grid, .choice-grid.platforms, .stat-row { grid-template-columns: 1fr; }
    .setup-banner,
    .dashboard-grid,
    .wallet-grid {
        grid-template-columns: 1fr;
    }
    .setup-banner {
        padding: 16px;
        gap: 14px;
    }
    .setup-banner h2 {
        font-size: 24px;
        line-height: 1.15;
    }
    .setup-list {
        display: grid;
        grid-template-columns: 1fr;
    }
    .head-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .head-actions .button,
    .paddle-add-funds {
        width: 100%;
        justify-content: center;
    }
    .dash-card {
        min-height: auto;
        padding: 16px;
    }
    .dash-card strong {
        font-size: 30px;
    }
    .dash-card-head {
        align-items: flex-start;
    }
    .amount-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .app-shell {
        min-height: 100svh;
        padding: 0 0 78px;
    }
    .app-sidebar { display: none; }
    .app-content { min-width: 0; }
    .app-topbar {
        min-height: auto;
        align-items: stretch;
        flex-direction: column;
        padding: 12px 14px;
    }
    .app-search { width: 100%; }
    .app-top-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }
    .top-link,
    .theme-toggle { justify-content: center; }
    .app-main {
        width: 100%;
        padding: 18px 14px 28px;
    }
    .summary-panel { position: static; min-height: auto; }
    .wizard-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wizard-steps span {
        min-height: 38px;
        border-right: 0;
        font-size: 12px;
    }
    .app-main-head {
        min-height: auto;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
    .app-main-head h1 { font-size: 34px; }
    .builder-card,
    .summary-panel,
    .stat-row article {
        padding: 16px;
        box-shadow: 0 10px 24px rgba(15, 23, 42, .045);
    }
    .targeting-cards { grid-template-columns: 1fr; }
    .segmented-tabs { width: 100%; }
    .table-wrap { max-width: 100%; overflow-x: auto; }
    .creator-table table { min-width: 760px; }
    .mobile-app-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 30;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        border-top: 1px solid #e7eaf0;
        background: rgba(255,255,255,.95);
        backdrop-filter: blur(18px);
    }
    body:has(.app-shell).theme-dark .mobile-app-nav {
        border-top-color: #27272a;
        background: rgba(24,24,27,.95);
    }
    .mobile-app-nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        color: #667085;
        font-size: 12px;
        font-weight: 850;
    }
    .mobile-app-nav a.is-active {
        color: #111827;
        background: #eef6ff;
    }
    body:has(.app-shell) h1 { font-size: 34px; }
    h1 { font-size: 46px; }
}
