/* ===== v3.0 Pro: rol tanlash, Pro taklifi, to'lov, qulflar, qur'a, murojaat =====
 * G'oya: Pro — «piyodaning farzinga aylanishi». Yagona harakatli lahza — taxta chizig'ida piyoda oxirgi qatorga yetib
 * farzinga aylanadi. Qolgani sokin: indigo kecha, jez-oltin urg'u, yong'oq-zarang kataklar (premium.css tokenlari). */

.pro-ov { position: fixed; inset: 0; z-index: 900; overflow-y: auto; padding: clamp(16px, 4vh, 48px) 16px;
  background: radial-gradient(900px 520px at 50% -120px, rgba(240, 177, 58, .16), transparent 70%),
    linear-gradient(180deg, #171a46 0%, #11133a 60%, #0c0e2c 100%);
  color: #fffdf8; opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility 0s linear .28s; }
.pro-ov.on { opacity: 1; visibility: visible; transition: opacity .28s ease; }
.pro-sheet { max-width: 980px; margin: 0 auto; font-family: "Nunito", system-ui, sans-serif; }
.pro-h { font: 800 clamp(26px, 3.6vw, 44px)/1.12 var(--display); margin: 0 0 12px; letter-spacing: -.01em; }
.pro-h2 { font: 800 clamp(20px, 2.4vw, 28px)/1.2 var(--display); margin: 0 0 12px; }
.pro-lead { font-size: 17px; line-height: 1.55; color: #c9cdf0; max-width: 60ch; margin: 0 0 18px; }
.pro-center { text-align: center; } .pro-center .pro-lead { margin-inline: auto; }

/* --- rol tanlash: ikki «eshik» --- */
.pro-role { text-align: center; padding-top: 4vh; }
.pro-role .pro-lead { margin-inline: auto; }
.rc-doors { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 22px; justify-content: center; margin-top: 26px; }
.rc-door { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 22px 24px; border-radius: 26px; cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 253, 248, .08), rgba(255, 253, 248, .03)); border: 1.5px solid rgba(255, 253, 248, .14);
  color: inherit; font: inherit; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.rc-door img { width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .35)); }
.rc-door b { font: 800 21px var(--display); }
.rc-door span { color: #c9cdf0; font-size: 15px; line-height: 1.45; max-width: 30ch; }
.rc-door:hover, .rc-door:focus-visible { transform: translateY(-4px); border-color: var(--brass); background: rgba(240, 177, 58, .08); outline: none; }
.rc-door.t img { width: 132px; }

/* --- qahramon: taxta chizig'i, piyoda → farzin --- */
.pro-hero { display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: center; margin-bottom: 18px; }
.pro-board { position: relative; display: grid; grid-template-rows: repeat(8, 1fr); width: 54px; height: 300px; margin-inline: auto;
  border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 6px #4a2c18, 0 24px 48px -16px rgba(0, 0, 0, .6); transform: rotate(-8deg); }
.pro-board i.l { background: var(--maple); } .pro-board i.d { background: var(--walnut); }
.pro-board i:first-child { box-shadow: inset 0 0 0 3px var(--brass); }
.pro-pawn, .pro-queen { position: absolute; left: 0; width: 54px; height: 37.5px; display: grid; place-items: center; }
.pro-pawn img, .pro-queen img { width: 34px; height: 34px; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .4)); }
.pro-pawn { top: 262.5px; animation: pro-climb 2.6s cubic-bezier(.55, .1, .3, 1) .35s forwards; }
.pro-queen { top: 0; opacity: 0; transform: scale(.4); animation: pro-crown .7s cubic-bezier(.2, 1.6, .4, 1) 2.85s forwards; }
.pro-queen::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: radial-gradient(circle, rgba(240, 177, 58, .7), transparent 65%); z-index: -1; }
@keyframes pro-climb { 0% { top: 262.5px; } 88% { top: 0; opacity: 1; } 100% { top: 0; opacity: 0; } }
@keyframes pro-crown { to { opacity: 1; transform: scale(1); } }
.pro-board.done { width: 120px; height: 120px; border-radius: 50%; margin-bottom: 14px; background: radial-gradient(circle, rgba(240, 177, 58, .35), transparent 70%); box-shadow: none; transform: none; display: grid; place-items: center; }
.pro-board.done .pro-queen { position: static; opacity: 1; transform: none; animation: pro-crown .6s ease both; width: 90px; height: 90px; }
.pro-board.done .pro-queen img { width: 76px; height: 76px; }

