/* Sign-up page + in-app upgrade card: the "why upgrade" advertising. */
:root { --pr-1: var(--brand); --pr-2: #16895a; --pr-gold: #f5b82e; --pr-ink: #10223d; }

/* ---------- sign-up page ---------- */
.su-page { min-height: 100vh; background: radial-gradient(1200px 520px at 10% -10%, #dbe8ff 0%, transparent 60%), radial-gradient(900px 480px at 100% 10%, #d9f4e6 0%, transparent 55%), var(--bg); padding: 22px 16px 60px; }
.su-wrap { max-width: 1080px; margin: 0 auto; display: grid; gap: 22px; grid-template-columns: 1fr; grid-template-areas: "head" "form" "feat" "price"; align-items: start; }
@media (min-width: 900px) { .su-wrap { grid-template-columns: 1.25fr 1fr; grid-template-areas: "head form" "feat form" "price form"; column-gap: 36px; } .su-form { position: sticky; top: 22px; } }
.su-head { padding: 6px 2px; }
.su-badge { display: inline-flex; gap: 6px; align-items: center; background: #fff4d6; color: #7a5200; border: 1px solid #f1d28a; border-radius: 99px; padding: 5px 14px; font-weight: 700; font-size: .92em; }
.su-head h1 { font-size: clamp(1.7rem, 4.6vw, 2.5rem); line-height: 1.25; margin: 14px 0 10px; color: var(--pr-ink); }
.su-head h1 em { font-style: normal; background: linear-gradient(120deg, var(--pr-1), var(--pr-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.su-head p { font-size: 1.05em; color: var(--muted); margin: 0; max-width: 560px; }
.su-form { grid-area: form; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px 22px; box-shadow: var(--shadow-lg); text-align: left; border-top: 5px solid var(--pr-1); }
.su-form h2 { margin: 0 0 4px; font-size: 1.3em; color: var(--pr-ink); }
.su-form .su-sub { color: var(--muted); margin: 0 0 12px; font-size: .95em; }
.su-form label { display: block; margin: 12px 0 4px; font-weight: 600; }
.su-form input { width: 100%; }
.su-cta { width: 100%; margin-top: 18px; padding: 14px 18px; font-size: 1.08em; font-weight: 800; border: 0; border-radius: 14px; color: #fff; cursor: pointer; background: linear-gradient(135deg, var(--pr-1), var(--pr-2)); box-shadow: 0 10px 24px rgba(107, 99, 224, .32); transition: transform .12s, box-shadow .12s; font-family: inherit; }
.su-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(107, 99, 224, .4); }
.su-cta:disabled { opacity: .6; transform: none; }
.su-trust { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 12px; color: var(--muted); font-size: .88em; }
.su-feat { grid-area: feat; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.su-f { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; box-shadow: var(--shadow); }
.su-f .ic { font-size: 1.7em; line-height: 1; flex: none; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: var(--brand-soft); }
.su-f b { display: block; color: var(--pr-ink); }
.su-f span { color: var(--muted); font-size: .92em; }
.su-price { grid-area: price; }
.su-price h2 { margin: 4px 0 12px; color: var(--pr-ink); font-size: 1.35em; }

/* pricing cards (sign-up + in-app) */
.pc-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); align-items: stretch; }
.pc { position: relative; background: #fff; border: 2px solid var(--line); border-radius: 20px; padding: 20px 18px 18px; display: flex; flex-direction: column; text-align: center; box-shadow: var(--shadow); }
.pc.best { border-color: var(--pr-1); background: linear-gradient(180deg, #f3f8ff 0%, #fff 55%); box-shadow: 0 16px 40px rgba(107, 99, 224, .22); transform: translateY(-4px); }
.pc .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: linear-gradient(135deg, #ffb703, #fb8500); color: #3a2200; font-weight: 800; font-size: .85em; padding: 4px 14px; border-radius: 99px; box-shadow: 0 6px 14px rgba(251, 133, 0, .4); }
.pc .name { font-weight: 800; color: var(--pr-ink); font-size: 1.1em; }
.pc .price { font-size: 2.3em; font-weight: 900; line-height: 1.1; margin: 6px 0 0; color: var(--pr-1); }
.pc .price small { font-size: .38em; font-weight: 600; color: var(--muted); }
.pc .was { color: #b3261e; text-decoration: line-through; font-weight: 700; margin-right: 6px; font-size: .5em; }
.pc .per { color: var(--pr-2); font-weight: 700; font-size: .92em; min-height: 1.5em; }
.pc ul { list-style: none; padding: 0; margin: 12px 0 14px; text-align: left; flex: 1; }
.pc li { padding: 3px 0 3px 24px; position: relative; font-size: .93em; }
.pc li::before { content: '✔'; position: absolute; left: 2px; color: var(--pr-2); font-weight: 900; }
.pc li.no { color: #9aa7b6; } .pc li.no::before { content: '✕'; color: #c4ccd6; }
.pc .btn-pc { display: block; width: 100%; padding: 11px 12px; border-radius: 12px; font-weight: 800; border: 2px solid var(--pr-1); background: #fff; color: var(--pr-1); cursor: pointer; font-family: inherit; font-size: 1em; text-decoration: none; }
.pc.best .btn-pc { background: linear-gradient(135deg, var(--pr-1), var(--brand-dark)); color: #fff; border-color: transparent; box-shadow: 0 8px 20px rgba(107, 99, 224, .35); }
.pc .btn-pc:hover { filter: brightness(1.06); }

/* ---------- in-app upgrade card ---------- */
.up-card { border-radius: 22px; margin-bottom: 18px; overflow: hidden; background: linear-gradient(135deg, #0f2a5e 0%, #1d4fb8 55%, #168f6a 120%); color: #fff; box-shadow: 0 16px 40px rgba(15, 42, 94, .3); }
.up-top { padding: 20px 22px 8px; display: flex; gap: 14px; justify-content: space-between; flex-wrap: wrap; align-items: flex-start; }
.up-top h2 { margin: 0; font-size: 1.35em; color: #fff; }
.up-top p { margin: 4px 0 0; opacity: .9; }
.up-tag { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); border-radius: 99px; padding: 4px 12px; font-weight: 700; font-size: .88em; white-space: nowrap; }
.up-use { display: flex; gap: 8px; flex-wrap: wrap; padding: 6px 22px 4px; }
.up-use .u { background: rgba(255, 255, 255, .12); border-radius: 10px; padding: 4px 10px; font-size: .88em; }
.up-use .u.full { background: rgba(255, 183, 3, .25); border: 1px solid rgba(255, 183, 3, .6); }
.up-perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 6px 18px; padding: 10px 22px; font-size: .94em; }
.up-perks div::before { content: '✨ '; }
.up-plans { background: #fff; color: var(--ink); padding: 22px 18px 16px; border-radius: 22px 22px 0 0; }
.up-plans .pc-row { max-width: 560px; margin: 0 auto; }
.up-foot { background: #fff; color: var(--muted); padding: 0 18px 16px; text-align: center; font-size: .92em; }
.up-foot .code-row { max-width: 420px; margin: 8px auto 0; }
.up-foot .pay { background: var(--bad-soft); color: #7a2323; }
.up-dialog { background: #fff; color: var(--ink); border-top: 1px dashed var(--line); padding: 16px 18px; }

/* owner: unlock-request counter */
[data-tab="teachers"] { position: relative; }
.req-badge { background: #e11d2e; color: #fff; font-weight: 800; font-size: .72rem; line-height: 1; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px rgba(225, 29, 46, .22); animation: reqpulse 1.6s infinite; }
[data-tab="teachers"] .req-badge { position: absolute; top: 4px; right: 6px; }
.req-badge.inline { position: static; vertical-align: middle; }
@keyframes reqpulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(225, 29, 46, .22); } 50% { box-shadow: 0 0 0 7px rgba(225, 29, 46, 0); } }
.req-row.is-new { background: #fff5f5; border-left: 4px solid #e11d2e; }
.tg-link { font-weight: 800; color: #1c8adb; }

/* password eye (common.js adds it to every password box) */
.pw-wrap { position: relative; width: 100%; }
.pw-wrap .pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #285b55; font-size: 1.15em; cursor: pointer; line-height: 1; }
.pw-wrap .pw-eye:hover { background: rgba(107, 99, 224, .12); }
