/* Halollik platformasi — korrupsiyaga qarshi kurash, o'qituvchilar uchun.
   Ranglar: to'q ko'k (davlat, ishonch), zumrad (halollik), oltin (urg'u). */
:root {
    --navy-900: #071a33;
    --navy-800: #0b2545;
    --navy-700: #13315c;
    --navy-600: #1d4477;
    --emerald: #0e9f6e;
    --emerald-soft: #e6f6ef;
    --gold: #d4a72c;
    --gold-soft: #fbf3dc;
    --danger: #d64545;
    --danger-soft: #fdeceb;
    --bg: #f2f5fa;
    --card: #ffffff;
    --line: #e3e8f0;
    --text: #0f1b2d;
    --text-2: #4a5a70;
    --text-3: #8593a7;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 6px 24px rgba(11, 37, 69, 0.08);
    --shadow-lg: 0 14px 40px rgba(11, 37, 69, 0.16);
    --tabbar-h: 56px;
    --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { background: var(--bg); color: var(--text); font-family: 'Manrope', system-ui, sans-serif; }
body { min-height: 100vh; overscroll-behavior-y: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; }
.hidden { display: none !important; }

/* ---------- preloader ---------- */
#splash {
    position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: hidden; color: #fff;
    background: radial-gradient(circle at 50% 38%, #1a3d6c 0%, var(--navy-800) 45%, var(--navy-900) 100%);
    transition: opacity .5s ease, transform .5s ease;
}
#splash.out { opacity: 0; transform: scale(1.04); pointer-events: none; }
#splash::before {           /* nozik to'r — "tizim, nazorat" hissi */
    content: ""; position: absolute; inset: -50%;
    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: 34px 34px; transform: perspective(500px) rotateX(55deg) translateY(10%);
    animation: sp-grid 6s linear infinite; mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 60%);
    -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 60%);
}
@keyframes sp-grid { to { background-position: 0 34px, 0 0; } }

.sp-particles { position: absolute; inset: 0; }
.sp-particles i {
    position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
    box-shadow: 0 0 8px rgba(212, 167, 44, .8); opacity: 0; animation: sp-rise 4.5s ease-in infinite;
}
.sp-particles i:nth-child(1) { left: 8%; animation-delay: .1s; }
.sp-particles i:nth-child(2) { left: 18%; animation-delay: 1.4s; width: 3px; height: 3px; }
.sp-particles i:nth-child(3) { left: 27%; animation-delay: .7s; }
.sp-particles i:nth-child(4) { left: 36%; animation-delay: 2.2s; width: 2px; height: 2px; }
.sp-particles i:nth-child(5) { left: 47%; animation-delay: .4s; width: 3px; height: 3px; }
.sp-particles i:nth-child(6) { left: 55%; animation-delay: 1.8s; }
.sp-particles i:nth-child(7) { left: 63%; animation-delay: 1s; width: 2px; height: 2px; }
.sp-particles i:nth-child(8) { left: 71%; animation-delay: 2.6s; }
.sp-particles i:nth-child(9) { left: 80%; animation-delay: .2s; width: 3px; height: 3px; }
.sp-particles i:nth-child(10) { left: 88%; animation-delay: 1.6s; }
.sp-particles i:nth-child(11) { left: 94%; animation-delay: 3s; width: 2px; height: 2px; }
.sp-particles i:nth-child(12) { left: 42%; animation-delay: 3.3s; }
@keyframes sp-rise {
    0% { transform: translateY(0) scale(.6); opacity: 0; }
    15% { opacity: .9; }
    100% { transform: translateY(-105vh) scale(1.1); opacity: 0; }
}