.pro-why { background: rgba(240, 177, 58, .12); border-left: 4px solid var(--brass); padding: 12px 16px; border-radius: 0 12px 12px 0; font-weight: 700; margin: 0 0 16px; }
.pro-why small { font-weight: 600; color: #d8dbf5; }
.pro-active { color: #8ee6c1; font-weight: 800; margin: 0 0 14px; }

.pro-kind.seg { display: inline-flex; background: rgba(255, 253, 248, .06); border: 1px solid rgba(255, 253, 248, .12); border-radius: 14px; padding: 4px; margin: 4px 0 18px; }
.pro-kind.seg button { white-space: nowrap; border: 0; background: none; color: #c9cdf0; font: 700 15px "Nunito", sans-serif; padding: 9px 18px; border-radius: 10px; cursor: pointer; }
.pro-kind.seg button.on { background: #fffdf8; color: var(--ink); }

/* --- rejalar: o'rtadagisi (3 oy) baland va jez chegarali --- */
.pro-plans { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 16px; align-items: center; margin-bottom: 26px; }
.pro-plans.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pro-kind.seg { flex-wrap: wrap; justify-content: center; }
.pro-trial { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0 0 18px; }
.pro-trial-btn { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; border: 0; box-shadow: 0 6px 18px rgba(22, 163, 74, .35); }
.pro-trial small { color: #c9cdf0; }
.pro-promo .pr-row { display: flex; gap: 10px; margin: 8px 0; }
.pro-promo .pr-row input, .pk-add input { flex: 1; min-width: 0; font: 700 17px "Nunito", sans-serif; padding: 10px 14px; border-radius: 12px; border: 1.5px solid rgba(255, 253, 248, .18); background: rgba(255, 253, 248, .06); color: #fffdf8; }
.pro-promo .pr-row input { text-transform: uppercase; }
.pro-promo .pr-ok { color: #4ade80; font-weight: 800; min-height: 1em; }
.pro-promo .pro-h2 { margin-top: 18px; }
.pk-box { border: 1px solid rgba(255, 253, 248, .18); border-radius: 14px; padding: 12px 14px; margin-top: 16px; text-align: left; }
.pk-box h3 { margin: 0 0 8px; font-size: 17px; } .pk-box h3 small { font-weight: 600; opacity: .7; }
.pk-list { list-style: none; padding: 0; margin: 0 0 8px; } .pk-list li { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.pk-list li .pk-del { margin-left: auto; padding: 4px 10px; font-size: 13px; }
.pk-add { display: flex; gap: 8px; }
.pro-promo .muted { color: #c9cdf0; }
@media (max-width: 820px) { .pro-plans.n4 { grid-template-columns: 1fr 1fr; } .pro-kind.seg button { padding: 8px 12px; font-size: 14px; } }
.pro-plan { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 22px 22px 20px; border-radius: 22px; cursor: pointer;
  background: rgba(255, 253, 248, .05); border: 1.5px solid rgba(255, 253, 248, .14); color: inherit; font: inherit; text-align: left; transition: transform .15s, border-color .15s; }
.pro-plan:hover, .pro-plan:focus-visible { border-color: var(--brass); transform: translateY(-3px); outline: none; }
.pro-plan.best { padding: 30px 24px 26px; background: linear-gradient(180deg, rgba(240, 177, 58, .2), rgba(240, 177, 58, .05)); border: 2px solid var(--brass); box-shadow: 0 24px 50px -20px rgba(240, 177, 58, .45); }
.pro-plan em { position: absolute; top: -12px; left: 22px; font-style: normal; background: var(--brass); color: #2a1b00; font-weight: 800; font-size: 13px; padding: 3px 12px; border-radius: 99px; }
.pp-m { font-weight: 800; color: #c9cdf0; font-size: 15px; }
.pp-price { font: 800 clamp(20px, 2vw, 27px) var(--display); letter-spacing: -.01em; white-space: nowrap; }
.pro-plan.best .pp-price { color: #ffd277; }
.pp-per { color: #c9cdf0; font-size: 14px; }
.pp-save { color: #8ee6c1; font-weight: 800; font-size: 14px; }

/* --- solishtirish jadvali --- */
.pro-cmp { width: 100%; border-collapse: collapse; margin-bottom: 26px; font-size: 15px; }
.pro-cmp caption { text-align: left; font: 800 18px var(--display); padding-bottom: 10px; }
.pro-cmp th { text-align: left; color: #9da3d6; font-weight: 700; padding: 8px 10px; }
.pro-cmp th:last-child, .pro-cmp td:last-child { color: #ffd277; font-weight: 800; }
.pro-cmp td { padding: 11px 10px; border-top: 1px solid rgba(255, 253, 248, .09); }
.pro-cmp td:nth-child(2) { color: #9da3d6; }
.pro-cmp td:first-child { width: 52%; }

.pro-foot { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-bottom: 12px; }
.pro-skip { background: none; border: 0; color: #c9cdf0; font: 700 15px "Nunito", sans-serif; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 10px; }
.pro-skip:hover, .pro-skip:focus-visible { color: #fffdf8; }
.pro-foot small { color: #8d93c6; }

/* --- to'lov --- */
.pro-pay { max-width: 620px; }
.pay-sum { font: 800 clamp(30px, 4vw, 42px) var(--display); color: #ffd277; margin: 0 0 14px; }
.pay-sum.small { font-size: 20px; }
.pay-steps { margin: 0 0 16px; padding-left: 22px; color: #d8dbf5; line-height: 1.6; }
.pay-card { background: linear-gradient(135deg, #2b2f78, #1c2050); border: 1px solid rgba(255, 253, 248, .16); border-radius: 18px; padding: 18px 20px; margin-bottom: 18px; }
.pay-card p { color: #c9cdf0; margin: 10px 0 0; white-space: pre-wrap; }
.pay-row { display: grid; grid-template-columns: 130px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; }
.pay-row small { color: #9da3d6; font-weight: 700; }
.pay-row b { font-size: 17px; letter-spacing: .02em; word-break: break-word; }
.pay-copy { padding: 6px 12px; font-size: 13px; }
.pay-f { display: block; margin-bottom: 14px; }
.pay-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.pay-f small { font-weight: 600; color: #9da3d6; }
.pay-f input[type="datetime-local"] { color-scheme: dark; }
.home-pro.pending { border-color: rgba(108, 140, 255, .6); background: linear-gradient(90deg, rgba(108, 140, 255, .16), rgba(108, 140, 255, .04)); }
.home-pro.pending > b:last-child { background: #6c8cff; color: #fff; }
.home-pro.rejected { border-color: rgba(239, 107, 115, .6); background: linear-gradient(90deg, rgba(239, 107, 115, .14), rgba(239, 107, 115, .03)); }
.home-pro.rejected > svg { color: #d6454f; }
.hp-spin { font-size: 24px; flex: none; }
@media (max-width: 820px) { .pay-two { grid-template-columns: 1fr; } }
.pay-f > span { display: block; font-weight: 700; color: #c9cdf0; margin-bottom: 6px; }
.pay-f input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid rgba(255, 253, 248, .18); background: rgba(255, 253, 248, .06); color: #fffdf8; font: 600 16px "Nunito", sans-serif; }
.pay-f input:focus { outline: none; border-color: var(--brass); }
.pay-pick { cursor: pointer; }
.pay-prev { display: block; max-width: 220px; max-height: 160px; border-radius: 10px; margin-top: 10px; border: 1px solid rgba(255, 253, 248, .2); }
.pay-err { color: #ff9aa2; font-weight: 700; min-height: 1.2em; margin: 0 0 8px; }
.pro-pay .pro-cta { width: 100%; }
.pend-ico { font-size: 56px; margin: 4vh 0 8px; }

.pro-ov .btn-soft { background: rgba(255, 253, 248, .1); color: #fffdf8; border: 1px solid rgba(255, 253, 248, .28); box-shadow: none; }
.pro-ov .btn-soft:hover { background: rgba(255, 253, 248, .18); }
.pro-ov :focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

/* --- qulflar va bosh sahifa paneli --- */
.lesson-card.pro-lock, .piece-card.pro-lock, .op-card.pro-lock { position: relative; filter: saturate(.55); }
.lesson-card.pro-lock .icon, .lesson-card.pro-lock .num { opacity: .55; }
.pro-tag { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px; font: 800 12px "Nunito", sans-serif;
  color: #2a1b00; background: linear-gradient(180deg, #ffd277, var(--brass)); padding: 3px 9px; border-radius: 99px; box-shadow: var(--shadow-sm); }
.pro-tag svg { width: 13px; height: 13px; }
.home-pro { display: flex; align-items: center; gap: 14px; width: calc(100% - 64px); max-width: 1176px; margin: 0 auto 16px; box-sizing: border-box; padding: 14px 18px; border-radius: 18px; cursor: pointer; text-align: left;
  border: 1.5px solid rgba(240, 177, 58, .55); background: linear-gradient(90deg, rgba(240, 177, 58, .16), rgba(240, 177, 58, .04)); color: var(--ink); font: inherit; }
.home-pro[hidden] { display: none; }
.home-pro > svg { width: 28px; height: 28px; color: var(--brass-dark); flex: none; }
.home-pro > span { flex: 1; display: flex; flex-direction: column; }
.home-pro small { color: var(--ink-soft); }
.home-pro > b:last-child { background: var(--brass); color: #2a1b00; padding: 8px 14px; border-radius: 12px; white-space: nowrap; }
.home-pro:hover { border-color: var(--brass); }
.set-pro { background: linear-gradient(180deg, #ffd277, var(--brass)); color: #2a1b00; border: 0; font-weight: 800; }
.set-pro small { font-weight: 700; opacity: .8; margin-left: 6px; }
.sp-crown { font-size: 16px; }

/* --- Erkin doska: bepul vaqt --- */
.fb-free { margin-left: auto; align-self: center; font-weight: 800; padding: 6px 12px; border-radius: 99px; background: rgba(240, 177, 58, .18); color: var(--brass-dark); white-space: nowrap; }
.fb-free.low { background: #ffe1e3; color: #b3261e; }

/* --- qur'a --- */
.ar-board-wrap { position: relative; }
.ar-toss { position: fixed; inset: 0; z-index: 850; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: rgba(17, 19, 58, .62); backdrop-filter: blur(3px); color: #fffdf8; perspective: 700px; transition: opacity .3s; }
.ar-toss.out { opacity: 0; }
.toss-coin { width: 110px; height: 110px; position: relative; transform-style: preserve-3d; animation: toss-w 1.5s cubic-bezier(.3, .6, .3, 1) forwards; }
.ar-toss.is-b .toss-coin { animation-name: toss-b; }
.toss-face { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; backface-visibility: hidden;
  background: radial-gradient(circle at 35% 30%, #ffe3a1, var(--brass) 55%, var(--brass-dark)); box-shadow: inset 0 0 0 6px rgba(122, 74, 44, .45), 0 16px 30px rgba(0, 0, 0, .45); }
.toss-face.b { transform: rotateY(180deg); background: radial-gradient(circle at 35% 30%, #6b6f9e, #2b2f78 60%, #171a46); }
.toss-face img { width: 62px; height: 62px; }
@keyframes toss-w { 0% { transform: translateY(40px) rotateY(0); } 50% { transform: translateY(-50px) rotateY(1080deg); } 100% { transform: translateY(0) rotateY(1800deg); } }
@keyframes toss-b { 0% { transform: translateY(40px) rotateY(0); } 50% { transform: translateY(-50px) rotateY(1080deg); } 100% { transform: translateY(0) rotateY(1980deg); } }
.toss-t { font: 800 20px var(--display); }
.ar-toss.done .toss-t { display: none; }
.toss-res { margin: 0; font: 800 22px var(--display); color: #ffd277; min-height: 1.3em; }

/* --- yangiliklar: admin e'lonlari --- */
.news-post { display: flex; gap: 14px; align-items: flex-start; border-left: 5px solid var(--brass); }
.np-ico { font-size: 28px; }
.np-t { font: 800 17px var(--display); display: block; margin-bottom: 4px; }
.np-b { white-space: pre-wrap; margin: 0 0 6px; line-height: 1.55; }

/* --- Adminga murojaat --- */
.sp-dialog { width: min(640px, 94vw); }
.sp-msgs { max-height: 46vh; min-height: 120px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 12px; margin: 10px 0 12px; border-radius: 14px; background: var(--porcelain); }
.sp-m { max-width: 82%; padding: 10px 14px; border-radius: 14px; background: var(--ivory); box-shadow: var(--shadow-sm); }
.sp-m.me { align-self: flex-end; background: #dfe7ff; }
.sp-m.adm { border-left: 4px solid var(--brass); }
.sp-m small { display: block; color: var(--ink-soft); font-size: 12px; margin-bottom: 3px; }
.sp-m > div { white-space: pre-wrap; word-wrap: break-word; }
.sp-empty { text-align: center; margin: auto; }
.sp-cats { margin-bottom: 10px; flex-wrap: wrap; }
.sp-dialog textarea { width: 100%; box-sizing: border-box; padding: 12px; border-radius: 12px; border: 1.5px solid var(--line); font: 600 15px "Nunito", sans-serif; resize: vertical; background: var(--ivory); color: var(--ink); }
.sp-err { color: #b3261e; font-weight: 700; min-height: 1.1em; margin: 6px 0; }

@media (max-width: 820px) {
  .pro-hero { grid-template-columns: 1fr; }
  .pro-board { transform: rotate(-90deg); margin: -110px auto -110px; }
  .pro-plans { grid-template-columns: 1fr; }
  .rc-doors { grid-template-columns: minmax(0, 360px); }
  .pay-row { grid-template-columns: 1fr auto; } .pay-row small { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .pro-pawn { animation: none; opacity: 0; } .pro-queen { animation: none; opacity: 1; transform: none; }
  .toss-coin { animation-duration: .01s; } .rc-door, .pro-plan { transition: none; }
}

/* --- kechki mavzu (dark.css generatori bu faylni o'qimaydi — qo'lda) --- */
html[data-mode="dark"] .sp-m.me { background: #2a3270; }
html[data-mode="dark"] .home-pro { color: var(--ink); background: linear-gradient(90deg, rgba(240, 177, 58, .2), rgba(240, 177, 58, .06)); }
html[data-mode="dark"] .home-pro > svg { color: var(--brass); }
html[data-mode="dark"] .fb-free { color: #ffd277; }
html[data-mode="dark"] .fb-free.low { background: #5a1f27; color: #ffb4bb; }
html[data-mode="dark"] .sp-dialog textarea { border-color: var(--line); }

/* --- v3.0.2: nik va ID qadami --- */
.pro-nick { max-width: 520px; }
.nk-art { width: 110px; height: 110px; object-fit: contain; margin: 2vh auto 6px; display: block; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .35)); }
.pro-nick form { text-align: left; }
.id-k { margin: 6vh 0 6px; color: #c9cdf0; font-weight: 800; }
.id-num { font: 800 clamp(40px, 6vw, 64px)/1 var(--display); color: #ffd277; letter-spacing: .06em; margin-bottom: 14px; }
.cab-secure { display: flex; gap: 18px; align-items: center; justify-content: space-between; border: 1.5px solid rgba(240, 177, 58, .55);
  background: linear-gradient(90deg, rgba(240, 177, 58, .14), rgba(240, 177, 58, .03)); margin-bottom: 16px; }
.cab-secure p { margin: 6px 0; color: var(--ink-soft); }
.cab-secure .code-box { margin-top: 8px; }
.cab-secure > .btn { white-space: nowrap; flex: none; }
@media (max-width: 820px) { .cab-secure { flex-direction: column; align-items: stretch; } }
.pay-promo { text-align: center; color: #4ade80; font-weight: 800; margin: -6px 0 12px; }
.pay-promo s { color: #c9cdf0; opacity: .8; }
/* v3.1.1: 4 ta karta (maktab paketi — 7 xonali narxlar) — narx karta ichida qoladi, «so'm» kerak bo'lsa keyingi qatorga tushadi */
.pro-plans.n4 .pro-plan { min-width: 0; padding: 18px 16px 16px; }
.pro-plans.n4 .pp-price { white-space: normal; font-size: clamp(18px, 1.55vw, 24px); line-height: 1.15; overflow-wrap: anywhere; }
.pro-plans.n4 .pp-per, .pro-plans.n4 .pp-save { white-space: normal; }
.pay-tg { width: 100%; margin-top: 10px; background: #229ED9; color: #fff; border: 0; }
.pay-tg-note { display: block; text-align: center; color: #c9cdf0; margin-top: 6px; }
