/*
Theme Name: AZ1 آزوان – آزمون اول
Theme URI: https://az1.ir
Author: AZ1
Description: پوسته لندینگ و ثبت‌نام آزمون جایزه بزرگ AZ1 (آزوان). فقط نصب و فعال کنید؛ صفحه اصلی، فرم ثبت‌نام، تأیید اطلاعات و صفحه موفقیت آماده است. ثبت‌نام‌ها در پیشخوان وردپرس («ثبت‌نام‌کنندگان») ذخیره و قابل خروجی CSV هستند. متن‌ها و لینک تلگرام از «نمایش ← سفارشی‌سازی ← تنظیمات AZ1» قابل تغییرند.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: az1
Tags: rtl-language-support, one-column, custom-colors
*/

:root {
  --brand: #320df7; --brand-600: #2708d6; --brand-700: #2100bb; --brand-dark: #14006e;
  --brand-50: #f5f3ff; --brand-100: #ede9fe; --tint: #ece8fd;
  --s50: #f8fafc; --s100: #f1f5f9; --s200: #e2e8f0; --s300: #cbd5e1; --s400: #94a3b8;
  --s500: #64748b; --s600: #475569; --s700: #334155; --s800: #1e293b; --s900: #0f172a;
  --amber: #f59e0b; --emerald: #10b981;
  --text: #181a2c; --muted: #687387; --border: #e9ecf4;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; direction: rtl; text-align: right;
  font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  color: var(--s800); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  background: linear-gradient(180deg, #f8faff 0%, #fff 25%, #f7f9fe 65%, #fff 100%);
  min-height: 100vh; min-height: 100dvh; line-height: 1.6;
}
h1, h2, h3, h4, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; font-size: inherit; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { overflow-x: hidden; }
button { cursor: pointer; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--brand-100); color: var(--brand-700); }
.sora { font-family: 'Sora', 'Vazirmatn', sans-serif; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.ms { width: 1em; height: 1em; overflow: hidden; visibility: hidden; flex-shrink: 0; font-family: 'Material Symbols Outlined'; font-weight: normal; font-style: normal; display: inline-block; line-height: 1; vertical-align: middle; letter-spacing: normal; text-transform: none; white-space: nowrap; font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24; -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga'; }
.icons-ok .ms { visibility: visible; }
.ms.fill { font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24; }
.wrap { width: 100%; max-width: 420px; margin: 0 auto; padding: 0 16px; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ===================== LANDING ===================== */
#view-home { padding-bottom: 128px; }
.top { padding-top: env(safe-area-inset-top, 0px); position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(241,245,249,.9); }
.admin-bar .top { top: 32px; }
@media (max-width: 782px) { .admin-bar .top { top: 46px; } }
.top-in { height: 64px; max-width: 420px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
.icon-btn { width: 40px; height: 40px; border: 0; background: none; border-radius: 12px; color: var(--s700); display: flex; align-items: center; justify-content: center; transition: transform .15s, background .15s; }
.icon-btn:hover { background: var(--s100); }
.icon-btn:active { transform: scale(.95); }
.icon-btn .ms { font-size: 26px; }
.logo-svg { height: 32px; width: auto; color: var(--brand); fill: currentColor; display: block; }
.menu { position: absolute; top: 60px; right: 12px; left: 12px; max-width: 396px; margin: 0 auto; background: #fff; border: 1px solid var(--s200); border-radius: 16px; box-shadow: 0 20px 40px -12px rgba(33,0,187,.18); padding: 8px; display: none; }
.menu.open { display: block; }
.menu a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--s800); }
.menu a:hover { background: var(--brand-50); color: var(--brand-700); }
.menu a .ms { font-size: 20px; color: var(--brand); }

.home-main { max-width: 420px; margin: 0 auto; padding: 16px 16px 0; }
.home-main > * + * { margin-top: 24px; }
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; background: rgba(241,245,249,.9); color: var(--s600); font-size: 12px; font-weight: 600; margin-bottom: 14px; border: 1px solid rgba(226,232,240,.6); }
.pill svg { width: 14px; height: 14px; fill: var(--brand); }
.hero h1 { font-size: 28px; line-height: 1.3; font-weight: 900; color: var(--s900); letter-spacing: -.01em; margin-bottom: 8px; }
.hero h2 { font-size: 16px; font-weight: 700; color: var(--s800); }
.hero .sub { font-size: 12px; font-weight: 500; color: var(--s400); margin: 4px 0 20px; }
.stage { position: relative; width: 100%; border-radius: 24px; background: rgba(255,255,255,.8); backdrop-filter: blur(12px); border: 1px solid rgba(226,232,240,.6); padding: 20px; overflow: hidden; box-shadow: 0 20px 25px -5px rgba(50,13,247,.05), 0 8px 10px -6px rgba(50,13,247,.05); }
.stage::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at top, rgba(199,210,254,.45), rgba(233,213,255,.2) 50%, transparent 75%); }
.confetti { position: absolute; display: block; }
.c1 { top: 16px; left: 24px; width: 8px; height: 8px; border-radius: 50%; background: rgba(50,13,247,.3); }
.c2 { top: 40px; left: 48px; width: 6px; height: 14px; border-radius: 3px; background: rgba(251,191,36,.6); transform: rotate(45deg); }
.c3 { top: 24px; right: 32px; width: 8px; height: 8px; border-radius: 2px; background: rgba(129,140,248,.5); transform: rotate(12deg); }
.c4 { bottom: 80px; left: 32px; width: 12px; height: 6px; border-radius: 99px; background: rgba(50,13,247,.3); transform: rotate(-12deg); }
.stage-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.trophy { width: 176px; height: 192px; margin-bottom: -8px; display: flex; align-items: center; justify-content: center; }
.trophy-svg { width: 100%; height: 100%; filter: drop-shadow(0 25px 25px rgba(0,0,0,.15)); }
.prize-badge { margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 16px; background: rgba(255,255,255,.95); border: 1px solid var(--brand-100); box-shadow: 0 10px 15px -3px rgba(50,13,247,.1); }
.prize-badge .crown { width: 24px; height: 24px; border-radius: 8px; background: #fffbeb; display: flex; align-items: center; justify-content: center; }
.prize-badge .crown svg { width: 16px; height: 16px; fill: var(--amber); }
.prize-badge .t { display: flex; align-items: baseline; gap: 6px; }
.prize-badge .t b { font-size: 12px; font-weight: 700; color: var(--s700); }
.prize-badge .t .n { font-size: 14px; font-weight: 800; color: var(--brand-600); }
.prize-badge .t .u { font-size: 12px; font-weight: 700; color: var(--brand-600); }
.grade-quick { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; padding-top: 14px; border-top: 1px solid rgba(226,232,240,.5); }
.gq { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.9); border: 1px solid rgba(226,232,240,.7); box-shadow: 0 1px 2px rgba(0,0,0,.05); font-size: 12px; font-weight: 500; color: var(--s600); transition: .15s; }
.gq:hover { border-color: var(--brand); }
.gq:active { transform: scale(.95); }
.gq i { width: 8px; height: 8px; border-radius: 50%; background: var(--s300); flex-shrink: 0; }
.gq.active { font-weight: 700; color: var(--s800); }
.gq.active i { background: var(--brand); }

