/* ===== Gorkhey UBT Premium — रङ र डिजाइन ===== */
:root {
  --bg: #0a1020;
  --bg-2: #0f1830;
  --card: rgba(255, 255, 255, 0.045);
  --card-solid: #131d38;
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef2fb;
  --muted: #9aa6c3;
  --gold: #e3b450;
  --gold-2: #f6d98c;
  --red: #e5484d;
  --blue: #3e7bfa;
  --green: #2fbf71;
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --font: "Noto Sans KR", "Noto Sans Devanagari", system-ui, sans-serif;
}
:root[data-theme="light"] {
  --bg: #f4f6fb;
  --bg-2: #e9eef8;
  --card: #ffffff;
  --card-solid: #ffffff;
  --line: rgba(15, 25, 50, 0.1);
  --text: #121a2e;
  --muted: #5b6785;
  --gold: #b9861d;
  --gold-2: #d9a73c;
  --shadow: 0 18px 40px -22px rgba(20, 30, 60, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(62, 123, 250, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(227, 180, 80, 0.12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input { font: inherit; color: inherit; }
.hidden { display: none !important; }

/* ===== हेडर ===== */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--red), #b3262b 55%, var(--blue));
  font-weight: 900; font-size: 20px; color: #fff;
  box-shadow: 0 8px 22px -8px rgba(229, 72, 77, 0.7);
}
.brand-name { font-weight: 900; letter-spacing: 0.5px; font-size: 18px; }
.brand-sub { font-size: 12px; color: var(--muted); }
.top-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  height: 40px; min-width: 40px; padding: 0 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px;
}
.icon-btn:hover { border-color: var(--gold); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

/* ===== मुख्य पृष्ठ ===== */
.hero {
  margin: 34px 0 26px;
  padding: clamp(24px, 5vw, 48px);
  border-radius: 26px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(227, 180, 80, 0.16), rgba(62, 123, 250, 0.10) 60%, transparent),
    var(--card);
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.hero::after {
  content: "한"; position: absolute; right: -10px; bottom: -70px;
  font-size: 300px; font-weight: 900; opacity: 0.05; line-height: 1;
}
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: linear-gradient(90deg, var(--gold), var(--gold-2)); color: #2a1d00;
}
.hero h1 { font-size: clamp(28px, 5vw, 46px); line-height: 1.2; margin: 16px 0 10px; font-weight: 900; }
.hero h1 .gold { background: linear-gradient(90deg, var(--gold), var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); max-width: 620px; font-size: 16px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.stat {
  padding: 12px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--card);
  min-width: 120px;
}
.stat b { display: block; font-size: 22px; }
.stat span { font-size: 12px; color: var(--muted); }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 30px 0 14px; flex-wrap: wrap; }
.section-head h2 { font-size: 22px; font-weight: 900; }
.tabs { display: flex; gap: 6px; padding: 4px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.tab { padding: 8px 14px; border-radius: 10px; font-size: 14px; color: var(--muted); font-weight: 600; }
.tab.active { background: linear-gradient(90deg, var(--gold), var(--gold-2)); color: #2a1d00; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; padding-bottom: 60px; }
.set-card {
  text-align: left; padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--card);
  display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.set-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow); }
.set-card .num {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 900; font-size: 20px;
  background: linear-gradient(135deg, rgba(227,180,80,.25), rgba(62,123,250,.2));
  border: 1px solid var(--line);
}
.set-card h3 { font-size: 17px; }
.set-card .meta { font-size: 13px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.set-card .best { font-size: 13px; color: var(--green); font-weight: 700; }
.badge {
  position: absolute; top: 16px; right: 16px; font-size: 11px; font-weight: 800;
  padding: 4px 10px; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2)); color: #2a1d00;
}
.badge.soon { background: var(--line); color: var(--muted); }
.set-card.locked { opacity: .55; cursor: not-allowed; }
.set-card.locked:hover { transform: none; border-color: var(--line); box-shadow: none; }

/* ===== परीक्षा सुरु गर्ने पृष्ठ ===== */
.intro {
  max-width: 720px; margin: 40px auto; padding: clamp(22px, 4vw, 40px);
  border-radius: 24px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow);
}
.intro h2 { font-size: 26px; font-weight: 900; margin-bottom: 6px; }
.intro .sub { color: var(--muted); margin-bottom: 22px; }
.rule-list { list-style: none; display: grid; gap: 10px; margin: 18px 0 24px; }
.rule-list li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-size: 15px; }
.rule-list li b { color: var(--gold); }
.field label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg-2); outline: none; font-size: 16px;
}
.field input:focus { border-color: var(--gold); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 14px; font-weight: 800; font-size: 16px;
  transition: transform .15s, filter .15s;
}
.btn:active { transform: scale(.98); }
.btn-gold { background: linear-gradient(90deg, var(--gold), var(--gold-2)); color: #2a1d00; box-shadow: 0 12px 28px -12px rgba(227,180,80,.8); }
.btn-gold:hover { filter: brightness(1.06); }
.btn-ghost { border: 1px solid var(--line); background: var(--card); }
.btn-red { background: var(--red); color: #fff; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

/* ===== परीक्षा स्क्रिन (UBT शैली) ===== */
.exam { display: grid; grid-template-rows: auto 1fr auto; height: 100vh; }
.exam-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px clamp(12px, 3vw, 28px); border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.exam-title { font-weight: 800; font-size: 15px; }
.exam-title small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.timer {
  display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line); font-weight: 900; font-size: 20px;
  font-variant-numeric: tabular-nums;
}
.timer.warn { color: var(--red); border-color: var(--red); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .6; } }
.exam-tools { display: flex; gap: 6px; align-items: center; }

