/* =========================================================
   TexnoIxtiro — dizayn tizimi
   ========================================================= */
:root,
[data-bs-theme="light"] {
  --bg: #f5f4fb;
  --bg-2: #eeecf8;
  --surface: #ffffff;
  --surface-2: #f9f8fe;
  --line: #e6e3f3;
  --line-2: #d9d5ec;
  --ink: #16132b;
  --ink-2: #3c3858;
  --soft: #6e6a88;
  --violet: #6c47ff;
  --violet-2: #8f6bff;
  --indigo: #3b2dbf;
  --amber: #ffb020;
  --orange: #ff7a3d;
  --pink: #ff4fa3;
  --teal: #10b9a3;
  --blue: #2f7cff;
  --green: #22b35e;
  --red: #ef4452;
  --grad: linear-gradient(135deg, #6c47ff 0%, #b04bff 55%, #ff7a3d 100%);
  --grad-soft: linear-gradient(135deg, rgba(108, 71, 255, .12), rgba(255, 122, 61, .1));
  --shadow-sm: 0 1px 2px rgba(22, 19, 43, .06), 0 2px 8px rgba(22, 19, 43, .04);
  --shadow: 0 10px 30px -12px rgba(46, 30, 140, .22), 0 2px 6px rgba(22, 19, 43, .05);
  --shadow-lg: 0 30px 60px -20px rgba(46, 30, 140, .35);
  --radius: 18px;
  --radius-sm: 12px;
  --glass: rgba(255, 255, 255, .72);
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--ink);
  --bs-border-color: var(--line);
  --bs-primary: #6c47ff;
  --bs-primary-rgb: 108, 71, 255;
  --bs-link-color: #6c47ff;
  --bs-link-color-rgb: 108, 71, 255;
  --bs-link-hover-color: #3b2dbf;
  --bs-font-sans-serif: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

[data-bs-theme="dark"] {
  --bg: #0c0a1a;
  --bg-2: #120f26;
  --surface: #16132c;
  --surface-2: #1b1834;
  --line: #2a2648;
  --line-2: #373259;
  --ink: #f1efff;
  --ink-2: #cdc8ef;
  --soft: #9791bd;
  --violet: #8f6bff;
  --violet-2: #a88bff;
  --grad-soft: linear-gradient(135deg, rgba(143, 107, 255, .18), rgba(255, 122, 61, .12));
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 14px 34px -14px rgba(0, 0, 0, .7);
  --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .8);
  --glass: rgba(22, 19, 44, .72);
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--ink);
  --bs-border-color: var(--line);
  --bs-link-color: #a88bff;
  --bs-link-color-rgb: 168, 139, 255;
  --bs-link-hover-color: #c9b8ff;
  --bs-secondary-bg: var(--surface-2);
  --bs-tertiary-bg: var(--surface-2);
}

* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--bs-font-sans-serif);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, .display-title, .brand-text, .stat-value, .font-display {
  font-family: "Unbounded", "Manrope", sans-serif;
  letter-spacing: -.02em;
}
h1, h2, h3, h4, h5 { color: var(--ink); font-weight: 700; }
a { text-decoration: none; }
.text-soft { color: var(--soft) !important; }
.text-grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
::selection { background: rgba(108, 71, 255, .25); }

/* ---------- Tugmalar ---------- */
.btn { border-radius: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: .15rem; }
.btn-grad {
  background: var(--grad); color: #fff; border: 0;
  box-shadow: 0 10px 24px -10px rgba(108, 71, 255, .7);
  background-size: 160% 160%; transition: background-position .5s, transform .2s, box-shadow .2s;
}
.btn-grad:hover { color: #fff; background-position: 100% 0; transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(108, 71, 255, .8); }
.btn-grad:active { transform: translateY(0); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--violet); border-color: var(--violet); }
.btn-soft { background: rgba(108, 71, 255, .1); color: var(--violet); border: 0; }
.btn-soft:hover { background: rgba(108, 71, 255, .18); color: var(--violet); }
.btn-danger-soft { background: rgba(239, 68, 82, .1); color: var(--red); border: 0; }
.btn-danger-soft:hover { background: rgba(239, 68, 82, .18); color: var(--red); }
.btn-lg { padding: .85rem 1.5rem; border-radius: 14px; font-size: 1rem; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2);
  display: inline-grid; place-items: center; font-size: 1.1rem; transition: .2s; flex: 0 0 auto;
}
.icon-btn:hover { color: var(--violet); border-color: var(--violet); }
.icon-btn.sm { width: 32px; height: 32px; border-radius: 9px; font-size: 1rem; }
[data-theme-toggle] .bi-sun { display: none; }
[data-bs-theme="dark"] [data-theme-toggle] .bi-sun { display: inline; }
[data-bs-theme="dark"] [data-theme-toggle] .bi-moon-stars { display: none; }

/* ---------- Formalar ---------- */
.form-control, .form-select {
  border-radius: 12px; border: 1px solid var(--line-2); background-color: var(--surface);
  color: var(--ink); padding: .62rem .9rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--violet); box-shadow: 0 0 0 4px rgba(108, 71, 255, .15); background-color: var(--surface);
}
.form-control::placeholder { color: var(--soft); opacity: .75; }
.form-label { font-weight: 700; font-size: .88rem; color: var(--ink-2); margin-bottom: .35rem; }
.form-text { color: var(--soft); }
.form-check-input:checked { background-color: var(--violet); border-color: var(--violet); }
.form-range::-webkit-slider-thumb { background: var(--violet); }
.form-range::-moz-range-thumb { background: var(--violet); }
textarea.form-control { min-height: 96px; }

