:root {
  color-scheme: light;
  --paper: #f2f5f8;
  --white: #fff;
  --ink: #112133;
  --muted: #516175;
  --line: #dce4ec;
  --night: #0c212f;
  --teal: #a7f0cc;
  --accent: #095b46;
  --radius: 16px;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:disabled { cursor: default; opacity: .48; }
a { color: inherit; }
a:not([href]) { opacity: .5; cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #177b66; outline-offset: 3px; }
h1, h2, h3, p, dl, dd { margin: 0; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; letter-spacing: -.035em; }
h3 { font-size: 1.23rem; letter-spacing: -.025em; }
.shell { max-width: 1280px; width: calc(100% - 88px); margin-inline: auto; }
.muted { color: var(--muted); line-height: 1.55; }

.header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 74px; display: flex; align-items: center; gap: 48px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.52rem; font-weight: 750; letter-spacing: -.055em; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--teal); display: grid; place-items: center; }
.brand-mark::after { content: ""; height: 15px; width: 15px; border: 3px solid #103a30; border-top: 0; border-right: 0; box-shadow: -4px 4px 0 -2px #103a30; transform: translate(2px, -2px); }
.header nav, .header-actions { display: flex; align-items: center; gap: 24px; }
.header nav a { text-decoration: none; font-size: .94rem; font-weight: 550; color: var(--muted); }
.header nav a:hover { color: var(--accent); }
.header-actions { margin-left: auto; gap: 8px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: 9px 16px; border-radius: 9px; border: 1px solid transparent; text-decoration: none; font-size: .94rem; line-height: 1.35; font-weight: 650; background: transparent; color: inherit; }
.button-primary { background: var(--teal); color: #0a3629; }
.button-primary:hover:not(:disabled) { background: #8de7bb; }
.button-quiet:hover { background: #edf2f6; }
.button-outline { border-color: #c9d5de; background: var(--white); }
.button-outline:hover { background: #edf2f6; }
.button-hero-outline { border-color: #667e89; color: #f5fafb; }
.button-hero-outline:hover { background: #25404e; }

main { flex: 1; padding-block: 36px 64px; }
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); align-items: center; gap: 46px; padding: clamp(32px, 5vw, 68px); min-height: 412px; overflow: hidden; border-radius: 23px; color: #f4fbfc; background: radial-gradient(ellipse at 93% 20%, #245044 0%, transparent 53%), var(--night); }
.hero::before { content: ""; pointer-events: none; position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(#a7f0cc13 1px, transparent 1px), linear-gradient(90deg, #a7f0cc13 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(90deg, transparent 20%, black); }
.eyebrow { color: var(--accent); font-size: .875rem; font-weight: 680; letter-spacing: .03em; margin-bottom: 14px; }
.hero .eyebrow { color: #c4f7de; display: flex; gap: 9px; align-items: center; }
.hero .eyebrow span { background: #a7f0cc; width: 8px; height: 8px; border-radius: 999px; }
.hero h1 { font-size: clamp(2.35rem, 4.65vw, 4.1rem); line-height: 1.01; letter-spacing: -.063em; font-weight: 730; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero-description { width: min(100%, 490px); color: #ccdae1; font-size: 1.07rem; line-height: 1.55; margin-block: 20px 24px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.hero-actions .button { min-height: 46px; }
.hero-preview { color: #ecf8f6; background: #122c36; border-radius: 17px; border: 1px solid #49636a; box-shadow: 0 16px 30px #040e1849; padding: 22px; }
.preview-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.preview-icon { width: 34px; height: 34px; border-radius: 8px; background: #2a534c; display: grid; place-items: center; }
.preview-icon::after { content: ""; width: 15px; height: 10px; border: solid var(--teal); border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -2px); }
.hero-preview small { display: block; color: #b6c8ce; font-size: .82rem; margin-top: 3px; line-height: 1.35; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid #36515b; font-size: .91rem; }
.timeline li:last-child { padding-bottom: 0; }
.track-dot { background: #a7f0cc; width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; }
.preview-status { color: #b9f4d8; background: #214739; padding: 5px 8px; border-radius: 6px; font-size: .75rem; margin-left: auto; }

.section { margin-top: 40px; scroll-margin-top: 14px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 16px; }
.section-heading .muted, .workflow .muted, .notice .muted { margin-top: 8px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { padding: 8px 13px; border-radius: 30px; border: 1px solid var(--line); background: var(--white); color: #415166; font-size: .9rem; }
.chip[aria-pressed="true"] { border-color: var(--night); background: var(--night); color: var(--white); }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.offer, .notice { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.offer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.offer-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; }
.offer-icon.green { color: #14674d; background: #e4f7eb; }
.offer-icon.blue { color: #305ba1; background: #e5eeff; }
.offer-icon.orange { color: #8b5918; background: #fcf0dc; }
.offer-icon.yellow { color: #453b07; background: #fff0a8; }
.offer-icon span { position: relative; display: block; width: 19px; height: 14px; border: 1.5px solid currentColor; border-radius: 4px; }
.offer-icon span::after { content: ""; display: block; margin-top: 3px; border-top: 1.5px solid currentColor; }
.demo-label { color: #485c6f; background: #edf2f6; padding: 4px 9px; font-size: .81rem; font-weight: 650; border-radius: 6px; }
.goal { color: var(--muted); margin-top: 5px; line-height: 1.4; }
.offer dl { border-top: 1px solid var(--line); margin-top: 17px; padding-top: 12px; display: grid; gap: 8px; }
.offer dl div { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; }
.offer dt { color: var(--muted); }
.offer dd { font-weight: 650; text-align: right; }
.offer .button { width: 100%; margin-top: 16px; }
.workflow { display: grid; grid-template-columns: minmax(220px, .6fr) minmax(0, 1.4fr); gap: 34px; border-top: 1px solid var(--line); padding-top: 30px; }
.workflow ol { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; margin: 0; }
.workflow li { border-left: 2px solid #7dbda5; padding-left: 12px; }
.workflow p { color: var(--muted); line-height: 1.5; margin-top: 6px; }
.advertiser { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px; border: 1px solid #d5e7e0; border-radius: var(--radius); background: #e8f4ef; }
.advertiser .eyebrow { margin-bottom: 6px; }
.advertiser .muted { margin-top: 8px; }
.advertiser .button { flex-shrink: 0; }
.bank-referral { background: #fff3f1; border-color: #eed9d7; }
.bank-referral .eyebrow { color: #982d36; }
.report-details { margin: 13px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.report-details summary { font-weight: 650; cursor: pointer; }
.report-details h3, .report-details .muted { margin-top: 16px; }
.report-search, .report-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block: 14px; }
.report-search label { width: 100%; color: var(--muted); font-weight: 600; }
.report-search input { width: min(100%, 340px); min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; }

.page-heading { padding-block: 8px 24px; }
.page-heading h1 { font-size: clamp(2.2rem, 5vw, 3.65rem); line-height: 1.05; letter-spacing: -.06em; overflow-wrap: anywhere; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.tabs button { background: transparent; color: var(--muted); border: 0; border-bottom: 3px solid transparent; padding: 12px 14px; }
.tabs button[aria-pressed="true"] { border-bottom-color: var(--accent); color: var(--accent); font-weight: 700; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; margin-bottom: 24px; }
.metrics > div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.metrics dt { color: var(--muted); }
.metrics dd { margin-top: 8px; font-size: 1.9rem; font-weight: 740; letter-spacing: -.05em; }
.empty, .loading { padding: 24px; color: var(--muted); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-title { margin-bottom: 14px; }
.notice .button { margin-top: 16px; }
.table-wrap { overflow-x: auto; margin-block: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 12px 14px; text-align: left; vertical-align: middle; overflow-wrap: anywhere; }
th { background: #ebf1f5; color: #3c5265; }
td { border-top: 1px solid var(--line); }
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.table-actions .button, td .button { padding: 5px 9px; min-height: 34px; white-space: nowrap; font-size: .87rem; }
.status { display: inline-block; font-size: .85rem; font-weight: 650; border-radius: 7px; padding: 5px 9px; }
.status-active, .status-approved, .status-paid { background: #def4e9; color: #175642; }
.status-pending { background: #f9edd4; color: #6b4818; }
.status-rejected, .status-suspended { background: #fae7e7; color: #833a3a; }
.notice .status { margin-top: 14px; }
.demo-state { margin-top: 10px; }
.demo-state .status { margin: 0 0 0 6px; }

.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 24px; }
.footer span:first-child { color: var(--ink); font-weight: 750; }
dialog { padding: 22px; width: min(500px, calc(100% - 24px)); max-height: calc(100% - 24px); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); box-shadow: 0 24px 80px #13263342; }
dialog::backdrop { background: #09192899; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 8px; margin-bottom: 16px; }
.close { display: grid; place-items: center; min-width: 34px; min-height: 34px; border: 0; border-radius: 7px; background: #edf2f6; color: var(--ink); font-size: 1.3rem; }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 5px; font-weight: 600; font-size: .93rem; }
.form input:not([type="checkbox"]), .form textarea, .form select { width: 100%; min-height: 42px; border: 1px solid #9faeba; border-radius: 8px; padding: 8px 10px; color: var(--ink); background: var(--white); font-weight: 400; }
.form textarea { min-height: 65px; resize: vertical; }
.form select { appearance: none; padding-right: 28px; background: linear-gradient(45deg, transparent 50%, #324e58 50%) calc(100% - 15px) center / 5px 5px no-repeat, linear-gradient(135deg, #324e58 50%, transparent 50%) calc(100% - 10px) center / 5px 5px no-repeat; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.form .checkbox { display: flex; gap: 8px; align-items: center; }
.form-error { color: #903e36; font-size: .92rem; }
.toast { z-index: 2; position: fixed; inset: auto 16px 16px auto; max-width: min(390px, calc(100% - 32px)); padding: 14px 18px; border-radius: 10px; color: var(--white); background: var(--night); box-shadow: 0 10px 24px #172a3d4d; }

@media (max-width: 1050px) {
  .shell { width: calc(100% - 48px); }
  .hero { gap: 24px; }
  .preview-status { display: none; }
}
@media (max-width: 800px) {
  .header-inner { gap: 18px; }
  .header nav { gap: 10px; }
  .hero { grid-template-columns: 1fr; }
  .hero-preview { max-width: 500px; }
  .preview-status { display: block; }
  .workflow { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 540px) {
  .shell { width: calc(100% - 28px); }
  .header-inner { min-height: 66px; gap: 8px; }
  .header nav { display: none; }
  .header-actions { gap: 4px; }
  .header-actions .button { padding-inline: 9px; }
  main { padding-top: 18px; }
  .hero { padding: 24px 19px; border-radius: 16px; min-height: auto; }
  .hero h1 { font-size: clamp(1.9rem, 9.1vw, 2.8rem); }
  .hero-description { margin-block: 14px 18px; }
  .hero-preview { padding: 15px; }
  .preview-status { display: none; }
  .section-heading { flex-wrap: wrap; }
  .workflow ol { grid-template-columns: 1fr; }
  .advertiser { flex-wrap: wrap; }
  .payout-heading { align-items: start; }
}
