/* Ozera AVN — invitation / registration page */

body.join { min-height: 100vh; min-height: 100dvh; overflow-x: hidden; background: var(--bg); }

/* ---------- Background ---------- */
.join-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.join-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.join-glow { position: absolute; border-radius: 50%; filter: blur(80px); }
.join-glow.g1 { width: 620px; height: 620px; left: -160px; top: -200px; background: rgba(34, 230, 106, .16); }
.join-glow.g2 { width: 520px; height: 520px; right: -140px; bottom: -220px; background: rgba(22, 179, 85, .12); }
.join-orbits { position: absolute; width: 900px; height: 900px; right: -260px; top: 50%; translate: 0 -50%; opacity: .55; animation: spin 90s linear infinite; }
.join-orbits circle { fill: none; stroke: rgba(34, 230, 106, .14); stroke-width: 1; }
.join-orbits circle:nth-child(2) { stroke-dasharray: 2 10; }
.join-orbits .dot { fill: var(--accent); stroke: none; filter: drop-shadow(0 0 6px var(--accent)); }
@keyframes spin { to { rotate: 360deg; } }

/* ---------- Top bar ---------- */
.join-top { display: flex; justify-content: space-between; align-items: center; max-width: 1180px; margin: 0 auto; padding: 22px 24px 0; }
.join-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.05rem; }
.join-brand img { filter: drop-shadow(0 0 12px rgba(34, 230, 106, .4)); }

/* ---------- Layout ---------- */
.join-wrap {
    max-width: 1180px; margin: 0 auto; padding: 40px 24px 64px;
    display: grid; gap: 28px 56px; align-items: start;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 440px);
    grid-template-areas: "head card" "feats card";
    grid-template-rows: auto 1fr;
}
.join-head { grid-area: head; padding-top: 18px; }
.join-card { grid-area: card; }
.join-feats { grid-area: feats; }

/* ---------- Hero ---------- */
.join-tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: .78rem; font-weight: 500; color: var(--accent); background: rgba(34, 230, 106, .08); border: 1px solid rgba(34, 230, 106, .28); }
.join-head h1 { margin: 20px 0 16px; font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.06; font-weight: 600; letter-spacing: -.03em; }
.grad { background: linear-gradient(100deg, #6dffa5, var(--accent) 45%, #0fae4e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.join-lead { max-width: 540px; font-size: 1.02rem; line-height: 1.65; color: #b4c0bb; }
.join-lead b { color: var(--text); font-weight: 600; }

.ticker { margin-top: 28px; max-width: 540px; padding: 18px 20px; border-radius: 18px; border: 1px solid rgba(34, 230, 106, .22); background: linear-gradient(135deg, rgba(34, 230, 106, .1), rgba(15, 22, 18, .6) 60%); }
.ticker-head { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted); }
.ticker-value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; }
.ticker-value b { font: 600 clamp(1.6rem, 3vw, 2.1rem) var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--accent); text-shadow: 0 0 24px rgba(34, 230, 106, .35); }
.ticker-value span { font-size: .8rem; color: var(--muted); }

/* ---------- Features ---------- */
.join-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-content: start; }
.join-feats article { position: relative; padding: 18px 18px 16px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(19, 32, 24, .85), rgba(15, 22, 18, .85)); transition: border-color .2s, transform .2s; }
.join-feats article:hover { border-color: rgba(34, 230, 106, .35); transform: translateY(-2px); }
.join-feats b { display: block; margin-top: 12px; font-size: 1rem; font-weight: 600; }
.join-feats small { display: block; margin-top: 4px; font-size: .8rem; line-height: 1.55; color: var(--muted); }
.f-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--accent); background: rgba(34, 230, 106, .1); border: 1px solid rgba(34, 230, 106, .2); }
.f-ic .icon { width: 18px; height: 18px; }

/* ---------- Join card ---------- */
.join-card {
    position: sticky; top: 24px; overflow: hidden;
    padding: 30px 28px 24px; border-radius: 26px; text-align: center;
    border: 1px solid rgba(34, 230, 106, .28);
    background: linear-gradient(180deg, rgba(19, 32, 24, .92), rgba(11, 17, 14, .96));
    box-shadow: 0 40px 100px -40px rgba(34, 230, 106, .35), inset 0 1px 0 rgba(255, 255, 255, .06);
    backdrop-filter: blur(10px);
}
.join-card-glow { position: absolute; left: 50%; top: -120px; width: 360px; height: 240px; translate: -50% 0; border-radius: 50%; background: rgba(34, 230, 106, .22); filter: blur(60px); pointer-events: none; }
.join-card > :not(.join-card-glow) { position: relative; }
.join-logo { width: 150px; height: auto; margin: -4px auto 6px; filter: drop-shadow(0 14px 36px rgba(34, 230, 106, .4)); }
.join-card h2 { font-size: 1.45rem; font-weight: 600; letter-spacing: -.01em; }
.join-card > p.muted { margin: 8px auto 20px; max-width: 330px; font-size: .88rem; line-height: 1.55; }

