/* AffNet (az.ai) - mobile-first, the az.ai dark look (navy / cyan / violet). No third-party fonts or images. */
:root {
  --bg: #050b19; --navy: #0a1830; --panel: #0f2340; --panel2: #0c1c36; --line: #1d3a63; --line2: #284d80;
  --cyan: #23d8ff; --mint: #61f2dd; --blue: #3678ff; --violet: #9a56fc; --gold: #e7bd6d; --white: #f5faff;
  --text: #dce8f7; --muted: #93a8c4; --ok: #61f2dd; --warn: #e7bd6d; --bad: #ff7a90; --r: 14px;
  color-scheme: dark;
}
@font-face { font-family: Inter; src: url(/dp/az/fonts/inter-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }
a { color: var(--cyan); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
main:focus, main:focus-visible { outline: none; }   /* main gets programmatic focus on page change (screen readers); no ring around the page */
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--white); color: var(--bg); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(5, 11, 25, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: baseline; gap: 0; text-decoration: none; font-weight: 800; letter-spacing: -.04em; font-size: 26px; line-height: 1; white-space: nowrap; }
.brand b { color: var(--white); font-weight: 800; } .brand i { color: var(--cyan); font-style: normal; }
.brand em { font-style: normal; background: linear-gradient(90deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand span { margin-left: 8px; font-size: 15px; letter-spacing: 0; font-weight: 700; color: var(--muted); }
.nav { display: none; gap: 4px; margin-left: 12px; }
.nav a { color: var(--text); text-decoration: none; padding: 10px 12px; border-radius: 10px; font-size: 15px; font-weight: 600; }
.nav a:hover, .nav a[aria-current=page] { background: var(--panel); color: var(--white); }
.top-right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex: none; }
/* a white-label network's (possibly long) name shrinks with an ellipsis instead of pushing the buttons off screen */
.top .brand { min-width: 0; overflow: hidden; flex: 0 1 auto; }
.top .brand b { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); cursor: pointer; }
.drawer { border-top: 1px solid var(--line); padding: 8px 16px 14px; display: grid; gap: 2px; }
.drawer a { color: var(--text); text-decoration: none; padding: 12px 10px; border-radius: 10px; font-weight: 600; }
.drawer a:hover { background: var(--panel); }
@media (min-width: 900px) { .nav { display: flex; } .menu-btn, .drawer { display: none !important; } }

/* buttons + chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 700; text-decoration: none; color: #04101f; background: linear-gradient(90deg, var(--cyan), var(--violet)); white-space: nowrap; }
.btn.ghost { background: transparent; color: var(--white); border: 1px solid var(--line2); }
.btn.small { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn.danger { background: transparent; color: var(--bad); border: 1px solid #6a2a3a; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; border: 1px solid var(--line2); color: var(--muted); background: var(--panel2); white-space: nowrap; }
.chip.ok { color: var(--ok); border-color: #1f6b62; } .chip.warn { color: var(--warn); border-color: #6b5626; } .chip.bad { color: var(--bad); border-color: #6a2a3a; } .chip.info { color: var(--cyan); border-color: #1d5a72; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* layout */
main { max-width: 1240px; margin: 0 auto; padding: 18px 16px 60px; }
.hero { text-align: center; padding: 28px 4px 10px; }
.hero h1 { margin: 10px auto 10px; font-size: clamp(30px, 7.5vw, 56px); line-height: 1.06; letter-spacing: -.03em; color: var(--white); max-width: 900px; }
.hero h1 .grad { background: linear-gradient(90deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { margin: 0 auto 24px; max-width: 700px; color: var(--muted); font-size: clamp(16px, 2.6vw, 19px); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero .chips { justify-content: center; margin: 4px 0 16px; gap: 10px; }
.slogan { color: var(--muted); font-size: 14px; text-align: center; margin: 20px 0 0; }
h2 { color: var(--white); font-size: clamp(22px, 4.5vw, 30px); letter-spacing: -.02em; margin: 40px 0 16px; text-align: center; }
h3 { color: var(--white); margin: 0 0 6px; font-size: 18px; }
.lead { color: var(--muted); text-align: center; max-width: 760px; margin: -4px auto 24px; }
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.g2, .grid.g3, .grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { background: linear-gradient(180deg, var(--panel), var(--panel2)); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; min-width: 0; }
.card.glow { box-shadow: 0 0 0 1px rgba(35, 216, 255, .25), 0 0 22px rgba(35, 216, 255, .1); }
.card p { margin: 6px 0; color: var(--muted); }
.card .row { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat b { display: block; font-size: 28px; color: var(--white); letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 13px; }
.prog { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.prog:hover { border-color: var(--line2); }
.prog .name { font-weight: 800; color: var(--white); font-size: 18px; overflow-wrap: anywhere; }
.prog .dom { color: var(--muted); font-size: 13px; }
.prog .rate { color: var(--mint); font-weight: 700; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin: 0 0 14px; }
.toolbar input[type=search] { flex: 1 1 220px; max-width: 420px; }

/* forms */
label { display: block; font-weight: 600; font-size: 14px; margin: 10px 0 4px; }
input[type=text], input[type=email], input[type=url], input[type=number], input[type=search], input[type=date], select, textarea { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line2); background: #071328; color: var(--white); }
textarea { min-height: 90px; resize: vertical; }
input[type=file], input[type=color] { display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 44px; }
input[type=color] { padding: 4px; border-radius: 12px; border: 1px solid var(--line2); background: #071328; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 999px; padding: 3px; gap: 3px; }
.seg button { min-height: 38px; padding: 6px 16px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; font-weight: 700; color: var(--muted); }
.seg button[aria-pressed=true] { background: var(--panel); color: var(--white); box-shadow: inset 0 0 0 1px var(--line2); }
.form { max-width: 640px; margin: 0 auto; }
.msg { margin: 16px 0; padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.msg.ok { background: rgba(97, 242, 221, .08); color: var(--ok); border: 1px solid #1f6b62; }
.msg.bad { background: rgba(255, 122, 144, .08); color: var(--bad); border: 1px solid #6a2a3a; }
.msg.info { background: rgba(35, 216, 255, .06); color: var(--text); border: 1px solid #1d5a72; }

/* tables: scroll inside their card, never the page */
.tbl { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
pre { background: #040a17; border: 1px solid var(--line); border-radius: 10px; padding: 12px; overflow-x: auto; color: #cfe6ff; margin: 8px 0; white-space: pre; }
.copy { position: relative; }
.copy button { position: absolute; top: 6px; right: 6px; }

/* portal tabs */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 0 6px; scrollbar-width: thin; }
.tabs button { flex: none; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel2); color: var(--muted); font-weight: 700; cursor: pointer; }
.tabs button[aria-selected=true] { color: var(--white); border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(35, 216, 255, .3); }
.portal-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 8px 0 16px; }
.portal-head h1 { margin: 0; font-size: clamp(24px, 5vw, 34px); color: var(--white); letter-spacing: -.02em; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 90px; padding: 6px 0; }
.bars div { flex: 1; background: linear-gradient(180deg, var(--cyan), var(--blue)); border-radius: 3px 3px 0 0; min-height: 1px; opacity: .85; }
.empty { text-align: center; color: var(--muted); padding: 18px 8px; }

/* docs / legal */
.doc { max-width: 860px; margin: 0 auto; }
.doc h2 { text-align: left; } .doc h3 { margin-top: 18px; }
.doc p, .doc li { color: var(--text); }
.doc .note { color: var(--muted); font-size: 14px; }

footer { border-top: 1px solid var(--line); padding: 24px 16px 90px; text-align: center; color: var(--muted); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; margin-bottom: 10px; }
footer a { color: var(--muted); }

/* not-yet + challenge pages */
body.notyet { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.ny { max-width: 560px; text-align: center; background: linear-gradient(180deg, var(--panel), var(--panel2)); border: 1px solid var(--line); border-radius: 18px; padding: 28px 22px; }
.ny h1 { color: var(--white); font-size: clamp(24px, 6vw, 32px); line-height: 1.15; margin: 14px 0 10px; }
.ny p { color: var(--muted); }
.ny .brand { justify-content: center; }
.cf-turnstile { display: flex; justify-content: center; margin: 14px 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* azai-affnet5 (Todd 10-12: the Live / Not yet badges sat against the text). One spacing scale: 8 / 16 / 24 px.
   Feature cards: text in its own column, the badge in a second column, 16 px apart at every width; badges never wrap into the text. */
.card.feat { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 18px; }
.card.feat .feat-t { flex: 1 1 auto; min-width: 0; line-height: 1.5; }
.card.feat .chip { flex: none; margin-top: 1px; }
.card .chip + .chip { margin-left: 0; }
.prog .row .chip, .portal-head .chip { flex: none; }
.prog .chips { margin-top: 2px; }
.ctas.left { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-start; margin-top: 16px; }
.grid.stats { max-width: 520px; margin: 24px auto 0; }
.grid.stats.one { max-width: 260px; }
.card > h3 + p, .card > h3 + .chips, .card > h3 + dl { margin-top: 8px; }
.card .btn { margin-top: 8px; }
.form > .chips, .form > .ctas { margin-top: 16px; }
@media (max-width: 420px) { .card.feat { gap: 12px; padding: 14px; } .hero .ctas .btn { flex: 1 1 100%; } }
/* the bell */
.bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); cursor: pointer; flex: none; }
.bell-i { width: 18px; height: 18px; background: currentColor; color: var(--text); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/%3E%3C/svg%3E") center / contain no-repeat; }
.bell-n { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--cyan); color: #04101f; font-size: 12px; font-weight: 800; line-height: 20px; text-align: center; }
.bellp { position: absolute; right: 12px; top: calc(100% + 8px); width: min(380px, calc(100vw - 24px)); max-height: min(70vh, 520px); overflow-y: auto; background: var(--panel); border: 1px solid var(--line2); border-radius: var(--r); box-shadow: 0 12px 40px rgba(0, 0, 0, .5); padding: 12px; z-index: 30; }
.bellp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 4px 10px; border-bottom: 1px solid var(--line); }
.bellp-list { list-style: none; margin: 0; padding: 0; }
.bellp-list li a { display: grid; gap: 4px; padding: 12px 8px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; border-radius: 8px; }
.bellp-list li a:hover { background: var(--panel2); }
.bellp-list li.unread a b::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); margin-right: 8px; vertical-align: middle; }
.bellp-list b { color: var(--white); font-size: 14.5px; } .bellp-list span { color: var(--muted); font-size: 14px; } .bellp-list small { color: var(--muted); font-size: 12px; }
/* central hub (affnet5): one link maker per program; the program a site's Earn link named is outlined */
.quick-links .card { display: grid; gap: 8px; align-content: start; min-width: 0; } .quick-links .card > * { min-width: 0; max-width: 100%; } .quick-links .card > .chip { justify-self: start; } .quick-links pre { white-space: pre-wrap; word-break: break-all; padding-right: 72px; } .quick-links .card h3 { margin: 0; } .quick-links .card.picked { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* azweb 10-13 tap targets */
.btn{display:inline-flex;align-items:center;justify-content:center;text-align:center}
@media (max-width:480px){.btn,.btn.small{min-height:44px}}
