/* Member area + admin studio */
:root {
  --bg: #08070d; --panel: #110f1a; --panel-2: #181525; --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.16);
  --text: #f4f1ea; --muted: #a29db2; --gold: #ffcf4a; --gold-2: #ffe9a3; --gold-3: #e09a12;
  --violet: #8b46fc; --violet-2: #b07bff; --hot: #ff3d6e; --green: #2ee59d;
  --display: "Anton", Impact, sans-serif; --body: "Manrope", system-ui, sans-serif;
  --r: 18px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15.5px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--gold); }
img { max-width: 100%; display: block; }
code { font-size: .85em; background: rgba(255,255,255,.06); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
h1, h2, h3 { margin: 0; }
.shell { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.bg-glow { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60vw 40vw at 10% -10%, rgba(139,70,252,.22), transparent 60%), radial-gradient(50vw 40vw at 100% 0, rgba(224,154,18,.12), transparent 60%); }
.gold { background: linear-gradient(100deg, var(--gold-3), var(--gold) 40%, var(--gold-2) 55%, var(--gold-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.kicker { font-size: .72rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--violet-2); }

/* bar */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(8,7,13,.8); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; }
.logo { font-family: var(--display); letter-spacing: .08em; font-size: 1.2rem; color: var(--text); text-decoration: none; white-space: nowrap; }
.logo span { color: var(--gold); margin: 0 .3em; }
.logo em { font: 700 .7rem var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-style: normal; }
.nav { display: flex; gap: 4px; overflow-x: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: .88rem; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav a.is-on { color: var(--text); background: rgba(255,255,255,.08); }
.page { padding-top: 28px; padding-bottom: 80px; display: grid; gap: 28px; }

/* flash + toast */
.flash { padding: 12px 16px; border-radius: 12px; font-weight: 700; border: 1px solid; }
.flash--ok { background: rgba(46,229,157,.08); border-color: rgba(46,229,157,.35); color: #8ff3c8; }
.flash--err { background: rgba(255,61,110,.08); border-color: rgba(255,61,110,.35); color: #ff9db5; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 99; transform: translate(-50%, 220%); visibility: hidden; background: var(--green); color: #04130c; font-weight: 800; padding: 12px 20px; border-radius: 999px; transition: transform .3s cubic-bezier(.34,1.5,.64,1), visibility .3s; box-shadow: 0 14px 40px rgba(0,0,0,.5); }
.toast.is-on { transform: translate(-50%, 0); visibility: visible; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 800 .92rem var(--body); padding: 11px 18px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,.05); color: var(--text); cursor: pointer; text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { background: rgba(255,255,255,.1); color: var(--text); transform: translateY(-1px); }
.btn--gold { border: 0; color: #1a1203; background: linear-gradient(135deg, var(--gold-2), var(--gold) 45%, var(--gold-3)); box-shadow: 0 10px 26px -10px rgba(255,207,74,.6); }
.btn--gold:hover { color: #1a1203; background: linear-gradient(135deg, var(--gold-2), var(--gold) 45%, var(--gold-3)); box-shadow: 0 14px 30px -10px rgba(255,207,74,.8); }
.btn--violet { border: 0; color: #fff; background: linear-gradient(135deg, var(--violet), #c2185b); }
.btn--violet:hover { background: linear-gradient(135deg, var(--violet), #c2185b); }
.btn--danger { color: #ff9db5; border-color: rgba(255,61,110,.35); }
.btn--sm { padding: 8px 12px; font-size: .82rem; border-radius: 10px; }
.btn--block { width: 100%; }

/* cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.card h2, .sec-row h2 { font-size: 1.25rem; font-weight: 800; }
.card > .muted { margin: 4px 0 18px; }
.sec-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }

/* forms */
.form { display: grid; gap: 14px; }
.form--grid { grid-template-columns: 1fr 1fr; align-items: end; }
.form--grid > .full, .form--grid > button, .form--grid > .unlock-row, .form--grid > .unlock-block { grid-column: 1 / -1; }
.form--grid > button { justify-self: start; }
label { display: grid; gap: 6px; font-weight: 700; font-size: .88rem; }
label small { font-weight: 500; color: var(--muted); }
input, select, textarea { width: 100%; font: 500 .95rem var(--body); color: var(--text); background: #0b0a12; border: 1px solid var(--line-2); border-radius: 11px; padding: 11px 13px; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; }
textarea.code { font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; min-height: 220px; tab-size: 2; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,207,74,.18); }
input:disabled, textarea:disabled { opacity: .45; }
input[type=checkbox] { width: auto; }
.checks { display: flex; flex-wrap: wrap; gap: 16px; }
.checks label { display: flex; align-items: center; gap: 8px; font-weight: 600; }

.switch { display: flex !important; align-items: center; gap: 12px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 44px; height: 26px; border-radius: 999px; background: #2a2638; position: relative; transition: background .2s; flex: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(255,207,74,.35); }
.unlock-row, .unlock-block { position: relative; display: grid; gap: 10px; padding: 16px; border-radius: 14px; border: 1px dashed var(--line-2); }
.unlock-row small { color: var(--muted); }
.unlock-row.is-locked, .unlock-block.is-locked { opacity: .7; }

/* auth */
.auth { display: grid; place-items: center; min-height: 70vh; }
.auth__card { width: 100%; max-width: 440px; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 34px 30px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }
.auth__card h1 { font: 400 2.4rem/1.05 var(--display); text-transform: uppercase; margin: 10px 0 8px; }
.auth__card .form { margin: 22px 0 16px; }

/* member dashboard */
.hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.hello h1 { font: 400 clamp(2rem, 4.4vw, 3rem)/1.05 var(--display); text-transform: uppercase; margin: 8px 0; text-wrap: balance; }
.hello p { margin: 0; max-width: 70ch; }
.rank { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .95rem; padding: 10px 16px; border-radius: 999px; color: var(--rc); border: 1px solid color-mix(in srgb, var(--rc) 50%, transparent); background: color-mix(in srgb, var(--rc) 10%, transparent); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.kpi b { display: block; font: 400 2.2rem/1 var(--display); letter-spacing: .02em; }
.kpi span { color: var(--muted); font-weight: 700; font-size: .82rem; }
.kpi--hot b { color: var(--gold); }

.ladder__head p { margin: 4px 0 18px; }
.ladder__track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 82px), 1fr)); gap: 8px; }
.ladder__track li { position: relative; padding: 14px 12px; border-radius: 14px; background: #0c0b13; border: 1px solid var(--line); display: grid; gap: 4px; align-content: start; opacity: .55; }
.ladder__track li.is-done { opacity: .85; }
.ladder__track li.is-on { opacity: 1; border-color: var(--rc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rc) 20%, transparent), 0 14px 30px -14px var(--rc); }
.ladder__track b { color: var(--rc); font-size: .95rem; }
.ladder__track small { color: var(--muted); font-size: .72rem; line-height: 1.3; }
.ladder__dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; background: rgba(255,255,255,.06); color: var(--muted); margin-bottom: 4px; }
.is-done .ladder__dot, .is-on .ladder__dot { background: var(--rc); color: #0b0a12; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: 700 .8rem var(--body); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; }
.chip.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }

.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.fcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s; }
.fcard:hover { transform: translateY(-3px); border-color: var(--line-2); }
.fcard__img { position: relative; aspect-ratio: 16/10; background: radial-gradient(circle at 50% 60%, rgba(139,70,252,.35), #0c0b13 70%); display: grid; place-items: center; overflow: hidden; }
.fcard__img img { max-height: 88%; max-width: 70%; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0,0,0,.6)); }
.fcard__body { padding: 18px; display: grid; gap: 10px; }
.fcard__cat { font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--violet-2); }
.fcard h3 { font-size: 1.08rem; line-height: 1.3; }
.fcard__stats { display: flex; gap: 14px; margin: 0; font-size: .8rem; color: var(--muted); font-weight: 700; }
.copy { display: flex; gap: 6px; }
.copy input { font-size: .8rem; padding: 8px 10px; min-width: 0; }
.share { display: flex; gap: 6px; flex-wrap: wrap; }
.share a { width: 38px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--text); text-decoration: none; cursor: pointer; }
.share a:hover { background: rgba(255,255,255,.12); }
.share a.share__preview { width: auto; padding: 0 12px; display: inline-flex; gap: 6px; font-weight: 700; font-size: .8rem; margin-left: auto; }
.pill { position: absolute; top: 12px; left: 12px; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.pill--new { background: var(--green); color: #04130c; }
.fcard.is-locked .fcard__img img { filter: grayscale(1) blur(1px) brightness(.6); }
.lock { position: absolute; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .82rem; padding: 7px 12px; border-radius: 999px; color: var(--rc); background: rgba(8,7,13,.85); border: 1px solid color-mix(in srgb, var(--rc) 50%, transparent); }
.lock--inline { position: static; justify-self: start; }
.empty { text-align: center; color: var(--muted); }
.empty i { font-size: 2rem; color: var(--gold); }

/* admin */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.toolbar h1 { font: 400 2.2rem/1.05 var(--display); text-transform: uppercase; }
.toolbar__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
table.t { width: 100%; border-collapse: collapse; font-size: .9rem; }
.t th { text-align: left; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t .thumb { width: 44px; height: 56px; object-fit: cover; border-radius: 6px; background: #0c0b13; }
.t .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.status { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.status--live, .status--active { background: rgba(46,229,157,.12); color: var(--green); }
.status--draft, .status--pending { background: rgba(255,207,74,.12); color: var(--gold); }
.status--suspended { background: rgba(255,61,110,.12); color: #ff9db5; }
.mini-rank { font-weight: 800; font-size: .82rem; color: var(--rc); }
.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps-list > li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.steps-list > li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #1a1203; background: linear-gradient(135deg, var(--gold-2), var(--gold-3)); }
.steps-list h3 { font-size: 1.02rem; margin-bottom: 4px; }
.steps-list p { margin: 0 0 10px; color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .9rem; }
.check-list .ok { color: var(--green); }
.check-list .bad { color: #ff9db5; }
.check-list .warn { color: var(--gold); }
.preview-frame { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.hint { font-size: .82rem; color: var(--muted); margin: 0; }
details.card summary { cursor: pointer; font-weight: 800; }
details.card[open] summary { margin-bottom: 14px; }

@media (max-width: 860px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form--grid, .split { grid-template-columns: 1fr; }
  .nav a span { display: none; }
  .logo em { display: none; }
}
@media (max-width: 480px) {
  .shell { padding: 0 16px; }
  .card { padding: 18px; }
  .fgrid { grid-template-columns: 1fr; }
  .auth__card { padding: 26px 20px; }
}

/* ---------- leadership kit additions ---------- */
.vault-ico { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center; font-size: 1.8rem; color: #1a1203; background: linear-gradient(135deg, var(--gold-2), var(--gold) 45%, var(--gold-3)); box-shadow: 0 14px 34px -10px rgba(255,207,74,.6); }
.auth__card.center p { margin-left: auto; margin-right: auto; }

.nextup { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--r); text-decoration: none; color: var(--text);
  background: linear-gradient(100deg, color-mix(in srgb, var(--rc) 18%, transparent), rgba(139,70,252,.12));
  border: 1px solid color-mix(in srgb, var(--rc) 45%, transparent); transition: transform .2s; }
.nextup:hover { color: var(--text); transform: translateY(-2px); }
.nextup b { display: block; font-size: 1.05rem; }
.nextup > span:nth-child(2) { flex: 1; color: var(--muted); font-size: .92rem; }
.nextup__ico { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; color: #0b0a12; background: var(--rc); }
.nextup > i { color: var(--rc); }

.libcard { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; align-items: center; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 50%, rgba(139,70,252,.25), transparent 60%), var(--panel); }
.libcard h2 { font: 400 1.8rem/1.05 var(--display); text-transform: uppercase; margin: 6px 0; }
.libcard .copy { max-width: 560px; }
.libcard__stack { position: relative; height: 170px; }
.libcard__stack img { position: absolute; top: 10px; left: calc(var(--i) * 46px + 10px); height: 150px; width: auto; border-radius: 8px;
  box-shadow: 0 16px 30px rgba(0,0,0,.6); transform: rotate(calc((var(--i) - 1) * 7deg)); }

.owned { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; color: #1a1203; background: linear-gradient(135deg, var(--gold-2), var(--gold-3)); }
.rights { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rights li { font-size: .74rem; font-weight: 700; color: var(--green); background: rgba(46,229,157,.08); border: 1px solid rgba(46,229,157,.25); padding: 3px 9px; border-radius: 999px; }
.ladder__count { color: var(--text) !important; font-weight: 800; }

.celebrate { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; overflow-y: auto; background: rgba(4,3,8,.78); backdrop-filter: blur(8px); animation: fadeIn .3s ease; }
.celebrate__box { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; text-align: center; padding: 30px 28px 22px; border-radius: 26px; background: #12101c;
  border: 1px solid color-mix(in srgb, var(--rc) 55%, transparent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--rc) 12%, transparent), 0 40px 100px rgba(0,0,0,.7);
  animation: popIn .55s cubic-bezier(.34,1.6,.64,1); }
.celebrate__badge { flex: none; width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 2.3rem; color: #0b0a12; background: var(--rc); box-shadow: 0 0 40px color-mix(in srgb, var(--rc) 70%, transparent); }
.celebrate h2 { font: 400 clamp(1.7rem, 4vw, 2.2rem)/1.05 var(--display); text-transform: uppercase; margin: 8px 0; }
.celebrate__box > .kicker, .celebrate__box > h2, .celebrate__box > p { flex: none; }
.celebrate__x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255,255,255,.05); color: var(--text); cursor: pointer; }
.celebrate__x:hover { background: rgba(255,255,255,.12); }
.celebrate__box > .btn { flex: none; }
.celebrate__list { list-style: none; padding: 2px; margin: 14px 0 18px; display: grid; gap: 8px; text-align: left; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.celebrate__list--many { grid-template-columns: 1fr 1fr; }
.celebrate__box:has(.celebrate__list--many) { max-width: 620px; }
.celebrate__list li:first-child { grid-column: 1 / -1; }
.celebrate__list li { padding: 9px 12px; font-size: .9rem; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-weight: 700; }
.celebrate__list i { color: var(--gold); margin-right: 6px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(.85) translateY(20px); } }

.giftbox { display: grid; gap: 12px; }
.giftbox .copy input { font-size: .85rem; }
.msg-preview { white-space: pre-wrap; font: 500 .85rem/1.5 var(--body); background: #0b0a12; border: 1px solid var(--line-2); border-radius: 12px; padding: 14px; color: #d4d0dd; max-height: 260px; overflow: auto; margin: 0; }

@media (max-width: 700px) {
  .celebrate__list--many { grid-template-columns: 1fr; }
  .libcard { grid-template-columns: 1fr; }
  .libcard__stack { display: none; }
}

/* ---------- prospecting system: leads back office ---------- */
.leadping { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--r); text-decoration: none; color: var(--text);
  background: linear-gradient(100deg, rgba(46,229,157,.16), rgba(255,207,74,.1)); border: 1px solid rgba(46,229,157,.4); animation: popIn .5s cubic-bezier(.34,1.6,.64,1); }
.leadping:hover { color: var(--text); }
.leadping > span:nth-child(2) { flex: 1; color: var(--muted); font-size: .92rem; }
.leadping b { display: block; color: var(--text); font-size: 1.08rem; }
.leadping__ico { position: relative; width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; color: #04130c; background: var(--green); animation: ringbell 2.4s ease-in-out infinite; }
.leadping__ico em { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font: 800 .72rem var(--body); font-style: normal; color: #fff; background: var(--hot); box-shadow: 0 0 0 3px var(--bg); }
@keyframes ringbell { 0%,70%,100% { transform: rotate(0); } 75% { transform: rotate(-12deg); } 80% { transform: rotate(10deg); } 85% { transform: rotate(-6deg); } 90% { transform: rotate(4deg); } }

.invite { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 20px; align-items: center;
  background: radial-gradient(120% 140% at 100% 50%, rgba(46,229,157,.14), transparent 60%), var(--panel); }
.invite h2 { font: 400 1.6rem/1.05 var(--display); text-transform: uppercase; margin: 6px 0; }
.invite p { margin: 0; }

.leadbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 20px; }
.leadbar__due { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 260px; color: var(--muted); }
.leadbar__due b { color: var(--text); }
.leadbar__ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; color: #1a1203; background: linear-gradient(135deg, var(--gold-2), var(--gold-3)); }
.leadbar__due.is-clear .leadbar__ico { background: var(--green); color: #04130c; }
.sendwith { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.leads { display: grid; gap: 12px; }
.lead { display: grid; grid-template-columns: minmax(200px, 1.1fr) auto auto; gap: 18px; align-items: center; padding: 16px 18px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); transition: border-color .2s; }
.lead:hover { border-color: var(--line-2); }
.lead.is-new { border-color: rgba(46,229,157,.45); box-shadow: 0 0 0 3px rgba(46,229,157,.08); animation: popIn .5s cubic-bezier(.34,1.6,.64,1) both; }
.lead--stopped { opacity: .55; }
.lead--joined { border-color: rgba(255,207,74,.4); }
.lead__who { display: flex; gap: 12px; align-items: center; min-width: 0; }
.lead__who > div { display: grid; gap: 1px; min-width: 0; }
.lead__who b { font-size: 1rem; text-transform: capitalize; }
.lead__mail { color: var(--muted); text-decoration: none; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead__mail:hover { color: var(--gold); }
.lead__who small { font-size: .76rem; }
.lead__av { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--violet), var(--hot)); }
.pill-new, .pill-joined { font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; vertical-align: 2px; }
.pill-new { background: var(--green); color: #04130c; }
.pill-joined { background: rgba(255,207,74,.15); color: var(--gold); text-transform: none; letter-spacing: 0; }
.days { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.day { all: unset; box-sizing: border-box; cursor: pointer; width: 54px; height: 62px; border-radius: 12px; display: grid; place-items: center; align-content: center; gap: 0; text-align: center;
  background: #0c0b13; border: 1px solid var(--line); color: var(--muted); transition: transform .15s, border-color .15s, background .15s; }
.day:hover { transform: translateY(-2px); border-color: var(--line-2); }
.day:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.day small { font-size: .56rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; line-height: 1; }
.day b { font: 400 1.25rem/1 var(--display); color: var(--text); margin: 2px 0 3px; }
.day__st { font-size: .64rem; font-weight: 800; letter-spacing: .04em; line-height: 1; }
.day--sent { background: rgba(46,229,157,.1); border-color: rgba(46,229,157,.45); color: var(--green); }
.day--sent .day__st { font-size: .9rem; }
.day--due { color: #1a1203; border: 0; background: linear-gradient(135deg, var(--gold-2), var(--gold) 45%, var(--gold-3)); box-shadow: 0 10px 22px -8px rgba(255,207,74,.7); animation: duepulse 1.8s ease-out infinite; }
.day--due b { color: #1a1203; }
.day--due .day__st { text-transform: uppercase; letter-spacing: .1em; }
@keyframes duepulse { 0% { box-shadow: 0 0 0 0 rgba(255,207,74,.55), 0 10px 22px -8px rgba(255,207,74,.7); } 100% { box-shadow: 0 0 0 10px rgba(255,207,74,0), 0 10px 22px -8px rgba(255,207,74,.7); } }
.day--late { border-color: rgba(255,207,74,.4); color: var(--gold); }
.day--later { opacity: .55; }
.day--off { opacity: .3; cursor: default; }
.lead__acts { display: flex; gap: 6px; }
.leads-empty { padding: 40px 24px; display: grid; justify-items: center; gap: 8px; }
.leads-empty h2 { font: 400 1.6rem/1.1 var(--display); text-transform: uppercase; color: var(--text); }
.leads-empty p { max-width: 46ch; margin: 0 0 8px; }
.idnum { all: unset; cursor: pointer; font-weight: 800; font-size: .78rem; color: var(--gold); }
.idnum:hover { text-decoration: underline; }
.share-row { display: flex; gap: 6px; flex-wrap: wrap; }
.bulkbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-color: rgba(255,207,74,.35); }
.bulkbar i { color: var(--gold); }

/* follow-up editor */
.fu-edit { display: grid; gap: 14px; }
.fu-edit > .btn { justify-self: start; }
.fu-day { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; }
.fu-day__n { width: 58px; height: 64px; border-radius: 14px; display: grid; place-items: center; align-content: center; background: linear-gradient(135deg, var(--gold-2), var(--gold-3)); color: #1a1203; }
.fu-day__n small { font-size: .6rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.fu-day__n b { font: 400 1.7rem/1 var(--display); }
.fu-day summary { cursor: pointer; }
.fu-day .msg-preview { margin-top: 10px; }

/* team registration */
.reg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 36px; align-items: start; }
.reg__intro { position: sticky; top: 90px; display: grid; gap: 16px; }
.reg__intro h1 { font: 400 clamp(2.2rem, 5vw, 3.4rem)/1 var(--display); text-transform: uppercase; margin: 0; text-wrap: balance; }
.reg__intro > p { margin: 0; }
.reg__sponsor { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 6px 16px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.reg__sponsor > span:last-child { display: grid; line-height: 1.15; }
.reg__sponsor small { font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.avatar-sm { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--violet), var(--hot)); }
.reg__warn { display: flex; gap: 12px; padding: 16px; border-radius: 14px; background: rgba(255,61,110,.07); border: 1px solid rgba(255,61,110,.35); }
.reg__warn > i { font-size: 1.4rem; color: #ff7d9c; }
.reg__warn b { color: #ffb3c6; }
.reg__warn p { margin: 4px 0 0; color: #d4d0dd; font-size: .9rem; }
.reg__form { gap: 18px; }
.reg__form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.reg__form legend { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1rem; margin-bottom: 12px; padding: 0; }
.reg__form legend span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; color: #1a1203; background: linear-gradient(135deg, var(--gold-2), var(--gold-3)); }
.field-err { color: #ff9db5 !important; font-weight: 700 !important; }
.cv-pick { display: grid; gap: 8px; }
.cv-opt { display: flex !important; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); cursor: pointer; transition: border-color .15s, background .15s; }
.cv-opt input { width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.cv-opt span { display: grid; }
.cv-opt small { font-weight: 500; }
.cv-opt:has(input:checked) { border-color: var(--gold); background: rgba(255,207,74,.06); }
.cv-opt--best b::after { content: "Best"; margin-left: 8px; font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; color: #04130c; background: var(--green); vertical-align: 2px; }
.cv-opt--no:has(input:checked) { border-color: var(--hot); background: rgba(255,61,110,.06); }
.cv-warn { margin: 0; font-size: .86rem; color: #ffb3c6; }
.confirm { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 600 !important; font-size: .86rem !important; color: #d4d0dd; }
.confirm input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); flex: none; }
.btn--lg { padding: 15px 20px; font-size: 1rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.reg-next { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; text-align: left; }
.reg-next li { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-weight: 700; font-size: .9rem; }
.reg-next i { color: var(--gold); margin-right: 6px; }

@media (max-width: 980px) {
  .lead { grid-template-columns: 1fr; gap: 12px; }
  .days { overflow-x: auto; padding-bottom: 2px; }
  .lead__acts { justify-content: flex-start; }
}
@media (max-width: 860px) {
  .reg { grid-template-columns: 1fr; gap: 20px; }
  .reg__intro { position: static; }
  .invite { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .day { width: 46px; height: 58px; }
  .days { gap: 5px; }
  .leadping { flex-wrap: wrap; }
  .fu-day { grid-template-columns: 1fr; }
}
.g-steps { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; color: #d4d0dd; font-size: .92rem; }
.g-steps b { color: var(--text); }
.linkform { margin: 18px 0 0 !important; text-align: left; padding-top: 16px; border-top: 1px solid var(--line); }

/* Telegram bot card */
.tgcard { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center;
  background: radial-gradient(120% 140% at 100% 50%, rgba(42,171,238,.16), transparent 60%), var(--panel); }
.tgcard__ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.8rem; color: #fff; background: #2aabee; }
.tgcard h2 { font: 400 1.6rem/1.05 var(--display); text-transform: uppercase; margin: 6px 0; }
.tgcard p { margin: 0; }
.tgcard__act { display: grid; gap: 8px; justify-items: end; text-align: right; }
.tgcard__act form { margin: 0; }
@media (max-width: 760px) {
  .tgcard { grid-template-columns: 1fr; }
  .tgcard__act { justify-items: start; text-align: left; }
}

/* Add-ons */
.addon { display: grid; gap: 22px; }
.addon__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; }
.addon__head h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.addon__head .muted { margin: 6px 0 0; }
.addon__logo { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 1.6rem; color: #1a1300; background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-3)); }
.addon__steps { list-style: none; counter-reset: st; margin: 0; padding: 0; display: grid; gap: 14px; }
.addon__steps > li { counter-increment: st; position: relative; padding: 18px 18px 18px 60px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); display: grid; gap: 8px; justify-items: start; }
.addon__steps > li > * { margin: 0; }
.addon__steps > li::before { content: counter(st); position: absolute; left: 18px; top: 16px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: var(--gold); border: 1px solid rgba(255,207,74,.4); background: rgba(255,207,74,.08); }
.addon__steps .form { width: 100%; }
.addon__steps .copy { width: 100%; max-width: 420px; }
.addon__code { min-height: 76px !important; }
.addon__under { margin-top: -2px; }
.addon__test { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 4px; }
.pro { display: inline-block; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; color: #1a1300; background: linear-gradient(135deg, var(--gold-2), var(--gold)); vertical-align: 2px; margin-left: 6px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.plan--pro { border-color: rgba(255,207,74,.35); background: rgba(255,207,74,.04); }
.plan b { display: flex; gap: 8px; align-items: center; }
.plan--pro b { color: var(--gold); }
.plan ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: .88rem; display: grid; gap: 4px; }
.addon__ref { display: grid; gap: 6px; }
.addon__ref .muted { margin: 0; }
.addon__ref .copy { max-width: 420px; }
@media (max-width: 640px) {
  .plans { grid-template-columns: 1fr; }
  .addon__steps > li { padding: 52px 16px 16px; }
  .addon__steps > li::before { top: 14px; left: 16px; }
}

.addon__tags { border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.addon__tags summary { cursor: pointer; font-weight: 700; }
.addon__tags summary i { color: var(--gold); margin-right: 4px; }
.addon__tags .muted { margin: 10px 0 6px; }
.tagtbl { border-collapse: collapse; width: 100%; }
.tagtbl td { padding: 6px 8px 6px 0; border-top: 1px solid var(--line); vertical-align: top; }
.tagtbl td:first-child { white-space: nowrap; }
@media (max-width: 640px) { .tagtbl td { display: block; border-top: 0; padding: 2px 0; } .tagtbl tr { display: block; border-top: 1px solid var(--line); padding: 6px 0; } }