.invite { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 12px; border-radius: 16px; text-align: left; background: rgba(0, 0, 0, .28); border: 1px solid var(--line-2); }
.invite-avatar { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #04140a; background: conic-gradient(from 210deg, hsl(var(--h) 80% 60%), var(--accent), hsl(calc(var(--h) + 90) 70% 55%), hsl(var(--h) 80% 60%)); }
.invite-avatar .icon { width: 18px; height: 18px; }
.invite-who { flex: 1; min-width: 0; }
.invite small { display: block; font-size: .7rem; color: var(--muted); }
.invite-who b { font-weight: 600; font-size: .95rem; }

.join-note { display: flex; gap: 8px; margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; text-align: left; font-size: .78rem; line-height: 1.5; color: var(--muted); background: rgba(242, 184, 75, .07); border: 1px solid rgba(242, 184, 75, .25); }
.join-note .icon { flex: none; width: 14px; height: 14px; margin-top: 2px; color: var(--warn); }
.join-note b { color: var(--text); }

.join-cta { position: relative; overflow: hidden; font-weight: 600; }
.join-cta::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); translate: -120% 0; animation: shine 3.2s ease-in-out infinite; }
@keyframes shine { 0%, 55% { translate: -120% 0; } 100% { translate: 120% 0; } }

.code-form { display: flex; gap: 8px; }
.code-form input { flex: 1; min-width: 0; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .35); color: var(--text); font: 500 .85rem var(--font-body); text-align: center; text-overflow: ellipsis; }
.code-form input::placeholder { color: var(--muted-2); font-weight: 400; }
.code-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34, 230, 106, .14); }
.code-form.bad input { border-color: rgba(255, 107, 107, .5); }
.code-form .btn { padding-inline: 18px; }

/* Amount-first form */
.join-form { text-align: left; margin-bottom: 16px; }
.join-label { display: block; margin: 0 0 8px; font-size: .76rem; color: var(--muted); }
.plan-chips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-bottom: 16px; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 9px 4px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .25); transition: border-color .15s, background .15s; }
.chip b { font-size: .86rem; font-weight: 600; }
.chip em { font-style: normal; font-size: .72rem; color: var(--accent); }
.chip:hover span { border-color: rgba(34, 230, 106, .4); }
.chip input:checked + span { border-color: var(--accent); background: rgba(34, 230, 106, .12); box-shadow: 0 0 0 1px var(--accent) inset; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.join-amount { display: flex; align-items: center; gap: 10px; padding: 4px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .35); transition: border-color .15s, box-shadow .15s; }
.join-amount:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34, 230, 106, .14); }
.join-amount input { flex: 1; min-width: 0; padding: 10px 0; border: 0; background: none; color: var(--text); font: 600 1.6rem var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.join-amount input:focus { outline: none; }
.join-amount input::-webkit-inner-spin-button { -webkit-appearance: none; }
.join-amount span { font-weight: 600; font-size: .85rem; color: var(--accent); }
.join-quick { display: flex; gap: 6px; margin-top: 8px; }
.join-quick button { flex: 1; padding: 6px 0; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font: 500 .78rem var(--font-body); cursor: pointer; }
.join-quick button:hover { color: var(--text); border-color: rgba(34, 230, 106, .4); }
.join-est { margin-top: 10px; font-size: .8rem; color: var(--muted); }
.join-est b { color: var(--accent); font-weight: 600; }
.join-test { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 4px; font-size: .74rem; color: #c9a7ff; }
.join-test .icon { width: 13px; height: 13px; }
.auth-status .link { white-space: nowrap; }

/* Stepper */
.stepper { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.stepper::before { content: ''; position: absolute; top: 15px; left: 16.6%; right: 16.6%; height: 2px; background: linear-gradient(90deg, var(--accent), rgba(34, 230, 106, .15)); }
.stepper li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stepper b { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 6px; border-radius: 50%; font-size: .8rem; font-weight: 600; color: var(--accent); background: #0c1a12; border: 1.5px solid rgba(34, 230, 106, .5); }
.stepper li:first-child b, .stepper li[data-state="ok"] b { color: #04140a; background: var(--accent); border-color: var(--accent); box-shadow: 0 0 16px var(--accent-glow); }
.stepper li[data-state="run"] b { animation: pulse 1.2s ease-in-out infinite; border-color: var(--accent); }
.stepper li[data-state="bad"] b { color: #fff; background: var(--bad); border-color: var(--bad); box-shadow: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(34, 230, 106, .18); } }
.stepper strong { font-size: .84rem; font-weight: 600; }
.stepper small { font-size: .7rem; color: var(--muted); }

.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .72rem; color: var(--muted); }
.trust span { display: inline-flex; align-items: center; gap: 5px; }
.trust .icon { width: 13px; height: 13px; color: var(--accent); }
.join-card .auth-alt { margin-top: 14px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Entrance ---------- */
.join-head, .join-card, .join-feats { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.join-card { animation-delay: .08s; }
.join-feats { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .join-orbits, .join-cta::after, .join-head, .join-card, .join-feats { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .join-wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "card" "feats"; gap: 24px; padding-top: 24px; max-width: 620px; }
    .join-head { padding-top: 0; text-align: center; }
    .join-lead, .ticker { margin-left: auto; margin-right: auto; }
    .ticker-head, .ticker-value { justify-content: center; }
    .join-card { position: relative; top: 0; }
    .join-orbits { right: 50%; translate: 50% -30%; top: 0; width: 700px; height: 700px; opacity: .35; }
}
@media (max-width: 520px) {
    .join-top { padding: 16px 16px 0; }
    .join-wrap { padding: 20px 16px 48px; }
    .join-head h1 { font-size: 2rem; }
    .join-lead { font-size: .94rem; }
    .join-card { padding: 26px 18px 20px; border-radius: 22px; }
    .join-logo { width: 120px; }
    .join-feats { grid-template-columns: minmax(0, 1fr); }
    .plan-chips { gap: 4px; }
    .chip span { padding: 8px 2px; }
    .chip b { font-size: .8rem; }
}