/* ---------- Brend ---------- */
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-size: 1.15rem;
  box-shadow: 0 8px 20px -8px rgba(108, 71, 255, .8);
}
.brand-text { font-size: 1.08rem; font-weight: 600; }
.brand-text b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Chip, badge ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .65rem; border-radius: 999px;
  font-size: .76rem; font-weight: 700; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
  white-space: nowrap; font-style: normal;
}
.chip-violet { background: rgba(108, 71, 255, .1); color: var(--violet); border-color: transparent; }
.chip-orange { background: rgba(255, 122, 61, .12); color: #e0601f; border-color: transparent; }
.chip-pink { background: rgba(255, 79, 163, .12); color: #de2f84; border-color: transparent; }
.chip-teal { background: rgba(16, 185, 163, .12); color: #0b9985; border-color: transparent; }
.chip-blue { background: rgba(47, 124, 255, .12); color: #2366dd; border-color: transparent; }
.chip-green { background: rgba(34, 179, 94, .12); color: #17984c; border-color: transparent; }
.chip-amber { background: rgba(255, 176, 32, .16); color: #b77800; border-color: transparent; }
.chip-muted { background: var(--surface-2); color: var(--soft); }
[data-bs-theme="dark"] .chip-orange { color: #ff9c6b; }
[data-bs-theme="dark"] .chip-pink { color: #ff7dbb; }
[data-bs-theme="dark"] .chip-teal { color: #3fd9c4; }
[data-bs-theme="dark"] .chip-blue { color: #6fa3ff; }
[data-bs-theme="dark"] .chip-green { color: #4fd687; }
[data-bs-theme="dark"] .chip-amber { color: #ffc24f; }
.badge-soft {
  display: inline-flex; align-items: center; padding: .25rem .6rem; border-radius: 8px;
  font-size: .76rem; font-weight: 800; white-space: nowrap;
}
.badge-soft.success { background: rgba(34, 179, 94, .14); color: #17984c; }
.badge-soft.info { background: rgba(47, 124, 255, .13); color: #2366dd; }
.badge-soft.warning { background: rgba(255, 176, 32, .18); color: #a86d00; }
.badge-soft.danger { background: rgba(239, 68, 82, .13); color: #d42c3b; }
.badge-soft.violet { background: rgba(108, 71, 255, .12); color: var(--violet); }
.badge-soft.muted { background: var(--surface-2); color: var(--soft); border: 1px solid var(--line); }
[data-bs-theme="dark"] .badge-soft.success { color: #4fd687; }
[data-bs-theme="dark"] .badge-soft.info { color: #6fa3ff; }
[data-bs-theme="dark"] .badge-soft.warning { color: #ffc24f; }
[data-bs-theme="dark"] .badge-soft.danger { color: #ff7580; }

.avatar {
  --h: 260; display: inline-grid; place-items: center; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, hsl(var(--h) 85% 62%), hsl(calc(var(--h) + 40) 85% 58%));
  color: #fff; font-weight: 800; letter-spacing: .02em;
}

/* ---------- Kartalar ---------- */
.card-x {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 1.35rem;
}
.card-x.hover { transition: transform .25s, box-shadow .25s, border-color .25s; }
.card-x.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.card-head h2, .card-head h3 { font-size: 1.02rem; margin: 0; }
.card-head .sub { color: var(--soft); font-size: .85rem; }
.section-label {
  display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .12em; color: var(--violet);
}
.section-label::before { content: ""; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }

/* ---------- Toast ---------- */
.toast-stack { position: fixed; top: 84px; right: 18px; z-index: 2000; display: flex; flex-direction: column; gap: .6rem; max-width: min(420px, calc(100vw - 36px)); }
.tx-toast {
  display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  animation: toastIn .45s cubic-bezier(.2, .9, .3, 1.3); font-weight: 600; font-size: .92rem;
}
.tx-toast > i { font-size: 1.2rem; }
.tx-toast.success > i { color: var(--green); }
.tx-toast.danger > i { color: var(--red); }
.tx-toast.warning > i { color: var(--amber); }
.tx-toast.info > i { color: var(--blue); }
.tx-toast > div { flex: 1; }
.tx-toast.hide { opacity: 0; transform: translateX(30px); transition: .35s; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px) scale(.96); } }

/* =========================================================
   Ommaviy qism
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 1030; padding: .85rem 0;
  transition: background .3s, box-shadow .3s, padding .3s;
}
.site-header.scrolled {
  background: var(--glass); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 var(--line); padding: .55rem 0;
}
.site-nav { gap: .25rem; margin-left: 1.5rem; }
.site-nav a { color: var(--ink-2); font-weight: 700; font-size: .92rem; padding: .45rem .85rem; border-radius: 10px; transition: .2s; }
.site-nav a:hover { color: var(--violet); background: rgba(108, 71, 255, .07); }
.site-nav a.active { color: var(--violet); background: rgba(108, 71, 255, .1); }
.mnav-link { padding: .8rem 1rem; border-radius: 12px; color: var(--ink); font-weight: 700; }
.mnav-link.active, .mnav-link:hover { background: rgba(108, 71, 255, .1); color: var(--violet); }
.offcanvas { background: var(--surface); }

/* Hero */
.hero { position: relative; padding: 4.5rem 0 5.5rem; overflow: hidden; margin-top: -72px; padding-top: calc(72px + 4.5rem); }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: float 16s ease-in-out infinite; }
.hero-bg .b1 { width: 520px; height: 520px; background: #8f6bff; top: -140px; left: -120px; }
.hero-bg .b2 { width: 440px; height: 440px; background: #ff7a3d; top: 60px; right: -140px; animation-delay: -5s; opacity: .38; }
.hero-bg .b3 { width: 380px; height: 380px; background: #10b9a3; bottom: -180px; left: 38%; animation-delay: -9s; opacity: .3; }
[data-bs-theme="dark"] .hero-bg .blob { opacity: .33; }
.hero-bg .grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); opacity: .7;
}
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, -30px) scale(1.06); } 66% { transform: translate(-30px, 30px) scale(.95); } }

.hero-kicker {
  display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .9rem .4rem .45rem; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line); font-size: .82rem; font-weight: 700; color: var(--ink-2);
  backdrop-filter: blur(8px); box-shadow: var(--shadow-sm);
}
.hero-kicker span { background: var(--grad); color: #fff; padding: .14rem .6rem; border-radius: 999px; font-size: .72rem; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 4rem); line-height: 1.06; margin: 1.3rem 0 1.2rem; font-weight: 800; }
.hero .lead { font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--ink-2); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2.4rem; }
.hero-proof div b { display: block; font-family: "Unbounded"; font-size: 1.5rem; }
.hero-proof div > span { font-size: .82rem; color: var(--soft); font-weight: 600; }

/* Hero vizual — ixtiro pasporti */
.hero-visual { position: relative; min-height: 460px; }
.orbit {
  position: absolute; inset: 20px; border-radius: 50%; border: 1.5px dashed var(--line-2);
  animation: spin 60s linear infinite;
}
.orbit.o2 { inset: 90px; animation-duration: 40s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit .node {
  position: absolute; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  color: #fff; font-size: 1.2rem; box-shadow: var(--shadow);
}
.orbit .node i { animation: spin 60s linear infinite reverse; }
.orbit.o2 .node i { animation-duration: 40s; animation-direction: normal; }
.passport {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-3deg);
  width: min(340px, 86%); background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow-lg); padding: 1.2rem; z-index: 2; animation: bob 7s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, -50%) rotate(-3deg); } 50% { transform: translate(-50%, -54%) rotate(-1deg); } }
.passport-top { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; }
.passport-top b { font-size: .95rem; display: block; line-height: 1.2; }
.passport-top small { color: var(--soft); font-size: .76rem; }
.passport-steps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: .8rem 0; }
.passport-steps span { height: 8px; border-radius: 4px; background: var(--line); }
.passport-steps span.on { background: var(--grad); }
.passport canvas { max-height: 190px; }
.float-chip {
  position: absolute; z-index: 3; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: .6rem .8rem; box-shadow: var(--shadow); display: flex; gap: .55rem; align-items: center;
  font-size: .8rem; font-weight: 700; animation: bob2 6s ease-in-out infinite;
}
.float-chip i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: .95rem; }
.float-chip small { display: block; color: var(--soft); font-weight: 600; font-size: .72rem; }
@keyframes bob2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Seksiyalar */
.section { padding: 5.5rem 0; position: relative; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .section-label::after { content: ""; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); margin: .8rem 0 1rem; line-height: 1.15; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; margin: 0; }

/* Dolzarblik kartalari */
.why-card { height: 100%; }
.why-card .ico {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.4rem;
  margin-bottom: 1rem; color: #fff;
}
.why-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.why-card p { color: var(--soft); margin: 0; font-size: .93rem; }

/* 7 bosqich — ixtiro yo‘li */
.journey { position: relative; }
.journey-track { display: grid; grid-template-columns: repeat(7, 1fr); gap: .8rem; position: relative; }
.journey-track::before {
  content: ""; position: absolute; top: 34px; left: 7%; right: 7%; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, #3b82f6, #10b981, #84cc16, #f59e0b, #f97316, #ec4899, #8b5cf6); opacity: .35;
}
.jstep { text-align: center; cursor: pointer; position: relative; background: none; border: 0; padding: 0; color: inherit; }
.jstep .dot {
  width: 70px; height: 70px; margin: 0 auto .8rem; border-radius: 22px; display: grid; place-items: center;
  font-size: 1.55rem; color: var(--c); background: var(--surface); border: 2px solid var(--line);
  transition: .35s cubic-bezier(.2, .9, .3, 1.3); position: relative; z-index: 1; box-shadow: var(--shadow-sm);
}
.jstep .num { font-size: .7rem; font-weight: 800; color: var(--soft); letter-spacing: .08em; }
.jstep b { display: block; font-size: .86rem; line-height: 1.25; margin-top: .15rem; }
.jstep:hover .dot { transform: translateY(-4px); border-color: var(--c); }
.jstep.active .dot { background: var(--c); color: #fff; border-color: var(--c); transform: translateY(-6px) scale(1.06); box-shadow: 0 16px 30px -12px var(--c); }
.journey-detail {
  margin-top: 2.2rem; display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 2rem; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.journey-detail::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--c, var(--violet)); transition: background .4s; }
.journey-detail h3 { font-size: 1.4rem; margin: .4rem 0 .7rem; }
.journey-detail .jd-text { color: var(--ink-2); }
.jd-methods { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.jd-visual { display: grid; place-items: center; }
.jd-visual .big {
  width: 160px; height: 160px; border-radius: 40px; display: grid; place-items: center; font-size: 4rem; color: #fff;
  background: var(--c, var(--violet)); box-shadow: 0 30px 60px -20px var(--c, var(--violet)); transition: .4s;
  animation: bob2 5s ease-in-out infinite;
}
.fade-swap { animation: fadeSwap .45s ease; }
@keyframes fadeSwap { from { opacity: 0; transform: translateY(8px); } }

/* Integratsiya */
.integ-card { height: 100%; position: relative; overflow: hidden; }
.integ-card .tag { font-family: "Unbounded"; font-size: 1.5rem; font-weight: 800; }
.integ-card ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.integ-card li { padding: .38rem 0 .38rem 1.6rem; position: relative; color: var(--ink-2); font-size: .93rem; }
.integ-card li::before { content: "\F26A"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .38rem; color: var(--c); }
.integ-card .corner { position: absolute; right: -24px; top: -24px; width: 110px; height: 110px; border-radius: 50%; background: var(--c); opacity: .12; }
.integ-plus { display: grid; place-items: center; font-size: 1.6rem; color: var(--soft); }
.integ-result {
  margin-top: 1.5rem; border-radius: 22px; padding: 1.6rem 1.8rem; background: var(--grad); color: #fff;
  display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; box-shadow: var(--shadow-lg);
}
.integ-result i { font-size: 2.2rem; }
.integ-result b { font-family: "Unbounded"; font-size: 1.15rem; }

/* IFI */
.ifi-list { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.ifi-item { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: .25s; }
.ifi-item:hover { border-color: var(--violet); transform: translateX(3px); }
.ifi-item i { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); color: var(--violet); flex: 0 0 auto; }
.ifi-item b { font-size: .9rem; display: block; line-height: 1.3; }
.ifi-item span { font-size: .8rem; color: var(--soft); line-height: 1.35; display: block; }
.ifi-chart-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 1.5rem; box-shadow: var(--shadow); }
.legend-dots { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.legend-dots span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .4rem; background: var(--c); }

/* Natijalar */
.region-card { height: 100%; }
.region-card .rc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; margin-bottom: 1rem; }
.region-card h3 { font-size: 1rem; margin: 0; }
.region-card .school { font-size: .8rem; color: var(--soft); }
.growth-pill { background: rgba(34, 179, 94, .14); color: #17984c; font-weight: 800; font-size: .8rem; padding: .25rem .6rem; border-radius: 8px; white-space: nowrap; }
[data-bs-theme="dark"] .growth-pill { color: #4fd687; }
.bar-pair { margin-bottom: .8rem; }
.bar-pair .bp-label { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 700; color: var(--ink-2); margin-bottom: .3rem; }
.bar-pair .bp-label em { font-style: normal; color: var(--soft); font-weight: 600; }
.bp-track { position: relative; height: 10px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bp-track span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; width: 0; transition: width 1.4s cubic-bezier(.2, .8, .2, 1); }
.bp-track .before { background: #c2bddb; z-index: 1; }
[data-bs-theme="dark"] .bp-track .before { background: #4a4570; }
.bp-track .after { background: var(--grad); }
.big-metric { text-align: center; padding: 1.4rem; }
.big-metric .from-to { font-family: "Unbounded"; font-size: 1.9rem; font-weight: 800; }
.big-metric .from-to small { font-size: 1rem; color: var(--soft); font-weight: 600; }
.big-metric .lbl { color: var(--ink-2); font-weight: 700; font-size: .9rem; }

/* Jarayon */
.flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; counter-reset: flow; }
.flow-item { text-align: center; position: relative; }
.flow-item .fi {
  width: 64px; height: 64px; border-radius: 20px; margin: 0 auto .9rem; display: grid; place-items: center;
  font-size: 1.5rem; background: var(--surface); border: 1px solid var(--line); color: var(--violet); box-shadow: var(--shadow-sm);
}
.flow-item:not(:last-child)::after {
  content: "\F138"; font-family: "bootstrap-icons"; position: absolute; right: -12px; top: 20px; color: var(--line-2); font-size: 1.1rem;
}
.flow-item b { font-size: .92rem; display: block; }
.flow-item span { font-size: .8rem; color: var(--soft); }

/* Metodlar */
.method-card { height: 100%; display: flex; flex-direction: column; cursor: pointer; }
.method-card .m-ico {
  width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 1.35rem; color: #fff;
  margin-bottom: 1rem;
}
.method-card h3 { font-size: 1.02rem; margin: 0 0 .4rem; }
.method-card p { color: var(--soft); font-size: .9rem; flex: 1; margin-bottom: .9rem; }
.m-violet { background: linear-gradient(135deg, #6c47ff, #a36bff); }
.m-orange { background: linear-gradient(135deg, #ff7a3d, #ffae3d); }
.m-pink { background: linear-gradient(135deg, #ff4fa3, #ff7ac2); }
.m-teal { background: linear-gradient(135deg, #10b9a3, #3fd9c4); }
.m-blue { background: linear-gradient(135deg, #2f7cff, #5fa0ff); }
.m-green { background: linear-gradient(135deg, #22b35e, #62d38f); }
.m-amber { background: linear-gradient(135deg, #f59e0b, #ffc94f); }
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-bar button {
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); border-radius: 999px;
  padding: .45rem 1rem; font-weight: 700; font-size: .85rem; transition: .2s;
}
.filter-bar button.active, .filter-bar button:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.scamper-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .5rem; }
.scamper-letter {
  aspect-ratio: 1; border-radius: 16px; display: grid; place-items: center; font-family: "Unbounded"; font-size: 1.6rem;
  font-weight: 800; color: #fff; cursor: pointer; transition: .3s; position: relative; border: 0;
}
.scamper-letter:hover, .scamper-letter.active { transform: translateY(-4px) scale(1.05); box-shadow: var(--shadow); }
.scamper-out { min-height: 92px; }

/* Galereya */
.gal-card { overflow: hidden; padding: 0; height: 100%; display: flex; flex-direction: column; }
.gal-cover { aspect-ratio: 16/10; position: relative; overflow: hidden; display: grid; place-items: center; }
.gal-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gal-card:hover .gal-cover img { transform: scale(1.06); }
.gal-cover .ph { font-size: 3rem; color: rgba(255, 255, 255, .92); }
.gal-cover .stage-dots { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 4px; }
.gal-cover .stage-dots span { width: 18px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .45); }
.gal-cover .stage-dots span.on { background: #fff; }
.gal-body { padding: 1.1rem 1.2rem 1.2rem; flex: 1; display: flex; flex-direction: column; }
.gal-body h3 { font-size: 1rem; margin: 0 0 .35rem; line-height: 1.35; }
.gal-body p { font-size: .87rem; color: var(--soft); flex: 1; margin-bottom: .8rem; }
.gal-meta { display: flex; align-items: center; gap: .55rem; font-size: .8rem; color: var(--soft); font-weight: 600; }
.like-btn {
  margin-left: auto; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .28rem .7rem;
  font-weight: 800; font-size: .8rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: .35rem; transition: .2s;
}
.like-btn:hover { border-color: var(--pink); color: var(--pink); }
.like-btn.on { background: rgba(255, 79, 163, .12); color: var(--pink); border-color: transparent; }
.like-btn.pop i { animation: pop .45s; }
@keyframes pop { 50% { transform: scale(1.5) rotate(-12deg); } }
.mistake-card { border-left: 4px solid var(--amber); }
.mistake-card blockquote { font-size: .95rem; color: var(--ink-2); margin: .5rem 0 .8rem; }

/* Loyiha sayohati (ochiq sahifa) */
.pj-timeline { position: relative; padding-left: 2.4rem; }
.pj-timeline::before { content: ""; position: absolute; left: 17px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.pj-step { position: relative; margin-bottom: 1.4rem; }
.pj-step .pj-dot {
  position: absolute; left: -2.4rem; top: 0; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  color: #fff; background: var(--c); font-size: 1rem; box-shadow: 0 8px 18px -8px var(--c);
}
.pj-step h3 { font-size: 1rem; margin: .35rem 0 .6rem; }
.pj-step .field-l { font-size: .78rem; font-weight: 800; color: var(--soft); text-transform: uppercase; letter-spacing: .06em; margin-top: .6rem; }

/* CTA */
.cta-band {
  border-radius: 30px; padding: 3.2rem 2rem; text-align: center; color: #fff; background: var(--grad);
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.cta-band::before { width: 300px; height: 300px; left: -80px; top: -120px; }
.cta-band::after { width: 220px; height: 220px; right: -60px; bottom: -90px; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); position: relative; }
.cta-band p { opacity: .9; position: relative; max-width: 560px; margin: .8rem auto 1.6rem; }
.cta-band .btn { position: relative; }
.btn-white { background: #fff; color: #3b2dbf; border: 0; }
.btn-white:hover { background: #f1eeff; color: #3b2dbf; }
.btn-outline-white { border: 1.5px solid rgba(255, 255, 255, .7); color: #fff; background: transparent; }
.btn-outline-white:hover { background: rgba(255, 255, 255, .15); color: #fff; }

/* Sahifa sarlavhasi (ichki ommaviy sahifalar) */
.page-hero { padding: 3.2rem 0 2.4rem; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: .8rem 0 .8rem; }
.page-hero p { color: var(--ink-2); max-width: 640px; font-size: 1.05rem; }

/* Footer */
.site-footer { padding: 3.5rem 0 1.5rem; border-top: 1px solid var(--line); background: var(--surface); margin-top: 3rem; }
.site-footer a:not(.brand) { display: block; color: var(--ink-2); font-size: .9rem; padding: .2rem 0; font-weight: 600; }
.site-footer a:not(.brand):hover { color: var(--violet); }
.footer-title { font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin-bottom: .7rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--soft); }

/* Kirish sahifasi */
.auth-wrap { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 2rem 0 4rem; }
.auth-card { width: min(460px, 100%); padding: 2.2rem; border-radius: 26px; }
.auth-card h1 { font-size: 1.6rem; margin-bottom: .4rem; }
.code-input { font-family: "Unbounded"; font-size: 1.5rem; letter-spacing: .35em; text-align: center; text-transform: uppercase; }

/* Reveal animatsiyasi */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Kabinet (panel)
   ========================================================= */
body.panel { background: var(--bg); }
.panel-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 264px; flex: 0 0 264px; background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 1040;
}
.sidebar-head { padding: 1.2rem 1.3rem; }
.side-nav { padding: .4rem .8rem; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; }
.side-nav a {
  display: flex; align-items: center; gap: .75rem; padding: .66rem .85rem; border-radius: 12px; color: var(--ink-2);
  font-weight: 700; font-size: .92rem; transition: .2s; position: relative;
}
.side-nav a i { font-size: 1.1rem; width: 22px; text-align: center; color: var(--soft); transition: .2s; }
.side-nav a:hover { background: var(--surface-2); color: var(--ink); }
.side-nav a:hover i { color: var(--violet); }
.side-nav a.active { background: var(--grad-soft); color: var(--violet); }
.side-nav a.active i { color: var(--violet); }
.side-nav a.active::before { content: ""; position: absolute; left: -.8rem; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--grad); }
.side-nav .count { margin-left: auto; font-style: normal; background: var(--grad); color: #fff; font-size: .7rem; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center; }
.sidebar-foot { padding: 1rem; }
.side-idea { display: flex; gap: .7rem; padding: .9rem; border-radius: 16px; background: var(--grad-soft); font-size: .8rem; color: var(--ink-2); }
.side-idea i { color: var(--violet); font-size: 1.2rem; }
.side-idea b { color: var(--ink); }
.panel-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: .8rem;
  padding: .85rem 1.6rem; background: var(--glass); backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line);
}
.topbar-title { font-size: 1.12rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip { display: flex; align-items: center; gap: .6rem; background: none; border: 0; padding: .2rem .3rem; border-radius: 12px; color: var(--ink); }
.user-chip b { font-size: .86rem; }
.user-chip small { font-size: .74rem; color: var(--soft); }
.dropdown-menu { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .4rem; }
.dropdown-item { border-radius: 9px; font-weight: 600; font-size: .9rem; padding: .5rem .8rem; color: var(--ink); }
.dropdown-item:hover { background: var(--surface-2); }
.panel-content { padding: 1.6rem; max-width: 1400px; width: 100%; }
.sidebar-backdrop { display: none; }

/* Salomlashish */
.welcome {
  border-radius: 24px; padding: 1.8rem 2rem; background: var(--grad); color: #fff; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg); margin-bottom: 1.5rem;
}
.welcome h2 { color: #fff; font-size: 1.5rem; margin: 0 0 .4rem; }
.welcome p { opacity: .9; margin: 0; max-width: 620px; }
.welcome .wl-art { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 7rem; opacity: .18; }
.welcome .btn { position: relative; }

.stat-card {
  display: flex; gap: 1rem; align-items: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.15rem 1.2rem; box-shadow: var(--shadow-sm); height: 100%;
}
.stat-icon { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 1.35rem; flex: 0 0 auto; }
.stat-value { font-size: 1.55rem; font-weight: 700; line-height: 1.1; }
.stat-label { font-size: .84rem; color: var(--soft); font-weight: 700; }
.stat-sub { font-size: .76rem; color: var(--soft); margin-top: .15rem; }
.tone-violet .stat-icon { background: rgba(108, 71, 255, .12); color: var(--violet); }
.tone-orange .stat-icon { background: rgba(255, 122, 61, .13); color: var(--orange); }
.tone-teal .stat-icon { background: rgba(16, 185, 163, .13); color: var(--teal); }
.tone-pink .stat-icon { background: rgba(255, 79, 163, .12); color: var(--pink); }
.tone-blue .stat-icon { background: rgba(47, 124, 255, .12); color: var(--blue); }
.tone-green .stat-icon { background: rgba(34, 179, 94, .12); color: var(--green); }
.tone-amber .stat-icon { background: rgba(255, 176, 32, .15); color: #d58a00; }

/* Jadvallar */
.table-x { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; }
.table-x th { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--soft); font-weight: 800; padding: .7rem .9rem; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.table-x th:first-child { border-top-left-radius: 12px; } .table-x th:last-child { border-top-right-radius: 12px; }
.table-x td { padding: .8rem .9rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table-x tr:last-child td { border-bottom: 0; }
.table-x tbody tr { transition: background .15s; }
.table-x tbody tr:hover { background: var(--surface-2); }
.table-wrap { overflow-x: auto; margin: 0 -1.35rem -1.35rem; padding: 0 1.35rem 1.35rem; }
.person { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.person b { display: block; font-size: .92rem; line-height: 1.25; color: var(--ink); }
.person small { color: var(--soft); font-size: .78rem; }
a.person:hover b { color: var(--violet); }

/* Ro‘yxat elementlari */
.list-x { display: flex; flex-direction: column; }
.list-x > .li { display: flex; align-items: center; gap: .9rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.list-x > .li:last-child { border-bottom: 0; }
.li-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: 0 0 auto; font-size: 1.1rem; background: var(--grad-soft); color: var(--violet); }
.li-main { flex: 1; min-width: 0; }
.li-main b { display: block; color: var(--ink); line-height: 1.3; }
.li-main small { color: var(--soft); font-size: .8rem; }

/* Topshiriq kartasi */
.task-card { display: flex; flex-direction: column; height: 100%; }
.task-card h3 { font-size: 1rem; margin: .7rem 0 .45rem; line-height: 1.35; }
.task-card p { color: var(--soft); font-size: .88rem; flex: 1; }
.task-card .tc-foot { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding-top: .8rem; border-top: 1px dashed var(--line); margin-top: .6rem; font-size: .82rem; color: var(--soft); font-weight: 600; }
.due.late { color: var(--red); }
.prompt-box { background: var(--grad-soft); border-radius: 16px; padding: 1.2rem 1.3rem; font-size: 1.02rem; color: var(--ink); border: 1px solid var(--line); }

/* G‘oyalar kiritish */
.ideas-list { display: flex; flex-direction: column; gap: .5rem; }
.idea-row { display: flex; gap: .5rem; align-items: center; animation: fadeSwap .3s; }
.idea-row .form-select { max-width: 170px; }
.idea-num { width: 30px; height: 30px; border-radius: 9px; background: var(--grad-soft); color: var(--violet); font-weight: 800; font-size: .8rem; display: grid; place-items: center; flex: 0 0 auto; }
.ideas-foot { display: flex; align-items: center; gap: 1rem; margin-top: .7rem; flex-wrap: wrap; }
.ideas-counter { font-size: .85rem; color: var(--soft); font-weight: 600; }
.ideas-counter b { color: var(--violet); }
.ideas-counter.ok b { color: var(--green); }
.ideas-view { padding-left: 1.3rem; margin: 0; }
.ideas-view li { padding: .3rem 0; }
.ideas-view li em { margin-left: .5rem; }
.scamper-inputs .sc-row { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .6rem; }
.scamper-inputs .sc-l { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-family: "Unbounded"; font-weight: 800; flex: 0 0 auto; }
.scamper-inputs .sc-row > div { flex: 1; }
.scamper-inputs .sc-row small { color: var(--soft); font-size: .8rem; display: block; margin-bottom: .25rem; }

/* Loyiha stepper */
.stepper { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: thin; }
.stepper a {
  flex: 1 0 118px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; padding: .8rem .5rem;
  border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: .76rem; font-weight: 700; line-height: 1.2; transition: .2s;
}
.stepper a i { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 1rem; background: var(--surface-2); color: var(--c); transition: .2s; }
.stepper a.done i { background: var(--c); color: #fff; }
.stepper a.current { border-color: var(--c); box-shadow: 0 10px 24px -14px var(--c); color: var(--ink); }
.stepper a:hover { border-color: var(--c); }
.stage-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.2rem; }
.stage-head .sh-ico { width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 1.5rem; box-shadow: 0 14px 28px -12px var(--c); flex: 0 0 auto; }
.stage-head h2 { font-size: 1.2rem; margin: 0; }
.stage-head p { margin: 0; color: var(--soft); font-size: .9rem; }
.progress-x { height: 8px; border-radius: 6px; background: var(--line); overflow: hidden; }
.progress-x span { display: block; height: 100%; background: var(--grad); border-radius: 6px; transition: width 1s; }

/* Fayllar */
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .6rem; margin-top: .6rem; }
.file-item { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.file-item.image a { display: block; aspect-ratio: 4/3; }
.file-item.image img { width: 100%; height: 100%; object-fit: cover; }
.file-item.doc a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; padding: .9rem .6rem; aspect-ratio: 4/3; text-align: center; color: var(--ink-2); }
.file-item.doc i { font-size: 1.8rem; color: var(--violet); }
.file-item.doc span { font-size: .75rem; font-weight: 700; word-break: break-all; line-height: 1.2; max-height: 2.4em; overflow: hidden; }
.file-item.doc small { font-size: .7rem; color: var(--soft); }
.file-del { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 8px; border: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: .75rem; display: grid; place-items: center; }
.drop-zone {
  border: 2px dashed var(--line-2); border-radius: 16px; padding: 1.2rem; text-align: center; color: var(--soft); cursor: pointer;
  transition: .2s; background: var(--surface-2); position: relative;
}
.drop-zone:hover, .drop-zone.over { border-color: var(--violet); color: var(--violet); background: rgba(108, 71, 255, .05); }
.drop-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-zone i { font-size: 1.6rem; display: block; margin-bottom: .2rem; }
.drop-zone .dz-files { font-size: .82rem; color: var(--ink-2); font-weight: 700; margin-top: .3rem; }

/* Baholash */
.rubric-form .rf-row { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.rf-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; gap: .5rem; }
.rf-head b { font-size: .93rem; }
.rf-val { font-family: "Unbounded"; font-size: .9rem; color: var(--soft); white-space: nowrap; }
.rf-val output { color: var(--violet); font-weight: 800; font-size: 1.1rem; }
.rf-bands { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-bottom: .5rem; }
.rf-bands button {
  border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; padding: .45rem .5rem; font-size: .76rem;
  color: var(--ink-2); text-align: left; line-height: 1.25; transition: .15s;
}
.rf-bands button small { display: block; font-weight: 800; font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--soft); }
.rf-bands button:hover { border-color: var(--violet); }
.rf-bands button.on { border-color: var(--violet); background: rgba(108, 71, 255, .08); color: var(--ink); }
.rf-total { padding-top: 1rem; font-size: 1rem; font-weight: 700; display: flex; align-items: center; }
.rf-total b { font-family: "Unbounded"; font-size: 1.5rem; margin: 0 .3rem; color: var(--violet); }
.rubric-view .rv-row { display: grid; grid-template-columns: 1fr 120px 56px; gap: .8rem; align-items: center; padding: .45rem 0; }
.rv-name { font-size: .88rem; font-weight: 600; }
.rv-bar { height: 8px; background: var(--line); border-radius: 5px; overflow: hidden; }
.rv-bar span { display: block; height: 100%; background: var(--grad); border-radius: 5px; }
.rv-val { font-weight: 800; text-align: right; font-size: .92rem; }
.rv-val small { color: var(--soft); font-weight: 600; }
.score-ring { --p: 0; --c: var(--violet); width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--line) 0); position: relative; margin: 0 auto; }
.score-ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--surface); }
.score-ring b { position: relative; font-family: "Unbounded"; font-size: 1.8rem; }
.score-ring small { position: relative; display: block; text-align: center; font-size: .72rem; color: var(--soft); margin-top: -4px; }
.feedback-box { border-left: 4px solid var(--violet); background: var(--surface-2); border-radius: 0 14px 14px 0; padding: 1rem 1.2rem; }

/* IFI baholash slayderlari */
.ifi-sliders .is-row { display: grid; grid-template-columns: 34px 1fr 120px 40px; gap: .7rem; align-items: center; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.ifi-sliders .is-row i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--grad-soft); color: var(--violet); }
.ifi-sliders .is-row b { font-size: .88rem; display: block; line-height: 1.2; }
.ifi-sliders .is-row small { font-size: .74rem; color: var(--soft); }
.ifi-sliders output { font-family: "Unbounded"; font-weight: 800; color: var(--violet); text-align: right; }
.auto-tag { font-size: .66rem; font-weight: 800; color: var(--teal); background: rgba(16, 185, 163, .12); padding: .05rem .4rem; border-radius: 5px; margin-left: .3rem; }

/* Bo‘sh holat */
.empty-state { text-align: center; padding: 2.5rem 1rem; }
.empty-icon { width: 76px; height: 76px; margin: 0 auto 1rem; border-radius: 24px; background: var(--grad-soft); color: var(--violet); display: grid; place-items: center; font-size: 2rem; }
.empty-state h3 { font-size: 1.05rem; }
.empty-state p { color: var(--soft); max-width: 420px; margin: .3rem auto 1rem; }

.code-display { font-family: "Unbounded"; letter-spacing: .25em; font-size: 1.3rem; font-weight: 800; background: var(--grad-soft); padding: .4rem .9rem; border-radius: 12px; color: var(--violet); display: inline-block; }
.cred-card { border: 1px dashed var(--line-2); border-radius: 14px; padding: .9rem 1rem; background: var(--surface-2); break-inside: avoid; }
.cred-card b { display: block; }
.cred-card code { font-size: .9rem; color: var(--violet); }
.nav-tabs-x { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; overflow-x: auto; }
.nav-tabs-x a, .nav-tabs-x button { padding: .7rem 1rem; font-weight: 700; color: var(--soft); border: 0; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-size: .92rem; }
.nav-tabs-x a.active, .nav-tabs-x button.active { color: var(--violet); border-bottom-color: var(--violet); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: .4rem 1rem; font-size: .9rem; }
.kv dt { color: var(--soft); font-weight: 600; }
.kv dd { margin: 0; font-weight: 600; }
.modal-content { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.modal-header, .modal-footer { border-color: var(--line); }
.chart-box { position: relative; height: 300px; }
.chart-box.sm { height: 230px; }
.delta-up { color: var(--green); font-weight: 800; }
.delta-down { color: var(--red); font-weight: 800; }

/* Print — login kartalari */
@media print {
  .sidebar, .topbar, .no-print, .site-header, .site-footer { display: none !important; }
  .panel-content { padding: 0; }
  body { background: #fff; }
}

/* ---------- Moslashuvchanlik ---------- */
@media (max-width: 1199.98px) {
  .journey-track { grid-template-columns: repeat(4, 1fr); row-gap: 1.6rem; }
  .journey-track::before { display: none; }
  .flow { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
  .flow-item:nth-child(3)::after { display: none; }
}
@media (max-width: 991.98px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .3s; box-shadow: var(--shadow-lg); }
  body.sidebar-open .sidebar { transform: none; }
  body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(10, 8, 25, .45); z-index: 1035; backdrop-filter: blur(2px); }
  .panel-content { padding: 1.1rem; }
  .topbar { padding: .7rem 1rem; }
  .hero { padding-bottom: 3rem; }
  .hero-visual { min-height: 400px; margin-top: 2rem; }
  .journey-detail { grid-template-columns: 1fr; }
  .jd-visual { display: none; }
  .section { padding: 4rem 0; }
}
@media (max-width: 767.98px) {
  body { font-size: 15px; }
  .journey-track { grid-template-columns: repeat(4, 1fr); gap: .5rem; }
  .jstep .dot { width: 54px; height: 54px; border-radius: 17px; font-size: 1.2rem; }
  .jstep b { font-size: .74rem; }
  .ifi-list { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow-item::after { display: none !important; }
  .scamper-grid { grid-template-columns: repeat(7, 1fr); gap: .3rem; }
  .scamper-letter { font-size: 1.05rem; border-radius: 10px; }
  .rf-bands { grid-template-columns: 1fr; }
  .rubric-view .rv-row { grid-template-columns: 1fr 70px 50px; }
  .ifi-sliders .is-row { grid-template-columns: 30px 1fr 40px; }
  .ifi-sliders .is-row input { grid-column: 1 / -1; }
  .idea-row { flex-wrap: wrap; }
  .idea-row .form-control { flex: 1 1 calc(100% - 80px); }
  .idea-row .form-select { max-width: none; flex: 1 1 calc(100% - 80px); margin-left: 38px; }
  .welcome { padding: 1.4rem; }
  .welcome .wl-art { display: none; }
  .kv { grid-template-columns: 1fr; }
  .card-x { padding: 1.1rem; }
  .table-wrap { margin: 0 -1.1rem -1.1rem; padding: 0 1.1rem 1.1rem; }
  .hero-visual { min-height: 360px; }
  .float-chip { display: none; }
  .toast-stack { top: 70px; right: 12px; }
}

/* ---------- Tuzatishlar ---------- */
.hero, .page-hero, .auth-wrap { isolation: isolate; }
.auth-wrap { position: relative; overflow: hidden; }
.btn-check:checked + .btn-ghost, .btn-check:checked + .btn-ghost:hover {
  background: var(--grad-soft); border-color: var(--violet); color: var(--violet); box-shadow: 0 0 0 3px rgba(108, 71, 255, .12);
}
.btn-check:focus-visible + .btn-ghost { box-shadow: 0 0 0 4px rgba(108, 71, 255, .2); }
button.chip { cursor: pointer; transition: .15s; }
button.chip:hover { border-color: var(--violet); color: var(--violet); }
.input-group-text { border-color: var(--line-2); border-radius: 12px 0 0 12px; color: var(--soft); }
.input-group > .form-control { border-radius: 0 12px 12px 0; }
details > summary { cursor: pointer; }
.alert { border-radius: 12px; }
fieldset[disabled] .ideas-foot, fieldset[disabled] [data-idea-del] { display: none; }