.exam-body { display: grid; grid-template-columns: 1fr 300px; min-height: 0; }
.q-pane { overflow-y: auto; padding: clamp(16px, 3vw, 36px); }
.q-section-tag {
  display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; margin-bottom: 14px;
}
.tag-read { background: rgba(62,123,250,.15); color: #7fa6ff; }
.tag-listen { background: rgba(229,72,77,.15); color: #ff8a8d; }
.q-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.q-no {
  flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 900; font-size: 20px; background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #2a1d00;
}
.q-prompt { font-size: calc(19px * var(--fs, 1)); font-weight: 700; padding-top: 8px; }
.q-visual {
  margin: 8px 0 20px; padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--card);
  font-size: calc(17px * var(--fs, 1));
}
.q-visual.emoji { font-size: 110px; text-align: center; line-height: 1.2; }
.q-visual .blank { display: inline-block; min-width: 70px; border-bottom: 2px solid var(--gold); text-align: center; }
.q-visual u { text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.q-visual table { width: 100%; border-collapse: collapse; }
.q-visual td { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.q-visual td:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

.audio-box {
  display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 18px; margin: 8px 0 20px;
  border: 1px solid var(--line); background: linear-gradient(135deg, rgba(229,72,77,.12), rgba(62,123,250,.08));
}
.play-btn {
  width: 62px; height: 62px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 24px;
  background: linear-gradient(135deg, var(--red), #b3262b); color: #fff; box-shadow: 0 12px 26px -10px rgba(229,72,77,.8);
}
.play-btn:disabled { opacity: .4; cursor: not-allowed; }
.play-btn.playing { animation: pulse 1s infinite; }
.audio-info b { display: block; }
.audio-info span { font-size: 13px; color: var(--muted); }

.options { display: grid; gap: 12px; }
.options.pics { grid-template-columns: repeat(2, 1fr); }
.opt {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 16px 18px; border-radius: 16px; border: 2px solid var(--line); background: var(--card);
  font-size: calc(17px * var(--fs, 1)); transition: border-color .15s, background .15s, transform .1s;
}
.opt:hover { border-color: color-mix(in srgb, var(--gold) 60%, transparent); }
.opt .mark {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--line); font-weight: 800; font-size: 17px;
}
.opt.sel { border-color: var(--gold); background: rgba(227,180,80,.12); }
.opt.sel .mark { background: var(--gold); border-color: var(--gold); color: #2a1d00; }
.opt.pic { flex-direction: column; justify-content: center; padding: 18px 10px; }
.opt.pic .emo { font-size: 64px; line-height: 1.1; }
.opt.pic .mark { position: absolute; top: 10px; left: 10px; width: 30px; height: 30px; font-size: 14px; }
.opt.pic { position: relative; }

/* प्रश्न नम्बर प्यानल */
.palette { border-left: 1px solid var(--line); background: var(--bg-2); overflow-y: auto; padding: 18px; }
.pal-group h4 { font-size: 13px; color: var(--muted); margin: 6px 0 10px; font-weight: 700; }
.pal-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 18px; }
.pal-btn {
  aspect-ratio: 1; border-radius: 10px; font-weight: 800; font-size: 14px;
  border: 1px solid var(--line); background: var(--card); position: relative;
}
.pal-btn.done { background: var(--blue); border-color: var(--blue); color: #fff; }
.pal-btn.cur { outline: 2px solid var(--gold); outline-offset: 2px; }
.pal-btn.flag::after { content: ""; position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.legend { display: grid; gap: 8px; font-size: 12px; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line); }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; border: 1px solid var(--line); background: var(--card); }
.legend i.d { background: var(--blue); border-color: var(--blue); }
.legend i.f { background: var(--red); border-radius: 50%; width: 10px; height: 10px; }
.progress-mini { margin-bottom: 16px; }
.progress-mini .bar { height: 8px; border-radius: 999px; background: var(--card); overflow: hidden; border: 1px solid var(--line); }
.progress-mini .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .3s; }
.progress-mini small { color: var(--muted); font-size: 12px; }

.exam-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 12px clamp(12px, 3vw, 28px); border-top: 1px solid var(--line); background: var(--bg-2);
}
.exam-foot .mid { display: flex; gap: 8px; }
.flag-btn.on { border-color: var(--red); color: var(--red); }
.pal-toggle { display: none; }

/* ===== मोडल ===== */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal { width: 100%; max-width: 440px; padding: 28px; border-radius: 22px; background: var(--card-solid); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.modal h3 { font-size: 22px; margin-bottom: 8px; }
.modal p { color: var(--muted); }
.modal .btn-row { justify-content: center; }

/* ===== नतिजा ===== */
.result-hero {
  margin: 34px 0 20px; padding: clamp(22px, 4vw, 40px); border-radius: 26px; border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(227,180,80,.14), rgba(62,123,250,.1)), var(--card);
  display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; box-shadow: var(--shadow);
}
.ring { width: 190px; height: 190px; position: relative; }
.ring svg { transform: rotate(-90deg); }
.ring .val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .val b { font-size: 46px; font-weight: 900; line-height: 1; display: block; }
.ring .val span { color: var(--muted); font-size: 14px; }
.result-hero h2 { font-size: 28px; font-weight: 900; }
.result-hero .msg { color: var(--muted); margin: 6px 0 18px; }
.score-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.score-cards .stat b { font-size: 24px; }

.review-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; }
.review-list { display: grid; gap: 14px; padding-bottom: 60px; }
.rv {
  padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--card);
  border-left: 5px solid var(--green);
}
.rv.wrong { border-left-color: var(--red); }
.rv.skip { border-left-color: var(--muted); }
.rv-top { display: flex; justify-content: space-between; gap: 10px; font-weight: 800; margin-bottom: 8px; }
.rv-top .st { font-size: 13px; padding: 3px 10px; border-radius: 999px; }
.st.ok { background: rgba(47,191,113,.15); color: var(--green); }
.st.no { background: rgba(229,72,77,.15); color: var(--red); }
.st.sk { background: var(--line); color: var(--muted); }
.rv-q { margin-bottom: 8px; }
.rv-ans { display: grid; gap: 4px; font-size: 15px; }
.rv-ans .c { color: var(--green); font-weight: 700; }
.rv-ans .y { color: var(--red); }
.rv-exp { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); font-size: 15px; }
.rv-exp b { color: var(--gold); }
.rv-script { margin-top: 8px; font-size: 14px; color: var(--muted); white-space: pre-line; }

.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 0 40px; border-top: 1px solid var(--line); }

/* ===== मोबाइल ===== */
@media (max-width: 860px) {
  .exam-body { grid-template-columns: 1fr; }
  .palette { position: fixed; inset: auto 0 0 0; max-height: 70vh; border-left: 0; border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; z-index: 50; transform: translateY(105%); transition: transform .25s; box-shadow: var(--shadow); }
  .palette.open { transform: none; }
  .pal-toggle { display: inline-flex; }
  .result-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .brand-sub { display: none; }
}
@media (max-width: 520px) {
  .q-visual.emoji { font-size: 84px; }
  .opt.pic .emo { font-size: 48px; }
  .timer { font-size: 17px; padding: 6px 12px; }
  .exam-foot .btn { padding: 12px 14px; font-size: 14px; }
}