.sec > * + * { margin-top: 12px; }
.sec-head { text-align: center; }
.sec-head > * + * { margin-top: 4px; }
.eyebrow { display: block; font-size: 11px; font-weight: 700; color: var(--brand-600); letter-spacing: .02em; }
.sec-head h2 { font-size: 18px; font-weight: 900; color: var(--s900); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 16px; background: linear-gradient(90deg, rgba(238,242,255,.7), #fff, rgba(245,243,255,.7)); border: 1px solid var(--brand-100); box-shadow: 0 1px 2px rgba(50,13,247,.05); margin-bottom: 4px; }
.chip .ico { width: 24px; height: 24px; border-radius: 8px; background: rgba(50,13,247,.1); color: var(--brand-600); display: flex; align-items: center; justify-content: center; }
.chip .ico svg { width: 16px; height: 16px; fill: currentColor; }
.chip h2 { font-size: 16px; font-weight: 900; color: var(--s900); }
.sec-head p { font-size: 12px; font-weight: 500; color: var(--s500); }

.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-items: end; padding: 20px 0 8px; }
.pod { position: relative; border-radius: 16px; padding: 10px; display: flex; flex-direction: column; align-items: center; text-align: center; box-shadow: 0 4px 6px -1px rgba(0,0,0,.1); transition: box-shadow .2s; }
.pod:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); }
.pod .medal { width: 32px; height: 32px; margin-top: -24px; margin-bottom: 4px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; font-size: 12px; font-weight: 900; box-shadow: 0 4px 6px rgba(0,0,0,.15); }
.pod .lbl { font-size: 11px; font-weight: 700; margin-bottom: 2px; }
.pod .amt { font-size: 24px; font-weight: 900; color: var(--s900); margin: 2px 0; letter-spacing: -.01em; line-height: 1.3; }
.pod .cur { font-size: 10px; font-weight: 700; }
.pod .tag { font-size: 9px; font-weight: 500; margin-top: 4px; padding: 2px 8px; border-radius: 99px; }
.pod.p3 { background: linear-gradient(180deg, rgba(255,251,235,.7), #fff, rgba(255,251,235,.3)); border: 1px solid rgba(253,230,138,.7); }
.pod.p3 .medal { background: linear-gradient(45deg, #b45309, #f59e0b); }
.pod.p3 .lbl { color: #b45309; } .pod.p3 .cur { color: rgba(217,119,6,.9); }
.pod.p3 .tag { color: #b45309; background: #fffbeb; border: 1px solid rgba(253,230,138,.6); }
.pod.p2 { background: linear-gradient(180deg, rgba(241,245,249,.9), #fff, var(--s50)); border: 1px solid var(--s300); }
.pod.p2 .medal { background: linear-gradient(45deg, #64748b, #cbd5e1); }
.pod.p2 .lbl { color: var(--s700); } .pod.p2 .cur { color: var(--s500); }
.pod.p2 .tag { color: var(--s600); background: var(--s100); border: 1px solid var(--s200); }
.pod.p1 { z-index: 1; padding: 12px; transform: translateY(-10px); background: linear-gradient(180deg, #fffbeb, #fff, rgba(238,242,255,.6)); border: 2px solid #fbbf24; box-shadow: 0 20px 25px -5px rgba(245,158,11,.2); }
.pod.p1 .medal { width: 40px; height: 40px; margin-top: -28px; background: linear-gradient(45deg, #f59e0b, #fbbf24, #fcd34d); color: #451a03; box-shadow: 0 10px 15px rgba(245,158,11,.4); box-shadow: 0 0 0 2px rgba(251,191,36,.5), 0 10px 15px rgba(245,158,11,.4); }
.pod.p1 .medal svg { width: 24px; height: 24px; fill: currentColor; }
.pod.p1 .badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 99px; background: var(--amber); color: #020617; font-size: 10px; font-weight: 900; margin-bottom: 4px; }
.pod.p1 .badge svg { width: 12px; height: 12px; fill: currentColor; }
.pod.p1 .amt { font-size: 30px; color: var(--brand-600); }
.pod.p1 .cur { font-size: 12px; font-weight: 900; color: #d97706; }
.pod.p1 .tag { font-size: 9px; font-weight: 700; color: var(--brand-700); background: rgba(50,13,247,.1); border: 1px solid var(--brand-100); }

.row-card { position: relative; overflow: hidden; border-radius: 16px; padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.05); transition: box-shadow .2s; }
.row-card:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1); }
.row-l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.row-ico { width: 40px; height: 40px; border-radius: 12px; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.row-ico svg { width: 20px; height: 20px; fill: currentColor; }
.row-t > div { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.row-t h3 { font-size: 12px; font-weight: 900; color: var(--s900); }
.row-t .b { font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 6px; }
.row-t p { font-size: 10px; font-weight: 500; color: var(--s500); margin-top: 2px; }
.row-card.rc-brand { background: linear-gradient(270deg, rgba(238,242,255,.7), #fff, rgba(238,242,255,.4)); border: 1px solid var(--brand-100); }
.rc-brand .row-ico { background: var(--brand); box-shadow: 0 4px 6px rgba(50,13,247,.25); }
.rc-brand .b { background: rgba(50,13,247,.1); color: var(--brand-700); border: 1px solid var(--brand-100); }
.rc-brand .amt-box { background: linear-gradient(270deg, var(--brand-600), var(--brand)); color: #fff; box-shadow: 0 4px 6px rgba(50,13,247,.2); font-size: 12px; font-weight: 900; padding: 6px 12px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; line-height: 1.3; flex-shrink: 0; }
.rc-brand .amt-box small { font-size: 9px; font-weight: 400; color: rgba(255,255,255,.8); }
.row-card.rc-green { background: linear-gradient(270deg, rgba(236,253,245,.8), #fff, rgba(236,253,245,.3)); border: 1px solid #d1fae5; }
.rc-green .row-ico { background: var(--emerald); box-shadow: 0 4px 6px rgba(16,185,129,.2); }
.rc-green .b { background: #ecfdf5; color: #059669; border: 1px solid #d1fae5; border-radius: 99px; padding: 2px 8px; }
.rc-green .amt-box { background: #ecfdf5; border: 1px solid #d1fae5; color: #059669; font-size: 11px; font-weight: 700; padding: 6px 10px; border-radius: 12px; flex-shrink: 0; text-align: center; }
.note { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--s50); border: 1px solid rgba(226,232,240,.7); color: var(--s600); font-size: 11px; font-weight: 500; line-height: 1.5; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.note .ni { width: 20px; height: 20px; border-radius: 50%; background: rgba(50,13,247,.1); color: var(--brand-600); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.note .ni svg { width: 14px; height: 14px; fill: currentColor; }

.fac { position: relative; overflow: hidden; border-radius: 16px; padding: 14px; background: rgba(255,255,255,.95); box-shadow: 0 4px 6px -1px rgba(0,0,0,.08); transition: box-shadow .2s; }
.fac:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); }
.fac::before { content: ''; position: absolute; left: -24px; top: -24px; width: 80px; height: 80px; border-radius: 50%; pointer-events: none; }
.fac-in { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.fac-ico { width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.fac-ico .ms { font-size: 24px; }
.fac-t { flex: 1; min-width: 0; }
.fac-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.fac-top h3 { font-size: 12px; font-weight: 900; color: var(--s900); }
.fac-top span { font-size: 10px; font-weight: 700; padding: 2px 10px; border-radius: 99px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.fac-top span i { width: 6px; height: 6px; border-radius: 50%; }
.fac-t p { font-size: 10px; font-weight: 500; color: var(--s600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fac.green { border: 1px solid #d1fae5; } .fac.green::before { background: #ecfdf5; }
.green .fac-ico { background: #ecfdf5; border: 1px solid #d1fae5; color: #059669; }
.green .fac-top span { background: #ecfdf5; color: #059669; border: 1px solid #d1fae5; } .green .fac-top i { background: var(--emerald); }
.fac.violet { border: 2px solid var(--brand); background: linear-gradient(270deg, rgba(238,242,255,.5), rgba(243,232,255,.2), #fff); box-shadow: 0 10px 15px -3px rgba(50,13,247,.15); transform: translateY(-2px); }
.fac.violet::before { background: rgba(50,13,247,.1); width: 96px; height: 96px; left: -32px; top: -32px; }
.violet .fac-ico { background: var(--brand); color: #fff; box-shadow: 0 4px 6px rgba(50,13,247,.25); }
.violet .fac-top span { background: var(--brand); color: #fff; } .violet .fac-top i { background: #fff; }
.violet .fac-t p { color: var(--s700); }
.fac.amber { border: 1px solid rgba(245,158,11,.2); } .fac.amber::before { background: #fffbeb; }
.amber .fac-ico { background: #fffbeb; border: 1px solid rgba(253,230,138,.6); color: #d97706; }
.amber .fac-top span { background: #fffbeb; color: #b45309; border: 1px solid rgba(253,230,138,.7); } .amber .fac-top i { background: var(--amber); }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--s100); border: 1px solid rgba(226,232,240,.4); }
.seg button { border: 0; padding: 8px; border-radius: 8px; background: none; font-size: 12px; font-weight: 500; color: var(--s500); transition: .15s; }
.seg button:hover { color: var(--s800); }
.seg button.active { background: #fff; color: var(--brand-600); font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.panel { background: rgba(255,255,255,.85); backdrop-filter: blur(12px); border-radius: 16px; border: 1px solid rgba(226,232,240,.6); padding: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.panel > * + * { margin-top: 12px; }
.panel-h { padding-bottom: 8px; border-bottom: 1px solid var(--s100); font-size: 12px; font-weight: 700; color: var(--s800); }
.panel-n { padding: 6px 10px; border-radius: 12px; background: rgba(238,242,255,.5); border: 1px solid rgba(237,233,254,.6); font-size: 11px; font-weight: 600; color: var(--brand-700); }
.syl > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid rgba(241,245,249,.8); font-size: 12px; }
.syl > div:last-child { border-bottom: 0; }
.syl b { font-weight: 700; color: var(--s800); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.syl b span { font-size: 14px; }
.syl em { font-style: normal; font-size: 11px; font-weight: 500; color: var(--s600); text-align: left; }

.why { background: rgba(255,255,255,.8); backdrop-filter: blur(12px); border-radius: 16px; border: 1px solid rgba(226,232,240,.6); padding: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.why h3 { font-size: 12px; font-weight: 700; color: var(--s900); text-align: center; margin-bottom: 12px; }
.why-i { display: flex; align-items: flex-start; gap: 10px; padding: 12px; background: rgba(255,255,255,.9); border-radius: 12px; border: 1px solid rgba(226,232,240,.5); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.why-i + .why-i { margin-top: 8px; }
.why-i .n { width: 20px; height: 20px; border-radius: 6px; background: rgba(238,242,255,1); border: 1px solid var(--brand-100); color: var(--brand-600); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.why-i p { font-size: 11px; font-weight: 500; color: var(--s600); line-height: 1.8; }
.foot-note { text-align: center; font-size: 11px; color: var(--s400); padding: 16px 0 8px; }

.cta-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); border-top: 1px solid var(--s100); padding: 12px 16px; box-shadow: 0 -8px 25px rgba(0,0,0,.04); padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
.cta-bar > div { max-width: 420px; margin: 0 auto; }

/* Buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 1px solid transparent; font-weight: 700; transition: all .15s; text-align: center; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--brand-600); }
.btn-hero { padding: 14px 24px; font-size: 16px; border-radius: 16px; box-shadow: 0 10px 15px -3px rgba(50,13,247,.25); }
.btn-lg { height: 48px; font-size: 15px; border-radius: 12px; box-shadow: 0 6px 20px rgba(50,13,247,.28); }
.btn-ghost { height: 44px; background: transparent; color: #555f6c; font-size: 14px; border-radius: 12px; }
.btn-ghost:hover { color: var(--text); background: #f6f8fa; }
.btn-outline { min-height: 46px; background: #fff; color: var(--brand); border: 1px solid #7c8ba1; border-radius: 8px; font-size: 15px; padding: 10px 20px; }
.btn-outline:hover { border-color: var(--brand); background: #f6f8fa; }

/* ===================== REGISTER ===================== */
.screen { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: #fff; }
.screen-in { width: 100%; max-width: 440px; margin: 0 auto; flex: 1; display: flex; flex-direction: column; padding: 0 20px 24px; position: relative; }
@media (min-width: 640px) {
  #view-register, #view-success { background: #f1f3f7; padding: 24px 0; }
  #view-register .screen, #view-success .screen { min-height: 0; max-width: 440px; margin: 0 auto; border-radius: 36px; box-shadow: 0 12px 48px rgba(23,26,43,.08); border: 1px solid rgba(199,196,218,.5); overflow: hidden; }
}
.s-top { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; }
.back { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: #555f6c; font-size: 14px; font-weight: 700; padding: 4px 8px; border-radius: 8px; }
.back:hover { color: var(--text); }
.back .ms { font-size: 19px; }
.stepper { margin: 16px 8px 0; }
.stepper-lbl { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 8px; }
.stepper-lbl > span { display: flex; align-items: center; gap: 6px; color: #555f6c; }
.stepper-lbl > span i { width: 8px; height: 8px; border-radius: 50%; background: #c7c4da; }
.stepper-lbl > span.on { color: var(--brand); font-weight: 700; }
.stepper-lbl > span.on i { width: 10px; height: 10px; background: var(--brand); box-shadow: 0 0 0 3px var(--tint); }
.stepper-bar { display: flex; height: 4px; border-radius: 99px; overflow: hidden; background: #f6f8fa; }
.stepper-bar div { width: 50%; background: rgba(199,196,218,.3); transition: .3s; }
.stepper-bar div.on { background: var(--brand); border-radius: 99px; }
.s-title { text-align: center; margin: 24px 0 24px; }
.s-title h1 { font-size: 24px; font-weight: 800; color: var(--text); line-height: 1.4; }
.s-title p { font-size: 13px; color: #555f6c; margin-top: 4px; }
.reg-form > * + * { margin-top: 16px; }
.fld > label, .fld > .lab { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; padding-right: 4px; }
.inp { width: 100%; height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(199,196,218,.7); background: #fff; color: var(--text); font-size: 16px; text-align: right; transition: .15s; }
.inp::placeholder { color: #7c8ba1; opacity: .75; }
.inp:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--tint); }
.inp.ltr { direction: ltr; text-align: left; letter-spacing: .05em; font-weight: 600; }
.inp.bad { border-color: #d92d20; box-shadow: 0 0 0 3px #fef3f2; }
.err-t { display: none; color: #d92d20; font-size: 12px; margin-top: 4px; padding-right: 4px; }
.fld.has-err .err-t { display: block; }
.grades > * + * { margin-top: 8px; }
.gcard { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 14px; border-radius: 16px; border: 1px solid rgba(199,196,218,.6); background: #fff; cursor: pointer; transition: .15s; }
.gcard:hover { border-color: #777589; }
.gcard:active { transform: scale(.99); }
.gcard .gl { display: flex; align-items: center; gap: 12px; }
.gcard .rd { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #c7c4da; display: flex; align-items: center; justify-content: center; color: #fff; transition: .15s; }
.gcard .rd .ms { font-size: 17px; opacity: 0; }
.gcard .gt b { display: block; font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.5; }
.gcard .gt small { display: block; font-size: 12px; color: #555f6c; }
.gcard .gi { width: 40px; height: 40px; border-radius: 12px; background: #f6f8fa; color: #555f6c; display: flex; align-items: center; justify-content: center; }
.gcard .gi .ms { font-size: 22px; }
.gcard.sel { border: 2px solid var(--brand); background: rgba(236,232,253,.4); box-shadow: 0 4px 16px rgba(50,13,247,.06); padding: 13px; }
.gcard.sel .rd { background: var(--brand); border-color: var(--brand); }
.gcard.sel .rd .ms { opacity: 1; }
.gcard.sel .gt b { font-weight: 800; }
.gcard.sel .gi { background: rgba(226,223,255,.5); color: var(--brand); }
.date-pill { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #f6f8fa; border: 1px solid rgba(199,196,218,.4); font-size: 12px; font-weight: 600; color: var(--text); margin-top: 10px; }
.date-pill .ms { color: var(--brand); font-size: 19px; }
.id-note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: #555f6c; padding-top: 4px; }
.id-note .ms { font-size: 17px; color: #777589; }
.s-actions { margin-top: auto; padding-top: 20px; }
.hp { position: absolute !important; left: -9999px; top: -9999px; }
.toast { position: fixed; top: 16px; left: 16px; right: 16px; max-width: 400px; margin: 0 auto; z-index: 90; background: #fef3f2; color: #b42318; border: 1px solid #fecdca; border-radius: 12px; padding: 12px 16px; font-size: 13px; font-weight: 600; box-shadow: 0 10px 25px rgba(0,0,0,.12); transform: translateY(-140%); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .3s, opacity .3s, visibility .3s; }
.toast.show { transform: translateY(0); opacity: 1; visibility: visible; }

/* Sheet */
.backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(24,26,44,.5); backdrop-filter: blur(2px); display: flex; align-items: flex-end; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.backdrop.open { opacity: 1; visibility: visible; }
.sheet { width: 100%; max-width: 440px; background: #fff; border-radius: 32px 32px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.16); max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; transform: translateY(100%); transition: transform .35s cubic-bezier(.2,.9,.3,1); padding: 12px 20px calc(24px + env(safe-area-inset-bottom, 0px)); }
.backdrop.open .sheet { transform: translateY(0); }
.handle { width: 48px; height: 6px; border-radius: 99px; background: #cbd5e1; margin: 0 auto 8px; }
.sheet-x { display: flex; }
.sheet-x button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.sheet-x button:hover { background: #f1f5f9; }
.sheet h2 { text-align: center; font-size: 20px; font-weight: 800; color: var(--text); }
.sheet .sh-sub { text-align: center; font-size: 12px; color: var(--muted); margin: 4px 0 16px; }
.sum { background: #f6f8fd; border-radius: 16px; padding: 4px 16px; font-size: 13px; }
.sum > div { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #e9edf6; }
.sum > div:last-child { border-bottom: 0; }
.sum span { color: var(--muted); font-weight: 500; }
.sum b { color: var(--text); font-weight: 700; }
.warn { margin-top: 14px; background: #fff7ed; border: 1px solid rgba(192,86,33,.3); border-radius: 12px; padding: 12px; display: flex; align-items: flex-start; gap: 10px; }
.warn .ms { color: #c05621; font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.warn b { display: block; font-size: 12px; color: #c05621; font-weight: 700; }
.warn p { font-size: 11px; line-height: 1.8; color: rgba(192,86,33,.92); margin-top: 2px; }
.agree { display: flex; align-items: center; gap: 10px; margin: 16px 0 20px; font-size: 12px; font-weight: 600; color: var(--text); cursor: pointer; user-select: none; }
.agree input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
.sheet .btn-ghost { margin-top: 8px; }
.sheet .err-box { display: none; margin-bottom: 12px; padding: 10px 12px; border-radius: 10px; background: #fef3f2; color: #b42318; font-size: 12px; font-weight: 600; }
.sheet .err-box.show { display: block; }

/* Success */
.ok-wrap { position: relative; overflow: hidden; }
.glow1 { position: absolute; top: -96px; left: -96px; width: 240px; height: 240px; border-radius: 50%; background: rgba(226,223,255,.5); filter: blur(48px); pointer-events: none; }
.glow2 { position: absolute; top: 48px; right: -96px; width: 192px; height: 192px; border-radius: 50%; background: #ebf8f2; filter: blur(32px); pointer-events: none; }
.ok-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding-top: 20px; }
.brand-mini { display: flex; align-items: center; gap: 8px; }
.brand-mini .sq { width: 36px; height: 36px; border-radius: 12px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; box-shadow: 0 4px 12px rgba(50,13,247,.28); }
.brand-mini .tx b { display: block; font-size: 15px; font-weight: 800; color: var(--text); line-height: 1.3; }
.brand-mini .tx small { display: block; font-size: 10px; color: var(--muted); font-weight: 500; }
.x-btn { width: 36px; height: 36px; border-radius: 50%; background: #f6f8fa; border: 1px solid rgba(199,196,218,.5); color: #555f6c; display: flex; align-items: center; justify-content: center; }
.x-btn:hover { background: #ececff; }
.ok-body { position: relative; z-index: 1; padding-top: 4px; }
.done-bar { padding: 12px 0; margin: 4px 0; }
.done-bar .lbls { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--brand); padding: 0 4px; margin-bottom: 8px; }
.done-bar .track { position: relative; display: flex; align-items: center; justify-content: space-between; }
.done-bar .track::before { content: ''; position: absolute; left: 12px; right: 12px; top: 50%; transform: translateY(-50%); height: 4px; background: var(--brand); border-radius: 99px; }
.done-bar .node { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(50,13,247,.3); }
.done-bar .node .ms { font-size: 16px; }
.ok-hero { text-align: center; padding: 8px 0; display: flex; flex-direction: column; align-items: center; }
.ok-badge { width: 80px; height: 80px; border-radius: 50%; background: #ebf8f2; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.ok-badge > div { width: 56px; height: 56px; border-radius: 50%; background: rgba(11,138,90,.15); display: flex; align-items: center; justify-content: center; }
.ok-badge > div > div { width: 40px; height: 40px; border-radius: 50%; background: #0b8a5a; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(11,138,90,.35); }
.ok-hero h1 { font-size: 24px; font-weight: 800; color: var(--text); line-height: 1.5; margin-bottom: 4px; }
.ok-hero p { font-size: 13px; color: #555f6c; max-width: 300px; line-height: 1.9; }
.card-s { margin-top: 16px; background: #fff; border: 1px solid rgba(199,196,218,.6); border-radius: 16px; padding: 16px; box-shadow: 0 4px 24px rgba(23,26,43,.045); }
.card-s .ch { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid #f6f8fa; margin-bottom: 12px; }
.card-s .ch > span:first-child { display: flex; align-items: center; gap: 6px; color: var(--brand); font-size: 15px; font-weight: 700; }
.card-s .ch .ms { font-size: 18px; }
.okp { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: #ebf8f2; color: #0b8a5a; }
.okp i { width: 6px; height: 6px; border-radius: 50%; background: #0b8a5a; }
.dl > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 10px; background: rgba(246,248,250,.5); border-radius: 8px; font-size: 14px; }
.dl > div + div { margin-top: 10px; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; font-weight: 700; color: var(--text); font-size: 15px; }
.dl .num { direction: ltr; letter-spacing: .05em; }
.dl .exam { background: rgba(226,223,255,.3); border: 1px solid #e2dfff; padding: 6px 10px; }
.dl .exam dt, .dl .exam dd { color: var(--brand); font-size: 13px; }
.dl .exam dt { display: flex; align-items: center; gap: 4px; font-weight: 500; }
.dl .exam dd { font-weight: 800; }
.dl .exam .ms { font-size: 16px; }
.tg { margin-top: 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(34,158,217,.1), #fff, rgba(226,223,255,.2)); border: 1px solid rgba(34,158,217,.3); padding: 16px; box-shadow: 0 4px 20px rgba(34,158,217,.08); }
.tg-h { display: flex; align-items: flex-start; gap: 12px; }
.tg-ic { width: 44px; height: 44px; border-radius: 12px; background: #229ed9; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 4px 12px rgba(34,158,217,.35); margin-top: 2px; }
.tg-ic .ms { font-size: 24px; }
.tg-t { flex: 1; }
.tg-t > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tg-t h2 { font-size: 16px; font-weight: 700; color: var(--text); }
.tg-t .req { font-size: 11px; font-weight: 700; color: #229ed9; background: rgba(34,158,217,.1); padding: 2px 8px; border-radius: 6px; }
.tg-t p { font-size: 13px; color: #555f6c; margin-top: 4px; line-height: 1.9; }
.tg-f { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(34,158,217,.2); }
.tg-id { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px; background: rgba(255,255,255,.9); border-radius: 8px; border: 1px solid rgba(34,158,217,.2); font-size: 13px; margin-bottom: 10px; }
.tg-id span { color: var(--muted); font-weight: 500; }
.tg-id b { direction: ltr; color: var(--brand); font-weight: 700; letter-spacing: .02em; }
.btn-tg { min-height: 44px; background: #229ed9; color: #fff; border-radius: 8px; font-size: 15px; padding: 10px 16px; box-shadow: 0 4px 14px rgba(34,158,217,.3); }
.btn-tg:hover { background: #1d8bc0; }
.ok-foot { position: relative; z-index: 1; margin-top: 20px; border-top: 1px solid rgba(199,196,218,.3); padding-top: 20px; }
.ok-foot .sup { text-align: center; font-size: 11px; color: var(--muted); margin-top: 8px; font-weight: 500; }
.ok-foot .sup a { color: var(--brand); font-weight: 700; }

/* Generic pages */
.plain { max-width: 760px; margin: 0 auto; padding: 48px 20px; }
.plain h1 { font-size: 28px; font-weight: 900; color: var(--s900); margin-bottom: 20px; }
.plain .entry { font-size: 16px; line-height: 2; color: var(--s700); }
.plain .entry > * + * { margin-top: 14px; }
.plain a { color: var(--brand); }
.plain .post-item { padding: 18px 0; border-bottom: 1px solid var(--s200); }
.plain .post-item h2 { font-size: 20px; font-weight: 800; }

/* ===================== MOBILE FIXES ===================== */
.home-main, .top-in, .cta-bar > div { min-width: 0; }
.hero h1, .hero h2, .sec-head h2, .row-t, .fac-t, .why-i p { overflow-wrap: anywhere; }
.row-t { min-width: 0; }
.gq span { line-height: 1.5; }
@media (max-width: 380px) {
  .home-main { padding-left: 12px; padding-right: 12px; }
  .hero h1 { font-size: 24px; }
  .stage { padding: 14px; }
  .trophy { width: 150px; height: 164px; }
  .prize-badge { padding: 6px 12px; gap: 6px; }
  .prize-badge .t b, .prize-badge .t .u { font-size: 11px; }
  .podium { gap: 6px; }
  .pod { padding: 8px 4px; }
  .pod.p1 { padding: 10px 4px; }
  .pod .amt { font-size: 20px; } .pod.p1 .amt { font-size: 26px; }
  .pod .tag { font-size: 8px; padding: 2px 6px; }
  .row-card { padding: 12px; gap: 6px; }
  .row-ico { width: 34px; height: 34px; }
  .row-t h3 { font-size: 11px; }
  .gq { font-size: 11px; padding: 10px 6px; }
  .fac-top { flex-direction: column; align-items: flex-start; gap: 4px; }
  .fac-ico { width: 42px; height: 42px; }
  .syl > div { flex-direction: column; align-items: flex-start; gap: 2px; }
  .syl em { text-align: right; }
  .screen-in { padding: 0 16px 20px; }
  .s-title h1 { font-size: 22px; }
  .dl > div { flex-direction: column; align-items: flex-start; gap: 2px; }
  .tg-t > div { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 640px) { .screen-in { padding: 0 24px 28px; } }