.sp-center { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 28px; }
.sp-shield { position: relative; width: 132px; height: 152px; display: grid; place-items: center; }
.sp-svg { width: 104px; height: 122px; overflow: visible; filter: drop-shadow(0 10px 30px rgba(212, 167, 44, .28)); }
.sp-shape {
    fill: url(#spFill); fill-opacity: 0; stroke: url(#spGold); stroke-width: 4; stroke-linejoin: round;
    stroke-dasharray: 420; stroke-dashoffset: 420;
    animation: sp-draw 1.1s cubic-bezier(.65, 0, .35, 1) forwards, sp-fill .6s ease .9s forwards;
}
.sp-inner {
    fill: none; stroke: rgba(212, 167, 44, .35); stroke-width: 1.5; stroke-dasharray: 340; stroke-dashoffset: 340;
    animation: sp-draw 1s ease .5s forwards;
}
.sp-check {
    fill: none; stroke: url(#spGold); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 70; stroke-dashoffset: 70; animation: sp-draw .5s cubic-bezier(.65, 0, .35, 1) 1.3s forwards;
}
@keyframes sp-draw { to { stroke-dashoffset: 0; } }
@keyframes sp-fill { to { fill-opacity: 1; } }

.sp-orbit {
    position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid transparent;
    border-top-color: var(--gold); border-right-color: rgba(212, 167, 44, .35);
    animation: sp-spin 1.6s linear infinite, sp-in .6s ease both;
}
.sp-orbit-2 {
    inset: 8px; border-top-color: transparent; border-right-color: transparent;
    border-bottom-color: rgba(255, 255, 255, .25); border-left-color: rgba(255, 255, 255, .08);
    animation: sp-spin 2.4s linear infinite reverse, sp-in .6s ease .2s both;
}
@keyframes sp-spin { to { transform: rotate(360deg); } }
@keyframes sp-in { from { opacity: 0; transform: scale(.8); } }

.sp-title {
    margin-top: 26px; font-size: 19px; font-weight: 800; letter-spacing: .2px; line-height: 1.3;
    opacity: 0; animation: sp-up .6s ease 1s forwards;
}
.sp-motto {
    min-height: 20px; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: .3px;
}
.sp-motto::after { content: "▍"; margin-left: 1px; animation: sp-blink .8s steps(1) infinite; opacity: .8; }
@keyframes sp-blink { 50% { opacity: 0; } }
@keyframes sp-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.sp-bar {
    width: 150px; height: 3px; margin-top: 26px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, .1);
    opacity: 0; animation: sp-up .4s ease 1.1s forwards;
}
.sp-bar span {
    display: block; width: 0; height: 100%; border-radius: 3px;
    background: linear-gradient(90deg, #b88d18, #f3d27a); box-shadow: 0 0 10px rgba(212, 167, 44, .7);
    animation: sp-load 1.4s cubic-bezier(.4, 0, .2, 1) 1.1s forwards;
}
@keyframes sp-load { to { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
    #splash *, #splash::before { animation-duration: .01s !important; animation-delay: 0s !important; }
}

/* eski preloader / gate ekrani uchun belgi */
.splash-emblem {
    width: 92px; height: 92px; border-radius: 28px; display: grid; place-items: center; font-size: 44px;
    color: var(--gold); background: rgba(255, 255, 255, .06); border: 1px solid rgba(212, 167, 44, .45);
    box-shadow: 0 0 0 10px rgba(212, 167, 44, .07);
    animation: pulse 2s ease-in-out infinite;
}
.splash-title { font-weight: 700; letter-spacing: .3px; opacity: .9; }
.splash-bar { width: 140px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.splash-bar span { display: block; width: 40%; height: 100%; background: var(--gold); border-radius: 4px; animation: load 1.1s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 18px rgba(212, 167, 44, 0); } }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

/* ---------- sahifalar ---------- */
#pages { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px); }
.page { display: none; animation: fade .25s ease; }
.page.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wrap { padding: 0 16px; }

/* ---------- yuqori qism (hero) ---------- */
.hero {
    position: relative; overflow: hidden; color: #fff; padding: 22px 18px 54px;
    background: linear-gradient(150deg, var(--navy-700) 0%, var(--navy-800) 55%, var(--navy-900) 100%);
    border-radius: 0 0 28px 28px;
}
.hero::before {
    content: ""; position: absolute; right: -40px; top: -30px; width: 190px; height: 190px; border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 167, 44, .22), transparent 65%);
}
.hero::after {
    content: "\f3ed"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: 14px;
    bottom: -18px; font-size: 120px; color: rgba(255, 255, 255, .04);
}
.hero-org { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.emblem {
    width: 46px; height: 46px; border-radius: 14px; flex: none; display: grid; place-items: center; font-size: 22px;
    color: var(--gold); background: rgba(255, 255, 255, .07); border: 1px solid rgba(212, 167, 44, .4);
}
.hero-org b { display: block; font-size: 15px; font-weight: 800; line-height: 1.25; }
.hero-org small { display: block; font-size: 12px; opacity: .7; margin-top: 2px; }
.hero-greet { position: relative; z-index: 1; margin-top: 20px; }
.hero-greet h1 { font-size: 22px; font-weight: 800; line-height: 1.2; }
.hero-greet p { font-size: 13px; opacity: .75; margin-top: 4px; }
.hero-motto {
    position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
    padding: 7px 12px; border-radius: 30px; font-size: 12px; font-weight: 700; color: var(--gold);
    background: rgba(212, 167, 44, .1); border: 1px solid rgba(212, 167, 44, .3);
}
.hero.compact { padding-bottom: 46px; }
.hero h2 { position: relative; z-index: 1; font-size: 21px; font-weight: 800; }
.hero .sub { position: relative; z-index: 1; font-size: 13px; opacity: .72; margin-top: 4px; }

.lift { margin-top: -34px; position: relative; z-index: 2; }

/* ---------- kartochkalar ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.card + .card { margin-top: 12px; }
.section-title {
    display: flex; align-items: center; justify-content: space-between; margin: 22px 2px 10px;
    font-size: 16px; font-weight: 800; color: var(--navy-800);
}
.section-title small { font-size: 12px; font-weight: 700; color: var(--text-3); }
.section-title i { color: var(--gold); margin-right: 8px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { text-align: center; padding: 12px 4px; border-radius: var(--radius-sm); background: var(--bg); }
.stat b { display: block; font-size: 20px; font-weight: 800; color: var(--navy-800); }
.stat span { font-size: 11px; font-weight: 600; color: var(--text-3); }

.empty { text-align: center; padding: 28px 16px; color: var(--text-3); font-size: 14px; }
.empty i { display: block; font-size: 30px; margin-bottom: 10px; color: var(--line); }

.badge {
    display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 20px;
    font-size: 11px; font-weight: 800; white-space: nowrap;
}
.badge.gold { background: var(--gold-soft); color: #9a7413; }
.badge.green { background: var(--emerald-soft); color: var(--emerald); }
.badge.red { background: var(--danger-soft); color: var(--danger); }
.badge.navy { background: #e8eef7; color: var(--navy-700); }
.badge.muted { background: var(--bg); color: var(--text-3); }

/* ---------- so'rovnoma kartochkasi ---------- */
.survey-card { display: flex; gap: 12px; align-items: center; cursor: pointer; border-left: 4px solid var(--gold); }
.survey-card.done { border-left-color: var(--emerald); }
.survey-icon {
    width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center;
    background: var(--gold-soft); color: var(--gold); font-size: 18px;
}
.survey-card.done .survey-icon { background: var(--emerald-soft); color: var(--emerald); }
.survey-card .t { font-weight: 800; font-size: 14px; line-height: 1.3; }
.survey-card .m { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.survey-card .chev { margin-left: auto; color: var(--text-3); }

/* ---------- yangiliklar ---------- */
.news-card { padding: 0; overflow: hidden; cursor: pointer; }
.news-card img { display: block; width: 100%; height: 170px; object-fit: cover; background: var(--line); }
.news-card .body { padding: 14px 16px 16px; }
.news-card h3 { font-size: 15px; font-weight: 800; line-height: 1.35; color: var(--navy-800); }
.news-card p { font-size: 13px; color: var(--text-2); line-height: 1.5; margin-top: 6px; }
.news-card .date { font-size: 11px; font-weight: 700; color: var(--text-3); margin-top: 10px; }
.news-noimg {
    height: 74px; display: flex; align-items: center; gap: 10px; padding: 0 16px; color: #fff;
    background: linear-gradient(120deg, var(--navy-700), var(--navy-800));
}
.news-noimg i { color: var(--gold); }

/* ---------- natijalarim ---------- */
.result-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; }
.result-row + .result-row { border-top: 1px solid var(--line); }
.ring {
    --p: 0; --c: var(--emerald); width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid;
    place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--line) 0);
}
.ring::before { content: ""; grid-area: 1/1; width: 38px; height: 38px; border-radius: 50%; background: #fff; }
.ring b { grid-area: 1/1; position: relative; font-size: 12px; font-weight: 800; }
.result-row .t { font-weight: 700; font-size: 14px; line-height: 1.3; }
.result-row .m { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.result-row .badge { margin-left: auto; }
.more-btn { width: 100%; margin-top: 6px; padding: 10px; font-size: 13px; font-weight: 700; color: var(--navy-600); }

/* ---------- test kartochkasi ---------- */
.test-card h3 { font-size: 16px; font-weight: 800; color: var(--navy-800); line-height: 1.3; }
.test-card .desc { font-size: 13px; color: var(--text-2); margin-top: 6px; line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px;
    background: var(--bg); font-size: 12px; font-weight: 700; color: var(--text-2);
}
.chip i { color: var(--navy-600); }
.test-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.test-foot .note { font-size: 12px; color: var(--text-3); font-weight: 600; }
.test-foot .note.warn { color: var(--danger); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px;
    border-radius: 13px; font-weight: 800; font-size: 14px; color: #fff;
    background: linear-gradient(135deg, var(--navy-600), var(--navy-800));
    box-shadow: 0 6px 16px rgba(19, 49, 92, .3); transition: transform .12s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn.gold { background: linear-gradient(135deg, #e0b73f, #b88d18); box-shadow: 0 6px 16px rgba(212, 167, 44, .35); }
.btn.green { background: linear-gradient(135deg, #16b77f, #0b8a5f); box-shadow: 0 6px 16px rgba(14, 159, 110, .3); }
.btn.ghost { background: var(--bg); color: var(--navy-700); box-shadow: none; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; pointer-events: none; }

/* ---------- profil ---------- */
.profile-page { padding-top: 14px; }
.profile-page .section-title { font-size: 14px; margin: 18px 2px 8px; }
.profile-page .card { padding: 4px 14px; border-radius: 16px; }
.profile-card {
    position: relative; overflow: hidden; padding: 16px; border-radius: 20px; color: #fff;
    background: linear-gradient(140deg, var(--navy-700), var(--navy-900)); box-shadow: var(--shadow-lg);
}
.profile-card::after {
    content: "\f3ed"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: -10px; top: -14px;
    font-size: 96px; color: rgba(255, 255, 255, .045);
}
.pc-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
.avatar {
    width: 58px; height: 58px; flex: none; border-radius: 18px; display: grid; place-items: center;
    font-size: 20px; font-weight: 800; color: var(--navy-800); background: linear-gradient(135deg, #fff, #e7edf6);
    border: 2px solid var(--gold); overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.pc-name { min-width: 0; }
.pc-name h2 { font-size: 16px; font-weight: 800; line-height: 1.25; margin-bottom: 6px; }
.pc-name .badge { background: rgba(212, 167, 44, .16); color: var(--gold); font-size: 10.5px; padding: 3px 8px; }
.pc-stats {
    position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px;
    border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .08);
}
.pc-stats div { text-align: center; padding: 9px 4px; }
.pc-stats div + div { border-left: 1px solid rgba(255, 255, 255, .08); }
.pc-stats b { display: block; font-size: 15px; font-weight: 800; }
.pc-stats span { font-size: 10.5px; font-weight: 600; opacity: .65; }
.info-row { display: flex; align-items: center; gap: 11px; padding: 10px 0; }
.info-row + .info-row { border-top: 1px solid var(--line); }
.info-row .ic {
    width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 13px;
    background: #e8eef7; color: var(--navy-700);
}
.info-row small { display: block; font-size: 10px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .4px; }
.info-row b { display: block; font-size: 13px; font-weight: 700; margin-top: 1px; line-height: 1.35; }
.profile-page .cert-card { padding: 14px; }
.profile-page .cert-card .ic { width: 38px; height: 38px; font-size: 16px; border-radius: 12px; }
.profile-page .cert-card h3 { font-size: 14px; }
.profile-page .cert-card p { font-size: 12px; margin-top: 8px; }
.profile-page .cert-card .badge { font-size: 10.5px; }
.profile-page #edit-profile { padding: 11px; font-size: 13px; }

/* ---------- profilni tahrirlash ---------- */
.form-card { display: flex; flex-direction: column; gap: 14px; }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld > span { font-size: 11px; font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: .4px; }
.fld small { font-size: 11px; color: var(--text-3); }
.fld input, .fld select {
    width: 100%; padding: 11px 12px; border-radius: 12px; border: 2px solid var(--line); background: #fff;
    font-size: 14px; font-weight: 600; color: var(--text); outline: none; appearance: none; -webkit-appearance: none;
}
.fld select {
    background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
    padding-right: 34px;
}
.fld input:focus, .fld select:focus { border-color: var(--navy-600); }
.phone-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 9px 9px 12px; border-radius: 12px; background: var(--bg); }
.phone-row b { font-size: 14px; }
.sm-btn { padding: 8px 12px; font-size: 12px; border-radius: 10px; background: #fff; }

.cert-card {
    position: relative; overflow: hidden; color: #fff;
    background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
}
.cert-card::after {
    content: "\f559"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: -6px; bottom: -22px;
    font-size: 110px; color: rgba(212, 167, 44, .12);
}
.cert-card .top { display: flex; align-items: center; gap: 12px; }
.cert-card .ic {
    width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 20px;
    color: var(--gold); background: rgba(255, 255, 255, .07); border: 1px solid rgba(212, 167, 44, .4);
}
.cert-card h3 { font-size: 16px; font-weight: 800; }
.cert-card p { position: relative; z-index: 1; font-size: 13px; opacity: .78; line-height: 1.5; margin-top: 10px; }
.cert-card .badge { margin-left: auto; background: rgba(212, 167, 44, .18); color: var(--gold); }

/* ---------- pastki menyu ---------- */
.tabbar {
    position: fixed; left: 14px; right: 14px; bottom: calc(8px + var(--safe-b)); z-index: 40; height: var(--tabbar-h);
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 5px; border-radius: 18px;
    background: rgba(11, 37, 69, .96); backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(11, 37, 69, .22);
}
.tab {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    border-radius: 13px; color: rgba(255, 255, 255, .55); font-size: 10px; font-weight: 700; transition: all .2s;
}
.tab i { font-size: 16px; }
.tab.active { color: var(--navy-900); background: linear-gradient(135deg, #e7c25a, var(--gold)); }

/* ---------- ustma-ust oyna ---------- */
.view {
    position: fixed; inset: 0; z-index: 50; overflow-y: auto; background: var(--bg);
    animation: slide .25s ease; padding-bottom: calc(24px + var(--safe-b));
}
@keyframes slide { from { transform: translateY(16px); opacity: .4; } to { transform: none; opacity: 1; } }
.view-head {
    position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 14px 16px;
    background: rgba(242, 245, 250, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.view-head .back {
    width: 38px; height: 38px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow);
    color: var(--navy-800); flex: none;
}
.view-head b { font-size: 15px; font-weight: 800; color: var(--navy-800); line-height: 1.25; }
.view-body { padding: 16px; }

.article img { width: 100%; border-radius: var(--radius); margin-bottom: 14px; display: block; }
.article h1 { font-size: 20px; font-weight: 800; color: var(--navy-800); line-height: 1.3; }
.article .date { font-size: 12px; font-weight: 700; color: var(--text-3); margin-top: 8px; }
.article .text { font-size: 15px; line-height: 1.7; color: var(--text); margin-top: 14px; white-space: pre-wrap; word-wrap: break-word; }
.article a { color: var(--navy-600); }

/* ---------- so'rovnoma shakli ---------- */
.q-block { margin-top: 14px; }
.q-block .q-title { font-size: 14px; font-weight: 800; line-height: 1.4; color: var(--navy-800); }
.q-block .q-hint { font-size: 11px; font-weight: 700; color: var(--text-3); margin-top: 3px; }
.choice {
    display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 8px; padding: 13px 14px; text-align: left;
    border-radius: 13px; background: var(--bg); border: 2px solid transparent; font-size: 14px; font-weight: 600;
    transition: all .15s;
}
.choice .mark {
    width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--text-3); display: grid;
    place-items: center; font-size: 11px; color: transparent;
}
.choice.multi .mark { border-radius: 7px; }
.choice.on { border-color: var(--navy-600); background: #eef3fa; }
.choice.on .mark { border-color: var(--navy-600); background: var(--navy-600); color: #fff; }
.q-block textarea {
    width: 100%; min-height: 96px; margin-top: 8px; padding: 12px 14px; border-radius: 13px; border: 2px solid var(--line);
    font-size: 14px; resize: vertical; outline: none; background: #fff;
}
.q-block textarea:focus { border-color: var(--navy-600); }

/* ---------- test topshirish ---------- */
.runner-top { padding: 14px 16px 0; }
.runner-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.runner-meta .count { font-size: 13px; font-weight: 800; color: var(--navy-700); }
.timer {
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 20px; font-weight: 800;
    font-size: 14px; color: var(--navy-800); background: #fff; box-shadow: var(--shadow); font-variant-numeric: tabular-nums;
}
.timer i { color: var(--gold); }
.timer.low { color: #fff; background: var(--danger); }
.timer.low i { color: #fff; }
.progress { height: 6px; border-radius: 6px; background: var(--line); margin-top: 12px; overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--gold), #e8c45d); transition: width .3s; }
.question { font-size: 17px; font-weight: 700; line-height: 1.5; color: var(--text); }
.option {
    display: flex; align-items: flex-start; gap: 12px; width: 100%; margin-top: 10px; padding: 14px; text-align: left;
    border-radius: 14px; background: #fff; border: 2px solid var(--line); font-size: 15px; font-weight: 600; line-height: 1.45;
    transition: all .15s;
}
.option .l {
    width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; font-weight: 800;
    font-size: 13px; color: var(--navy-700); background: #e8eef7;
}
.option:active { transform: scale(.99); }
.option.right { border-color: var(--emerald); background: var(--emerald-soft); }
.option.right .l { background: var(--emerald); color: #fff; }
.option.wrong { border-color: var(--danger); background: var(--danger-soft); }
.option.wrong .l { background: var(--danger); color: #fff; }
.option.dim { opacity: .55; }
.option:disabled { cursor: default; }
.explain {
    display: flex; gap: 10px; margin-top: 14px; padding: 13px 14px; border-radius: 13px; font-size: 13px; line-height: 1.55;
    background: var(--gold-soft); color: #6d5410;
}
.explain i { color: var(--gold); margin-top: 2px; }
.verdict { margin-top: 14px; font-weight: 800; font-size: 14px; }
.verdict.ok { color: var(--emerald); }
.verdict.no { color: var(--danger); }
.runner-actions { display: flex; gap: 10px; margin-top: 16px; }
.finish-link { display: block; margin: 22px auto 0; font-size: 13px; font-weight: 700; color: var(--text-3); }

/* ---------- natija ---------- */
.result-hero { text-align: center; padding: 26px 16px; }
.big-ring {
    --p: 0; --c: var(--emerald); width: 150px; height: 150px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center;
    background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--line) 0);
}
.big-ring::before { content: ""; grid-area: 1/1; width: 122px; height: 122px; border-radius: 50%; background: #fff; }
.big-ring div { grid-area: 1/1; position: relative; }
.big-ring b { display: block; font-size: 34px; font-weight: 800; color: var(--navy-800); }
.big-ring small { font-size: 12px; font-weight: 700; color: var(--text-3); }
.result-hero h2 { margin-top: 16px; font-size: 20px; font-weight: 800; color: var(--navy-800); }
.result-hero p { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.review-item { padding: 14px 0; }
.review-item + .review-item { border-top: 1px solid var(--line); }
.review-item .q { font-size: 14px; font-weight: 700; line-height: 1.45; }
.review-item .o { display: flex; gap: 8px; margin-top: 7px; font-size: 13px; line-height: 1.4; color: var(--text-2); }
.review-item .o.right { color: var(--emerald); font-weight: 700; }
.review-item .o.wrong { color: var(--danger); font-weight: 700; text-decoration: line-through; }
.review-item .o i { width: 14px; margin-top: 2px; }

/* ---------- ro'yxatdan o'tmagan / xato ---------- */
.gate {
    min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    gap: 14px; padding: 30px; color: #fff; background: radial-gradient(circle at 50% 20%, var(--navy-600), var(--navy-900) 70%);
}
.gate h2 { font-size: 21px; font-weight: 800; }
.gate p { font-size: 14px; opacity: .78; line-height: 1.6; max-width: 320px; }
.gate .btn { margin-top: 8px; }

.toast {
    position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 30px + var(--safe-b)); transform: translateX(-50%); z-index: 90;
    max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: var(--navy-900); color: #fff;
    font-size: 13px; font-weight: 700; box-shadow: var(--shadow-lg); animation: fade .2s ease;
}
.skeleton { height: 90px; border-radius: var(--radius); background: linear-gradient(90deg, #e8edf4, #f5f7fb, #e8edf4); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.skeleton + .skeleton { margin-top: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }
