/* Kingdom Mandate Classroom — OTPM royal blue + gold */
:root {
    --navy: #050e5c;
    --royal-900: #0a1a8a;
    --royal-700: #1030d6;
    --royal-500: #2f5bff;
    --royal-100: #e4eaff;
    --gold: #e9b43a;
    --gold-light: #ffd977;
    --gold-dark: #b9831a;
    --gold-grad: linear-gradient(180deg, #ffe08a 0%, #e9b43a 48%, #b9831a 100%);
    --ink: #0b1238;
    --muted: #5b648f;
    --line: #dde3fb;
    --white: #fff;
    --ok: #0f8a4b;
    --err: #c3203f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Montserrat', system-ui, sans-serif;
    color: var(--white);
    background: var(--navy);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed; inset: 0; z-index: -2;
    background:
        radial-gradient(900px 620px at 85% 5%, rgba(47, 91, 255, .75) 0%, transparent 60%),
        radial-gradient(700px 520px at 0% 100%, rgba(16, 48, 214, .6) 0%, transparent 60%),
        linear-gradient(160deg, #1030d6 0%, #0a1a8a 48%, #050e5c 100%);
}
body::after { /* soft light streaks like the flyer */
    content: '';
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 2px, transparent 2px 140px),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: auto, 44px 44px;
}

a { color: inherit; }

/* ---------- Brand bits ---------- */
.otpm-mark {
    display: inline-flex; align-items: center; gap: 12px;
    text-decoration: none;
}
.otpm-mark .crest {
    width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 35% 30%, #ffe8a3, #c48d1f 70%);
    color: var(--navy); font-size: 19px;
    box-shadow: 0 0 0 3px rgba(233,180,58,.25), 0 8px 20px rgba(0,0,0,.3);
    flex-shrink: 0;
}
.otpm-mark .txt { line-height: 1.15; }
.otpm-mark .txt small { display: block; font-size: 9.5px; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,.7); font-weight: 600; }
.otpm-mark .txt strong { display: block; font-family: 'Cinzel', serif; font-size: 15px; letter-spacing: 1px; font-weight: 700; }

.kmc-title { line-height: .92; }
.kmc-title .km {
    display: block;
    font-family: 'Oswald', sans-serif; font-weight: 600;
    font-size: clamp(46px, 7vw, 92px);
    letter-spacing: .01em; text-transform: uppercase;
    color: #fff;
    text-shadow: 0 6px 30px rgba(0,0,0,.25);
}
.kmc-title .cr {
    display: block; margin-top: 6px;
    font-family: 'Cinzel', serif; font-weight: 700;
    font-size: clamp(34px, 5.2vw, 66px);
    letter-spacing: .02em;
    background: var(--gold-grad);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    filter: drop-shadow(0 3px 10px rgba(0,0,0,.25));
}

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 11px; letter-spacing: 3.5px; text-transform: uppercase; font-weight: 700;
    color: var(--gold-light);
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--gold); }

.lede { font-size: 16.5px; line-height: 1.75; color: rgba(255,255,255,.82); max-width: 520px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    padding: 8px 14px; border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    font-size: 12.5px; font-weight: 600; color: #fff;
    display: inline-flex; align-items: center; gap: 8px;
}
.chip i { color: var(--gold); font-size: 11px; }

/* ---------- Two-column auth layout (register / sign in) ---------- */
.auth {
    max-width: 1180px; margin: 0 auto;
    min-height: 100vh;
    padding: 36px 24px 48px;
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
}
.auth-top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; align-self: start; }
.auth-top .bloomx { height: 30px; opacity: .85; }
.auth-intro { display: flex; flex-direction: column; gap: 26px; }

.flyer-peek {
    display: flex; align-items: center; gap: 16px;
    padding: 14px; border-radius: 18px;
    background: rgba(5,14,92,.45); border: 1px solid rgba(255,255,255,.14);
    max-width: 440px;
}
.flyer-peek img { width: 74px; height: 88px; object-fit: cover; object-position: top; border-radius: 10px; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.flyer-peek p { font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.55; }
.flyer-peek b { color: #fff; display: block; font-size: 14px; margin-bottom: 2px; }

/* ---------- White form card ---------- */
.card {
    background: #fff; color: var(--ink);
    border-radius: 24px;
    padding: 36px 34px 30px;
    box-shadow: 0 30px 80px rgba(2, 6, 60, .55);
    position: relative; overflow: hidden;
}
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--gold-grad); }
.card h2 { font-family: 'Oswald', sans-serif; font-size: 28px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: var(--royal-900); }
.card .sub { font-size: 14px; color: var(--muted); margin: 6px 0 24px; line-height: 1.55; }

.grid-2 { display: grid; grid-template-columns: 130px 1fr; gap: 14px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--royal-900); margin-bottom: 7px; }
.field label em { font-style: normal; color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: 0; }
.input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--line);
    background: #f6f8ff;
    color: var(--ink);
    font: inherit; font-size: 15.5px; font-weight: 600;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.input::placeholder { color: #9aa2c6; font-weight: 500; }
.input:focus { outline: none; border-color: var(--royal-700); background: #fff; box-shadow: 0 0 0 4px rgba(16,48,214,.12); }
.input-at { position: relative; }
.input-at span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--royal-700); font-weight: 800; }
.input-at .input { padding-left: 34px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
    width: 100%;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px 22px; border: 0; border-radius: 999px;
    background: var(--royal-700); color: #fff;
    font: inherit; font-size: 14.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    cursor: pointer; text-decoration: none;
    box-shadow: 0 12px 28px rgba(16,48,214,.35);
    transition: transform .2s, background .2s, box-shadow .2s;
}
.btn:hover { background: var(--royal-900); transform: translateY(-2px); }
.btn i { transition: transform .2s; }
.btn:hover i { transform: translateX(3px); }
.btn.gold { background: var(--gold-grad); color: var(--navy); box-shadow: 0 12px 28px rgba(233,180,58,.35); }
.btn.gold:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; color: var(--royal-700); border: 1.5px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--royal-700); background: #f6f8ff; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