/* ===== लगइन पृष्ठ (Luxury) ===== */
.auth { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.auth-art {
  position: relative; overflow: hidden; padding: clamp(28px, 4vw, 56px);
  background:
    radial-gradient(700px 500px at 20% 10%, rgba(227,180,80,.28), transparent 60%),
    radial-gradient(600px 500px at 90% 90%, rgba(62,123,250,.35), transparent 60%),
    radial-gradient(500px 400px at 70% 30%, rgba(229,72,77,.22), transparent 60%),
    linear-gradient(160deg, #070b17, #0d1630 55%, #0a1020);
  color: #eef2fb; border-right: 1px solid rgba(255,255,255,.08);
}
.auth-art::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  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: 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .55; animation: drift 14s ease-in-out infinite alternate; }
.o1 { width: 260px; height: 260px; background: #e3b450; top: -60px; left: -40px; }
.o2 { width: 320px; height: 320px; background: #3e7bfa; bottom: -100px; right: -60px; animation-delay: -5s; }
.o3 { width: 180px; height: 180px; background: #e5484d; top: 40%; left: 55%; animation-delay: -9s; opacity: .35; }
@keyframes drift { to { transform: translate(40px, -30px) scale(1.12); } }
.float-ko span {
  position: absolute; font-weight: 900; font-size: clamp(28px, 4vw, 54px);
  color: rgba(255,255,255,.06); animation: bob 7s ease-in-out infinite alternate;
}
.float-ko span:nth-child(2n) { animation-delay: -3s; }
@keyframes bob { to { transform: translateY(-18px); } }
.auth-art-inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.auth-art .brand-sub { color: #9aa6c3; }
.art-copy h1 { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.2; font-weight: 900; margin: 18px 0 14px; letter-spacing: -.5px; }
.art-copy h1 .gold { background: linear-gradient(90deg, #e3b450, #f6d98c, #e3b450); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 4s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.art-copy p { color: #b6c0da; max-width: 480px; font-size: 16px; }
.art-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 520px; }
.art-feats div {
  padding: 16px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(10px); font-size: 13px; color: #c9d2ea;
}
.art-feats b { display: block; font-size: 22px; margin-bottom: 6px; }

.auth-main { position: relative; display: grid; place-items: center; padding: 40px 20px; }
.theme-float { position: absolute; top: 20px; right: 20px; }
.auth-card {
  width: 100%; max-width: 440px; padding: clamp(26px, 4vw, 40px); border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(20px); position: relative;
  animation: rise .6s cubic-bezier(.2,.8,.2,1);
}
:root[data-theme="light"] .auth-card { background: #fff; box-shadow: 0 40px 80px -40px rgba(20,30,60,.35); }
.auth-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: 29px; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(227,180,80,.7), transparent 35%, transparent 65%, rgba(62,123,250,.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.mobile-brand { display: none; margin-bottom: 18px; }
.auth-card h2 { font-size: 26px; font-weight: 900; letter-spacing: -.3px; }
.auth-sub { color: var(--muted); margin: 6px 0 22px; font-size: 15px; }

.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 20px; }
.seg button { position: relative; z-index: 1; padding: 10px 6px; font-size: 13.5px; font-weight: 700; color: var(--muted); border-radius: 10px; transition: color .2s; }
.seg button.on { color: #2a1d00; }
.seg-glow { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 10px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); box-shadow: 0 8px 20px -8px rgba(227,180,80,.8); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.seg-glow.r { transform: translateX(100%); }

.g-slot:empty { display: none; }
.g-slot { display: flex; justify-content: center; min-height: 44px; }
.g-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 13px 18px; border-radius: 999px; font-weight: 700; font-size: 15px;
  background: #fff; color: #1f1f1f; border: 1px solid #dadce0;
  box-shadow: 0 8px 24px -12px rgba(0,0,0,.5); transition: transform .15s, box-shadow .15s;
}
.g-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(0,0,0,.55); }

.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 20px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.fl { position: relative; margin-bottom: 14px; }
.fl input {
  width: 100%; padding: 22px 46px 8px 46px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--bg-2); outline: none; font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.fl input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(227,180,80,.15); }
.fl label { position: absolute; left: 46px; top: 16px; color: var(--muted); font-size: 15px; pointer-events: none; transition: all .18s; }
.fl input:focus + label, .fl input:not(:placeholder-shown) + label { top: 6px; font-size: 11.5px; color: var(--gold); font-weight: 600; }
.fl i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 16px; opacity: .8; }
.fl .eye { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 17px; padding: 6px; opacity: .8; }

.pw-meter { height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; margin: -4px 2px 4px; }
.pw-meter span { display: block; height: 100%; width: 0; transition: width .25s, background .25s; }
.pw-hint { color: var(--muted); font-size: 12px; display: block; margin: 0 2px 14px; }

.row-between { display: flex; justify-content: space-between; align-items: center; margin: 2px 0 18px; font-size: 14px; }
.chk { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--muted); }
.chk input { display: none; }
.chk span { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--line); display: grid; place-items: center; transition: all .15s; }
.chk input:checked + span { background: var(--gold); border-color: var(--gold); }
.chk input:checked + span::after { content: "✓"; color: #2a1d00; font-size: 12px; font-weight: 900; }
.link { color: var(--gold); font-weight: 700; font-size: 14px; }
.link:hover { text-decoration: underline; }
.btn-block { width: 100%; padding: 15px; }
.auth-msg { padding: 11px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 14px; }
.auth-msg.err { background: rgba(229,72,77,.12); color: #ff8a8d; border: 1px solid rgba(229,72,77,.3); }
.auth-msg.ok { background: rgba(47,191,113,.12); color: var(--green); border: 1px solid rgba(47,191,113,.3); }
.auth-switch { text-align: center; color: var(--muted); font-size: 14px; margin-top: 18px; }
.auth-foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 14px; opacity: .8; }

.user-chip { display: flex; align-items: center; gap: 8px; padding-left: 4px; }
.user-chip img, .user-chip .av { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; }
.user-chip .av { display: grid; place-items: center; font-weight: 900; background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #2a1d00; }
.user-chip .nm { font-size: 14px; font-weight: 700; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .mobile-brand { display: flex; }
  .user-chip .nm { display: none; }
}

/* ===== Face ID ===== */
.face-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px;
  padding: 12px 18px; border-radius: 999px; font-weight: 700; font-size: 15px;
  background: var(--bg-2); border: 1px solid var(--line); transition: border-color .2s, transform .15s;
}
.face-btn:hover { border-color: var(--gold); transform: translateY(-1px); }
.face-ico {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #2a1d00;
}
.face-ico.big { width: 52px; height: 52px; border-radius: 15px; }
.face-ico.big svg { width: 30px; height: 30px; }
.bio-banner {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: -6px 0 6px;
  padding: 18px 20px; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  background: linear-gradient(135deg, rgba(227,180,80,.14), rgba(62,123,250,.08)), var(--card);
}
.bio-txt { flex: 1; min-width: 200px; }
.bio-txt b { display: block; font-size: 16px; }
.bio-txt span { color: var(--muted); font-size: 14px; }
.bio-actions { display: flex; gap: 8px; }
.bio-actions .btn { padding: 10px 16px; font-size: 14px; }

/* ===== सर्भर संस्करण: थप डिजाइन ===== */
a.icon-btn { text-decoration: none; color: inherit; font-weight: 700; }
.boot { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.boot > .brand-mark { width: 64px; height: 64px; font-size: 28px; border-radius: 18px; animation: pulse 1.2s infinite; }
.empty { color: var(--muted); padding: 24px 0 60px; }
.badge.free { background: var(--green); color: #04220f; }
.set-card.is-locked .num { background: var(--bg-2); }
.buy-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-top: 10px; border-top: 1px dashed var(--line); }
.buy-row .price { font-weight: 900; font-size: 18px; color: var(--gold); font-variant-numeric: tabular-nums; }
.buy-row .buy-cta { font-weight: 800; font-size: 14px; padding: 7px 14px; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); color: #2a1d00; }
.buy-row.pending { color: var(--gold); font-weight: 700; font-size: 14px; }
.buy-row .rej { width: 100%; color: var(--red); }

.hist { display: grid; gap: 10px; padding-bottom: 60px; }
.hist-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 16px; text-align: left;
  padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); transition: border-color .2s; }
.hist-row:hover { border-color: var(--gold); }
.hist-score { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-weight: 900; font-size: 19px; font-variant-numeric: tabular-nums; }
.hist-score.g { background: rgba(47,191,113,.15); color: var(--green); }
.hist-score.y { background: rgba(227,180,80,.15); color: var(--gold); }
.hist-score.r { background: rgba(229,72,77,.15); color: var(--red); }
.hist-main { min-width: 0; }
.hist-main b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-main span { font-size: 13px; color: var(--muted); }
.hist-split { display: flex; gap: 12px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hist-go { color: var(--gold); font-weight: 700; font-size: 14px; }

.modal.buy { text-align: left; position: relative; max-width: 460px; max-height: 92vh; overflow-y: auto; }
.modal .x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); }
.buy-price { font-size: 34px; font-weight: 900; color: var(--gold); margin: 4px 0 16px; font-variant-numeric: tabular-nums; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pm { padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); font-weight: 700; font-size: 14px; }
.pm.on { border-color: var(--gold); background: rgba(227,180,80,.14); color: var(--gold); }
.pay-steps { font-size: 15px; color: var(--text); margin-bottom: 14px; }
.pay-steps ol { padding-left: 20px; display: grid; gap: 8px; }
.pay-to { display: flex; align-items: center; gap: 12px; margin-top: 6px; padding: 10px 14px; border-radius: 12px; background: var(--bg-2); border: 1px dashed var(--gold); font-size: 18px; font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  .hist-row { grid-template-columns: auto 1fr; }
  .hist-split { grid-column: 2; }
  .hist-go { display: none; }
}

/* ===== Featured image, details, single audio ===== */
.set-card.has-img { padding-top: 0; }
.set-img { width: calc(100% + 40px); margin: 0 -20px; height: 150px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; display: block; }
.set-card.has-img .badge { top: 12px; }
.intro-img { width: 100%; max-height: 260px; object-fit: cover; border-radius: 16px; margin: 4px 0 12px; }
.intro-det { color: var(--muted); white-space: pre-line; margin-bottom: 4px; }
#set-audio { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(80px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 16px; background: var(--card-solid); border: 1px solid var(--line); box-shadow: var(--shadow); max-width: calc(100% - 32px); }
#set-audio span { font-weight: 700; font-size: 14px; white-space: nowrap; }
#set-audio audio { height: 36px; max-width: 320px; }
.exam.with-audio .q-pane { padding-bottom: 90px; }

/* ===== UBT प्रश्न-सूची ब्लक (विद्यार्थी) ===== */
.exam-body.one { grid-template-columns: 1fr; }
.exam-body.one .q-pane { max-width: 980px; width: 100%; margin: 0 auto; }
.eb-pane { overflow-y: auto; padding: clamp(16px, 3vw, 36px); }
.eb-intro { max-width: 1100px; margin: 0 auto 18px; display: grid; gap: 6px; }
.eb-intro h2 { font-size: 22px; font-weight: 900; }
.eb-intro p { color: var(--muted); font-size: 14px; }
.eb-wrap { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 56px); }
.eb-h { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; margin-bottom: 10px; }
.eb-h small { color: var(--muted); font-weight: 600; }
.eb-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.eb { position: relative; height: 54px; border-radius: 8px; background: #2a35c9; border: 1px solid #1d27a3; color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 17px; font-variant-numeric: tabular-nums; transition: transform .1s, filter .1s; }
.eb:hover { transform: translateY(-2px); filter: brightness(1.12); }
.eb b { font-weight: 900; }
.eb span { font-size: 16px; }
.eb.done { background: #1f9d5c; border-color: #167a47; }
.eb.flag::after { content: ""; position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: #ff5a5f; box-shadow: 0 0 0 2px #fff; }
.eb-legend { max-width: 1100px; margin: 22px auto 0; display: flex; gap: 20px; border: 0; justify-content: center; }
.legend i.nb { background: #2a35c9; border-color: #2a35c9; }
.eb-legend i.d { background: #1f9d5c; border-color: #1f9d5c; }
.exam-foot .mut { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) {
  .eb-wrap { grid-template-columns: 1fr; }
  .eb { height: 48px; }
}

/* ===== पुरानो साइटबाट आएका प्रश्न: चित्र / अडियो विकल्प ===== */
.q-sub { font-size: calc(16px * var(--fs, 1)); font-weight: 600; color: var(--muted); margin-top: 6px; }
.q-visual.q-img { text-align: center; padding: 12px; background: #fff; }
.q-visual.q-img img { max-width: 100%; max-height: 340px; border-radius: 8px; }
.q-visual { white-space: normal; }
.oimg { width: 100%; max-height: 170px; object-fit: contain; border-radius: 10px; background: #fff; padding: 4px; }
.opt.pic { min-height: 120px; }
.options.auds { grid-template-columns: repeat(2, 1fr); }
.opt.aud { flex-wrap: wrap; gap: 10px; cursor: default; }
.opt.aud .mark { cursor: pointer; }
.opt.aud.sel .mark { background: var(--gold); border-color: var(--gold); color: #2a1d00; }
.oplay { padding: 10px 16px; border-radius: 12px; font-weight: 800; background: linear-gradient(135deg, var(--red), #b3262b); color: #fff; }
.oplay:disabled { opacity: .4; cursor: not-allowed; }
.oplay.playing { animation: pulse 1s infinite; }
.opt.aud small { color: var(--muted); font-size: 12px; }
.opt.aud .otxt { flex-basis: 100%; }
.opt.aud .pick { margin-left: auto; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.opt.aud.sel .pick { border-color: var(--gold); color: var(--gold); }
.rv-img { max-width: 260px; max-height: 160px; border-radius: 8px; background: #fff; margin: 4px 0 8px; display: block; }
.rv-oimg { width: 70px; height: 50px; object-fit: contain; background: #fff; border-radius: 6px; vertical-align: middle; }
.rv-aud { height: 32px; vertical-align: middle; max-width: 240px; }
@media (max-width: 640px) { .options.auds { grid-template-columns: 1fr; } }

/* ==========================================================
   विद्यार्थी परीक्षा — पुरानो gorkheykorean.com / UBT जस्तै
   ========================================================== */
.ubt {
  --u-ink: #1b2440; --u-navy: #12306a; --u-line: #b9bcc4; --u-sel: #e8eefb;
  min-height: 100vh; background: #fff; color: var(--u-ink); position: relative;
  font-family: "Nanum Gothic Coding", "Noto Sans KR", ui-monospace, monospace;
  padding: 18px clamp(12px, 2vw, 28px) 24px; color-scheme: light;
}
.ubt-wm { position: fixed; left: 50%; top: 52%; transform: translate(-50%, -50%); max-width: 92vw; pointer-events: none; z-index: 0; user-select: none; }
.ubt > *:not(.ubt-wm) { position: relative; z-index: 1; }
.ubt-btn {
  background: var(--u-navy); color: #fff; border-radius: 8px; padding: 12px 26px; font-weight: 700; font-size: 20px;
  font-family: "Noto Sans Devanagari", "Noto Sans KR", sans-serif; display: inline-flex; align-items: center; gap: 8px;
}
.ubt-btn:hover { filter: brightness(1.15); }
.ubt-btn:disabled { opacity: .5; cursor: not-allowed; }
.ubt-btn.big { font-size: 26px; padding: 14px 60px; }
.ubt-btn.ghost { background: #fff; color: #111; border: 2px solid #4a0d0d; font-size: 16px; font-weight: 500; padding: 9px 60px; }

/* सुरु पृष्ठ */
.ubt-start { max-width: 1200px; margin: 30px auto; background: rgba(255,255,255,.85); padding: 10px 24px 30px; }
.ubt-start h1 { text-align: center; font-size: clamp(22px, 3vw, 34px); font-weight: 700; margin: 18px 0 22px; }
.ubt-start hr { border: 0; border-top: 2px solid #222; margin-bottom: 20px; }
.ubt-start p { font-size: 17px; line-height: 1.7; }
.ubt-start-btns { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 34px; }

/* सबै प्रश्न सूची */
.ubt-head { max-width: 1480px; margin: 0 auto 10px; border: 1px solid #999; border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.7); }
.ubt-head .r1, .ubt-head .r2 { display: grid; align-items: center; text-align: center; font-weight: 700; font-size: clamp(15px, 1.7vw, 24px); padding: 20px 10px; }
.ubt-head .r1 { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid #999; }
.ubt-head .r2 { grid-template-columns: repeat(5, 1fr); }
.ubt-head .r2 button { font: inherit; font-weight: 700; color: var(--u-ink); padding: 4px 6px; border-radius: 6px; }
.ubt-head .r2 button.on { text-decoration: underline; text-underline-offset: 6px; }
.ubt-timer { font-variant-numeric: tabular-nums; }
.ubt-timer.warn { color: #c62828; }
.ubt-lists { max-width: 1480px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.ubt-sec { border: 1px solid #aaa; border-radius: 10px; text-align: center; padding: 14px; font-size: 18px; margin-bottom: 8px; background: rgba(255,255,255,.7); }
.ubt-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding: 0 4%; }
.ubt-num { height: 56px; border: 2px solid #999; border-radius: 6px; background: rgba(255,255,255,.85); font: inherit; font-size: 24px; font-weight: 700; color: var(--u-ink); }
.ubt-num:hover { border-color: var(--u-navy); }
.ubt-num.solved { background: var(--u-navy); border-color: var(--u-navy); color: #fff; }
.ubt-num.dim { opacity: .25; }
.ubt-center { text-align: center; margin-top: 22px; }

/* एउटा प्रश्न */
.ubt-q { display: flex; flex-direction: column; height: 100vh; padding-bottom: 12px; }
.ubt-qhead { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; font-weight: 700; font-size: clamp(15px, 1.6vw, 22px); padding: 10px 0 18px; border-bottom: 2px solid #222; }
.ubt-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.15fr 1fr; gap: 26px; padding: 22px 0 14px; }
.ubt-left, .ubt-right { border: 1px solid #aaa; border-radius: 18px; background: rgba(255,255,255,.55); overflow-y: auto; min-height: 0; }
.ubt-left { padding: 20px 18px; }
.ubt-left h2 { font-size: calc(clamp(20px, 2.1vw, 30px) * var(--fs, 1)); font-weight: 700; line-height: 1.35; word-break: keep-all; }
.ubt-sub { font-size: calc(19px * var(--fs, 1)); font-weight: 700; margin-top: 10px; }
.ubt-box { margin-top: 20px; border: 1px solid #999; border-radius: 16px; padding: 18px; display: grid; gap: 14px; justify-items: center; }
.ubt-box img { max-width: 100%; max-height: 300px; object-fit: contain; border-radius: 6px; }
.ubt-emo { font-size: 110px; line-height: 1.1; }
.ubt-pass { width: 100%; font-size: calc(19px * var(--fs, 1)); line-height: 1.8; white-space: normal; }
.ubt-pass u { text-underline-offset: 4px; }
.ubt-hpwrap { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.ubt-hpwrap small { font-family: "Noto Sans KR", sans-serif; color: #666; font-size: 14px; }
.ubt-hp { width: 78px; height: 78px; color: #111; border-radius: 12px; display: grid; place-items: center; flex: none; }
.ubt-hp svg { width: 100%; height: 100%; }
.ubt-hp:hover:not(:disabled) { background: #eef1f8; }
.ubt-hp.playing { color: var(--u-navy); animation: pulse 1s infinite; }
.ubt-hp.used, .ubt-hp:disabled { color: #b5b5b5; cursor: not-allowed; }
.ubt-hp.sm { width: 46px; height: 46px; }
.ubt-right { padding: 0; }
.ubt-opt { display: flex; align-items: center; gap: 22px; padding: 22px 28px; border-bottom: 1px solid #aaa; cursor: pointer; font-size: calc(clamp(18px, 1.8vw, 26px) * var(--fs, 1)); }
.ubt-opt:hover { background: rgba(18,48,106,.05); }
.ubt-opt.sel { background: var(--u-sel); }
.ubt-circ { flex: none; width: 38px; height: 38px; border: 3px solid #111; border-radius: 50%; display: grid; place-items: center; font-size: 18px; font-weight: 700; }
.ubt-opt.sel .ubt-circ { background: #111; color: #fff; }
.ubt-oimg { max-width: min(250px, 60%); max-height: 190px; border: 1px solid #999; border-radius: 12px; background: #fff; object-fit: contain; }
.ubt-otxt u { text-underline-offset: 4px; }
.ubt-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.ubt-foot > span:first-child { justify-self: start; }
.ubt-foot > span:last-child { justify-self: end; }
.ubt-modal { color: #1b2440; background: #fff; }
.ubt-modal p { color: #333; }

@media (max-width: 900px) {
  .ubt-q { height: auto; }
  .ubt-body { grid-template-columns: 1fr; }
  .ubt-lists { grid-template-columns: 1fr; gap: 18px; }
  .ubt-head .r2 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .ubt-head .r2 > span:first-child { display: none; }
  .ubt-head .r2 .ubt-timer { grid-column: 1 / -1; }
  .ubt-qhead { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ubt-btn { font-size: 16px; padding: 10px 14px; }
  .ubt-btn.big { font-size: 20px; padding: 12px 24px; }
  .ubt-btn.ghost { padding: 9px 24px; }
  .ubt-opt { padding: 16px; gap: 14px; }
}
.ubt-hp.playing, .ubt-hp.playing:disabled { color: var(--u-navy); cursor: default; }

/* ===== मोबाइल सुधार ===== */
@media (max-width: 640px) {
  .topbar { padding: 10px 12px; gap: 8px; }
  .brand { gap: 8px; }
  .brand-mark { width: 36px; height: 36px; font-size: 17px; border-radius: 10px; }
  .brand-name { font-size: 15px; white-space: nowrap; }
  .top-actions { gap: 6px; }
  .top-actions .icon-btn { height: 36px; min-width: 36px; padding: 0 8px; font-size: 13px; }
  .top-actions a.icon-btn .adm-t { display: none; }
  .user-chip img, .user-chip .av { width: 32px; height: 32px; }
  .hero { margin-top: 18px; padding: 22px 18px; border-radius: 20px; }
  .hero h1 { font-size: 26px; }
  .hero::after { display: none; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat { min-width: 0; padding: 10px 12px; }
  .stat b { font-size: 18px; }
  .section-head .tabs { width: 100%; overflow-x: auto; }
  .tab { white-space: nowrap; }
}
@media (max-width: 900px) {
  /* परीक्षा: तलका बटन सधैँ देखिने */
  .ubt-q { padding-bottom: 86px; }
  .ubt-qhead { font-size: 14px; padding: 4px 0 10px; }
  .ubt-body { gap: 12px; padding: 12px 0; }
  .ubt-left { padding: 14px 12px; border-radius: 14px; }
  .ubt-left h2 { font-size: calc(19px * var(--fs, 1)); }
  .ubt-box { padding: 10px; margin-top: 12px; }
  .ubt-box img { max-height: 240px; }
  .ubt-emo { font-size: 80px; }
  .ubt-hp { width: 64px; height: 64px; }
  .ubt-right { border-radius: 14px; }
  .ubt-opt { padding: 13px 14px; gap: 12px; font-size: calc(18px * var(--fs, 1)); }
  .ubt-circ { width: 32px; height: 32px; font-size: 15px; border-width: 2.5px; }
  .ubt-oimg { max-width: 70%; max-height: 150px; }
  .ubt-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #fff; border-top: 1px solid #ccc;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px)); grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .ubt-foot .ubt-btn { width: 100%; justify-content: center; font-size: 14px; padding: 11px 6px; white-space: nowrap; }
  .ubt-foot > span { width: 100%; }
  .ubt-head .r1, .ubt-head .r2 { padding: 12px 8px; font-size: 14px; }
  .ubt-num { height: 46px; font-size: 19px; }
  .ubt-grid { gap: 8px; padding: 0; }
  .ubt-start { padding: 6px 6px 20px; margin-top: 10px; }
  .ubt-start p { font-size: 15px; }
}

/* ---------- Listening बज्दा बटन बन्द ---------- */
.ubt-foot.is-locked .ubt-btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- फोन ठाडो (portrait) हुँदा "Rotate" सन्देश ---------- */
.rot-hint { display: none; }
@media (max-width: 700px) and (orientation: portrait) {
  .rot-hint { display: grid; place-items: center; position: fixed; inset: 0; z-index: 90; background: rgba(10,16,32,.96); color: #fff; text-align: center; padding: 30px; font-size: 20px; font-weight: 700; line-height: 1.5; }
  .rot-hint div { font-size: 18px; }
}

/* ---------- फोन आडो (landscape): कम उचाइमा मिलाउने ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  .ubt-qhead { font-size: 12px; padding: 2px 0 4px; }
  .ubt-q { padding-bottom: 58px; }
  .ubt-body { grid-template-columns: 1fr 1fr; gap: 10px; padding: 6px 0; }
  .ubt-left { padding: 8px 10px; max-height: calc(100vh - 110px); overflow: auto; }
  .ubt-left h2 { font-size: calc(15px * var(--fs, 1)); }
  .ubt-right { max-height: calc(100vh - 110px); overflow: auto; }
  .ubt-opt { padding: 7px 10px; gap: 8px; font-size: calc(15px * var(--fs, 1)); }
  .ubt-circ { width: 26px; height: 26px; font-size: 13px; }
  .ubt-hp { width: 48px; height: 48px; }
  .ubt-box img { max-height: 130px; }
  .ubt-emo { font-size: 50px; }
  .ubt-oimg { max-height: 80px; }
  .ubt-foot { padding: 5px 8px calc(5px + env(safe-area-inset-bottom, 0px)); }
  .ubt-foot .ubt-btn { padding: 7px 4px; font-size: 13px; }
  .ubt-head .r1, .ubt-head .r2 { padding: 6px 8px; font-size: 12px; }
  .ubt-num { height: 36px; font-size: 16px; }
  #set-audio { bottom: calc(52px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- नेट नहुँदा सन्देश ---------- */
.offline-note { margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: rgba(216,180,106,.14); border: 1px solid rgba(216,180,106,.5); color: var(--text, #e8ecf6); font-size: 14px; line-height: 1.5; }

/* मोडल .ubt बाहिर भएकाले रङ यहीँ तोकेको (Submit बटन सेतोमा सेतो नदेखियोस्) */
.ubt-modal .ubt-btn { background: #0b1b4a; color: #fff; font-size: 18px; padding: 11px 36px; border: 2px solid #0b1b4a; font-family: "Noto Sans Devanagari", "Noto Sans KR", sans-serif; }
.ubt-modal .ubt-btn.ghost { background: #fff; color: #111; border-color: #4a0d0d; padding: 11px 36px; }
.ubt-modal .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

.cat-tag { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gold, #d8b46a); opacity: .9; }

/* ---------- विद्यार्थी होम: बैनर र परीक्षा बक्सा ---------- */
.banner { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 16px; margin: 4px 0 6px; scrollbar-width: none; }
.banner::-webkit-scrollbar { display: none; }
.banner img { flex: 0 0 100%; width: 100%; scroll-snap-align: start; display: block; object-fit: cover; aspect-ratio: 8 / 3; }
.banner-dots { display: flex; justify-content: center; gap: 6px; margin: 6px 0 10px; }
.banner-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line, #3a4668); }
.banner-dots i.on { background: var(--gold, #d8b46a); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 0 14px; border-radius: 16px; background: var(--card, rgba(255,255,255,.04)); border: 1px solid var(--line, #26314f); color: inherit; cursor: pointer; overflow: hidden; text-align: center; }
.tile:hover { border-color: var(--gold, #d8b46a); transform: translateY(-2px); }
.tile-img { width: 100%; aspect-ratio: 1 / 1; display: grid; place-items: center; font-size: 64px; background: #fff; }
.tile-img img { width: 100%; height: 100%; object-fit: contain; }
.tile b { font-size: 16px; margin-top: 8px; padding: 0 8px; }
.tile small { color: var(--muted, #8b96b3); }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr 1fr; gap: 12px; } .tile-img { font-size: 48px; } }

.tile-img.noimg { background: linear-gradient(135deg, rgba(216,180,106,.22), rgba(70,100,200,.22)); }

.rv-exp { white-space: pre-line; line-height: 1.7; }

.rv-why { background: rgba(200,53,59,.14); border-left: 4px solid #c8353b; }
.rv-right { background: rgba(47,168,106,.12); border-left: 4px solid #2fa86a; }
.rv-others { margin-top: 8px; font-size: 14px; color: var(--muted, #8b96b3); }
.rv-others summary { cursor: pointer; font-weight: 700; }
.rv-others div { padding: 4px 0; white-space: pre-line; }

/* ---------- Live Exam ---------- */
.lv-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 0 0 22px; }
.lv-card { text-align: left; padding: 16px; border-radius: 16px; color: inherit; cursor: pointer; border: 1px solid #c0392b; background: linear-gradient(135deg, rgba(192,57,43,.18), rgba(216,180,106,.10)); display: flex; flex-direction: column; gap: 10px; }
.lv-card:hover { transform: translateY(-2px); }
.lv-card-top { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.lv-card small { color: var(--muted, #8b96b3); }
.lv-b { font-size: 11px; font-weight: 900; letter-spacing: .08em; padding: 3px 9px; border-radius: 99px; display: inline-block; }
.lv-b.live { background: #e53935; color: #fff; animation: lvpulse 1.2s infinite; }
.lv-b.up { background: rgba(216,180,106,.22); color: var(--gold, #d8b46a); }
.lv-b.end { background: rgba(255,255,255,.1); color: var(--muted, #8b96b3); }
@keyframes lvpulse { 50% { opacity: .55; } }
.lv-hero { text-align: center; padding: 26px 16px; border-radius: 20px; border: 1px solid var(--line, #26314f); background: var(--card, rgba(255,255,255,.04)); margin-bottom: 18px; }
.lv-hero h1 { margin: 10px 0 6px; font-size: 28px; }
.lv-meta { color: var(--muted, #8b96b3); margin: 6px 0; }
.lv-lbl { margin-top: 14px; font-weight: 700; color: var(--gold, #d8b46a); }
.lv-cd { display: flex; justify-content: center; gap: 10px; margin: 10px 0 14px; }
.lv-cd.ended { font-size: 22px; font-weight: 900; color: var(--muted, #8b96b3); }
.lv-u { min-width: 70px; padding: 12px 8px; border-radius: 14px; background: rgba(0,0,0,.28); border: 1px solid var(--line, #26314f); }
.lv-u b { display: block; font-size: 34px; font-variant-numeric: tabular-nums; line-height: 1; }
.lv-u span { font-size: 11px; color: var(--muted, #8b96b3); text-transform: uppercase; letter-spacing: .08em; }
.lv-cd.mini { justify-content: flex-start; gap: 6px; margin: 0; }
.lv-cd.mini .lv-u { min-width: 48px; padding: 6px 4px; border-radius: 10px; }
.lv-cd.mini .lv-u b { font-size: 20px; }
.lv-cd.mini .lv-u span { font-size: 9px; }
.lv-act { margin-top: 10px; }
.lv-act .big { font-size: 18px; padding: 14px 34px; }
.lv-note { margin: 6px auto; max-width: 560px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.06); }
.lv-note.ok { background: rgba(46,160,90,.16); } .lv-note.err { background: rgba(229,57,53,.16); }
.lv-panel { border: 1px solid var(--line, #26314f); border-radius: 18px; padding: 16px; margin-bottom: 18px; background: var(--card, rgba(255,255,255,.04)); }
.lv-panel h2 { margin: 0 0 12px; font-size: 18px; } .lv-panel h2 small { font-weight: 500; color: var(--muted, #8b96b3); font-size: 13px; }
.lv-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.lv-p { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.04); }
.lv-p b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.lv-p.me, .lv-tr.me { outline: 2px solid var(--gold, #d8b46a); background: rgba(216,180,106,.16); }
.lv-av { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg,#d8b46a,#8a6a2a); color: #111; display: inline-grid; place-items: center; font-weight: 900; overflow: hidden; flex: none; }
.lv-av img { width: 100%; height: 100%; object-fit: cover; }
.lv-chip { font-size: 11px; padding: 3px 8px; border-radius: 99px; background: rgba(255,255,255,.08); color: var(--muted, #8b96b3); white-space: nowrap; }
.lv-chip.on { background: rgba(229,57,53,.2); color: #ff8a80; } .lv-chip.done { background: rgba(46,160,90,.2); color: #6fdc9a; }
.lv-table { display: flex; flex-direction: column; gap: 6px; }
.lv-tr { display: grid; grid-template-columns: 44px 1fr 70px 90px 70px 70px; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.04); }
.lv-tr.head { background: none; font-size: 12px; color: var(--muted, #8b96b3); text-transform: uppercase; }
.lv-tr.top1 { background: rgba(255,215,0,.12); } .lv-tr.top2 { background: rgba(200,200,210,.1); } .lv-tr.top3 { background: rgba(205,127,50,.12); }
.lv-rank { font-weight: 900; font-size: 18px; text-align: center; }
.lv-nm { display: flex; align-items: center; gap: 10px; min-width: 0; } .lv-nm b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-sc { font-weight: 900; font-size: 20px; color: var(--gold, #d8b46a); }
@media (max-width: 640px) { .lv-tr { grid-template-columns: 36px 1fr 56px; } .lv-tr .hide-s { display: none; } .lv-u { min-width: 58px; } .lv-u b { font-size: 26px; } .lv-hero h1 { font-size: 22px; } }
.proof-box { display: flex; align-items: center; gap: 12px; padding: 14px; border: 2px dashed var(--gold, #d8b46a); border-radius: 14px; cursor: pointer; margin-top: 12px; }
.proof-box.has { border-style: solid; }
.proof-box img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.proof-ico { font-size: 32px; }

/* Live page — बढी ठूलो */
main.lv { max-width: 1100px; }
.lv-hero { padding: 40px 18px; }
.lv-hero h1 { font-size: 40px; }
.lv-meta { font-size: 17px; }
.lv-u { min-width: 110px; padding: 20px 10px; border-radius: 18px; }
.lv-u b { font-size: 62px; }
.lv-u span { font-size: 13px; }
.lv-cd { gap: 16px; }
.lv-act .big { font-size: 22px; padding: 18px 48px; }
.lv-panel h2 { font-size: 22px; } .lv-p { padding: 12px 14px; } .lv-av { width: 40px; height: 40px; } .lv-p b { font-size: 16px; }
.lv-tr { padding: 12px 14px; font-size: 16px; } .lv-sc { font-size: 26px; }
.lv-ads { position: relative; border-radius: 20px; overflow: hidden; margin-bottom: 18px; aspect-ratio: 16 / 6; background: #000; border: 1px solid var(--line, #26314f); }
.lv-ad { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; pointer-events: none; }
.lv-ad.on { opacity: 1; pointer-events: auto; }
.lv-ad img, .lv-ad video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lv-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: space-around; gap: 6px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(10,14,28,.94); backdrop-filter: blur(10px); border-top: 2px solid var(--gold, #d8b46a); color: #fff; }
.lv-bar-i { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.lv-bar-i b { font-size: 22px; font-variant-numeric: tabular-nums; } .lv-bar-i small { font-size: 11px; opacity: .7; text-transform: uppercase; letter-spacing: .06em; }
.lv-bar-cd { font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--gold, #d8b46a); }
.lv-bar-i:first-child { align-items: flex-start; }
@media (max-width: 640px) { .lv-hero h1 { font-size: 26px; } .lv-u { min-width: 66px; padding: 12px 6px; } .lv-u b { font-size: 34px; } .lv-cd { gap: 8px; } .lv-ads { aspect-ratio: 16 / 9; } .lv-bar-cd { font-size: 18px; } .lv-bar-i b { font-size: 18px; } }
.pay-qr { text-align: center; margin: 12px 0; } .pay-qr img { width: 220px; max-width: 70%; border-radius: 14px; background: #fff; padding: 8px; } .pay-qr small { display: block; margin-top: 6px; color: var(--muted, #8b96b3); }
.wa-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 12px 0; padding: 12px; border-radius: 14px; background: #25d366; color: #073b1a; font-weight: 900; text-decoration: none; font-size: 17px; }
.wa-btn small { font-weight: 600; font-size: 12px; opacity: .8; }
.lv-note.soon { background: rgba(255,152,0,.2); font-size: 18px; animation: lvpulse 1.2s infinite; }
.cls-filter { display: flex; flex-direction: column; gap: 12px; margin: 0 0 18px; padding: 14px; border-radius: 16px; border: 1px solid var(--line, #26314f); background: var(--card, rgba(255,255,255,.04)); }
.cls-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .cls-row > b { min-width: 96px; }
.chip-f { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line, #26314f); background: transparent; color: inherit; cursor: pointer; font-weight: 700; }
.chip-f.on { background: var(--gold, #d8b46a); color: #1a1405; border-color: var(--gold, #d8b46a); }
.cls-search { display: flex; gap: 6px; margin-left: auto; } .cls-search input { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line, #26314f); background: transparent; color: inherit; width: 170px; }
.pc-big { display: block; font-size: 22px; font-weight: 900; color: var(--gold, #d8b46a); margin-top: 2px; }
.pc-sm { display: block; font-size: 11px; font-weight: 700; opacity: .75; line-height: 1; }
/* ---------- News ---------- */
.news-hl { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; margin: 0 0 18px; border-radius: 16px; text-decoration: none; color: inherit; position: relative;
  background: linear-gradient(135deg, rgba(216,180,106,.22), rgba(192,57,43,.14)); border: 1px solid var(--gold, #d8b46a); }
.news-hl b { font-size: 19px; line-height: 1.35; } .news-hl small { color: var(--muted, #8b96b3); }
.news-badge { align-self: flex-start; font-size: 11px; font-weight: 900; letter-spacing: .08em; padding: 3px 10px; border-radius: 99px; background: var(--gold, #d8b46a); color: #1a1405; }
.news-go { font-weight: 800; color: var(--gold, #d8b46a); }
.news-hl.fresh { animation: newsIn .8s ease; box-shadow: 0 0 0 3px rgba(216,180,106,.5); }
@keyframes newsIn { from { transform: translateY(-18px); opacity: 0; } to { transform: none; opacity: 1; } }
.news-list { display: flex; flex-direction: column; gap: 8px; }
.news-row { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line, #26314f); text-decoration: none; color: inherit; }
.news-row:hover { border-color: var(--gold, #d8b46a); } .news-row small { color: var(--muted, #8b96b3); }
