:root {
  --bg: #f5f7fb;
  --ink: #101522;
  --muted: #667085;
  --panel: #ffffff;
  --line: #e6eaf1;
  --primary: #1167ff;
  --primary-2: #0e4fd1;
  --accent: #00a878;
  --warning: #c77700;
  --danger: #d92d20;
  --shadow: 0 18px 50px rgba(16, 21, 34, .10);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
main { min-height: calc(100vh - 76px); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(255,255,255,.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand, .nav, .hero-actions, .inline, .panel-head, .account-head, .metrics, .zone-stats {
  display: flex;
  align-items: center;
}

.brand { gap: 12px; font-weight: 800; font-size: 19px; }
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #101522, #1167ff);
}

.nav { gap: 20px; color: #344054; font-weight: 650; }
.nav a:not(.button):hover { color: var(--primary); }
.nav-form { margin: 0; }

.button, button {
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(17, 103, 255, .22);
}
.button:hover, button:hover { background: var(--primary-2); }
button:disabled {
  cursor: not-allowed;
  background: #d0d5dd;
  color: #667085;
  box-shadow: none;
}
.button.ghost, .ghost {
  background: #eef4ff;
  color: var(--primary);
  box-shadow: none;
}
.button.large { min-height: 52px; padding: 0 24px; }
.button.full { width: 100%; }
.check-line {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  color: #475467;
}
.check-line input { width: auto; }

.flash {
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 14px 16px;
  border-radius: 8px;
  background: #eaf8f2;
  color: #067647;
  border: 1px solid #abeac6;
  font-weight: 750;
}
.flash.error { background: #fff1f0; color: #b42318; border-color: #fecdca; }

.impersonation-bar {
  width: min(1280px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #101522;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 750;
}

.impersonation-bar form { margin: 0; }

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
}

.toast {
  padding: 14px 16px;
  border-radius: 8px;
  color: #fff;
  background: #101522;
  box-shadow: var(--shadow);
  transform: translateY(12px);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  font-weight: 700;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  background: linear-gradient(135deg, #0d7a55, #00a878);
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(40px, 6vw, 86px) clamp(18px, 5vw, 72px) 36px;
  background:
    linear-gradient(90deg, rgba(7,13,24,.94) 0%, rgba(7,13,24,.78) 42%, rgba(7,13,24,.28) 100%),
    url("/assets/hero-adtech.png") center / cover no-repeat;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 900;
}
h1, h2, h3, p { margin-top: 0; }
.hero h1, .auth-copy h1, .account-head h1 {
  margin-bottom: 18px;
  line-height: 1.02;
  letter-spacing: 0;
}
.hero h1 { max-width: 820px; font-size: clamp(42px, 7vw, 82px); }
.lead { max-width: 680px; color: #475467; font-size: 20px; line-height: 1.65; }
.hero .eyebrow { color: #66e3c4; }
.hero h1 { color: #fff; text-shadow: 0 18px 40px rgba(0,0,0,.26); }
.hero .lead { color: rgba(255,255,255,.78); }
.hero .lead strong { color: #fff; }
.traffic-callout {
  max-width: 660px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(102,227,196,.34);
  border-radius: 8px;
  background: rgba(9, 18, 32, .58);
  box-shadow: 0 18px 38px rgba(0,0,0,.18);
}
.traffic-callout.secondary {
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
}
.traffic-callout span {
  color: #66e3c4;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.traffic-callout strong {
  color: rgba(255,255,255,.9);
  font-size: 15px;
  line-height: 1.45;
}
.hero-actions { gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.hero-trust span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: 0 13px;
  color: rgba(255,255,255,.84);
  background: rgba(255,255,255,.08);
  font-weight: 800;
  font-size: 13px;
}

.hero-panel {
  min-height: 460px;
  border-radius: 8px;
  padding: 22px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(16,21,34,.72), rgba(17,103,255,.38));
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.live-card {
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255,255,255,.1);
}
.live-card .label { color: rgba(255,255,255,.72); display: block; margin-bottom: 8px; }
.live-card strong { font-size: 54px; }
.spark { height: 120px; display: flex; align-items: end; gap: 12px; margin-top: 26px; }
.spark span { flex: 1; border-radius: 8px 8px 0 0; background: linear-gradient(#66e3c4, #fff); opacity: .9; }
.spark span:nth-child(1) { height: 34%; } .spark span:nth-child(2) { height: 62%; }
.spark span:nth-child(3) { height: 46%; } .spark span:nth-child(4) { height: 78%; }
.spark span:nth-child(5) { height: 58%; } .spark span:nth-child(6) { height: 92%; }
.glass-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.glass-grid div, .mini-grid div {
  padding: 16px;
  border-radius: 8px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.2);
}
.glass-grid span, .mini-grid span { display: block; font-size: 28px; font-weight: 900; }
.glass-grid small, .mini-grid small { color: rgba(255,255,255,.72); }

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature-band article {
  background: #fff;
  padding: clamp(24px, 4vw, 48px);
}
.feature-band h3 { margin-bottom: 10px; }
.feature-band p { color: var(--muted); line-height: 1.7; }
.icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #101522;
  margin-bottom: 18px;
}
.format-visual {
  position: relative;
  height: 210px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: #f8fafc;
  background-size: 300% 200%;
  background-repeat: no-repeat;
  margin-bottom: 18px;
}
.format-visual.smartlink { background-position: 0 0; }
.format-visual.directlink { background-position: 50% 0; }
.format-visual.popup { background-position: 100% 0; }
.format-visual.pushunder { background-position: 0 100%; }
.format-visual.banner { background-position: 50% 100%; }
.format-visual.cpa { background-position: 100% 100%; }

.earning-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #101522;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.earning-strip div {
  padding: 26px clamp(18px, 4vw, 44px);
  border-right: 1px solid rgba(255,255,255,.12);
}
.earning-strip span,
.earning-strip small {
  display: block;
  color: rgba(255,255,255,.64);
  font-weight: 750;
}
.earning-strip strong {
  display: block;
  margin: 5px 0;
  font-size: clamp(25px, 3.4vw, 42px);
  line-height: 1;
}

.conversion-section,
.comparison-section,
.onboarding-band {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: clamp(26px, 5vw, 68px);
  align-items: center;
  padding: clamp(44px, 7vw, 86px) clamp(18px, 5vw, 72px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.advertiser-band { background: #f8fafc; }
.onboarding-band {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.section-copy h2,
.formats-hero h1 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  margin-bottom: 16px;
}
.section-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}
.section-copy.compact h2 { font-size: clamp(28px, 4vw, 44px); }
.report-preview,
.format-mini-grid,
.comparison-grid,
.onboarding-steps {
  display: grid;
  gap: 12px;
}
.report-row,
.format-mini-grid div,
.comparison-grid div,
.onboarding-steps div {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px 18px;
  box-shadow: 0 10px 30px rgba(16,21,34,.05);
}
.report-row span,
.format-mini-grid span,
.comparison-grid span { color: var(--muted); font-weight: 750; }
.onboarding-steps span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: #fff;
  background: #101522;
  font-weight: 900;
}
.report-row strong,
.format-mini-grid strong,
.comparison-grid strong,
.onboarding-steps strong { font-size: 22px; }
.onboarding-steps small { color: var(--muted); margin-left: auto; font-weight: 750; }

.formats-hero {
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: clamp(44px, 7vw, 92px) clamp(18px, 5vw, 72px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7,13,24,.96), rgba(7,13,24,.66)),
    url("/assets/hero-adtech.png") center / cover no-repeat;
}
.formats-hero > div { max-width: 860px; }
.formats-hero .eyebrow { color: #66e3c4; }
.formats-hero p { color: rgba(255,255,255,.78); max-width: 720px; font-size: 19px; line-height: 1.7; }
.contact-page {
  width: min(1180px, calc(100% - 32px));
  margin: 42px auto 72px;
}
.contact-hero {
  padding: clamp(34px, 6vw, 68px);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7,13,24,.94), rgba(7,13,24,.62)),
    url("/assets/hero-adtech.png") center / cover no-repeat;
}
.contact-hero h1 {
  max-width: 880px;
  font-size: clamp(36px, 5.6vw, 68px);
  line-height: 1.03;
  margin-bottom: 18px;
}
.contact-hero p {
  max-width: 720px;
  color: rgba(255,255,255,.78);
  font-size: 19px;
  line-height: 1.7;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.contact-card,
.contact-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px;
}
.contact-card span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.contact-card h2 { margin-bottom: 0; }
.contact-card p { color: var(--muted); line-height: 1.65; }
.contact-card .button { margin-top: auto; }
.contact-note {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
  padding: 24px;
}
.contact-note p { color: var(--muted); line-height: 1.65; }
.tight { padding-top: 28px; }
.format-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.format-card,
.choice-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(16,21,34,.07);
}
.format-card { padding: 24px; }
.format-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.format-card-head strong {
  color: var(--accent);
  font-size: 13px;
  text-transform: uppercase;
}
.format-card h2 { font-size: 30px; }
.format-card p { color: var(--muted); line-height: 1.7; }
.format-card .format-intro { color: var(--ink); font-weight: 800; }
.format-card ul {
  padding-left: 18px;
  margin: 18px 0 0;
  color: #344054;
  line-height: 1.8;
}

.workspace {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 64px;
}
.account-head {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.account-head h1 { font-size: clamp(34px, 5vw, 58px); }
.account-head p:not(.eyebrow) { color: var(--muted); max-width: 680px; font-size: 17px; }
.account-pill {
  min-width: 220px;
  border-radius: 8px;
  padding: 14px 16px;
  background: #101522;
  color: #fff;
}
.account-pill span { display: block; color: rgba(255,255,255,.7); margin-bottom: 6px; }
.account-pill strong { font-size: 24px; }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.metric, .panel, .auth-shell .panel, .zone-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(16,21,34,.06);
}
.metric { padding: 18px; display: block; }
.metric span { color: var(--muted); font-weight: 700; display: block; margin-bottom: 8px; }
.metric strong { font-size: 27px; }
.metric-link {
  color: inherit;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.metric-link:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 103, 255, .42);
  box-shadow: 0 14px 34px rgba(17, 103, 255, .15);
}
.source-url {
  display: block;
  min-width: 260px;
  max-width: 620px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #344054;
  line-height: 1.45;
}
.focus-strip {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.focus-strip strong { color: var(--ink); }
.focus-strip span { color: var(--muted); font-weight: 750; }
.metric-tabs { gap: 8px; flex-wrap: wrap; }

.publisher-dashboard .metrics .metric:first-child {
  background: linear-gradient(135deg, #101522, #0e4fd1);
  color: #fff;
  border-color: transparent;
}
.publisher-dashboard .metrics .metric:first-child span { color: rgba(255,255,255,.72); }
.publisher-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
  gap: 18px;
  align-items: stretch;
  color: #fff;
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
  margin-bottom: 18px;
  background:
    linear-gradient(135deg, rgba(16,21,34,.96), rgba(17,103,255,.78)),
    url("/assets/hero-adtech.png") center / cover no-repeat;
  box-shadow: var(--shadow);
}
.publisher-hero-panel .eyebrow { color: #66e3c4; }
.publisher-hero-panel h2 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  margin-bottom: 12px;
}
.publisher-hero-panel p { color: rgba(255,255,255,.76); max-width: 720px; line-height: 1.7; }
.affiliate-box {
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  padding: 18px;
  display: grid;
  gap: 12px;
  align-content: center;
  backdrop-filter: blur(12px);
}
.affiliate-box span { color: rgba(255,255,255,.7); font-weight: 800; }
.affiliate-box strong { font-size: 26px; }
.affiliate-box label { color: #fff; }
.affiliate-box input { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.95); }
.premium-report {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.daily-report {
  display: grid;
  gap: 10px;
}
.daily-row {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px 16px;
}
.daily-row div,
.daily-row em { position: relative; z-index: 1; }
.daily-row strong,
.daily-row span { display: block; }
.daily-row span { margin-top: 4px; color: var(--muted); font-weight: 750; }
.daily-row em { font-style: normal; color: var(--primary); font-weight: 900; }
.daily-row i {
  position: absolute;
  inset: auto auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.daily-chart {
  display: block;
  width: 100%;
  height: 220px;
  margin: 10px 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fafc);
}
.typing-line {
  color: var(--primary);
  font-weight: 800;
}
.mail-runner {
  margin-top: 16px;
}
.admin-mail-layout {
  align-items: start;
  margin-bottom: 18px;
}
.mail-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 16px;
  display: grid;
  gap: 10px;
}
.mail-preview span,
.mail-worker-note {
  color: var(--muted);
  font-weight: 750;
}
.mail-preview strong {
  display: block;
  font-size: 18px;
}
.mail-preview pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  line-height: 1.6;
  color: #344054;
}
.mail-progress {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6eaf1;
}
.mail-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.mail-worker-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}
.mail-live-table {
  margin-top: 18px;
  overflow-x: auto;
}
.mail-live-table h3 {
  margin-bottom: 10px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 18px;
  margin-bottom: 18px;
}
.panel { padding: 20px; margin-bottom: 18px; }
.panel-head { justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.panel h2 { margin-bottom: 6px; }
.panel p { color: var(--muted); }

.form { display: grid; gap: 14px; }
.grid-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-form label:nth-child(4), .grid-form .button { grid-column: 1 / -1; }
.terms-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  overflow: hidden;
}
.terms-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.terms-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.terms-scroll {
  max-height: 300px;
  overflow: auto;
  padding: 16px;
  color: #344054;
  font-size: 13px;
  line-height: 1.6;
}
.terms-scroll h3 {
  margin: 16px 0 6px;
  color: var(--ink);
  font-size: 14px;
}
.terms-scroll h3:first-child { margin-top: 0; }
.terms-scroll p { margin-bottom: 10px; }
.terms-check {
  align-items: flex-start;
  line-height: 1.45;
}
.terms-check a { color: var(--primary); text-decoration: underline; }
.terms-page {
  width: min(1040px, calc(100% - 32px));
  margin: 42px auto 70px;
}
.terms-page .section-copy {
  margin-bottom: 24px;
}
.terms-page h1 {
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1;
  margin-bottom: 16px;
}
.terms-document {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.terms-document h2 {
  margin: 28px 0 10px;
  font-size: 22px;
}
.terms-document h2:first-child { margin-top: 0; }
.terms-document p {
  color: #475467;
  line-height: 1.75;
  margin-bottom: 14px;
}
label { color: #344054; display: grid; gap: 7px; font-weight: 750; }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
textarea { resize: vertical; }
input[readonly], textarea[readonly] { background: #f8fafc; cursor: copy; }

.auth-shell {
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto;
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 52px;
  padding: 40px 0;
}
.auth-copy h1 { font-size: clamp(38px, 6vw, 70px); }
.auth-copy p { color: var(--muted); font-size: 18px; line-height: 1.7; }
.muted { color: var(--muted); font-size: 14px; }
.muted a { color: var(--primary); font-weight: 800; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th {
  text-align: left;
  color: #667085;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
}
td { padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
td small { display: block; margin-top: 4px; color: var(--muted); max-width: 360px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inline { gap: 8px; flex-wrap: wrap; }
.mini {
  min-height: 32px;
  border-radius: 7px;
  padding: 0 10px;
  box-shadow: none;
  font-size: 12px;
}
.muted-btn { background: #eef4ff; color: var(--primary); }
.danger { background: #fff1f0; color: var(--danger); box-shadow: none; }

.badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-weight: 850;
  font-size: 12px;
  background: #f2f4f7;
  color: #344054;
}
.badge.active, .badge.paid, .badge.publisher { background: #ecfdf3; color: #067647; }
.badge.pending, .badge.advertiser { background: #fff7e6; color: #b54708; }
.badge.paused, .badge.suspended, .badge.rejected { background: #fff1f0; color: #b42318; }
.badge.smartlink { background: #eef4ff; color: #1849a9; }
.badge.directlink { background: #f0f9ff; color: #026aa2; }
.badge.popup, .badge.admin { background: #f4f3ff; color: #5925dc; }
.badge.banner, .badge.cpm { background: #ecfdf3; color: #067647; }
.badge.cpc { background: #fff7e6; color: #b54708; }

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.mini-grid div { background: #101522; color: #fff; }
.empty { color: var(--muted); text-align: center; padding: 22px; }

.zone-list, .site-list, .deposit-list { display: grid; gap: 14px; }
.publisher-onboarding {
  display: grid;
  grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.choice-card {
  padding: 18px;
  display: grid;
  gap: 10px;
}
.choice-card .icon { margin-bottom: 0; }
.choice-card h3 { margin-bottom: 0; }
.choice-card p { color: var(--muted); line-height: 1.55; margin-bottom: 0; }
.choice-card .choice-note {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
  font-size: 13px;
}
.choice-card small { color: #344054; font-weight: 800; }
.site-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(16,21,34,.07);
  padding: 18px;
  display: grid;
  gap: 12px;
}
.site-card h3 { margin-bottom: 6px; }
.verify-options {
  display: grid;
  gap: 12px;
}
.verify-option {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
  display: grid;
  gap: 8px;
}
.verify-option strong,
.verify-option small,
.verify-file-actions span {
  display: block;
}
.verify-option small,
.verify-file-actions span {
  color: var(--muted);
  font-size: 13px;
}
.verify-file-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.verify-option textarea { min-height: 118px; }
.report-split { grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); }
.geo-panel table { min-width: 560px; }
.geo-map { display: grid; gap: 12px; margin-bottom: 16px; }
.geo-line {
  position: relative;
  overflow: hidden;
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.geo-line div,
.geo-line em { position: relative; z-index: 1; }
.geo-line strong,
.geo-line span { display: block; }
.geo-line span { color: var(--muted); margin-top: 4px; font-size: 13px; }
.geo-line em { font-style: normal; font-weight: 900; color: var(--primary); }
.geo-line i {
  position: absolute;
  inset: auto auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.country-summary { margin-top: 4px; }
.country-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.country-member-card {
  min-height: 112px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
}
.country-member-card .country-flag {
  width: 48px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #d0d5dd;
  font-size: 28px;
  line-height: 1;
}
.country-member-card strong,
.country-member-card small { display: block; }
.country-member-card strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.country-member-card small {
  grid-column: 2 / -1;
  color: var(--muted);
  font-weight: 800;
}
.country-member-card b {
  color: var(--primary);
  font-size: 30px;
  line-height: 1;
}
.online-summary { margin-top: 4px; }
.online-table table { min-width: 920px; }
.online-table td { vertical-align: middle; }
.online-table strong,
.online-table small { display: block; }
.online-table small { color: var(--muted); margin-top: 3px; }
.online-flag {
  width: 34px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  margin-right: 8px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #fff;
  font-size: 20px;
  vertical-align: middle;
}
.online-page {
  display: inline-block;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: ltr;
}
.compact-table table { min-width: 520px; }
.device-list { display: grid; gap: 12px; }
.device-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #f8fafc;
}
.device-card span,
.device-card small { color: var(--muted); display: block; }
.device-card strong { display: block; margin: 5px 0; font-size: 24px; }
.compact-device-card strong { font-size: 16px; line-height: 1.35; }
.quality-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.quality-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}
.quality-card strong,
.quality-card small { display: block; }
.quality-card small { margin-top: 6px; color: var(--muted); line-height: 1.45; }
.earning-warning {
  border: 1px solid #f79009;
  border-left: 5px solid #f79009;
  border-radius: 8px;
  background: #fffaeb;
  color: #7a2e0e;
  padding: 12px 14px;
  margin: 12px 0;
}
.earning-warning strong,
.earning-warning span { display: block; }
.earning-warning strong { font-size: 15px; font-weight: 950; }
.earning-warning span { margin-top: 5px; line-height: 1.45; font-size: 13px; font-weight: 750; }
.banner-code-preview {
  width: min(100%, 220px);
  aspect-ratio: var(--banner-ratio, 728 / 90);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #101522;
  overflow: hidden;
  display: grid;
  place-items: center;
  margin-top: 10px;
}
.banner-code-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.banner-code-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
}
.banner-placement-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
  display: grid;
  gap: 10px;
}
.banner-placement-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.banner-placement-head strong,
.banner-placement-head small,
.banner-preview-title {
  display: block;
}
.banner-placement-head strong { font-size: 18px; }
.banner-placement-head small,
.banner-preview-title { color: var(--muted); }
.publisher-banner-preview {
  width: min(100%, var(--banner-width, 728px));
  max-width: 100%;
  max-height: 620px;
}
.banner-placement-code {
  display: grid;
  gap: 7px;
  font-weight: 900;
}
.banner-placement-code textarea {
  width: 100%;
  min-height: 104px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.5;
}
.advertiser-banner-preview { width: min(100%, 260px); }
.banner-upload-preview {
  grid-column: 1 / -1;
  border: 1px dashed #98a2b3;
  border-radius: 8px;
  padding: 14px;
  background: #fcfcfd;
}
.banner-upload-preview span,
.banner-upload-preview strong,
.banner-upload-preview small { display: block; }
.banner-upload-preview span,
.banner-upload-preview small { color: var(--muted); }
.banner-upload-preview img {
  max-width: min(100%, 520px);
  max-height: 220px;
  object-fit: contain;
  display: block;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #101522;
}
.soft-line { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.estimate-box {
  grid-column: 1 / -1;
  border: 1px solid #b2ddff;
  border-radius: 8px;
  background: #eff8ff;
  color: #1849a9;
  padding: 14px 16px;
  font-weight: 800;
}
.estimate-box strong,
.estimate-box span { display: block; }
.estimate-box span { margin-top: 5px; color: #475467; font-weight: 700; line-height: 1.55; }
.publisher-nav,
.admin-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.publisher-nav a,
.admin-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 850;
  color: #475467;
  white-space: nowrap;
}
.publisher-nav a.active,
.publisher-nav a:hover,
.admin-nav a.active,
.admin-nav a:hover { background: #eef4ff; color: var(--primary); }
.admin-page .admin-tab-section { display: none; }
.admin-page .admin-tab-wrap { display: none; }
.admin-page.admin-tab-overview .tab-overview,
.admin-page.admin-tab-users .tab-users,
.admin-page.admin-tab-countries .tab-countries,
.admin-page.admin-tab-online .tab-online,
.admin-page.admin-tab-campaigns .tab-campaigns,
.admin-page.admin-tab-reports .tab-reports,
.admin-page.admin-tab-traffic .tab-traffic,
.admin-page.admin-tab-finance .tab-finance,
.admin-page.admin-tab-support .tab-support,
.admin-page.admin-tab-chat .tab-chat,
.admin-page.admin-tab-mail .tab-mail,
.admin-page.admin-tab-risk .tab-risk,
.admin-page.admin-tab-settings .tab-settings { display: block; }
.admin-page.admin-tab-overview .wrap-overview,
.admin-page.admin-tab-users .wrap-users,
.admin-page.admin-tab-countries .wrap-countries,
.admin-page.admin-tab-online .wrap-online,
.admin-page.admin-tab-campaigns .wrap-campaigns,
.admin-page.admin-tab-reports .wrap-reports,
.admin-page.admin-tab-traffic .wrap-traffic,
.admin-page.admin-tab-finance .wrap-finance,
.admin-page.admin-tab-support .wrap-support,
.admin-page.admin-tab-chat .wrap-chat,
.admin-page.admin-tab-mail .wrap-mail,
.admin-page.admin-tab-settings .wrap-settings { display: grid; }
.admin-page .split > .admin-tab-section { min-width: 0; }
.advertiser-page .advertiser-tab-section { display: none; }
.advertiser-page .advertiser-tab-wrap { display: none; }
.advertiser-page.advertiser-tab-overview .tab-overview,
.advertiser-page.advertiser-tab-smartlink .tab-smartlink,
.advertiser-page.advertiser-tab-directlink .tab-directlink,
.advertiser-page.advertiser-tab-popup .tab-popup,
.advertiser-page.advertiser-tab-pushunder .tab-pushunder,
.advertiser-page.advertiser-tab-banner .tab-banner,
.advertiser-page.advertiser-tab-cpa .tab-cpa,
.advertiser-page.advertiser-tab-reports .tab-reports,
.advertiser-page.advertiser-tab-finance .tab-finance,
.advertiser-page.advertiser-tab-support .tab-support,
.advertiser-page.advertiser-tab-account .tab-account { display: block; }
.advertiser-page.advertiser-tab-overview .wrap-overview,
.advertiser-page.advertiser-tab-smartlink .wrap-planner,
.advertiser-page.advertiser-tab-directlink .wrap-planner,
.advertiser-page.advertiser-tab-popup .wrap-planner,
.advertiser-page.advertiser-tab-pushunder .wrap-planner,
.advertiser-page.advertiser-tab-banner .wrap-planner,
.advertiser-page.advertiser-tab-cpa .wrap-planner,
.advertiser-page.advertiser-tab-support .wrap-support { display: grid; }
.advertiser-page .split > .advertiser-tab-section { min-width: 0; }
.publisher-page .publisher-tab-section { display: none; }
.publisher-page .publisher-tab-wrap { display: none; }
.publisher-page.publisher-tab-overview .tab-overview,
.publisher-page.publisher-tab-sites .tab-sites,
.publisher-page.publisher-tab-ads .tab-ads,
.publisher-page.publisher-tab-reports .tab-reports,
.publisher-page.publisher-tab-earnings .tab-earnings,
.publisher-page.publisher-tab-affiliate .tab-affiliate,
.publisher-page.publisher-tab-notifications .tab-notifications,
.publisher-page.publisher-tab-support .tab-support,
.publisher-page.publisher-tab-bonus .tab-bonus,
.publisher-page.publisher-tab-account .tab-account { display: block; }
.publisher-page.publisher-tab-overview .publisher-hero-panel,
.publisher-page.publisher-tab-sites .publisher-onboarding { display: grid; }
.publisher-page.publisher-tab-overview .publisher-command { display: flex; }
.publisher-page.publisher-tab-reports .wrap-reports,
.publisher-page.publisher-tab-earnings .wrap-earnings,
.publisher-page.publisher-tab-support .wrap-support,
.publisher-page.publisher-tab-bonus .wrap-bonus { display: grid; }
.publisher-page.publisher-tab-earnings .wrap-earnings { grid-template-columns: 1fr; }
.publisher-page .split > .publisher-tab-section { min-width: 0; }
.notice-card small {
  white-space: pre-wrap;
  line-height: 1.55;
}
.publisher-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.share-row, .filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.scroll-table { max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.bonus-grid, .knowledge-grid, .country-rate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.bonus-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
}
.country-rate-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
}
.bonus-grid strong, .bonus-grid span { display: block; }
.country-rate-grid strong, .country-rate-grid span { display: block; }
.bonus-grid span, .country-rate-grid span { color: var(--muted); margin-top: 5px; line-height: 1.5; }
.live-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: min(360px, calc(100vw - 36px));
}
.live-widget.is-closed { width: auto; }
.live-widget.is-closed details { display: none; }
.live-widget-reopen {
  display: none;
  border: 0;
  border-radius: 999px;
  background: #1167ff;
  color: #fff;
  font-weight: 900;
  padding: 11px 14px;
  box-shadow: var(--shadow);
}
.live-widget.is-closed .live-widget-reopen { display: inline-flex; }
.live-widget details {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.live-widget summary {
  cursor: pointer;
  padding: 13px 44px 13px 14px;
  font-weight: 900;
  display: flex;
  gap: 8px;
  align-items: center;
}
.live-widget-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f2f4f7;
  color: #344054;
  font-weight: 950;
  cursor: pointer;
  z-index: 2;
}
.live-widget .live-widget-close { margin: 0; }
.live-widget summary span { width: 10px; height: 10px; border-radius: 50%; background: #98a2b3; }
.live-widget summary span.online { background: #12b76a; }
.live-widget summary span.offline { background: #f04438; }
.live-messages { max-height: 220px; overflow: auto; padding: 0 14px 10px; }
.live-widget textarea { width: calc(100% - 28px); margin: 0 14px 10px; }
.live-widget button { margin: 0 14px 14px; }
.live-login-box {
  border-top: 1px solid var(--line);
  padding: 14px;
  display: grid;
  gap: 10px;
}
.live-login-box.compact { padding-top: 8px; }
.live-login-box p { color: var(--muted); line-height: 1.5; margin: 0; }
.live-login-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.live-status-form { align-items: center; }
.irc-console-panel {
  margin-bottom: 18px;
  border: 1px solid #233044;
  border-radius: 8px;
  overflow: hidden;
  background: #0b1020;
  color: #d8e2f0;
  box-shadow: var(--shadow);
}
.irc-toolbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-bottom: 1px solid #233044;
  background: #111827;
}
.irc-toolbar div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.irc-toolbar span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  padding: 0 8px;
  background: #063f2b;
  color: #86efac;
  font-size: 12px;
  font-weight: 950;
}
.irc-toolbar strong { font-size: 18px; color: #fff; }
.irc-toolbar small { color: #9fb0c8; }
.irc-toolbar select,
.irc-search input,
.irc-command textarea,
.irc-command select {
  background: #050816;
  border-color: #2f3d55;
  color: #e5eefb;
}
.irc-toolbar button,
.irc-search button,
.irc-command button {
  background: #1d4ed8;
  box-shadow: none;
}
.irc-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #233044;
  background: #0f172a;
}
.irc-search span,
.irc-command span {
  color: #67e8f9;
  font: 800 13px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
.chat-admin-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0;
}
.chat-admin-tools .panel {
  background: #0d1828;
  border-color: #20314a;
  color: #dbeafe;
}
.chat-admin-tools .panel h2 { color: #fff; }
.chat-admin-tools .panel p,
.chat-admin-tools .panel label,
.chat-admin-tools .panel small { color: #9fb2cf; }
.chat-admin-tools textarea,
.chat-admin-tools select {
  background: #07111f;
  border-color: #20314a;
  color: #dbeafe;
}
.irc-console {
  min-height: 650px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 190px;
  background: #050816;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
.irc-sidebar,
.irc-nicks {
  min-width: 0;
  border-right: 1px solid #233044;
  background: #0b1224;
}
.irc-nicks { border-right: 0; border-left: 1px solid #233044; }
.irc-pane-title {
  padding: 9px 10px;
  border-bottom: 1px solid #233044;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}
.irc-channel-list,
.irc-nick-list {
  display: grid;
  align-content: start;
  max-height: 600px;
  overflow: auto;
}
.irc-user {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 2px 8px;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(35, 48, 68, .75);
  color: #cbd5e1;
}
.irc-user:hover,
.irc-user.active { background: #172554; color: #fff; }
.irc-user.has-unread span {
  animation: unread-pulse .9s ease-in-out infinite;
  background: #dc2626;
  box-shadow: 0 0 0 0 rgba(220, 38, 38, .85);
}
@keyframes unread-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(220, 38, 38, .8); }
  50% { opacity: .35; box-shadow: 0 0 0 7px rgba(220, 38, 38, 0); }
}
.irc-user span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
}
.irc-user span:empty { background: #16a34a; }
.irc-user strong,
.irc-user small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.irc-user small {
  grid-column: 2;
  color: #94a3b8;
  font-size: 11px;
}
.irc-main { min-width: 0; display: grid; }
.irc-thread { display: none; min-width: 0; grid-template-rows: auto minmax(0, 1fr) auto; }
.irc-thread.active { display: grid; }
.irc-topic {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #233044;
  background: #111827;
}
.irc-topic strong { color: #fff; }
.irc-topic small { color: #9fb0c8; }
.irc-messages {
  min-height: 470px;
  max-height: 520px;
  overflow: auto;
  padding: 10px 12px;
  background:
    linear-gradient(rgba(255,255,255,.025) 50%, transparent 50%) 0 0 / 100% 48px,
    #050816;
}
.irc-line {
  display: grid;
  grid-template-columns: 54px 160px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: baseline;
  min-height: 24px;
  color: #dbeafe;
  font-size: 13px;
}
.irc-line.admin-message b { color: #93c5fd; }
.irc-line.member-message b { color: #86efac; }
.irc-time { color: #64748b; }
.irc-line p {
  margin: 0;
  min-width: 0;
  color: #e2e8f0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.irc-line a { color: #67e8f9; text-decoration: underline; }
.irc-empty {
  margin: 12px;
  color: #94a3b8;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
.irc-command {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(130px, auto) 110px auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-top: 1px solid #233044;
  background: #0f172a;
}
.irc-command textarea {
  min-height: 42px;
  max-height: 92px;
  resize: vertical;
}
.irc-command label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #cbd5e1;
  font-weight: 850;
}
.irc-command input[type="file"] { color: #9fb0c8; max-width: 180px; }
.irc-nick-list span {
  padding: 7px 10px;
  border-bottom: 1px solid rgba(35, 48, 68, .65);
  color: #cbd5e1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.irc-nick-list span:first-child { color: #93c5fd; font-weight: 950; }
.ticket-desk,
.live-desk {
  display: grid;
  grid-template-columns: minmax(210px, .38fr) minmax(0, 1fr);
  gap: 14px;
}
.ticket-list,
.live-room-list {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}
.ticket-row,
.live-room-user {
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.ticket-row.active,
.live-room-user.active {
  border-color: rgba(17, 103, 255, .38);
  background: #eef4ff;
}
.ticket-row span,
.ticket-row small,
.live-room-user small { color: var(--muted); font-size: 12px; }
.live-room-user { grid-template-columns: 24px minmax(0, 1fr); align-items: center; }
.live-room-user span {
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}
.live-room-user span:empty { background: #12b76a; }
.live-room-user strong,
.live-room-user small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-room-user small { grid-column: 2; }
.ticket-detail,
.live-room-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}
.compact-head { align-items: flex-start; }
.ticket-messages {
  display: grid;
  gap: 9px;
  max-height: 360px;
  overflow: auto;
  margin-bottom: 12px;
}
.ticket-message {
  max-width: 84%;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f2f4f7;
}
.ticket-message.admin-message {
  justify-self: end;
  background: #eef4ff;
}
.ticket-message b,
.ticket-message small { display: block; }
.ticket-message p { margin: 4px 0; color: #344054; line-height: 1.45; }
.live-room-panels { min-width: 0; }
.live-room-panel { display: none; }
.live-room-panel.active { display: grid; gap: 12px; }
.live-room-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.live-room-head small { display: block; margin-top: 3px; color: var(--muted); }
.live-reply-form textarea { min-height: 86px; }
.campaign-admin-list { gap: 14px; }
.campaign-admin-card > strong { font-size: 18px; }
.campaign-admin-form { margin-top: 12px; }
.campaign-admin-form .wide,
.campaign-actions { grid-column: 1 / -1; }
.live-thread-messages {
  max-height: 390px;
  overflow: auto;
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.live-thread-message {
  max-width: 86%;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f2f4f7;
}
.live-thread-message.admin-message {
  justify-self: end;
  background: #eef4ff;
}
.live-thread-message b,
.live-thread-message small { display: block; }
.live-thread-message p { margin: 4px 0; line-height: 1.45; color: #344054; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 5vw, 72px);
  background: #101522;
  color: #fff;
}
.site-footer p { color: rgba(255,255,255,.68); margin: 6px 0 0; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; color: rgba(255,255,255,.78); font-weight: 750; }
.rate-details { margin: 14px 0; }
.rate-details summary { cursor: pointer; font-weight: 900; margin-bottom: 12px; }
.country-rate-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); max-height: 360px; overflow: auto; }
.zone-card {
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 1.2fr) minmax(240px, .8fr);
  gap: 16px;
  align-items: center;
}
.zone-card h3 { margin-bottom: 6px; }
.zone-stats { justify-content: flex-end; gap: 10px; color: var(--muted); font-weight: 800; }
.smartlink-stat-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.smartlink-stat-strip div {
  min-height: 68px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}
.smartlink-stat-strip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  margin-bottom: 6px;
}
.smartlink-stat-strip strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.1;
}

@media (max-width: 980px) {
  .hero, .auth-shell, .split, .zone-card, .ticket-desk, .live-desk, .conversion-section, .comparison-section, .onboarding-band, .publisher-onboarding, .publisher-hero-panel, .knowledge-grid, .bonus-grid, .country-rate-grid, .contact-grid, .contact-note { grid-template-columns: 1fr; }
  .quality-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chat-admin-tools { grid-template-columns: 1fr; }
  .irc-console { grid-template-columns: 1fr; }
  .irc-sidebar, .irc-nicks { border-left: 0; border-right: 0; }
  .irc-channel-list, .irc-nick-list { max-height: 240px; }
  .irc-command { grid-template-columns: 1fr; }
  .publisher-command, .site-footer { align-items: stretch; flex-direction: column; }
  .hero { min-height: auto; }
  .hero-panel { min-height: 360px; }
  .traffic-callout { grid-template-columns: 1fr; gap: 6px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-band { grid-template-columns: 1fr; }
  .earning-strip, .format-cards, .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-head { align-items: stretch; flex-direction: column; }
}

@media (max-width: 700px) {
  .quality-grid { grid-template-columns: 1fr; }
  .topbar { height: auto; min-height: 72px; align-items: flex-start; gap: 14px; flex-direction: column; padding-top: 14px; padding-bottom: 14px; }
  .nav { width: 100%; overflow-x: auto; gap: 14px; padding-bottom: 3px; }
  .impersonation-bar { align-items: stretch; flex-direction: column; }
  .hero h1 { font-size: 42px; }
  .lead { font-size: 17px; }
  .glass-grid, .metrics, .grid-form, .mini-grid, .earning-strip, .format-cards, .choice-grid { grid-template-columns: 1fr; }
  .ticket-list, .live-room-list { max-height: 280px; }
  .ticket-message, .live-thread-message { max-width: 100%; }
  .conversion-section, .comparison-section, .onboarding-band, .formats-hero { padding-left: 20px; padding-right: 20px; }
  .report-row, .format-mini-grid div, .comparison-grid div, .onboarding-steps div { align-items: flex-start; flex-direction: column; }
  .onboarding-steps small { margin-left: 0; }
  .zone-stats { justify-content: flex-start; flex-wrap: wrap; }
}