.switch { text-align: center; font-size: 14px; color: var(--muted); margin-top: 18px; }
.switch a { color: var(--royal-700); font-weight: 700; text-decoration: none; }
.switch a:hover { text-decoration: underline; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: 14px; line-height: 1.55; margin-bottom: 18px; font-weight: 500; }
.alert i { margin-top: 3px; }
.alert.err { background: #fdecef; color: #8f1630; border: 1px solid #f5c2cc; }
.alert.ok { background: #e7f8ef; color: #0b6b3a; border: 1px solid #b5e8cc; }
.alert.wait { background: #fff7e2; color: #7a5310; border: 1px solid #f3dc9d; }

/* Success / status panel inside the card */
.done { text-align: center; padding: 8px 0 4px; }
.done .ring {
    width: 78px; height: 78px; margin: 0 auto 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #fff7e2; color: var(--gold-dark); font-size: 30px;
    box-shadow: 0 0 0 8px #fffbef;
}
.done h2 { margin-bottom: 8px; }
.done p { color: var(--muted); font-size: 14.5px; line-height: 1.65; margin-bottom: 14px; }
.steps { text-align: left; list-style: none; margin: 18px 0 22px; display: grid; gap: 10px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink); line-height: 1.5; }
.steps li b { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--royal-100); color: var(--royal-700); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.steps li.on b { background: var(--ok); color: #fff; }

.kc-follow {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin-top: 18px; padding: 12px; border-radius: 12px;
    background: #f6f8ff; border: 1px dashed var(--line);
    font-size: 13px; color: var(--muted); font-weight: 600;
}
.kc-follow strong { color: var(--royal-700); }

/* ---------- Classroom ---------- */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(5, 14, 92, .78);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.topbar-in { max-width: 1240px; margin: 0 auto; padding: 12px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.who { display: flex; align-items: center; gap: 12px; }
.who .name { font-size: 13px; font-weight: 700; text-align: right; line-height: 1.3; }
.who .name small { display: block; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.6); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-grad); color: var(--navy); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.out { padding: 8px 14px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.4); text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; display: inline-flex; gap: 6px; align-items: center; transition: all .2s; }
.out:hover { background: #fff; color: var(--royal-900); }

.room { max-width: 1240px; margin: 0 auto; padding: 34px 24px 60px; }
.room-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 26px; flex-wrap: wrap; }
.room-head .kmc-title .km { font-size: clamp(34px, 5vw, 60px); }
.room-head .kmc-title .cr { font-size: clamp(26px, 3.6vw, 42px); }
.welcome { font-size: 15px; color: rgba(255,255,255,.8); margin-top: 12px; }
.welcome b { color: var(--gold-light); }

.stage {
    border-radius: 22px; overflow: hidden;
    background: #000;
    box-shadow: 0 30px 80px rgba(2,6,60,.6), 0 0 0 1px rgba(255,255,255,.1);
    position: relative;
}
.stage::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gold-grad); z-index: 3; }
.stage-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; background: rgba(5,14,92,.95); flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.tag.play { background: rgba(233,180,58,.15); border: 1px solid rgba(233,180,58,.45); color: var(--gold-light); }
.tag.soon { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); color: #fff; }
.stage-bar .meta { font-size: 12px; color: rgba(255,255,255,.6); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; display: inline-flex; gap: 8px; align-items: center; }
.player { aspect-ratio: 16 / 9; width: 100%; position: relative; background: #000; }
.player video { width: 100%; height: 100%; display: block; background: #000; }

.wait-screen {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px;
    background: radial-gradient(600px 320px at 50% 0%, rgba(47,91,255,.55), transparent 70%), var(--navy);
}
.wait-screen h3 { font-family: 'Oswald', sans-serif; font-weight: 500; font-size: clamp(18px, 3vw, 30px); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 16px; max-width: 600px; }
.wait-screen p { color: rgba(255,255,255,.65); font-size: 13.5px; margin-top: 14px; }
.count { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.count div { min-width: 72px; padding: 10px 8px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); }
.count b { display: block; font-family: 'Oswald', sans-serif; font-size: clamp(24px, 4vw, 36px); font-weight: 600; color: var(--gold-light); line-height: 1.1; }
.count span { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 700; }

.resume { position: absolute; left: 50%; bottom: 70px; transform: translateX(-50%); z-index: 4; display: none; gap: 8px; align-items: center; background: rgba(5,14,92,.92); border: 1px solid rgba(233,180,58,.5); color: #fff; font: inherit; font-size: 13px; font-weight: 700; padding: 10px 16px; border-radius: 999px; cursor: pointer; }

.row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; margin-top: 26px; }
.panel { background: rgba(5,14,92,.5); border: 1px solid rgba(255,255,255,.13); border-radius: 20px; padding: 26px; }
.panel h3 { font-family: 'Oswald', sans-serif; font-weight: 500; font-size: 20px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px; }
.panel .panel-sub { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 18px; }
.inits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.init { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.init .n { width: 34px; height: 34px; border-radius: 10px; background: var(--gold-grad); color: var(--navy); display: flex; align-items: center; justify-content: center; font-family: 'Oswald', sans-serif; font-weight: 700; flex-shrink: 0; }
.init b { display: block; font-size: 13.5px; line-height: 1.3; }
.init small { font-size: 11.5px; color: rgba(255,255,255,.55); }

.facts { display: grid; gap: 10px; }
.fact { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); min-width: 0; }
.fact i { width: 34px; height: 34px; border-radius: 10px; background: rgba(233,180,58,.13); border: 1px solid rgba(233,180,58,.3); color: var(--gold-light); display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.fact span { display: block; font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 700; }
.fact b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fact > div { min-width: 0; }
.progress { margin-top: 16px; }
.progress .bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.progress .bar i { display: block; height: 100%; width: 0; background: var(--gold-grad); border-radius: 999px; transition: width .6s; }
.progress .lbl { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.65); margin-bottom: 8px; font-weight: 600; }

.foot { text-align: center; padding: 30px 20px 40px; font-size: 12.5px; color: rgba(255,255,255,.5); }
.foot a { color: rgba(255,255,255,.75); text-decoration: none; }
.foot img { height: 26px; opacity: .6; display: block; margin: 0 auto 10px; }
.foot > a:first-child { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .auth { grid-template-columns: 1fr; gap: 30px; padding-top: 24px; }
    .auth-intro { text-align: center; align-items: center; }
    .eyebrow::before { display: none; }
    .chips { justify-content: center; }
    .lede { margin: 0 auto; }
    .row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .card { padding: 30px 20px 24px; border-radius: 20px; }
    .grid-2 { grid-template-columns: 1fr; gap: 0; }
    .auth-top .bloomx { height: 24px; }
    .otpm-mark .txt strong { font-size: 13px; }
    .who .name { display: none; }
    .out span { display: none; }
    .room { padding: 24px 14px 40px; }
    .stage { border-radius: 16px; }
    .inits { grid-template-columns: 1fr; }
    .panel { padding: 22px 16px; }
    .count div { min-width: 60px; }
    .flyer-peek { display: none; }
}
