@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #071d31;
  --navy-soft: #0b3850;
  --teal: #087f8c;
  --teal-bright: #0aa0ae;
  --gold: #f2bf4b;
  --ink: #17364b;
  --muted: #6f8493;
  --line: #dce7ec;
  --surface: #ffffff;
  --bg: #f3f8fa;
  --green: #147a54;
  --red: #a83b33;
  --shadow: 0 20px 55px rgba(7, 29, 49, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 5%, rgba(10, 160, 174, .09), transparent 25rem),
    linear-gradient(180deg, #f8fbfc 0, var(--bg) 100%);
  font: 15px/1.6 Manrope, "Segoe UI", Arial, sans-serif;
  min-height: 100vh;
}
a { color: var(--teal); }
a:hover { color: #05636d; }
button, input, textarea, select { font: inherit; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: #fff; color: var(--navy); font-weight: 800; }
.skip-link:focus { top: 12px; }

.topbar {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(220, 231, 236, .9);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; width: min(1180px, calc(100% - 40px)); min-height: 78px; margin: auto; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--navy); text-decoration: none; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 19px; line-height: 1.1; letter-spacing: -.02em; }
.brand small { margin-top: 3px; color: var(--teal); font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.portal-nav { display: flex; align-items: center; gap: 8px; }
.portal-nav a { padding: 9px 12px; border-radius: 8px; color: #48677a; text-decoration: none; font-size: 12px; font-weight: 700; }
.portal-nav a:hover, .portal-nav a:focus { background: #eaf5f6; color: var(--teal); }

.page { width: min(1180px, 100%); min-height: calc(100vh - 190px); margin: auto; padding: 42px 24px 58px; }
h1 { margin: 8px 0 16px; color: var(--navy); font-size: clamp(34px, 4.7vw, 58px); line-height: 1.06; letter-spacing: -.045em; }
h2 { margin: 0 0 8px; color: var(--navy); font-size: 25px; line-height: 1.2; letter-spacing: -.025em; }
.eyebrow { margin: 0 0 7px; color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.muted { color: var(--muted); }

.auth-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(350px, .72fr); gap: clamp(34px, 7vw, 88px); align-items: center; min-height: 610px; }
.auth-card:before { content: ""; position: absolute; z-index: -1; left: -110px; top: 50%; width: 310px; height: 310px; border: 54px solid rgba(8, 127, 140, .055); border-radius: 50%; transform: translateY(-50%); }
.auth-copy { padding: 34px 10px 34px 18px; }
.partner-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 21px; padding: 7px 11px; border: 1px solid #cce6e8; border-radius: 999px; background: #edf8f8; color: #176873; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.partner-badge:before { content: "✓"; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 10px; }
.auth-lead { max-width: 680px; margin: 0; color: #567286; font-size: 16px; }
.benefit-list { display: grid; gap: 10px; max-width: 650px; margin: 28px 0 23px; padding: 0; list-style: none; }
.benefit-list li { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border: 1px solid rgba(220, 231, 236, .95); border-radius: 12px; background: rgba(255, 255, 255, .72); }
.benefit-list li > span { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #e8f4f5; color: var(--teal); font-size: 10px; font-weight: 800; }
.benefit-list strong, .benefit-list small { display: block; }
.benefit-list strong { color: var(--navy); font-size: 13px; }
.benefit-list small { margin-top: 1px; color: var(--muted); font-size: 11px; }
.auth-trust { display: flex; flex-wrap: wrap; gap: 14px; color: #597486; font-size: 10px; font-weight: 700; }
.auth-trust span:before { content: "•"; margin-right: 6px; color: var(--teal-bright); }

.panel { border: 1px solid rgba(211, 226, 232, .95); border-radius: 19px; background: var(--surface); box-shadow: var(--shadow); padding: 29px; }
.form-card { position: relative; width: 100%; max-width: 455px; margin-left: auto; overflow: hidden; }
.form-card:before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--teal), #22b6b5, var(--gold)); }
.form-mark { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 18px; border: 1px solid #dcebed; border-radius: 16px; background: #f5fafb; }
.form-mark img { width: 49px; height: 49px; object-fit: contain; }
.stack, .form-card { display: flex; flex-direction: column; gap: 16px; }
.form-card h2 + .muted { margin: -3px 0 8px; }
label { color: #294b61; font-size: 12px; font-weight: 800; }
input, textarea, select { display: block; width: 100%; margin-top: 7px; border: 1px solid #c7d7df; border-radius: 9px; background: #fbfdfe; color: var(--ink); padding: 12px 13px; transition: border-color .2s, box-shadow .2s, background .2s; }
input:hover, textarea:hover, select:hover { border-color: #9fbec7; }
input:focus, textarea:focus, select:focus { border-color: var(--teal); outline: none; background: #fff; box-shadow: 0 0 0 4px rgba(8, 127, 140, .11); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 45px; border: 0; border-radius: 9px; padding: 12px 18px; cursor: pointer; font-weight: 800; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-1px); }
.primary { background: linear-gradient(135deg, #086d79, var(--teal-bright)); color: #fff; box-shadow: 0 10px 24px rgba(8, 127, 140, .22); }
.primary:hover { color: #fff; box-shadow: 0 13px 28px rgba(8, 127, 140, .28); }
.ghost { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.light { background: #fff; color: var(--teal); }
.center { text-align: center; }
.form-help { margin: -5px 0 0; padding-top: 14px; border-top: 1px solid #e7eef1; color: var(--muted); text-align: center; font-size: 10px; }
.narrow { max-width: 650px; margin: 25px auto; }
.alert { margin: 2px 0 6px; padding: 12px 14px; border-radius: 9px; font-size: 12px; font-weight: 600; }
.error { border: 1px solid #f1cbc7; background: #fff2f0; color: var(--red); }
.success { border: 1px solid #bfe3d3; background: #eaf8f1; color: var(--green); }

.dashboard-nav { position: sticky; z-index: 8; top: 10px; display: flex; align-items: center; gap: 5px; margin: -20px 0 28px; border: 1px solid rgba(211,226,232,.92); border-radius: 13px; background: rgba(255,255,255,.94); padding: 7px; box-shadow: 0 10px 28px rgba(7,29,49,.08); backdrop-filter: blur(16px); }
.dashboard-nav a { display: inline-flex; align-items: center; gap: 7px; border-radius: 8px; padding: 9px 12px; color: #557184; font-size: 11px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.dashboard-nav a:hover, .dashboard-nav a.active { background: #e9f5f6; color: var(--teal); }
.dashboard-nav a span { display: grid; place-items: center; width: 20px; height: 20px; color: inherit; }
.dashboard-nav .nav-signout { margin-left: auto; color: #8a5252; }

.dashboard-head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; overflow: hidden; margin: -6px 0 22px; border: 1px solid #d8e7eb; border-radius: 19px; background: linear-gradient(120deg, rgba(255,255,255,.98), rgba(235,247,248,.96)); padding: 27px 29px; }
.dashboard-head:after { content: ""; position: absolute; right: -55px; bottom: -90px; width: 230px; height: 230px; border: 40px solid rgba(8,127,140,.055); border-radius: 50%; }
.dashboard-head > * { position: relative; z-index: 1; }
.dashboard-head .partner-badge { margin-bottom: 14px; }
.dashboard-head h1 { margin: 3px 0 9px; font-size: clamp(30px, 4vw, 43px); }
.dashboard-intro { max-width: 720px; margin: 0; color: #557184; }
.account-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.account-meta span { padding: 7px 10px; border: 1px solid #cfe1e5; border-radius: 8px; background: rgba(255,255,255,.78); color: #69808e; font-size: 10px; font-weight: 700; }
.account-meta strong { margin-left: 4px; color: var(--navy); }
.signout { flex: 0 0 auto; background: rgba(255,255,255,.82); }
.ref-card { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; overflow: hidden; border-radius: 17px; background: linear-gradient(120deg, var(--navy), #075f6b 70%, var(--teal)); color: #fff; padding: 23px 25px; box-shadow: 0 16px 35px rgba(7, 29, 49, .17); }
.ref-card:after { content: ""; position: absolute; right: 14%; top: -75px; width: 180px; height: 180px; border: 30px solid rgba(255, 255, 255, .06); border-radius: 50%; }
.ref-card > * { position: relative; z-index: 1; }
.ref-card span, .ref-card strong { display: block; }
.ref-card span { color: #a7dfe4; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.ref-card strong { margin-top: 4px; overflow-wrap: anywhere; }
.ref-card small { display: block; margin-top: 7px; color: #b8dce0; font-size: 10px; }
.ref-copy { min-width: 0; }
.section-label { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 29px 2px 12px; }
.section-label h2 { margin: 0; font-size: 21px; }
.section-label > small { color: var(--muted); font-size: 10px; }
.metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 13px; margin: 20px 0; }
.metrics article { position: relative; overflow: hidden; min-height: 119px; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 18px; box-shadow: 0 7px 20px rgba(7,29,49,.035); }
.metrics article:before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--teal-bright); }
.metrics article:after { position: absolute; right: 13px; top: 11px; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; background: #edf7f8; color: var(--teal); font-size: 12px; font-weight: 900; }
.metric-clicks:after { content: "↗"; }.metric-leads:after { content: "+"; }.metric-conversions:after { content: "✓"; }.metric-earned:after { content: "↑"; }.metric-paid:after { content: "✓"; }
.metrics span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; }
.metrics strong { display: block; margin-top: 9px; color: var(--navy); font-size: 21px; letter-spacing: -.03em; }
.metrics article > small { display: block; margin-top: 5px; color: #8ba0ad; font-size: 9px; }
.grid { display: grid; grid-template-columns: 390px minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 22px; }
.analytics-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(280px,.75fr); gap: 20px; scroll-margin-top: 85px; }
.panel-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.chart-legend { display: flex; gap: 16px; color: var(--muted); font-size: 10px; font-weight: 700; }
.chart-legend span:before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 2px; }
.click-key:before { background: var(--teal); }.lead-key:before { background: var(--gold); }
.bar-chart { display: flex; align-items: stretch; gap: clamp(14px,4vw,35px); height: 235px; margin-top: 22px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom,transparent 0,transparent 57px,#edf3f5 58px); padding: 8px 16px 0; }
.bar-group { display: flex; flex: 1; min-width: 28px; flex-direction: column; justify-content: flex-end; align-items: center; }
.bars { display: flex; flex: 1; align-items: flex-end; justify-content: center; gap: 5px; width: 100%; }
.bar { display: block; width: min(17px,38%); min-height: 4px; border-radius: 6px 6px 2px 2px; transition: height .35s; }
.clicks-bar { background: linear-gradient(180deg,var(--teal-bright),var(--teal)); }.leads-bar { background: linear-gradient(180deg,#f8d981,var(--gold)); }
.bar-group > span { padding: 9px 0; color: var(--muted); font-size: 10px; font-weight: 700; }
.pipeline-card { display: grid; grid-template-columns: 1fr 1fr; align-items: center; column-gap: 20px; }
.pipeline-card > .eyebrow, .pipeline-card > h2 { grid-column: 1/-1; }
.conversion-ring { --progress: 0; display: flex; flex-direction: column; place-content: center; place-items: center; width: 122px; height: 122px; margin: 16px auto; border-radius: 50%; background: radial-gradient(circle,#fff 57%,transparent 59%),conic-gradient(var(--teal) calc(var(--progress)*1%),#e7eff2 0); }
.conversion-ring strong { color: var(--navy); font-size: 25px; }.conversion-ring span { color: var(--muted); font-size: 9px; }
.pipeline-list { display: grid; gap: 10px; }
.pipeline-list div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
.pipeline-list strong { color: var(--navy); }.pipeline-list i { grid-column: 1/-1; height: 4px; overflow: hidden; border-radius: 4px; background: #e8f0f2; }.pipeline-list b { display: block; height: 100%; border-radius: inherit; background: var(--teal-bright); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.panel-heading { display: flex; align-items: center; gap: 11px; }
.panel-heading .eyebrow { margin-bottom: 2px; }
.panel-heading h2 { margin: 0; font-size: 20px; }
.panel-icon { display: grid; flex: 0 0 39px; place-items: center; width: 39px; height: 39px; border-radius: 10px; background: #e9f5f6; color: var(--teal); font-size: 19px; font-weight: 800; }
.panel-copy { margin: -4px 0 2px; color: var(--muted); font-size: 11px; }
.lead-form label small { color: #93a4ae; font-weight: 500; }
.privacy-note { color: #879aa6; text-align: center; font-size: 9px; line-height: 1.5; }
.table-panel { min-width: 0; }
.table-heading { border-bottom: 1px solid #e7eef1; padding-bottom: 15px; }
.record-count { margin-left: auto; border-radius: 999px; background: #eef6f7; padding: 5px 9px; color: #51717e; font-size: 9px; font-weight: 800; }
.table-wrap { overflow: auto; margin: 16px -10px 0; }
table { width: 100%; min-width: 650px; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--line); padding: 14px 10px; text-align: left; }
th { color: var(--muted); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
tbody tr:hover { background: #f7fbfc; }
td small { display: block; color: var(--muted); }
.status { display: inline-block; border-radius: 999px; background: #eef3f5; padding: 5px 9px; font-size: 10px; font-weight: 800; }
.status.converted { background: #eaf8f0; color: var(--green); }
.status.declined { background: #fff0ee; color: var(--red); }
.empty { padding: 38px; color: var(--muted); text-align: center; }
.payout-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(320px,.9fr); gap: 20px; margin-top: 20px; scroll-margin-top: 85px; }
.balance-chip { border: 1px solid #bee2d2; border-radius: 999px; background: #ebf8f1; padding: 6px 10px; color: var(--green); font-size: 10px; font-weight: 800; white-space: nowrap; }
.btn:disabled { cursor: not-allowed; filter: grayscale(.35); opacity: .55; transform: none; box-shadow: none; }
.payout-list { margin-top: 16px; }
.payout-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 13px 0; }
.payout-item > div:last-child { text-align: right; }.payout-item strong, .payout-item small { display: block; }.payout-item small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.status.pending { background: #fff7de; color: #8c6917; }.status.approved { background: #e7f6f7; color: var(--teal); }.status.paid { background: #eaf8f0; color: var(--green); }.status.rejected { background: #fff0ee; color: var(--red); }
.empty-state { display: flex; min-height: 190px; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); text-align: center; }
.empty-state > span { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 10px; border-radius: 50%; background: #eaf5f6; color: var(--teal); font-size: 22px; }.empty-state strong { color: var(--navy); }.empty-state small { margin-top: 4px; }
.resources { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 20px; scroll-margin-top: 85px; }
.resources article { display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.76); padding: 17px; }
.resources article > span { color: var(--teal); font-size: 10px; font-weight: 900; }.resources strong, .resources small { display: block; }.resources strong { color: var(--navy); font-size: 12px; }.resources small { margin-top: 3px; color: var(--muted); font-size: 9px; }
#leads { scroll-margin-top: 85px; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 25px max(24px, calc((100% - 1132px) / 2)); border-top: 1px solid #15384d; background: var(--navy); color: #9eb6c5; font-size: 11px; }
.site-footer strong, .site-footer span { display: block; }
.site-footer strong { color: #fff; font-size: 15px; }
.site-footer span { color: #78d4d9; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.site-footer a { color: #c2e6e8; }

@media (max-width: 920px) {
  .auth-card, .grid, .analytics-grid, .payout-grid { grid-template-columns: 1fr; }
  .auth-card { gap: 10px; }
  .auth-copy { padding: 25px 8px; }
  .form-card { max-width: 620px; margin: 0 auto; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics article:last-child { grid-column: span 2; }
  .resources { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .topbar-inner { width: calc(100% - 28px); min-height: 70px; }
  .brand img { width: 40px; height: 40px; }
  .portal-nav a:first-child { display: none; }
  .portal-nav a { padding: 8px; font-size: 10px; }
  .page { padding: 26px 15px 42px; }
  h1 { font-size: 36px; }
  .auth-copy { padding: 14px 0 20px; }
  .benefit-list li { padding: 10px; }
  .panel { padding: 22px 18px; border-radius: 15px; }
  .dashboard-head, .ref-card, .site-footer { align-items: flex-start; flex-direction: column; }
  .dashboard-nav { top: 5px; overflow-x: auto; margin: -10px -5px 22px; scrollbar-width: none; }
  .dashboard-nav .nav-signout { margin-left: 0; }
  .dashboard-head { padding: 22px 18px; }
  .dashboard-head .signout, .ref-card .btn { width: 100%; }
  .section-label { align-items: flex-start; flex-direction: column; gap: 3px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .analytics-grid .panel { padding: 20px 14px; }
  .pipeline-card { grid-template-columns: 1fr; }.pipeline-card > * { grid-column: 1!important; }.pipeline-list { width: 100%; }
  .bar-chart { gap: 8px; padding-left: 4px; padding-right: 4px; }
  .payout-grid .panel-title-row { flex-direction: column; }
  .site-footer { padding: 24px 20px; }
  .site-footer p { margin: 0; }
}
@media (max-width: 400px) {
  .brand small { display: none; }
  .metrics { grid-template-columns: 1fr; }
  .metrics article:last-child { grid-column: auto; }
  .auth-trust { display: grid; gap: 6px; }
}
