/* ==========================================================================
   Blok Test: "centers" bo'limi sahifalari (landing, kirish, ro'yxatdan o'tish,
   markazsiz hisob, boshqaruv paneli, markaz ma'lumotlari).
   Qatlamsiz yozilgan: app.css qatlamlaridan har doim ustun. Faqat tokenlar ishlatiladi.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Umumiy
   -------------------------------------------------------------------------- */
@keyframes c-spin { to { transform: rotate(360deg); } }
@keyframes c-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes c-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes c-shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-6px); } 40%, 60% { transform: translateX(6px); } }
@keyframes c-pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, .55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(99, 102, 241, 0); } }
@keyframes c-typing { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes c-orbit { to { transform: translate(-50%, -50%) rotate(360deg); } }

:root {
  --c-accent-text: linear-gradient(92deg, #4f46e5 0%, #9333ea 52%, #0e7490 100%);
  --c-bubbles-white: radial-gradient(circle, transparent 0 5px, rgba(255, 255, 255, .22) 5.6px 6.8px, transparent 7.4px);
  --c-tg: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);
}
[data-theme="dark"] { --c-accent-text: linear-gradient(92deg, #a5b4fc 0%, #d8b4fe 50%, #67e8f9 100%); }

/* Gradient ustidagi oq matnli yuzalar uchun umumiy halqa ranglari */
.on-gradient .ring-track { stroke: rgba(255, 255, 255, .25); }
.on-gradient .ring-label { color: #fff; }

/* --------------------------------------------------------------------------
   1. LANDING
   -------------------------------------------------------------------------- */
.page-landing .public-footer { display: none; }
@media (prefers-reduced-motion: no-preference) {
  html:has(body.page-landing) { scroll-behavior: smooth; }
  .lp-anim [data-reveal]:not(.is-in) { opacity: 0; }
  .lp-anim [data-reveal].is-in { animation: c-rise .7s var(--ease) backwards; animation-delay: calc(var(--d, 0) * 80ms); }
}
@media print { .lp-anim [data-reveal] { opacity: 1 !important; animation: none !important; } }

/* --- Hero --- */
.lp-hero { position: relative; isolation: isolate; padding-bottom: clamp(8px, 2vw, 24px); }
/* Sichqoncha ortidan yuruvchi yumshoq yorug'lik (centers.js: data-lp-hero -> --hx/--hy, .is-lit) */
.lp-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease);
  background: radial-gradient(520px circle at var(--hx, 70%) var(--hy, 30%), rgba(129, 140, 248, .16), transparent 62%);
}
.lp-hero.is-lit::before { opacity: 1; }
[data-theme="dark"] .lp-hero::before { background: radial-gradient(520px circle at var(--hx, 70%) var(--hy, 30%), rgba(129, 140, 248, .13), transparent 62%); }
/* Bezak (orbitalar, telefon nuri) ekrandan chiqib gorizontal aylantirish yaratmasin */
.lp-hero, .lp-section { overflow-x: clip; }
.lp-hero-inner { padding-top: clamp(20px, 5vw, 64px); padding-bottom: clamp(24px, 4vw, 48px); }
.lp-hero-copy { min-width: 0; }
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-bottom: 22px; padding: 6px 14px 6px 10px;
  border-radius: var(--r-pill); border: 1px solid var(--glass-border); background: var(--glass-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow-sm);
  color: var(--text-2); font-size: var(--fs-sm); font-weight: 700; text-decoration: none !important;
  transition: border-color var(--dur) var(--ease), color var(--dur);
}
.lp-eyebrow .icon { width: 15px; height: 15px; color: var(--brand-text); transition: transform var(--dur) var(--ease); }
.lp-eyebrow:hover { border-color: var(--brand-soft-2); color: var(--text); }
.lp-eyebrow:hover .icon { transform: translateX(3px); }
.lp-eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad-bubble); flex-shrink: 0; animation: c-pulse-dot 2s ease-out infinite; }
.lp-hero .landing-title { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4rem); }
.lp-title-accent { background: var(--c-accent-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lp-btn-glass { background: var(--glass-bg); border-color: var(--glass-border); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.lp-trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: var(--fs-md); font-weight: 600; }
.lp-trust li { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
.lp-trust .icon { width: 17px; height: 17px; color: var(--success); }

.lp-hero-art { position: relative; min-width: 0; display: grid; place-items: center; padding: 20px 0; }
.lp-hero-art .sheet-demo { position: relative; z-index: 1; }
.lp-hero-art .sheet-card { transform: perspective(1100px) rotateX(calc(var(--rx, 0) * 1deg)) rotateY(calc(var(--ry, 0) * 1deg)) rotate(-2.5deg); transition: transform .4s var(--ease); }
.lp-orbit { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1.5px dashed var(--brand-soft-2); transform: translate(-50%, -50%); pointer-events: none; }
.lp-orbit-1 { width: min(520px, 118%); aspect-ratio: 1; animation: c-orbit 90s linear infinite; }
.lp-orbit-2 { width: min(380px, 86%); aspect-ratio: 1; border-style: solid; border-color: var(--border); opacity: .7; }
.lp-orbit-1::before { content: ""; position: absolute; top: 12%; left: 8%; width: 14px; height: 14px; border-radius: 50%; background: var(--grad-bubble); box-shadow: var(--shadow-brand); }
.lp-float {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: var(--fs-sm); line-height: 1.2;
  animation: c-float 6s ease-in-out infinite;
}
.lp-float b { display: block; font-weight: 800; }
.lp-float small { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.lp-float-top { right: max(0px, calc(50% - 212px)); bottom: 21%; }   /* varaqning bo'sh o'ng qismida: sarlavha va doirachalarni yopmaydi */
.lp-float-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--success-bg); color: var(--success); }
.lp-float-icon .icon { width: 18px; height: 18px; }

/* --- Raqamlar tasmasi --- */
.lp-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1120px; margin: 0 auto;
  width: calc(100% - 2 * clamp(16px, 4vw, 40px));
  border-radius: var(--r-xl); border: 1px solid var(--glass-border); background: var(--glass-bg); box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.lp-stat { display: flex; flex-direction: column; gap: 4px; padding: 22px 26px; min-width: 0; }
.lp-stat + .lp-stat { border-left: 1px solid var(--border); }
.lp-stat b {
  font-family: var(--font-display); font-size: clamp(1.7rem, 1.3rem + 1.3vw, 2.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1;
  background: var(--c-accent-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums;
}
.lp-stat b small { font-size: .55em; letter-spacing: 0; }
.lp-stat > span { color: var(--muted); font-size: var(--fs-md); font-weight: 600; line-height: 1.35; }

/* --- Bo'limlar --- */
.lp-section { max-width: 1200px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 40px) 0; scroll-margin-top: 12px; }
.lp-section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(28px, 4vw, 44px); }
.lp-section-head h2 { font-size: clamp(1.65rem, 1.15rem + 2vw, 2.55rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.12; margin: 14px 0 12px; }
.lp-section-head p { color: var(--muted); font-size: clamp(1rem, .96rem + .2vw, 1.0625rem); margin: 0 auto; max-width: 60ch; }
.lp-section-head-left { text-align: left; margin: 0; }
.lp-section-head-left p { margin: 0; }
.lp-kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 8px; border-radius: var(--r-pill);
  background: var(--brand-soft); color: var(--brand-text); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.lp-kicker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--grad-bubble); box-shadow: 0 0 0 3px var(--brand-soft-2); }

/* --- Imkoniyatlar --- */
.lp-features.feature-grid { padding: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.lp-feature { overflow: hidden; margin: 0; padding: 26px; border-radius: var(--r-xl); transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease), border-color var(--dur); }
.lp-feature::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity var(--dur-slow) var(--ease);
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(129, 140, 248, .16), transparent 45%);
}
.lp-feature:hover { transform: translateY(-4px); border-color: var(--brand-soft-2); }
.lp-feature:hover::after { opacity: 1; }
.lp-feature .feature-icon { width: 48px; height: 48px; border-radius: 15px; margin-bottom: 18px; transition: transform var(--dur-slow) var(--ease-spring); }
.lp-feature:hover .feature-icon { transform: rotate(-8deg) scale(1.08); }
.lp-feature h3 { font-size: 1.125rem; margin-bottom: 8px; }
.lp-feature p { line-height: 1.6; }
.lp-fi-1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.lp-fi-2 { background: linear-gradient(135deg, #8b5cf6, #d946ef); box-shadow: 0 6px 18px -6px rgba(168, 85, 247, .6); }
.lp-fi-3 { background: linear-gradient(135deg, #0ea5e9, #6366f1); box-shadow: 0 6px 18px -6px rgba(14, 165, 233, .55); }
.lp-fi-4 { background: linear-gradient(135deg, #06b6d4, #10b981); box-shadow: 0 6px 18px -6px rgba(6, 182, 212, .55); }
.lp-fi-5 { background: linear-gradient(135deg, #f59e0b, #ef4444); box-shadow: 0 6px 18px -6px rgba(245, 158, 11, .55); }
.lp-fi-6 { background: var(--c-tg); box-shadow: 0 6px 18px -6px rgba(34, 158, 217, .6); }

/* --- Qadamlar --- */
.lp-steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.lp-steps::before {
  content: ""; position: absolute; top: 36px; left: 10%; right: 10%; height: 2px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--brand-soft-2) 0 10px, transparent 10px 18px);
}
.lp-step { position: relative; text-align: center; margin: 0; padding: 0 4px; }
.lp-step-icon {
  position: relative; display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 16px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--border); color: var(--brand-text); box-shadow: var(--shadow-md);
  transition: transform var(--dur-slow) var(--ease-spring), box-shadow var(--dur-slow);
}
.lp-step-icon .icon { width: 28px; height: 28px; }
.lp-step:hover .lp-step-icon { transform: translateY(-4px) rotate(-4deg); box-shadow: var(--shadow-lg); }
.lp-step-n {
  position: absolute; right: -8px; top: -8px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--grad-btn); color: #fff; font: 800 var(--fs-xs)/1 var(--font-display); box-shadow: 0 0 0 3px var(--bg);
}
.lp-step h3 { font-size: var(--fs-lg); margin: 0 0 6px; }
.lp-step p { color: var(--muted); font-size: var(--fs-md); margin: 0; }

/* --- Kitob raqami rejimlari --- */
.lp-modes { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
.lp-modes-note { margin: 22px 0 0; font-size: var(--fs-md); }
.lp-mode-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.lp-mode { margin: 0; padding: 24px; border-radius: var(--r-xl); display: flex; flex-direction: column; gap: 12px; }
.lp-mode-alt { margin-top: 36px; }
.lp-mode-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lp-mode-ico { width: 22px; height: 22px; color: var(--faint); }
.lp-mode h3 { margin: 4px 0 0; font-size: var(--fs-lg); }
.lp-mode p { color: var(--muted); font-size: var(--fs-md); margin: 0; line-height: 1.6; }
.lp-mode-code { container-type: inline-size; padding: 16px 12px; border-radius: var(--r-md); background: var(--surface-2); border: 1px dashed var(--border-strong); text-align: center; }
/* 7 katak = 7 x 1.55em + 6 x 5px: 1081px+ da karta ~300px bo'lib qatori chiziqli ramkadan chiqib ketardi,
   shuning uchun o'lcham ramka kengligiga (cqi) moslanadi; eski clamp yuqori chegara va zaxira bo'lib qoladi */
.lp-mode-code .code-cells { font-size: clamp(1rem, .9rem + .5vw, 1.3rem); }
.lp-mode-code .code-cells { font-size: min(clamp(1rem, .9rem + .5vw, 1.3rem), max(.75rem, (100cqi - 30px) / 10.85)); }
.lp-mode .code-cells > span { background: var(--surface); }
.lp-mode .code-cells > span:nth-child(odd) { border-color: var(--brand); color: var(--brand-text); }
.lp-mode-alt .code-cells > span:nth-child(odd) { border-color: var(--success-solid); color: var(--success); }

/* --- Telegram --- */
.lp-tg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(28px, 6vw, 72px); align-items: center; }
.lp-tg-copy h2 { font-size: clamp(1.65rem, 1.15rem + 2vw, 2.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.12; margin: 14px 0 14px; }
.lp-tg-copy > p { color: var(--muted); font-size: var(--fs-lg); line-height: 1.65; margin-bottom: 22px; }
.lp-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.lp-checks li { display: flex; gap: 12px; align-items: flex-start; margin: 0; color: var(--text-2); }
.lp-checks .icon { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--success-bg); color: var(--success); stroke-width: 3; flex-shrink: 0; }

.lp-phone {
  position: relative; width: min(100%, 380px); justify-self: center; border-radius: 34px; padding: 10px;
  background: linear-gradient(160deg, #1d2140, #0c0f22); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.lp-phone::before { content: ""; position: absolute; inset: -40px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(34, 158, 217, .28), transparent); }
.lp-phone-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 26px 26px 0 0; background: #17213a; color: #fff; }
.lp-phone-avatar .brand-mark { border-radius: 50%; box-shadow: none; }
.lp-phone-name { display: flex; flex-direction: column; line-height: 1.2; }
.lp-phone-name b { font-size: var(--fs-md); }
.lp-phone-name small { font-size: var(--fs-xs); color: #8fa3c7; }
.lp-chat {
  display: flex; flex-direction: column; gap: 10px; padding: 18px 14px 20px; border-radius: 0 0 26px 26px; min-height: 360px;
  background: radial-gradient(circle, transparent 0 5px, rgba(255, 255, 255, .05) 5.6px 6.6px, transparent 7.2px) 0 0 / 26px 26px, linear-gradient(180deg, #0f1a2e, #122038);
}
.lp-msg {
  position: relative; display: flex; flex-direction: column; gap: 6px; max-width: 92%; padding: 12px 14px 8px; border-radius: 16px 16px 16px 4px;
  background: #1f2c47; color: #e8eefb; font-size: var(--fs-sm); line-height: 1.45; box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.lp-msg .icon { width: 14px; height: 14px; color: #7fc4ff; margin-right: 6px; vertical-align: -2px; }
.lp-msg-hello { font-weight: 700; color: #fff; }
.lp-msg-line { color: #c9d5ee; }
.lp-msg-line b { color: #fff; }
.lp-msg-rows { display: grid; gap: 4px; margin: 4px 0 2px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .05); }
.lp-msg-rows span { display: flex; justify-content: space-between; gap: 10px; color: #b7c5e3; }
.lp-msg-rows em { font-style: normal; color: #e8eefb; font-variant-numeric: tabular-nums; }
.lp-msg-rows em b { color: #fff; }
.lp-msg-score { font-size: var(--fs-md); color: #e8eefb; }
.lp-msg-score strong { font-size: 1.15rem; color: #fff; }
.lp-msg-score .icon { color: #fbbf24; width: 16px; height: 16px; }
.lp-msg-rank { color: #a5f3c4; font-weight: 700; }
.lp-msg-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: #8fa3c7; font-size: var(--fs-xs); }
.lp-msg-foot time { color: #6f84aa; }
.lp-typing { display: inline-flex; gap: 4px; align-self: flex-start; padding: 10px 12px; border-radius: 14px 14px 14px 4px; background: #1f2c47; }
.lp-typing i { width: 6px; height: 6px; border-radius: 50%; background: #8fa3c7; animation: c-typing 1.3s infinite ease-in-out; }
.lp-typing i:nth-child(2) { animation-delay: .15s; }
.lp-typing i:nth-child(3) { animation-delay: .3s; }

/* --- Savollar --- */
.lp-faq-list { max-width: 780px; margin: 0 auto; }
.page-landing details.collapse { background: var(--glass-bg); border-color: var(--glass-border); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow-sm); }
.page-landing details.collapse > summary { padding: 16px 18px; font-size: var(--fs-base); }
.page-landing details.collapse > .collapse-body { padding: 0 18px 18px; color: var(--text-2); line-height: 1.65; }
.page-landing details.collapse[open] { border-color: var(--brand-soft-2); }

/* --- Chaqiriq --- */
.lp-cta {
  position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 24px 40px; padding: clamp(28px, 5vw, 56px); border-radius: 28px; background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand), var(--shadow-lg);
}
.lp-cta-bubbles, .auth-visual-bubbles, .dash-hero::before {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--c-bubbles-white); background-size: 28px 28px; background-position: 14px 14px;
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 100% 50%, #000 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 90% at 100% 50%, #000 10%, transparent 75%);
}
.lp-cta-copy { max-width: 560px; }
.lp-cta h2 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); font-weight: 800; letter-spacing: -.03em; margin: 0 0 10px; }
.lp-cta p { margin: 0; opacity: .9; font-size: var(--fs-lg); }
.lp-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-btn-white { background: #fff; color: #3730a3; border-color: transparent; box-shadow: 0 10px 24px -10px rgba(10, 10, 40, .5); }
.lp-btn-white:hover { background: #fff; color: #312e81; border-color: transparent; }
.lp-btn-white .icon { transition: transform var(--dur) var(--ease); }
.lp-btn-white:hover .icon { transform: translateX(3px); }
.lp-btn-outline { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .45); box-shadow: none; }
.lp-btn-outline:hover { background: rgba(255, 255, 255, .16); border-color: #fff; color: #fff; }

/* --- Pastki qism --- */
.lp-footer { max-width: 1200px; margin: clamp(56px, 8vw, 96px) auto 0; padding: 0 clamp(16px, 4vw, 40px) 28px; }
.lp-footer-inner { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 32px; padding: 36px 0 28px; border-top: 1px solid var(--border); }
.lp-footer-brand p { color: var(--muted); font-size: var(--fs-md); max-width: 42ch; margin: 14px 0 0; }
.lp-footer-col { display: flex; flex-direction: column; gap: 8px; }
.lp-footer-col h3 { font-size: var(--fs-sm); color: var(--text); margin: 0 0 4px; }
.lp-footer-col a { color: var(--muted); font-size: var(--fs-md); font-weight: 600; width: fit-content; }
.lp-footer-col a:hover { color: var(--brand-text); }
.lp-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: var(--fs-sm); }

/* Landing: moslashuvchanlik */
@media (max-width: 1080px) {
  .lp-modes { grid-template-columns: minmax(0, 1fr); }
  .lp-section-head-left { text-align: center; margin: 0 auto; max-width: 720px; }
  .lp-section-head-left p { margin: 0 auto; }
  .lp-tg { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); }
}
@media (max-width: 900px) {
  .lp-steps { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 560px; margin: 0 auto; }
  .lp-steps::before { top: 36px; bottom: 36px; left: 35px; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--brand-soft-2) 0 10px, transparent 10px 18px); }
  .lp-step { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 18px; text-align: left; padding: 0 0 22px; }
  .lp-step:last-child { padding-bottom: 0; }
  .lp-step-icon { grid-row: span 2; margin: 0; }
  .lp-step h3 { align-self: end; margin-top: 12px; }
  .lp-tg { grid-template-columns: minmax(0, 1fr); }
  .lp-tg-copy { text-align: center; }
  .lp-checks { max-width: 480px; margin: 0 auto; text-align: left; }
  .lp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-stat:nth-child(3) { border-left: 0; }
  .lp-stat:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 900px) {
  /* Planshetda ikki ustun juda tor: varaq tasviri kichrayib, belgilar doirachalarni yopadi */
  .lp-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .lp-hero-copy { text-align: center; }
  .lp-hero .landing-title, .lp-hero .landing-lead { margin-inline: auto; }
  .lp-hero .landing-cta, .lp-trust { justify-content: center; }
  .lp-hero-art { padding: 8px 0 0; }
}
@media (max-width: 720px) {
  .lp-orbit-1 { width: 108%; }
  .lp-float-top { bottom: 19%; }
  .lp-mode-cards { grid-template-columns: minmax(0, 1fr); }
  .lp-mode-alt { margin-top: 0; }
  .lp-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-footer-brand { grid-column: 1 / -1; }
  .lp-cta { text-align: center; justify-content: center; }
  .lp-cta-actions { justify-content: center; width: 100%; }
  .lp-cta-actions .btn { flex: 1 1 200px; }
}
@media (max-width: 480px) {
  .lp-hero .landing-cta .btn { width: 100%; }
  .lp-stat { padding: 16px; }
  .lp-trust { flex-direction: column; align-items: center; gap: 6px; }
  .lp-hero-art .sheet-demo { padding-right: 18px; }
}

/* --------------------------------------------------------------------------
   2. KIRISH / RO'YXATDAN O'TISH / MARKAZSIZ HISOB
   -------------------------------------------------------------------------- */
.page-auth .public-main { display: flex; flex-direction: column; }
.is-shake { animation: c-shake .5s var(--ease) 1; }
.auth-lead { color: var(--muted); font-size: var(--fs-base); margin: 0; }

/* Birlashgan ikki ustunli karta (kirish) */
.auth-split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; max-width: 980px;
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
}
.auth-split > .auth-card { max-width: none; margin: 0; border-radius: var(--r-xl) 0 0 var(--r-xl); box-shadow: none; padding: clamp(28px, 4vw, 48px); }
.auth-head { margin-bottom: 26px; }
.auth-badge { display: inline-flex; margin-bottom: 18px; }
.auth-badge .brand-mark { border-radius: 14px; }
.auth-head h1 { margin-bottom: 8px; }
.auth-form .form-row { margin-bottom: 16px; }
.auth-form .btn-block { margin-top: 8px; }
.auth-form .btn-block .icon { transition: transform var(--dur) var(--ease); }
.auth-form .btn-block:hover .icon { transform: translateX(3px); }
.auth-caps { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: var(--fs-sm); font-weight: 650; color: var(--warning); }
.auth-caps .icon { width: 16px; height: 16px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; color: var(--faint); font-size: var(--fs-sm); font-weight: 600; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-alt-btn { background: var(--surface); }
.auth-note { display: flex; align-items: flex-start; gap: 8px; margin: 18px 0 0; color: var(--muted); font-size: var(--fs-sm); }
.auth-note .icon { width: 17px; height: 17px; color: var(--success); margin-top: 1px; }

.auth-visual, .reg-aside {
  position: relative; overflow: hidden; isolation: isolate; color: #fff; background: var(--grad-brand);
  border-radius: 0 var(--r-xl) var(--r-xl) 0;
}
.auth-visual::after, .reg-aside::after {
  content: ""; position: absolute; z-index: -1; width: 320px; height: 320px; right: -120px; bottom: -120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, .55), transparent 70%);
}
.auth-visual-bubbles { -webkit-mask-image: radial-gradient(ellipse 80% 70% at 100% 0%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 100% 0%, #000 10%, transparent 75%); }
.auth-visual-inner { display: flex; flex-direction: column; height: 100%; padding: clamp(28px, 4vw, 48px); }
.auth-visual-kicker { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.auth-visual-kicker .icon { width: 15px; height: 15px; }
.auth-visual h2 { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; letter-spacing: -.03em; margin: 22px 0 26px; }
.auth-visual-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 16px; }
.auth-visual-list li { display: flex; align-items: flex-start; gap: 14px; margin: 0; }
.auth-visual-list li > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); }
.auth-visual-list .icon { width: 20px; height: 20px; }
.auth-visual-list b { display: block; font-size: var(--fs-base); }
.auth-visual-list small { display: block; opacity: .82; font-size: var(--fs-sm); font-weight: 550; margin-top: 2px; }
.auth-visual-card {
  display: flex; align-items: center; gap: 14px; margin-top: auto; padding: 14px 16px; border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .24); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.auth-visual-card b { display: block; }
.auth-visual-card small { opacity: .82; font-size: var(--fs-xs); font-weight: 600; }
.auth-visual .ring-track, .reg-aside .ring-track { stroke: rgba(255, 255, 255, .22); }
.auth-visual .ring-success { --ring-color: #6ee7b7; }
.auth-visual .ring-label { font-size: 12px; }

@media (max-width: 880px) {
  .auth-split { grid-template-columns: minmax(0, 1fr); max-width: 480px; box-shadow: none; }
  .auth-split > .auth-card { border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
  .auth-visual { display: none; }
}

/* --- Ro'yxatdan o'tish --- */
.reg {
  display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 24px; align-items: start;
  width: 100%; max-width: 1140px; margin: 0 auto; padding: 8px clamp(16px, 4vw, 40px) 48px;
}
.reg-aside { position: sticky; top: 20px; border-radius: var(--r-xl); box-shadow: var(--shadow-brand), var(--shadow-lg); }
.reg-aside-inner { padding: 30px 28px; }
.reg-aside h2 { color: #fff; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); font-weight: 800; letter-spacing: -.03em; margin: 20px 0 10px; }
.reg-aside-lead { opacity: .88; font-size: var(--fs-md); line-height: 1.6; margin-bottom: 24px; }
.reg-steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 4px; position: relative; }
.reg-steps li { margin: 0; position: relative; }
.reg-steps li:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 46px; bottom: -6px; width: 2px; background: rgba(255, 255, 255, .22); }
.reg-steps li.is-complete:not(:last-child)::after { background: rgba(255, 255, 255, .7); }
.reg-steps a { display: flex; align-items: center; gap: 14px; padding: 8px 10px; border-radius: var(--r-md); color: #fff; text-decoration: none !important; transition: background var(--dur-fast); }
.reg-steps a:hover { background: rgba(255, 255, 255, .1); }
.reg-steps b { display: block; font-size: var(--fs-base); }
.reg-steps small { display: block; opacity: .78; font-size: var(--fs-xs); font-weight: 600; }
.reg-step-dot {
  position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, .5); font: 800 var(--fs-sm)/1 var(--font-display);
  transition: background var(--dur) var(--ease), border-color var(--dur), transform var(--dur) var(--ease-spring), box-shadow var(--dur);
}
.reg-step-dot .icon, .reg-num .icon { display: none; width: 17px; height: 17px; stroke-width: 3; }
.reg-steps li.is-current .reg-step-dot { border-color: #fff; box-shadow: 0 0 0 5px rgba(255, 255, 255, .18); }
.reg-steps li.is-complete .reg-step-dot { background: #fff; border-color: #fff; color: var(--indigo); transform: scale(1.04); }
.reg-steps li.is-complete .reg-step-dot > span, .reg-section.is-complete .reg-num > span { display: none; }
.reg-steps li.is-complete .reg-step-dot .icon, .reg-section.is-complete .reg-num .icon { display: block; }
.reg-steps li.has-errors .reg-step-dot { border-color: #fecdd3; background: rgba(225, 29, 72, .5); }
.reg-perks { list-style: none; padding: 16px 0 0; margin: 0; display: grid; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: var(--fs-sm); font-weight: 600; }
.reg-perks li { display: flex; align-items: flex-start; gap: 10px; margin: 0; opacity: .92; }
.reg-perks .icon { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }

.reg-card { max-width: none; margin: 0; padding: clamp(22px, 3.4vw, 40px); }
.reg-head { margin-bottom: 22px; }
.reg-head h1 { margin-bottom: 6px; }
.reg-progress { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.reg-progress .progress { flex: 1; }
.reg-progress .progress > div { transition: width .5s var(--ease); }
.reg-progress span { font-size: var(--fs-sm); font-weight: 750; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 4ch; text-align: right; white-space: nowrap; }
.reg-section { border: 0; margin: 0; padding: 22px 0 6px; min-width: 0; scroll-margin-top: 16px; }
.reg-section + .reg-section { border-top: 1px dashed var(--border-strong); }
.reg-legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; padding: 0; margin: 0 0 18px; }
.reg-legend + * { clear: both; }
.reg-num {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--brand-soft); color: var(--brand-text); border: 1.5px solid var(--brand-soft-2); font: 800 var(--fs-sm)/1 var(--font-display);
  transition: background var(--dur) var(--ease), color var(--dur), transform var(--dur) var(--ease-spring);
}
.reg-section.is-complete .reg-num { background: var(--success-solid); border-color: transparent; color: #fff; transform: scale(1.05); }
.reg-section.has-errors .reg-num { background: var(--danger-bg); border-color: var(--danger-border); color: var(--danger); }
.reg-legend-text { display: flex; flex-direction: column; line-height: 1.3; }
.reg-legend-text b { font-size: var(--fs-lg); font-weight: 800; font-family: var(--font-display); letter-spacing: -.015em; }
.reg-legend-text small { color: var(--muted); font-size: var(--fs-sm); font-weight: 550; }
.reg-submit { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 20px; margin-top: 6px; border-top: 1px solid var(--border); }
.reg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.reg-submit .btn-primary .icon { transition: transform var(--dur) var(--ease); }
.reg-submit .btn-primary:hover .icon { transform: translateX(3px); }
.reg-back .icon { transition: transform var(--dur) var(--ease); }
.reg-back:hover .icon { transform: translateX(-3px); }
.reg-error-steps { flex-wrap: wrap; }

/* Qadamli rejim (centers.js: form.is-wizard, bitta bo'lim ko'rinadi) */
.is-wizard .reg-section { border-top: 0; padding-top: 8px; }
.is-wizard .reg-legend { margin-bottom: 20px; }
@keyframes c-step-in { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes c-step-in-back { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .reg-section.is-entering { animation: c-step-in .34s var(--ease) both; }
  .reg-section.is-entering-back { animation: c-step-in-back .34s var(--ease) both; }
}
.reg-steps li.is-current a { background: rgba(255, 255, 255, .12); }
.reg-steps a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: none; }

/* Parol kuchi ko'rsatkichi va mos kelish belgisi (centers.js yaratadi) */
.pw-meter { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.pw-bars { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.pw-bars i { height: 5px; border-radius: 3px; background: var(--surface-3); transition: background var(--dur) var(--ease); }
.pw-label { font-size: var(--fs-xs); font-weight: 750; color: var(--muted); min-width: 64px; text-align: right; }
.pw-meter[data-level="1"] .pw-bars i:nth-child(-n+1) { background: var(--danger-solid); }
.pw-meter[data-level="2"] .pw-bars i:nth-child(-n+2) { background: var(--warning-solid); }
.pw-meter[data-level="3"] .pw-bars i:nth-child(-n+3) { background: #22c55e; }
.pw-meter[data-level="4"] .pw-bars i { background: var(--success-solid); }
.pw-meter[data-level="1"] .pw-label { color: var(--danger); }
.pw-meter[data-level="2"] .pw-label { color: var(--warning); }
.pw-meter[data-level="3"] .pw-label, .pw-meter[data-level="4"] .pw-label { color: var(--success); }
.pw-rules { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 3px; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.pw-rules li { display: flex; align-items: center; gap: 6px; margin: 0; transition: color var(--dur); }
.pw-rules .icon { width: 14px; height: 14px; stroke-width: 3; opacity: .45; }
.pw-rules li.is-ok { color: var(--success); }
.pw-rules li.is-ok .icon { opacity: 1; }
.pw-match { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: var(--fs-sm); font-weight: 650; }
.pw-match .icon { width: 15px; height: 15px; stroke-width: 2.6; }
.pw-match.is-ok { color: var(--success); }
.pw-match.is-bad { color: var(--danger); }
/* Maydon ostida xato matni chiqqan bo'lsa, bir xil "mos emas" yozuvi takrorlanmasin */
.form-row:has(> .field-hint.is-error) > .pw-match.is-bad { display: none; }

@media (max-width: 960px) {
  .reg { grid-template-columns: minmax(0, 1fr); max-width: 720px; gap: 16px; }
  .reg-aside { position: relative; top: auto; }
  .reg-aside-inner { padding: 20px 20px 16px; }
  .reg-aside h2 { margin: 12px 0 4px; font-size: 1.3rem; }
  .reg-aside-lead, .reg-perks { display: none; }
  .reg-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 14px 0 0; }
  .reg-steps li:not(:last-child)::after { display: none; }
  .reg-steps a { flex-direction: column; text-align: center; gap: 6px; padding: 8px 4px; }
  .reg-steps b { font-size: var(--fs-sm); }
  .reg-steps small { display: none; }
}
@media (max-width: 720px) {
  .reg-actions { width: 100%; flex-wrap: nowrap; }
  .reg-actions .btn-primary { flex: 1 1 auto; min-width: 0; }
  .reg-actions .reg-back { flex: 0 0 auto; padding-inline: 14px; }
  .reg-submit { justify-content: center; text-align: center; }
}

/* --- Markazsiz hisob --- */
.nc-card { max-width: 580px; text-align: center; }
.nc-art { position: relative; width: 112px; height: 112px; margin: 4px auto 22px; display: grid; place-items: center; }
.nc-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed var(--brand-soft-2); animation: c-spin 40s linear infinite; }
.nc-icon { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 24px; background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand); }
.nc-icon .icon { width: 36px; height: 36px; }
.nc-badge {
  position: absolute; right: 6px; bottom: 6px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface); color: var(--danger); border: 1px solid var(--danger-border); box-shadow: var(--shadow-md);
}
.nc-badge .icon { width: 17px; height: 17px; }
.nc-badge::after { content: ""; position: absolute; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transform: rotate(-45deg); }
.nc-card h1 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.8rem); }
.nc-options { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; text-align: left; }
.nc-options li { display: flex; align-items: flex-start; gap: 14px; margin: 0; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); }
.nc-options b { display: block; }
.nc-options small { display: block; color: var(--muted); font-size: var(--fs-sm); margin-top: 2px; }
.nc-opt-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; background: var(--surface-3); color: var(--text-2); }
.nc-opt-icon.is-brand { background: var(--brand-soft); color: var(--brand-text); }
.nc-opt-icon .icon { width: 19px; height: 19px; }
.nc-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.nc-actions form { display: inline-flex; }
@media (max-width: 520px) {
  .nc-actions, .nc-actions form, .nc-actions .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   3. BOSHQARUV PANELI
   -------------------------------------------------------------------------- */
.dash-hero {
  position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
  gap: 18px 24px; margin: 4px 0 20px; padding: clamp(20px, 3vw, 30px) clamp(20px, 3vw, 32px);
  border-radius: var(--r-xl); background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand), var(--shadow-md);
}
.dash-hero::before { content: ""; }
.dash-hero::after {
  content: ""; position: absolute; z-index: -1; right: -80px; top: -140px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, .5), transparent 68%);
}
.dash-hero-art { position: absolute; z-index: -1; right: clamp(180px, 30%, 380px); top: 50%; transform: translateY(-50%); display: grid; grid-template-columns: repeat(4, 22px); gap: 10px; opacity: .5; pointer-events: none; }
.dash-hero-art i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .65); }
.dash-hero-art i:nth-child(2), .dash-hero-art i:nth-child(7) { background: #fff; border-color: #fff; }
.dash-hero-main { min-width: 0; }
.dash-hero .dash-kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px; color: rgba(255, 255, 255, .88);
  font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 750; letter-spacing: .02em;
}
.dash-kicker .icon { width: 17px; height: 17px; }
.dash-greeting { margin: 0 0 12px; font-family: var(--font-display); font-size: clamp(1.55rem, 1.1rem + 1.6vw, 2.3rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.dash-hero-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 0; font-size: var(--fs-md); font-weight: 600; color: rgba(255, 255, 255, .92); }
.dash-hero-sub > span, .dash-hero-pill { display: inline-flex; align-items: center; gap: 7px; }
.dash-hero-sub .icon { width: 16px; height: 16px; opacity: .9; }
.dash-hero-pill {
  padding: 4px 12px 4px 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28);
  color: #fff !important; text-decoration: none !important; font-weight: 700; transition: background var(--dur-fast);
}
a.dash-hero-pill:hover { background: rgba(255, 255, 255, .26); }
.dash-hero-pill.is-ok .icon { color: #6ee7b7; opacity: 1; }
.dash-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dash-btn-glass { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .32); box-shadow: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dash-btn-glass:hover { background: rgba(255, 255, 255, .2); border-color: #fff; color: #fff; }
.dash-btn-white { background: #fff; color: #3730a3; border-color: transparent; box-shadow: 0 10px 24px -12px rgba(10, 10, 40, .6); }
.dash-btn-white:hover { background: #fff; color: #312e81; border-color: transparent; }

/* Statistika kartalari */
.dash-stats { margin-bottom: 20px; }
.dash-stat .stat-hint .icon { width: 14px; height: 14px; }
.dash-stat .stat-hint > span { display: inline-flex; align-items: center; gap: 6px; }
/* margin-top:auto: yorliq ikki qatorga o'tsa ham qatordagi kartalarning progress chiziqlari bir tekisda turadi */
.dash-stat-meter { flex-direction: column; align-items: stretch; gap: 7px; width: 100%; margin-top: auto; padding-top: 6px; }
.dash-stat-meter .progress { position: relative; z-index: 1; }
/* 4 ustunda karta ~170px dan torayib, "Tekshirilgan varaqlar" va "16 / 19" sinib qoladigan oraliq: 2 x 2 */
@media (max-width: 880px) {
  .dash-stats.grid-4 { --cols: 2; }
}
@media (prefers-reduced-motion: no-preference) {
  .dash-stat { animation: c-rise .6s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
  .att { animation: c-rise .5s var(--ease) backwards; animation-delay: calc(120ms + var(--i, 0) * 60ms); }
}

/* Asosiy panjara */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 340px); gap: 20px; align-items: start; }
.dash-main, .dash-aside { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.dash-main > *, .dash-aside > * { margin: 0; }
.dash-section .section-title h2 { display: inline-flex; align-items: center; gap: 10px; }
.dash-section .section-title h2 > .icon { width: 20px; height: 20px; color: var(--brand-text); }

/* Boshlash qadamlari */
.onb-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.onb-head > div { flex: 1; min-width: 200px; }
.onb-head .ring-label { font-size: 14px; }
.onb-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; counter-reset: none; }
.onb-step {
  position: relative; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 14px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--surface-2); min-width: 0;
}
.onb-step.is-done { background: var(--success-bg); border-color: var(--success-border); }
.onb-step.is-next { background: var(--surface); border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring-soft); }
.onb-dot {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 800 var(--fs-sm)/1 var(--font-display);
  background: var(--surface); border: 1.5px solid var(--border-strong); color: var(--muted);
}
.onb-dot .icon { width: 16px; height: 16px; stroke-width: 3; }
.onb-step.is-done .onb-dot { background: var(--success-solid); border-color: transparent; color: #fff; }
.onb-step.is-next .onb-dot { background: var(--grad-btn); border-color: transparent; color: #fff; animation: c-pulse-dot 2s ease-out infinite; }
.onb-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.onb-text b { font-size: var(--fs-md); line-height: 1.3; }
.onb-text > span { font-size: var(--fs-xs); color: var(--muted); line-height: 1.45; }
.onb-step.is-done .onb-text b { color: var(--success); }
.onb-action { align-self: flex-start; margin-top: 4px; }

.onb-done { padding: 0; overflow: hidden; }
.onb-done-summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; list-style: none; }
.onb-done-summary::-webkit-details-marker { display: none; }
.onb-done-text { flex: 1; display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.onb-done-summary b { font-size: var(--fs-md); }
.onb-done-summary small { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.onb-done-summary .ring-label { font-size: 11px; }
.onb-caret { width: 18px; height: 18px; color: var(--muted); transition: transform var(--dur) var(--ease); }
.onb-done[open] .onb-caret { transform: rotate(180deg); }
.onb-done-summary:hover { background: var(--surface-2); }
.onb-mini { list-style: none; margin: 0; padding: 4px 16px 14px; display: grid; gap: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); }
.onb-mini li { display: flex; align-items: center; gap: 8px; margin: 0; }
.onb-mini .icon { width: 15px; height: 15px; color: var(--success); stroke-width: 3; }

/* Diqqat talab qiladi */
.att-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.att {
  --tone: var(--info); --tone-bg: var(--info-bg); --tone-solid: var(--info-solid);
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; margin: 0;
  padding: 14px 16px 14px 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-xs);
  overflow: hidden; transition: transform var(--dur) var(--ease), box-shadow var(--dur);
}
.att::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tone-solid); }
.att:hover { transform: translateX(2px); box-shadow: var(--shadow-sm); }
.att-warning { --tone: var(--warning); --tone-bg: var(--warning-bg); --tone-solid: var(--warning-solid); }
.att-danger { --tone: var(--danger); --tone-bg: var(--danger-bg); --tone-solid: var(--danger-solid); }
.att-success { --tone: var(--success); --tone-bg: var(--success-bg); --tone-solid: var(--success-solid); }   /* arxiv jonli tugaganda (centers.js) */
.att-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--tone-bg); color: var(--tone); }
.att-icon .icon { width: 20px; height: 20px; }
.att-icon.is-spinning .icon { animation: c-spin 1.4s linear infinite; }
.att-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.att-title { font-weight: 750; font-size: var(--fs-md); color: var(--text); overflow-wrap: anywhere; }
.att-text { font-size: var(--fs-sm); color: var(--muted); }
.att-progress { margin-top: 6px; max-width: 360px; }
.att-action .icon { transition: transform var(--dur) var(--ease); }
.att-action:hover .icon { transform: translateX(2px); }
.att-clear { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-md); background: var(--success-bg); border: 1px solid var(--success-border); }
.att-clear > div { display: flex; flex-direction: column; }
.att-clear b { color: var(--success); }
.att-clear span { font-size: var(--fs-sm); color: var(--text-2); }
.att-clear-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--success-solid); color: #fff; }

/* Diagrammalar kartasi */
.dash-chart .card-header .tab-list { margin: 0; }
.dash-chart-caption { margin: 0 0 6px; font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.dash-chart-box { min-height: 230px; }
.dash-chart-donut .chart-donut-wrap { justify-content: center; gap: 28px 40px; min-height: 230px; }
.dash-chart-donut .chart-donut-wrap svg { width: 190px; }

/* So'nggi testlar */
.dt-list, .db-list { list-style: none; margin: 0; padding: 0; }
.dt-list li, .db-list li { margin: 0; }
.dt-item {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(150px, 190px) 18px; align-items: center; gap: 16px;
  padding: 14px 22px; border-top: 1px solid var(--border); color: var(--text); text-decoration: none !important;
  transition: background var(--dur-fast);
}
.dt-list li:first-child .dt-item { border-top: 0; }
.dt-item:hover { background: var(--row-hover); }
.dt-item:focus-visible { outline-offset: -3px; }
.dt-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; height: 54px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--border); line-height: 1;
}
.dt-date b { font: 800 1.25rem/1 var(--font-display); letter-spacing: -.03em; }
.dt-date small { margin-top: 4px; font-size: var(--fs-2xs); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.dt-date.is-upcoming { background: var(--brand-soft); border-color: var(--brand-soft-2); color: var(--brand-text); }
.dt-date.is-upcoming small { color: var(--brand-text); }
.dt-main { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.dt-title { font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-item:hover .dt-title { color: var(--brand-text); }
.dt-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: var(--fs-sm); color: var(--muted); }
.dt-sub > span:first-child { display: inline-flex; align-items: center; gap: 5px; }
.dt-sub .icon { width: 14px; height: 14px; }
.dt-progress { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dt-count { font-size: var(--fs-sm); color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dt-count b { font-weight: 800; color: var(--text); }
.dt-chev { width: 18px; height: 18px; color: var(--faint); transition: transform var(--dur) var(--ease), color var(--dur); }
.dt-item:hover .dt-chev { transform: translateX(3px); color: var(--brand-text); }

/* Tezkor amallar */
.dash-quick .card-title { margin-bottom: 14px; }
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-weight: 700; font-size: var(--fs-md);
  text-decoration: none !important; transition: transform var(--dur) var(--ease), border-color var(--dur), box-shadow var(--dur), background var(--dur);
}
.quick:hover { transform: translateY(-2px); border-color: var(--brand-soft-2); background: var(--surface); box-shadow: var(--shadow-md); }
.quick-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: #fff; transition: transform var(--dur-slow) var(--ease-spring); }
.quick:hover .quick-icon { transform: rotate(-8deg) scale(1.08); }
.quick-icon .icon { width: 18px; height: 18px; }
.q-1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.q-2 { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.q-3 { background: linear-gradient(135deg, #06b6d4, #10b981); }
.q-4 { background: var(--c-tg); }
.quick-palette {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; margin-top: 12px; padding: 0 10px 0 12px;
  border: 1.5px dashed var(--border-strong); border-radius: var(--r); background: transparent; color: var(--muted); font-size: var(--fs-sm); font-weight: 650;
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
}
.quick-palette:hover { border-color: var(--brand); color: var(--brand-text); background: var(--brand-soft); }
.quick-palette .icon { width: 17px; height: 17px; }
.quick-palette span { flex: 1; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* So'nggi arxivlar */
.db-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--border);
  color: var(--text); text-decoration: none !important; transition: background var(--dur-fast);
}
.dash-batches .card-header { padding-bottom: 14px; margin-bottom: 0; }
a.db-item:hover { background: var(--row-hover); }
a.db-item:focus-visible { outline-offset: -3px; }
.db-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; background: var(--info-bg); color: var(--info); }
.db-icon .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.db-done .db-icon { background: var(--success-bg); color: var(--success); }
.db-failed .db-icon { background: var(--danger-bg); color: var(--danger); }
.db-queued .db-icon .icon, .db-extracting .db-icon .icon, .db-processing .db-icon .icon { animation: c-spin 1.4s linear infinite; }
.db-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
/* Holat nishoni faqat nom qatorida: ostidagi test/vaqt va xato matni kartaning to'liq kengligini oladi */
.db-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.db-top > .badge { flex-shrink: 0; margin-left: auto; }
.db-name { flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: var(--fs-md); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-sub { font-size: var(--fs-xs); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Xato sababi kesilmasin: 3 qatorgacha o'raladi (view uni 70 belgigacha qisqartiradi) */
.db-meta {
  font-size: var(--fs-xs); color: var(--text-2); font-weight: 600; line-height: 1.45; overflow-wrap: break-word;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
.db-meta.text-danger { color: var(--danger); }   /* qatlamsiz .db-meta rangi utilitani bosib ketmasin */
.db-progress { margin-top: 5px; }

/* Telegram holati */
.dash-tg-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.dash-tg-head .card-title { margin-bottom: 3px; }
.dash-tg-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--surface-3); color: var(--muted); flex-shrink: 0; }
.dash-tg.is-on .dash-tg-icon { background: var(--c-tg); color: #fff; box-shadow: 0 6px 16px -6px rgba(34, 158, 217, .6); }
.dash-tg-icon .icon { width: 21px; height: 21px; }
.dash-tg-kv { grid-template-columns: 76px minmax(0, 1fr); gap: 8px 12px; font-size: var(--fs-sm); margin-bottom: 14px; }
.dash-tg-kv dd { margin: 0; }   /* app.css telefonda dl.kv dd ga 10px qo'shadi; bu yerda 2 ustun saqlanadi */
.dash-tg p { margin-bottom: 14px; }

@media (max-width: 1100px) {
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  /* Aniq 2 ustun: "Tezkor amallar" + "So'nggi arxivlar" yonma-yon, Telegram ostida butun qator bo'ylab
     (auto-fit da u chap ustunda yolg'iz qolib, o'ngda bo'sh joy qolardi) */
  .dash-aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .dash-aside > .onb-done, .dash-aside > .dash-tg { grid-column: 1 / -1; }   /* past karta yonida bo'sh joy qolmasin */
  .dash-tg { display: grid; grid-template-columns: max-content minmax(0, 1fr) auto; align-items: center; gap: 12px 28px; }
  .dash-tg-head, .dash-tg .dash-tg-kv, .dash-tg p { margin-bottom: 0; }
  .dash-tg-head { padding-right: 4px; }
  .dash-tg .dash-tg-kv, .dash-tg p { padding-left: 28px; border-left: 1px solid var(--border); }
  .dash-tg > .btn-block { width: auto; }
  .onb-steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
}
@media (max-width: 640px) {
  .dash-aside { grid-template-columns: minmax(0, 1fr); }
  .dash-tg { display: block; }
  .dash-tg-head, .dash-tg .dash-tg-kv, .dash-tg p { margin-bottom: 14px; }
  .dash-tg .dash-tg-kv, .dash-tg p { padding-left: 0; border-left: 0; }
  .dash-tg > .btn-block { width: 100%; }
}
@media (max-width: 1200px) {
  .dash-hero-art { display: none; }   /* tor ekranda matn qatorlari ustiga tushadi */
}
@media (max-width: 720px) {
  .dash-hero { border-radius: var(--r-lg); }
  .dash-hero-actions { width: 100%; }
  .dash-hero-actions .btn { flex: 1 1 140px; }
  .dash-chart .card-header .tab-list { width: 100%; }
  .dash-chart .tab { flex: 1; justify-content: center; padding: 0 8px; }
  .dt-item { grid-template-columns: 46px minmax(0, 1fr) 16px; gap: 6px 12px; padding: 12px 16px; }
  .dt-date { width: 46px; height: 48px; border-radius: 12px; }
  .dt-progress { grid-column: 2 / 3; grid-row: 2; }
  .dt-chev { grid-row: 1; grid-column: 3; }
  .db-item { padding: 12px 16px; }
  .att { grid-template-columns: auto minmax(0, 1fr); padding: 14px; }
  .att-action { grid-column: 2; justify-self: start; }
  .onb-steps { grid-template-columns: minmax(0, 1fr); }
  .onb-step { flex-direction: row; align-items: flex-start; }
  .onb-dot { flex-shrink: 0; }
  .onb-cta { width: 100%; }
}
@media (max-width: 420px) {
  .dash-stats.grid-4 { --min: 150px; gap: 12px; }
  .dash-stats .stat .value { font-size: 1.6rem; }
}

/* --------------------------------------------------------------------------
   4. MARKAZ MA'LUMOTLARI
   -------------------------------------------------------------------------- */
/* Faqat keng ekranda: qatlamsiz qoida app.css dagi ".split" ning 1180px dan tordagi bir ustunli holatini bosib ketmasin */
@media (min-width: 1181px) { .prof { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); } }
.prof .stack > * { margin-bottom: 0; }
.prof-form .input-lg { font-weight: 650; }
.prof-actions { position: relative; margin-top: 4px; padding-top: 18px; border-top: 1px solid var(--border); }
.prof-status { margin-left: auto; }
.prof-form.is-dirty { border-color: var(--warning-border); box-shadow: 0 0 0 4px var(--warning-bg), var(--shadow-sm); }
.prof-form.is-dirty .btn-primary { animation: c-pulse-dot 1.8s ease-out infinite; }
.prof-dirty-badge { align-self: center; }
.prof-member-list { padding: 4px 22px 8px; }
.prof-member-list .badge .icon { width: 13px; height: 13px; }
/* "@login · telefon": telefon yangi qatorga o'tsa, "·" chap chetdan tashqarida qolib kesiladi (osilib qolmaydi) */
.prof-member-meta { display: flex; flex-wrap: wrap; column-gap: 14px; overflow: hidden; }
.prof-member-meta > span { min-width: 0; }
.prof-member-meta > span + span { margin-left: -14px; }
.prof-member-meta > span + span::before { content: "\00b7"; content: "\00b7" / ""; display: inline-block; width: 14px; text-align: center; }
.prof-member-login { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.prof-preview { position: relative; }
.prof-preview-label { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px 4px; font-size: var(--fs-xs); font-weight: 750; color: var(--muted); letter-spacing: .02em; }
.prof-preview-label .icon { width: 15px; height: 15px; }
.prof-card {
  position: relative; overflow: hidden; padding: 0 22px 20px; border-radius: var(--r-xl); background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-md); text-align: center;
}
.prof-card-bg { height: 92px; margin: 0 -22px; background: var(--grad-brand); position: relative; overflow: hidden; }
.prof-card-bg::before { content: ""; position: absolute; inset: 0; background: var(--c-bubbles-white); background-size: 24px 24px; opacity: .9; }
.prof-card-avatar { margin-top: -40px; position: relative; border: 4px solid var(--surface); box-shadow: var(--shadow-md); --size: 78px; font-size: 1.6rem; transition: transform var(--dur-slow) var(--ease-spring); }
.prof-card-avatar.is-bump { transform: scale(1.08) rotate(-3deg); }
.prof-card-name { margin: 12px 0 8px; font: 800 1.25rem/1.25 var(--font-display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.prof-card-lines { display: flex; flex-direction: column; gap: 5px; align-items: center; color: var(--muted); font-size: var(--fs-sm); }
.prof-card-lines > span { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; }
.prof-card-lines > span > span { overflow-wrap: anywhere; }
.prof-card-lines .icon { width: 15px; height: 15px; flex-shrink: 0; }
.prof-card-lines .is-empty { color: var(--faint); font-style: italic; }
.prof-card-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 18px -22px -20px; border-top: 1px solid var(--border); background: var(--surface-2); }
.prof-card-stats span { display: flex; flex-direction: column; padding: 12px 6px; font-size: var(--fs-xs); color: var(--muted); font-weight: 650; }
.prof-card-stats span + span { border-left: 1px solid var(--border); }
.prof-card-stats b { font: 800 1.2rem/1.2 var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }

.prof-tg-list { list-style: none; margin: 0 0 16px; padding: 0; }
.prof-tg-list li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--border); }
.prof-tg-list li:last-child { border-bottom: 0; }
.prof-tg-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--surface-3); color: var(--muted); flex-shrink: 0; }
.prof-tg.is-on .prof-tg-ico { background: rgba(34, 158, 217, .12); color: #1d8fc7; }
[data-theme="dark"] .prof-tg.is-on .prof-tg-ico { color: #7cc8f5; }
.prof-tg-ico .icon { width: 18px; height: 18px; }
.prof-tg-list .list-item-sub { font-size: var(--fs-xs); font-weight: 650; }
.prof-tg-error { margin-bottom: 14px; }
@media (max-width: 1180px) {
  .prof-aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; align-items: start; }
}
@media (max-width: 720px) {
  .prof-actions .btn { flex: 1 1 auto; }
  .prof-status { width: 100%; margin: 0; }
  .prof-member-list { padding: 4px 16px 8px; }
}
