/* Ambassador Studio — the dashboard. Same visual language as the Share Kit (library.html):
   warm light background, drifting colour blobs, Plus Jakarta Sans, soft cards.
   Loaded after styles.css (which still styles the college picker modal). */

:root {
    --bg: #fbf8f3;
    --ink: #1b1f2a;
    --soft: #6b7280;
    --faint: #a3a8b3;
    --line: #efe9df;
    --card: #ffffff;
    --accent: #6d5dfc;
    --accent-soft: #efedff;
    --money: #0d9f6e;
    --money-soft: #e3f8ef;
    --up: #e8590c;
    --shadow: 0 1px 2px rgba(27, 31, 42, .04), 0 10px 30px -12px rgba(27, 31, 42, .12);
    --r: 22px;
    --ease: cubic-bezier(.2, .9, .25, 1.15);
    --side: 248px;
}

* { -webkit-tap-highlight-color: transparent; }
html, body { background: var(--bg); }
body {
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    color: var(--ink); background: var(--bg); overflow-x: hidden; min-height: 100vh;
}

/* blobs */
.blobs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; animation: drift 18s ease-in-out infinite alternate; }
.b1 { width: 340px; height: 340px; background: #ffd9c2; top: -100px; left: -90px; }
.b2 { width: 300px; height: 300px; background: #d9d4ff; top: 140px; right: -120px; animation-delay: -6s; }
.b3 { width: 280px; height: 280px; background: #c9f2dc; bottom: -80px; left: 20%; animation-delay: -11s; }
@keyframes drift { 50% { transform: translate(30px, 40px) scale(1.08); } 100% { transform: translate(-20px, 10px) scale(.95); } }

.wrap { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; padding: 0 16px calc(96px + env(safe-area-inset-bottom)); }

/* top bar (phone) */
.top { display: flex; align-items: center; justify-content: space-between; padding: calc(14px + env(safe-area-inset-top)) 0 4px; }
.brand { font-weight: 800; font-size: 17px; letter-spacing: -.02em; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 6px; }
.brand b { color: var(--accent); }
.studio-chip { font-size: 11px; font-weight: 800; color: #fff; background: var(--ink); padding: 3px 8px; border-radius: 7px; letter-spacing: .04em; }
.top-photo { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 4px 12px rgba(0,0,0,.12); }

/* sidebar (desktop) */
.side {
    position: fixed; z-index: 3; left: 0; top: 0; bottom: 0; width: var(--side);
    background: rgba(255, 255, 255, .78); backdrop-filter: blur(16px); border-right: 1px solid var(--line);
    padding: 22px 14px; display: flex; flex-direction: column; gap: 18px;
}
.s-brand { font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: var(--ink); text-decoration: none; padding: 0 8px; display: flex; align-items: center; gap: 2px; }
.s-brand b { color: var(--accent); }
.s-brand span { margin-left: 8px; font-size: 11px; color: #fff; background: var(--ink); padding: 3px 8px; border-radius: 7px; }
.s-me { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.s-me img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--accent-soft); }
.s-me strong { display: block; font-size: 14px; }
.s-me span { display: block; font-size: 11.5px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.s-nav { display: flex; flex-direction: column; gap: 4px; }
.s-item {
    display: flex; align-items: center; gap: 12px; border: 0; background: none; font: inherit; font-size: 14.5px; font-weight: 700;
    color: var(--soft); padding: 12px 14px; border-radius: 14px; cursor: pointer; text-decoration: none; text-align: left; transition: all .25s var(--ease);
}
.s-item span { font-size: 18px; }
.s-item:hover { background: #f4f1ec; color: var(--ink); }
.s-item.on { background: var(--ink); color: #fff; box-shadow: 0 10px 20px -10px rgba(27,31,42,.6); }
.s-out { margin-top: auto; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--faint); padding: 10px 14px; text-align: left; cursor: pointer; }

/* bottom tabs (phone) */
.tabbar {
    position: fixed; z-index: 5; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
    display: flex; background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px);
    border: 1px solid var(--line); border-radius: 22px; padding: 6px; box-shadow: 0 14px 34px -14px rgba(27,31,42,.35);
}
.t-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: none; font: inherit;
    font-size: 11px; font-weight: 700; color: var(--soft); padding: 8px 0; border-radius: 16px; cursor: pointer; text-decoration: none; transition: all .25s var(--ease);
}
.t-item span { font-size: 19px; transition: transform .3s var(--ease); }
.t-item.on { background: var(--ink); color: #fff; }
.t-item.on span { transform: translateY(-1px) scale(1.1); }

@media (min-width: 900px) {
    .side:not(.hidden) ~ .wrap { margin-left: var(--side); max-width: calc(1000px); padding-left: 32px; padding-right: 32px; }
    .tabbar { display: none !important; }
    .top { display: none; }
    .wrap { padding-top: 28px; }
}
@media (max-width: 899px) { .side { display: none !important; } }

/* ── shared ── */
.eyebrow { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--faint); }
.hello { padding: 14px 2px 14px; animation: rise .6s var(--ease) both; }
.hello h1 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin-top: 2px; }
.wrap .card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
    padding: 18px; margin: 0 0 14px;
}
.wrap .card h3 { font-size: 17px; font-weight: 800; letter-spacing: -.01em; margin-top: 2px; }
.rise { animation: rise .6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 18px 2px 10px; }
.sec-head h2 { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.m-link { border: 0; background: rgba(255,255,255,.18); color: inherit; font: inherit; font-size: 12.5px; font-weight: 700; padding: 6px 10px; border-radius: 10px; cursor: pointer; }
.m-link.dark { background: #f2efe9; color: var(--ink); }
.two { display: grid; gap: 14px; }
.two > .card { margin: 0; }
.two { margin-bottom: 14px; }
@media (min-width: 720px) { .two { grid-template-columns: 1fr 1fr; } }

/* ── hero: money + upgrades ── */
.hero-grid { display: grid; gap: 14px; margin-bottom: 4px; }
@media (min-width: 720px) { .hero-grid { grid-template-columns: 1.35fr 1fr; } }

.money {
    position: relative; overflow: hidden; color: #fff; border-radius: 26px; padding: 20px;
    background: radial-gradient(420px 240px at 100% 0%, rgba(124, 255, 196, .35), transparent 65%),
                radial-gradient(360px 260px at 0% 110%, rgba(109, 93, 252, .45), transparent 70%),
                linear-gradient(145deg, #0e7a57, #0b5e44 55%, #133b3a);
    box-shadow: 0 22px 44px -22px rgba(11, 94, 68, .7);
}
.money::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.14) 45%, transparent 60%);
    transform: translateX(-100%); animation: sheen 5s ease-in-out 1s infinite;
}
@keyframes sheen { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.m-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.m-label { font-size: 13px; font-weight: 700; opacity: .85; }
.m-rate { font-size: 12px; font-weight: 800; background: rgba(255,255,255,.16); padding: 5px 10px; border-radius: 999px; }
.m-big { font-size: clamp(46px, 13vw, 64px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; margin: 6px 0 14px; font-variant-numeric: tabular-nums; }
.m-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-split.four { grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) { .m-split.four { grid-template-columns: repeat(4, 1fr); } }
.m-split > div { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; padding: 10px 12px; }
.m-split span { display: block; font-size: 11.5px; font-weight: 700; opacity: .8; }
.m-split strong { display: block; font-size: 20px; font-weight: 800; margin-top: 2px; font-variant-numeric: tabular-nums; }
.m-ready { background: rgba(255, 255, 255, .2) !important; border-color: rgba(255,255,255,.3) !important; }
.m-ready strong { font-size: 24px; }
.m-btn {
    width: 100%; margin-top: 14px; border: 0; font: inherit; font-size: 16px; font-weight: 800; padding: 15px; border-radius: 16px;
    background: #fff; color: #0b5e44; cursor: pointer; transition: transform .15s;
}
.m-btn:active { transform: scale(.97); }
.m-btn:disabled { background: rgba(255,255,255,.18); color: rgba(255,255,255,.85); cursor: default; }
.m-note { margin-top: 8px; font-size: 12.5px; opacity: .85; min-height: 1em; }

.upg {
    position: relative; overflow: hidden; border-radius: 26px; padding: 20px; color: var(--ink);
    background: linear-gradient(160deg, #fff 0%, #fff6ef 100%); border: 1px solid #ffe2cf; box-shadow: var(--shadow);
    display: flex; flex-direction: column;
}
.u-label { font-size: 13px; font-weight: 700; color: var(--soft); }
.u-badge { font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 999px; }
.u-badge.good { background: var(--money-soft); color: var(--money); }
.u-badge.bad { background: #ffeceb; color: #d63b2f; }
.u-big { font-size: clamp(56px, 16vw, 76px); font-weight: 800; letter-spacing: -.05em; line-height: 1; margin: 8px 0 6px; color: var(--up); font-variant-numeric: tabular-nums; }
.spark { width: 100%; height: 70px; margin-top: auto; }
.u-foot { font-size: 12.5px; color: var(--soft); font-weight: 600; margin-top: 6px; }

/* ── studio tiles ── */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile {
    background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px; box-shadow: var(--shadow);
    animation: rise .55s var(--ease) both;
}
.tile .t-ic { font-size: 18px; }
.tile .t-n { font-size: 26px; font-weight: 800; letter-spacing: -.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.tile .t-l { font-size: 12px; font-weight: 700; color: var(--soft); }
.tile .t-d { display: inline-block; margin-top: 6px; font-size: 11.5px; font-weight: 800; padding: 3px 7px; border-radius: 8px; background: #f3f1ec; color: var(--soft); }
.tile .t-d.good { background: var(--money-soft); color: var(--money); }
.tile .t-d.bad { background: #ffeceb; color: #d63b2f; }

/* ── link ── */
.s-link { background: linear-gradient(135deg, #fff 0%, #f4f2ff 100%) !important; }
.sl-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sl-chip { font-size: 11.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 4px 9px; border-radius: 999px; }
.sl-row { display: flex; gap: 8px; align-items: center; margin-top: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 6px 6px 6px 14px; }
.sl-row code { flex: 1; min-width: 0; font: 700 15px/1.3 ui-monospace, Menlo, monospace; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-copy { border: 0; background: var(--ink); color: #fff; font: inherit; font-size: 13px; font-weight: 700; padding: 10px 14px; border-radius: 12px; cursor: pointer; }
.sl-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.sl-btn { display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; font: inherit; font-size: 14px; font-weight: 700; padding: 12px; border-radius: 14px; cursor: pointer; text-decoration: none; }
.sl-btn.wa { background: #25d366; color: #fff; }
.sl-btn.kit { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.sl-btn.full { margin-top: 12px; }
.sl-item { margin-top: 12px; }
.sl-item .sl-row { margin-top: 6px; }
.sl-lbl { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 4px; }
.sl-lbl b { font-size: 13.5px; font-weight: 800; color: var(--ink); }
.sl-lbl span { font-size: 11.5px; font-weight: 700; color: var(--muted, #8a8f98); white-space: nowrap; }
.sl-seg { display: inline-flex; padding: 2px; border-radius: 99px; background: var(--line, #eceef1); gap: 2px; }
.sl-seg[hidden], #join-tag[hidden] { display: none; }
.sl-seg button { border: 0; background: none; font: inherit; font-size: 11px; font-weight: 800; color: var(--muted, #8a8f98); padding: 3px 10px; border-radius: 99px; cursor: pointer; }
.sl-seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.sl-item.up .sl-row { border-color: #f5c99b; background: #fffaf3; }
.sl-item.up .sl-row code { color: #d9480f; }
.sl-item.up .sl-lbl span { color: #d9480f; }
.sl-wa { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: #25d366; color: #fff; cursor: pointer; }
.sl-wa svg { width: 21px; height: 21px; }
.sl-wa:active, .sl-copy:active { transform: scale(.94); }

/* ── college ── */
.c-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.c-head h3 { font-size: 16px !important; line-height: 1.3; }
.c-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.c-kpis div { background: #f7f5f1; border-radius: 14px; padding: 10px; text-align: center; }
.c-kpis strong { display: block; font-size: 20px; font-weight: 800; }
.c-kpis span { font-size: 11px; color: var(--soft); font-weight: 700; }
.c-sub { font-size: 12px; color: var(--faint); font-weight: 600; margin-top: 8px; }
.batches { display: flex; flex-direction: column; gap: 8px; }
.bt-row { display: flex; align-items: center; gap: 10px; }
.bt-year { width: 42px; font-size: 12px; font-weight: 800; color: var(--soft); }
.bt-main { flex: 1; }
.bt-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--soft); font-weight: 600; margin-bottom: 4px; }
.bt-top b { color: var(--ink); }
.bt-bar { height: 8px; border-radius: 99px; background: #f1eee8; overflow: hidden; }
.bt-fill { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #8b7dff, var(--accent)); transform-origin: left; animation: grow 1s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }

/* ── joins ── */
.joins { display: flex; flex-direction: column; gap: 4px; max-height: 330px; overflow-y: auto; }
.jn { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid #f4f1ec; }
.jn:last-child { border-bottom: 0; }
.jn-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; flex: none; }
.jn-main { flex: 1; min-width: 0; }
.jn-main strong { display: block; font-size: 14px; }
.jn-main span { font-size: 11.5px; color: var(--faint); font-weight: 600; }
.stage { font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 8px; text-transform: capitalize; }
.stage.converted { background: #fff0e6; color: var(--up); }
.stage.installed { background: var(--accent-soft); color: var(--accent); }
.stage.onboarded, .stage.signup { background: #f2f0ec; color: var(--soft); }
.empty-s { text-align: center; padding: 22px 8px; color: var(--soft); font-size: 13.5px; font-weight: 600; }
.empty-s .e { font-size: 30px; display: block; margin-bottom: 6px; }

/* ── goals ── */
.g-top { display: flex; align-items: center; gap: 12px; }
.g-ic { width: 42px; height: 42px; border-radius: 14px; background: #fff6e0; display: grid; place-items: center; font-size: 21px; flex: none; }
.g-top div { flex: 1; min-width: 0; }
.g-top h3 { font-size: 15px !important; }
.g-top p { font-size: 12.5px; color: var(--soft); font-weight: 600; margin-top: 1px; }
.g-top b { font-size: 13px; font-weight: 800; white-space: nowrap; }
.bar { height: 10px; border-radius: 99px; background: #f1eee8; overflow: hidden; margin-top: 12px; }
.bar span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #ffc94d, #ff9f1c); transition: width 1.2s var(--ease); }
.bar.pro span { background: linear-gradient(90deg, #8b7dff, var(--accent)); }
.goal.is-done .g-ic { background: var(--money-soft); }

/* ── analytics ── */
.ch-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; background: #f2efe9; border-radius: 14px; padding: 4px; }
.seg button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--soft); padding: 8px 14px; border-radius: 10px; cursor: pointer; transition: all .25s var(--ease); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.ch-read { font-size: 12.5px; font-weight: 700; color: var(--soft); }
.ch-big { margin: 14px 0 6px; display: flex; align-items: baseline; gap: 8px; }
.ch-big strong { font-size: 40px; font-weight: 800; letter-spacing: -.04em; }
.ch-big span { font-size: 13px; color: var(--soft); font-weight: 600; }
.trend { width: 100%; height: 220px; display: block; touch-action: pan-y; }
.trend .area { animation: fadein .8s ease both; }
.trend .ln { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 1.4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { from { opacity: 0; } }

.funnel { display: flex; flex-direction: column; gap: 10px; }
.fn-row { display: grid; grid-template-columns: 92px 1fr 54px; align-items: center; gap: 10px; }
.fn-l { font-size: 13px; font-weight: 700; }
.fn-bar { height: 30px; border-radius: 10px; background: #f4f1ec; overflow: hidden; }
.fn-bar span { display: flex; align-items: center; padding-left: 10px; height: 100%; border-radius: 10px; color: #fff; font-size: 12.5px; font-weight: 800; transform-origin: left; animation: grow 1s var(--ease) both; min-width: 34px; }
.fn-p { font-size: 12px; font-weight: 800; color: var(--soft); text-align: right; }

/* ── earnings ── */
.money.wide { margin-bottom: 14px; }
.rows .row { display: flex; justify-content: space-between; gap: 10px; padding: 12px 2px; border-bottom: 1px solid #f4f1ec; }
.rows .row:last-child { border-bottom: 0; }
.rows .row strong { font-size: 14.5px; }
.rows .meta { font-size: 12px; color: var(--faint); font-weight: 600; margin-top: 2px; word-break: break-all; }
.rows .amt { font-weight: 800; font-variant-numeric: tabular-nums; }
.rows .amt.plus { color: var(--money); }
.rows .tag { display: inline-block; margin-top: 4px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 7px; border-radius: 7px; background: #f2f0ec; color: var(--soft); }
.rows .tag.available { background: var(--money-soft); color: var(--money); }
.rows .tag.pending { background: #fff6e0; color: #9a6b00; }
.rows .tag.paid { background: var(--accent-soft); color: var(--accent); }
.f-grid { display: grid; gap: 10px; }
@media (min-width: 720px) { .f-grid { grid-template-columns: 1fr 1fr; } }

/* ── terms ── */
.t-ok { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, #fff, #ecfbf3) !important; border-color: #cdeedc !important; }
.t-ok > div:not(.t-badge) { flex: 1; min-width: 0; }
.t-ok p { font-size: 13px; color: var(--soft); font-weight: 600; margin-top: 2px; }
.t-badge { width: 46px; height: 46px; border-radius: 16px; background: var(--money); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 800; flex: none; box-shadow: 0 10px 20px -10px var(--money); animation: popin .6s var(--ease) .2s both; }
@keyframes popin { from { transform: scale(.3) rotate(-20deg); opacity: 0; } }
.legal-s { font-size: 14px; line-height: 1.6; color: #374151; }
.legal-s h2 { font-size: 17px; font-weight: 800; color: var(--ink); margin: 0 0 8px; }
.legal-s h3 { font-size: 14.5px; font-weight: 800; margin: 12px 0 4px; }
.legal-s p, .legal-s li { margin-bottom: 8px; }
.legal-s ul, .legal-s ol { padding-left: 20px; }
.legal-s a { color: var(--accent); }
.legal-s .callout { background: #fff8e6; border: 1px solid #f6e3b8; border-radius: 14px; padding: 10px 14px; margin: 10px 0; }
.legal-s table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0; display: block; overflow-x: auto; }
.legal-s th, .legal-s td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; }
.acc { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.acc details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; animation: rise .5s var(--ease) both; }
.acc summary { list-style: none; cursor: pointer; padding: 15px 16px; font-size: 14.5px; font-weight: 800; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 20px; color: var(--faint); transition: transform .3s var(--ease); }
.acc details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.acc .legal-s { padding: 0 16px 14px; }

/* ── gates ── */
.center { min-height: 72vh; display: grid; place-items: center; text-align: center; }
.gate { background: var(--card); border-radius: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 30px 22px; width: 100%; max-width: 420px; animation: rise .7s var(--ease) both; }
.gate .big { font-size: 46px; animation: float 3s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.gate h1 { font-size: 24px; font-weight: 800; margin-top: 10px; letter-spacing: -.02em; }
.gate p { color: var(--soft); font-size: 14px; margin-top: 6px; font-weight: 500; }
.gate-foot a { color: var(--accent); font-weight: 700; }
.s-input { width: 100%; margin-top: 14px; border: 1.5px solid var(--line); background: #fffdf8; border-radius: 14px; padding: 13px 14px; font: inherit; font-size: 15px; outline: none; }
.f-grid .s-input { margin-top: 0; }
.s-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.gbtn {
    margin-top: 16px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
    border: 0; font: inherit; font-size: 15px; font-weight: 700; background: var(--ink); color: #fff; padding: 14px; border-radius: 16px; cursor: pointer;
}
.gbtn.small { width: auto; padding: 12px 20px; margin-top: 12px; }
.gbtn:disabled { opacity: .6; }
.status { margin-top: 10px; font-size: 13px; color: var(--soft); }
.status.error { color: #dc2626; }

.boot { display: grid; place-items: center; min-height: 60vh; }
.loader { display: flex; gap: 6px; }
.loader i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: bounce 1s infinite ease-in-out; }
.loader i:nth-child(2) { animation-delay: .15s; background: #ff8a65; }
.loader i:nth-child(3) { animation-delay: .3s; background: #34c38f; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(.5); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }

.toast {
    position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 20;
    transform: translate(-50%, 30px); opacity: 0; background: var(--ink); color: #fff;
    font-size: 14px; font-weight: 700; padding: 12px 18px; border-radius: 999px; pointer-events: none;
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .4); transition: transform .45s var(--ease), opacity .3s; white-space: nowrap;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ── reach: home cards ── */
.reach-row { margin-top: 14px; }
.rc { background: linear-gradient(150deg, #fff 0%, #eef6ff 100%) !important; border-color: #dbe9fb !important; position: relative; overflow: hidden; }
.rc::before { content: "🌍"; position: absolute; right: -14px; bottom: -22px; font-size: 96px; opacity: .08; transform: rotate(-12deg); }
.rc-big { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 10px; flex-wrap: wrap; }
.rc-big strong { font-size: 54px; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: #2563eb; font-variant-numeric: tabular-nums; }
.rc-out { font-size: 13px; font-weight: 600; color: var(--soft); }
.rc-out b { color: var(--ink); font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 5px 6px 5px 10px; border-radius: 999px; background: #fff; border: 1px solid #e3ebf6; max-width: 100%; animation: popin .5s var(--ease) both; }
.chip b { font-size: 11px; background: #eef3fb; color: #2563eb; padding: 2px 7px; border-radius: 999px; }
.chip.home { background: #2563eb; color: #fff; border-color: #2563eb; }
.chip.home b { background: rgba(255,255,255,.22); color: #fff; }
.chip.more { padding-right: 10px; color: var(--soft); background: #f4f6fa; }
.rc-bonus { margin-top: 12px; font-size: 12.5px; font-weight: 600; color: var(--soft); }
.rc-bonus b { color: var(--money); font-weight: 800; }

.g4 { display: flex; flex-direction: column; gap: 14px; }
.g4-day { font-size: 12px; font-weight: 800; background: #fff6e0; color: #9a6b00; padding: 4px 9px; border-radius: 999px; }
.g4.is-done .g4-day { background: var(--money-soft); color: var(--money); }
.g4-path { display: flex; align-items: center; gap: 8px; }
.g4-st { display: flex; align-items: center; gap: 8px; flex: none; }
.g4-st i { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 800; background: #f2efe9; color: var(--faint); transition: all .4s var(--ease); }
.g4-st.on i { background: var(--ink); color: #fff; }
.g4.is-done .g4-st.on i { background: var(--money); }
.g4-st span { display: block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.g4-st b { display: block; font-size: 13px; font-weight: 800; }
.g4-ln { flex: 1; height: 4px; border-radius: 99px; background: #f1eee8; overflow: hidden; min-width: 20px; }
.g4-ln span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ink), #2563eb); border-radius: 99px; transition: width 1.3s var(--ease) .2s; }
.g4.is-done .g4-ln span { background: linear-gradient(90deg, var(--money), #34c38f); }
.g4-dots { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.g4-dots i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 14px; background: #fff; border: 2px dashed #e2ddd4; animation: popin .5s var(--ease) both; }
.g4-dots i.on { border: 0; background: #eef3fb; }
.g4-dots i.on.h { background: #dbe7ff; }
.g4-dots span { margin-left: 4px; font-size: 12.5px; font-weight: 800; color: var(--soft); }
.bar.thin { height: 6px; margin-top: auto; }
.bar.thin span { background: linear-gradient(90deg, #c7c2ff, var(--accent)); }

/* ── reach page ── */
.reach-hero {
    position: relative; overflow: hidden; color: #fff; border-radius: 26px; padding: 20px; margin-bottom: 14px;
    background: radial-gradient(380px 220px at 100% 0%, rgba(96, 205, 255, .45), transparent 65%),
                radial-gradient(340px 240px at 0% 110%, rgba(109, 93, 252, .55), transparent 70%),
                linear-gradient(145deg, #1d4ed8, #1e3a8a 60%, #1b1f4a);
    box-shadow: 0 22px 44px -22px rgba(30, 58, 138, .7);
}
.rh-glow { position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.22); animation: spin 40s linear infinite; }
.rh-glow::after { content: ""; position: absolute; inset: 30px; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.16); }
@keyframes spin { to { transform: rotate(360deg); } }
.rh-l { font-size: 13px; font-weight: 700; opacity: .85; }
.rh-big { font-size: clamp(56px, 16vw, 76px); font-weight: 800; letter-spacing: -.05em; line-height: 1; margin: 6px 0 14px; font-variant-numeric: tabular-nums; }
.rh-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rh-kpis div { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); border-radius: 16px; padding: 10px; }
.rh-kpis strong { display: block; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rh-kpis span { font-size: 11px; font-weight: 700; opacity: .8; }
.rh-note { margin-top: 12px; font-size: 12.5px; font-weight: 600; opacity: .9; }
.rh-note b { color: #9ff5cf; }

.ex { background: repeating-linear-gradient(135deg, #fff, #fff 12px, #fbfaf7 12px, #fbfaf7 24px) !important; border-style: dashed !important; }
.ex-tag { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #9a6b00; background: #fff6e0; padding: 4px 9px; border-radius: 999px; }
.ex-row { display: flex; align-items: center; gap: 12px; margin: 12px 0 10px; }
.ex-av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #2563eb, var(--accent)); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.ex-main strong { display: block; font-size: 15px; font-weight: 800; }
.ex-main span { font-size: 13px; font-weight: 700; color: #2563eb; }
.ex-dots { display: flex; gap: 6px; }
.ex-dots i { flex: 1; height: 8px; border-radius: 99px; background: #93b4f5; animation: grow .8s var(--ease) both; transform-origin: left; }
.ex-dots i.h { background: var(--ink); }
.ex-dots i:nth-child(n+5) { background: #bcd0f8; }
.ex-foot { margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--soft); }

.net { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 12px; margin: 0 -16px 4px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.net::-webkit-scrollbar { display: none; }
.net-c { flex: none; width: 132px; scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); animation: rise .55s var(--ease) both; transition: transform .2s var(--ease); }
.net-c:active { transform: scale(.96); }
.net-c:hover { transform: translateY(-2px); }
.net-e { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: #f4f1ec; font-size: 21px; margin-bottom: 10px; }
.net-c strong { display: block; font-size: 13.5px; font-weight: 800; line-height: 1.2; }
.net-c small { display: block; font-size: 11.5px; font-weight: 600; color: var(--faint); margin-top: 2px; }
@media (min-width: 900px) { .net { margin: 0 0 4px; padding-left: 2px; padding-right: 2px; } .net-c { flex: 1; width: auto; } }

.lg { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--soft); white-space: nowrap; }
.lg i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; margin-left: 4px; }
.lg i.s { background: #2563eb; } .lg i.u { background: var(--up); }
.cols { display: flex; flex-direction: column; gap: 12px; }
.col-t { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.col-nm { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.home-tag { flex: none; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; background: var(--ink); color: #fff; padding: 2px 6px; border-radius: 6px; }
.col-v { margin-left: auto; flex: none; font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.col-v em { font-style: normal; color: var(--up); }
.col-bar { position: relative; height: 10px; border-radius: 99px; background: #f1eee8; overflow: hidden; }
.col-bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; transform-origin: left; animation: grow 1s var(--ease) both; }
.col-bar .s { background: linear-gradient(90deg, #93b4f5, #2563eb); }
.col-bar .u { background: linear-gradient(90deg, #ffb27a, var(--up)); }

.tier-now { flex: none; font-size: 15px; font-weight: 800; padding: 6px 12px; border-radius: 12px; background: #f2efe9; color: var(--soft); }
.tier-now.live, .tier-now.pct { background: var(--money-soft); color: var(--money); }
.tr { padding: 10px 14px 30px; }
.tr-bar { height: 10px; border-radius: 99px; background: #f1eee8; overflow: hidden; }
.tr-bar span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #34c38f, var(--money)); transition: width 1.3s var(--ease) .15s; }
.tr-nodes { position: relative; height: 0; }
.tr-n { position: absolute; top: -20px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tr-n i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; background: #fff; border: 2px solid #e6e1d8; color: var(--soft); transition: all .4s var(--ease); }
.tr-n b { font-size: 11.5px; font-weight: 800; color: var(--faint); }
.tr-n.on i { background: var(--money); border-color: var(--money); color: #fff; box-shadow: 0 6px 14px -6px var(--money); }
.tr-n.on b { color: var(--money); }

.board { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.lb { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; animation: rise .5s var(--ease) both; }
.lb + .lb { border-top: 1px solid #f4f1ec; }
.lb.me { background: linear-gradient(90deg, #eef3ff, #f5f1ff); border-top-color: transparent; box-shadow: inset 0 0 0 1.5px #c9d8fb; }
.lb.me + .lb { border-top-color: transparent; }
.lb-r { width: 26px; text-align: center; font-size: 15px; font-weight: 800; color: var(--faint); flex: none; }
.lb-main { flex: 1; min-width: 0; }
.lb-main strong { display: block; font-size: 14px; }
.lb.me .lb-main strong { color: #2563eb; }
.lb-main span { display: block; font-size: 11.5px; font-weight: 600; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-v { flex: none; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
#reach-board .ch-head { align-items: flex-start; }
@media (max-width: 420px) { #board-seg { width: 100%; } #board-seg button { flex: 1; } }

.team { background: linear-gradient(160deg, #fff 0%, #f1fbf6 100%) !important; }
.team-line { font-size: 13px; font-weight: 600; color: var(--soft); margin: -4px 0 4px; }
.tm-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 6px; }
.tm-kpis div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; text-align: center; }
.tm-kpis strong { display: block; font-size: 20px; font-weight: 800; }
.tm-kpis span { font-size: 11px; color: var(--soft); font-weight: 700; }

.t-link { width: 100%; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.7); font: inherit; font-size: 14px; font-weight: 700; color: var(--soft); padding: 14px 16px; border-radius: 18px; cursor: pointer; margin-bottom: 14px; }
.t-link i { margin-left: auto; font-style: normal; font-size: 18px; color: var(--faint); }
.t-link:active { transform: scale(.98); }

.page { animation: rise .45s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* earnings leaderboard (home) */
.eb-chip { font-size: 11px; font-weight: 700; color: var(--money); background: var(--money-soft); padding: 5px 10px; border-radius: 99px; white-space: nowrap; }
.eb-grid { display: grid; grid-auto-flow: row; gap: 6px; margin-top: 14px; }
@media (min-width: 720px) { .eb-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(10, auto); grid-auto-flow: column; column-gap: 14px; } }
.eb { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; background: #faf8f4; animation: rise .45s var(--ease) both; }
.eb.top { background: linear-gradient(90deg, #fff7e0, #fffdf6); }
.eb.me { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.eb-r { width: 24px; text-align: center; font-size: 14px; font-weight: 800; color: var(--faint); flex: none; }
.eb strong { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eb.me strong { color: var(--accent); }
.eb-v { flex: none; font-size: 14px; font-weight: 800; color: var(--money); font-variant-numeric: tabular-nums; }

/* ── Class Pass (classpass.js) ── */
.home-class { width: 100%; display: flex; align-items: center; gap: 12px; margin: 10px 0 14px; padding: 14px 16px; border: 1px solid #e3defd; border-radius: 20px; background: linear-gradient(120deg, #fff 0%, #f1efff 100%); box-shadow: var(--shadow); font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.home-class div { flex: 1; min-width: 0; }
.home-class strong { display: block; font-size: 14.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-class span:not(.hc-ic) { font-size: 12px; font-weight: 700; color: var(--soft); }
.home-class i { font-style: normal; font-size: 20px; color: var(--accent); }
.hc-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; font-size: 20px; border-radius: 14px; background: var(--accent); box-shadow: 0 8px 18px -8px var(--accent); }
.home-class:active { transform: scale(.98); }

.cp-hero { position: relative; overflow: hidden; color: #fff; border-radius: 26px; padding: 20px; margin-bottom: 14px;
    background: radial-gradient(380px 220px at 100% 0%, rgba(255, 196, 140, .45), transparent 65%), linear-gradient(145deg, #6d5dfc, #4b3fd1 60%, #2e2a7a);
    box-shadow: 0 22px 44px -22px rgba(77, 63, 209, .7); }
.cp-hero.paid { background: radial-gradient(380px 220px at 100% 0%, rgba(124, 255, 196, .35), transparent 65%), linear-gradient(145deg, #0e7a57, #0b5e44 55%, #133b3a); }
.cp-hl { font-size: 12.5px; font-weight: 800; opacity: .85; }
.cp-ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 10px; }
.cp-step { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 16px; padding: 10px; text-align: center; animation: popin .5s var(--ease) both; }
.cp-step:nth-child(2) { animation-delay: .06s; } .cp-step:nth-child(3) { animation-delay: .12s; background: rgba(255,255,255,.22); }
.cp-step b { display: block; font-size: 12px; opacity: .85; }
.cp-step strong { display: block; font-size: clamp(20px, 6vw, 26px); font-weight: 800; letter-spacing: -.03em; margin: 2px 0; }
.cp-step span { font-size: 11px; font-weight: 800; background: rgba(255,255,255,.2); padding: 2px 7px; border-radius: 99px; }
.cp-hn { font-size: 12.5px; font-weight: 600; opacity: .85; }
.cp-pk { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; margin: 12px 0 8px; }
.cp-pk div { background: rgba(255,255,255,.12); border-radius: 14px; padding: 10px; }
.cp-pk strong { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.cp-pk span { font-size: 11px; font-weight: 700; opacity: .8; }
.cp-plan { display: flex; margin-top: 10px; width: 100%; }
.cp-plan button { flex: 1; }

.cp-head .cp-ht { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cp-head h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-head .cp-ht > div:first-child { min-width: 0; }
.cp-clock { flex: none; text-align: right; background: var(--accent-soft); color: var(--accent); padding: 8px 12px; border-radius: 14px; }
.cp-clock b { display: block; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cp-clock span { font-size: 10.5px; font-weight: 700; opacity: .8; }
.cp-clock.over { background: #ffeceb; color: #d63b2f; }
.cp-ext { margin-top: 12px; width: 100%; border: 1.5px dashed #cfc8ff; background: #faf9ff; color: var(--accent); font: inherit; font-size: 14px; font-weight: 800; padding: 11px; border-radius: 14px; cursor: pointer; }
.cp-ext small { font-weight: 700; opacity: .7; }
.cp-ext.hot { border-style: solid; background: var(--accent); color: #fff; border-color: var(--accent); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(109, 93, 252, .18); } }

.cp-meter { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 18px 14px; margin-bottom: 14px; }
.cp-mt { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.cp-n strong { font-size: clamp(48px, 14vw, 64px); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.cp-n span { margin-left: 6px; font-size: 14px; font-weight: 700; color: var(--soft); }
.cp-earn { text-align: right; background: var(--money-soft); border-radius: 16px; padding: 8px 12px; }
.cp-earn span { display: block; font-size: 11px; font-weight: 800; color: var(--money); opacity: .8; }
.cp-earn strong { font-size: 22px; font-weight: 800; color: var(--money); font-variant-numeric: tabular-nums; }
.cp-track { position: relative; height: 10px; border-radius: 99px; background: #f1eee8; margin: 22px 8px 40px; }
.cp-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, #8b7dff, var(--accent)); transition: width .5s var(--ease); }
.cp-node { position: absolute; top: 50%; transform: translate(-50%, -50%); text-align: center; }
.cp-node i { display: block; width: 18px; height: 18px; margin: 0 auto; border-radius: 50%; background: #fff; border: 3px solid #e2ddd4; transition: all .3s var(--ease); }
.cp-node.on i { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.cp-node b, .cp-node small { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; font-weight: 800; }
.cp-node b { top: -20px; font-size: 11px; color: var(--faint); }
.cp-node small { top: 22px; font-size: 12px; color: var(--soft); }
.cp-node.on b, .cp-node.on small { color: var(--accent); }
.cp-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cp-kpis div { background: #f7f5f1; border-radius: 14px; padding: 10px 12px; }
.cp-kpis span { display: block; font-size: 11px; font-weight: 700; color: var(--soft); }
.cp-kpis strong { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cp-next { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--soft); text-align: center; }
.cp-next b { color: var(--up); }

.cp-tah { display: flex; justify-content: space-between; align-items: center; }
.cp-save { font-size: 11.5px; font-weight: 700; color: var(--money); }
.cp-ta { width: 100%; margin-top: 10px; border: 1.5px solid var(--line); background: #fffdf8; border-radius: 16px; padding: 12px 14px; font: 500 14px/1.6 ui-monospace, Menlo, monospace; color: var(--ink); resize: vertical; min-height: 190px; outline: none; }
.cp-ta:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.cp-ta:disabled { opacity: .55; }
.cp-bad { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cp-bad:empty { display: none; }
.cp-x { font-size: 12px; font-weight: 700; color: #d63b2f; background: #ffeceb; padding: 4px 9px; border-radius: 99px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; animation: popin .4s var(--ease) both; }
.cp-x i { font-style: normal; opacity: .7; }
.cp-x.dup { color: var(--soft); background: #f2f0ec; }

.cp-bar { position: sticky; z-index: 4; bottom: calc(88px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 22px; background: var(--ink); color: #fff; box-shadow: 0 18px 36px -16px rgba(27,31,42,.7); }
.cp-bar div { flex: 1; min-width: 0; }
.cp-bar span { display: block; font-size: 11.5px; font-weight: 700; opacity: .7; }
.cp-bar strong { font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cp-bar button { border: 0; font: inherit; font-size: 16px; font-weight: 800; padding: 14px 26px; border-radius: 16px; background: linear-gradient(135deg, #8b7dff, var(--accent)); color: #fff; cursor: pointer; transition: transform .15s; }
.cp-bar button:active { transform: scale(.96); }
.cp-bar button:disabled { background: rgba(255,255,255,.14); color: rgba(255,255,255,.5); cursor: default; }
@media (min-width: 900px) { .cp-bar { bottom: 16px; } }

.cp-seats { display: flex; flex-direction: column; margin-top: 6px; }
.cp-seat { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 2px; border-bottom: 1px solid #f4f1ec; }
.cp-seat:last-child { border-bottom: 0; }
.cp-seat div { min-width: 0; }
.cp-seat strong { display: block; font-size: 14px; }
.cp-seat span { display: block; font-size: 12px; color: var(--faint); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-chip { flex: none; font-style: normal; font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 99px; background: #f2f0ec; color: var(--soft); }
.cp-chip.ok { background: var(--money-soft); color: var(--money); }
.cp-chip.wait { background: #fff6e0; color: #9a6b00; }
.cp-row { width: 100%; border: 0; border-bottom: 1px solid #f4f1ec; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.cp-row:disabled { cursor: default; opacity: .7; }
.cp-done { text-align: center; padding: 34px 18px !important; }
.cp-done .t-badge { margin: 0 auto 10px; }
.cp-done p { color: var(--soft); font-size: 13.5px; font-weight: 600; }
@media (max-width: 380px) { .t-item { font-size: 10px; } .t-item span { font-size: 17px; } }

/* tier badge (amb_tiers.js) */
.tier { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.tier.hidden { display: none; }
.tier-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 800; letter-spacing: .01em; border: 1px solid transparent; }
.tier-chip.member { background: #eef2ff; color: #4338ca; border-color: #e0e7ff; }
.tier-chip.silver { background: linear-gradient(120deg, #f1f5f9, #e2e8f0); color: #334155; border-color: #cbd5e1; }
.tier-chip.gold { background: linear-gradient(120deg, #fef3c7, #fde68a); color: #92400e; border-color: #fcd34d; }
.tier-chip.lead { background: linear-gradient(120deg, #4f46e5, #a855f7); color: #fff; box-shadow: 0 6px 16px -8px rgba(124, 58, 237, .8); }
.tier-next { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted, #8a8f98); }
.tier-next i { width: 54px; height: 5px; border-radius: 99px; background: #e5e7eb; position: relative; overflow: hidden; }
.tier-next i::after { content: ""; position: absolute; inset: 0; width: var(--p, 0%); border-radius: inherit; background: linear-gradient(90deg, #6366f1, #a855f7); }
.tier-next b { color: var(--ink, #111); }

/* ── Free PDFs (pdfs.js) ── */
.hidden[data-pdfs] { display: none !important; }
.pdf-home { position: relative; overflow: hidden; background: linear-gradient(160deg, #fff 0%, #fff7f0 100%) !important; }
.pdf-home .m-top { align-items: flex-start; }
.pdf-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 18px; margin: 14px -18px 0; padding: 4px 18px 6px; scrollbar-width: none; }
.pdf-strip::-webkit-scrollbar { display: none; }
.pdf-mini { flex: none; width: 112px; scroll-snap-align: start; border: 0; background: none; padding: 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer; animation: rise .5s var(--ease) both; }
.pdf-mini .pdf-cv { width: 112px; transition: transform .3s var(--ease); }
.pdf-mini:active .pdf-cv { transform: scale(.95) rotate(-1deg); }
.pdf-mini > strong { display: block; margin-top: 8px; font-size: 13px; font-weight: 800; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pdf-mini > span { font-size: 11.5px; font-weight: 700; color: var(--faint); }
.pdf-count { position: absolute; right: 18px; bottom: 14px; font-size: 11px; font-weight: 800; color: var(--up); background: #fff1e6; padding: 3px 8px; border-radius: 99px; display: none; }

/* cover = a little book: gradient, typeset title, spine, sheen */
.pdf-cv {
    position: relative; flex: none; aspect-ratio: 3 / 4; border-radius: 6px 12px 12px 6px; overflow: hidden;
    background: radial-gradient(120% 80% at 100% 0%, rgba(255,255,255,.35), transparent 55%), linear-gradient(155deg, var(--ca), var(--cb));
    box-shadow: inset 5px 0 0 rgba(0,0,0,.14), inset 7px 0 0 rgba(255,255,255,.18), 0 12px 22px -12px var(--cb), 0 2px 4px rgba(27,31,42,.12);
    color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 12px 10px 10px 16px;
}
.pdf-cv img { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pdf-cv::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.22) 50%, transparent 60%); transform: translateX(-100%); animation: sheen 5s ease-in-out infinite; pointer-events: none; z-index: 2; }
.pdf-cv-t { position: relative; z-index: 1; font-size: 15px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; text-shadow: 0 1px 8px rgba(0,0,0,.15); }
.pdf-cv-b { position: relative; z-index: 1; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 7px; background: rgba(255,255,255,.22); font-size: 13px; font-weight: 800; }
.pdf-cv-tag { position: absolute; z-index: 3; bottom: 9px; right: 8px; font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: .06em; background: rgba(255,255,255,.92); color: var(--cb); padding: 2px 6px; border-radius: 6px; }

/* page */
.pdf-tip { display: flex; gap: 10px; align-items: flex-start; background: var(--ink); color: #fff; border-radius: 18px; padding: 13px 15px; margin-bottom: 14px; box-shadow: 0 14px 28px -16px rgba(27,31,42,.7); }
.pdf-tip span { font-size: 18px; line-height: 1.2; }
.pdf-tip p { font-size: 13.5px; font-weight: 600; line-height: 1.45; opacity: .9; }
.pdf-tip b { font-weight: 800; color: #ffd8a8; }
.pdf-list { display: grid; gap: 14px; }
.pdf-years { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 14px; padding: 2px 16px; scrollbar-width: none; }
.pdf-years::-webkit-scrollbar { display: none; }
.pdf-yr { flex: none; border: 1.5px solid var(--line); background: var(--card); color: var(--soft); font: inherit; font-size: 13px; font-weight: 800; padding: 7px 14px; border-radius: 99px; cursor: pointer; transition: all .2s var(--ease); }
.pdf-yr.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pdf-group { grid-column: 1 / -1; margin: 8px 2px -4px; font-size: 13px; font-weight: 800; color: var(--soft); letter-spacing: .01em; }
.pdf-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pdf-tags .pdf-size { margin-top: 0; }
@media (min-width: 720px) { .pdf-list { grid-template-columns: 1fr 1fr; } }
.wrap .pdf-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; transition: box-shadow .4s; }
.pdf-card.flash { box-shadow: 0 0 0 3px var(--accent), var(--shadow); }
.pdf-top { display: flex; gap: 14px; align-items: flex-start; }
.pdf-top .pdf-cv { width: 92px; }
.pdf-top .pdf-cv-t { font-size: 13px; }
.pdf-meta { min-width: 0; flex: 1; padding-top: 2px; }
.pdf-meta h3 { font-size: 18px !important; line-height: 1.2; }
.pdf-meta p { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--soft); line-height: 1.4; }
.pdf-size { display: inline-block; margin-top: 10px; font-size: 11.5px; font-weight: 800; color: var(--soft); background: #f4f1ec; padding: 4px 9px; border-radius: 99px; }

.pdf-send {
    position: relative; overflow: hidden; width: 100%; margin-top: 14px; border: 0; border-radius: 16px; padding: 0; height: 54px;
    background: #25d366; color: #fff; font: inherit; cursor: pointer; box-shadow: 0 12px 22px -12px #128c4a; transition: transform .2s var(--ease);
}
.pdf-send:active { transform: scale(.97); }
.pdf-send[data-state="loading"] { background: #128c4a; cursor: progress; }
.pdf-send[data-state="ready"] { animation: pulse-wa 1.4s ease-in-out infinite; }
@keyframes pulse-wa { 50% { box-shadow: 0 0 0 6px rgba(37, 211, 102, .25); } }
.pdf-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: #25d366; transition: width .2s linear; }
.pdf-send:not([data-state="loading"]) .pdf-fill { opacity: 0; }
.pdf-lbl { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; height: 100%; font-size: 16px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.pdf-lbl svg { width: 22px; height: 22px; }
.pdf-spin { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
.pdf-row { display: flex; gap: 8px; margin-top: 8px; }
.pdf-link { flex: 1; border: 0; border-radius: 14px; padding: 13px; font: inherit; font-size: 14.5px; font-weight: 800; color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; }
.pdf-copy { flex: none; border: 0; border-radius: 14px; padding: 0 16px; font: inherit; font-size: 13px; font-weight: 800; color: var(--soft); background: #f4f1ec; cursor: pointer; }
.pdf-link:active, .pdf-copy:active { transform: scale(.96); }

.line-note { margin-top: 14px; font-size: 12.5px; line-height: 1.45; color: var(--soft); background: var(--accent-soft); border-radius: 12px; padding: 10px 12px; text-align: left; }
