/* Bilimlar manbai — glassmorphism mavzusi (qorong'u va yorug' rejim) */
:root {
  --violet: #8b5cf6; --cyan: #22d3ee; --pink: #f472b6; --amber: #f59e0b; --green: #10b981; --red: #ef4444;
  --accent: linear-gradient(135deg, #8b5cf6 0%, #6366f1 45%, #06b6d4 100%);
  --radius: 18px;
  --blur: blur(18px) saturate(160%);
}
/* Qorong'u rejim (standart) */
:root, [data-theme="dark"] {
  color-scheme: dark;
  --bg: #070b1a;
  --text: #e9ecf8; --text-2: #c9cfea; --muted: #9aa3c4; --placeholder: #737c9f;
  --link: #a5b4fc; --link-hover: #fff;
  --glass: rgba(255,255,255,.065); --glass-strong: rgba(255,255,255,.11); --topbar-bg: rgba(16,18,40,.985);
  --glass-border: rgba(255,255,255,.14); --glass-hi: rgba(255,255,255,.24);
  --tint-1: rgba(255,255,255,.04); --tint-2: rgba(255,255,255,.08); --tint-3: rgba(255,255,255,.16);
  --inner-hi: inset 0 1px 0 rgba(255,255,255,.08);
  --shadow: 0 10px 40px rgba(3,6,20,.45); --shadow-lg: 0 24px 56px rgba(3,6,20,.6);
  --input-bg: rgba(10,14,35,.45); --input-bg-focus: rgba(10,14,35,.65); --option-bg: #151a33;
  --orb-1: #7c3aed; --orb-2: #0891b2; --orb-3: #db2777; --orb-opacity: .55; --grid: rgba(255,255,255,.035);
  --chip-text: #c4b5fd; --star-off: rgba(255,255,255,.2);
  --face-bg: linear-gradient(145deg, rgba(139,92,246,.32), rgba(34,211,238,.16));
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #eef1fb;
  --text: #141933; --text-2: #2f3758; --muted: #5d6689; --placeholder: #8d95b4;
  --link: #5b47e0; --link-hover: #2c1fa8;
  --glass: rgba(255,255,255,.58); --glass-strong: rgba(255,255,255,.78); --topbar-bg: rgba(250,251,255,.985);
  --glass-border: rgba(255,255,255,.9); --glass-hi: rgba(139,92,246,.35);
  --tint-1: rgba(30,36,80,.035); --tint-2: rgba(30,36,80,.06); --tint-3: rgba(30,36,80,.12);
  --inner-hi: inset 0 1px 0 rgba(255,255,255,.9);
  --shadow: 0 10px 34px rgba(60,64,130,.13); --shadow-lg: 0 24px 56px rgba(60,64,130,.22);
  --input-bg: rgba(255,255,255,.75); --input-bg-focus: #fff; --option-bg: #fff;
  --orb-1: #a78bfa; --orb-2: #67e8f9; --orb-3: #f9a8d4; --orb-opacity: .55; --grid: rgba(30,36,80,.05);
  --chip-text: #6d28d9; --star-off: rgba(30,36,80,.18);
  --face-bg: linear-gradient(145deg, rgba(139,92,246,.55), rgba(6,182,212,.4));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--text); background: var(--bg);
  font: 15px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden; transition: background .4s, color .4s;
}
/* Fondagi rangli "suzuvchi" dog'lar — shisha effekti shular ustida ko'rinadi */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-orbs span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: var(--orb-opacity); animation: drift 22s ease-in-out infinite alternate; transition: background .4s; }
.bg-orbs span:nth-child(1) { width: 520px; height: 520px; background: var(--orb-1); top: -140px; left: -120px; }
.bg-orbs span:nth-child(2) { width: 460px; height: 460px; background: var(--orb-2); bottom: -160px; right: -100px; animation-delay: -6s; }
.bg-orbs span:nth-child(3) { width: 340px; height: 340px; background: var(--orb-3); top: 40%; left: 55%; opacity: calc(var(--orb-opacity) * .6); animation-delay: -12s; }
.bg-orbs::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%); }
@keyframes drift { to { transform: translate(80px, 60px) scale(1.15); } }

a { color: var(--link); text-decoration: none; transition: color .2s; }
a:hover { color: var(--link-hover); }
main { max-width: 1240px; margin: 0 auto; padding: 28px 16px 80px; }
h1 { font-size: 28px; line-height: 1.2; margin: 6px 0 18px; letter-spacing: -.02em; }
h2 { font-size: 19px; margin: 28px 0 12px; letter-spacing: -.01em; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.gradient-text { background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 3D ikonkalar (static/icons) */
.i3d { width: 1.4em; height: 1.4em; object-fit: contain; vertical-align: -.35em; filter: drop-shadow(0 4px 8px rgba(20,20,60,.25)); }
.i3d.lg { width: 56px; height: 56px; } .i3d.xl { width: 84px; height: 84px; }

/* ---------- shisha panel ---------- */
.glass, .card, .tile, table, .kpi, .bars, .flash, .topbar, .filters {
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow), var(--inner-hi);
  transition: background .4s, border-color .4s, box-shadow .4s;
}
.card { border-radius: var(--radius); padding: 24px; margin-bottom: 18px; }
.card.narrow { max-width: 440px; margin: 48px auto; }
.card h1 { margin-top: 0; }
.card-icon { display: block; margin: -4px 0 10px; }

/* ---------- yuqori menyu ---------- */
.topbar {
  position: sticky; top: 12px; z-index: 50; margin: 12px auto 0; max-width: 1240px; width: calc(100% - 24px);
  border-radius: 20px; display: flex; align-items: center; gap: 14px; padding: 10px 14px;
}
.topbar { background: var(--topbar-bg); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--text) !important; white-space: nowrap; }
.brand .logo { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--accent);
  box-shadow: 0 6px 20px rgba(139,92,246,.45); }
.brand .logo img { width: 28px; height: 28px; }
.topbar nav { display: flex; gap: 4px; align-items: center; flex: 1; flex-wrap: wrap; }
.topbar nav a { color: var(--text-2); padding: 8px 13px; border-radius: 12px; font-size: 14px; font-weight: 500; transition: background .2s, color .2s; }
.topbar nav a:hover { background: var(--tint-2); color: var(--text); }
.topbar nav a.active { background: rgba(139,92,246,.18); color: var(--text); box-shadow: inset 0 0 0 1px rgba(139,92,246,.35); }
.me { display: flex; gap: 8px; align-items: center; order: 2; }
.topbar .theme-toggle { order: 1; }
.avatar-pill { display: flex; align-items: center; gap: 9px; padding: 4px 12px 4px 4px; border-radius: 999px;
  background: var(--glass-strong); border: 1px solid var(--glass-border); color: var(--text) !important; font-size: 13px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--accent); color: #fff; }
.avatar-pill small { display: block; color: var(--muted); font-size: 11px; line-height: 1.1; }
/* Yorug'/qorong'u rejim tugmasi */
.theme-toggle { width: 40px; height: 40px; flex: none; border-radius: 12px; border: 1px solid var(--glass-border); background: var(--glass-strong);
  cursor: pointer; display: grid; place-items: center; padding: 0; position: relative; overflow: hidden; transition: transform .2s; }
.theme-toggle:hover { transform: rotate(-12deg) scale(1.06); }
.theme-toggle img { width: 26px; height: 26px; position: absolute; transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.theme-toggle .sun { transform: translateY(40px) rotate(90deg); opacity: 0; }
[data-theme="light"] .theme-toggle .sun { transform: none; opacity: 1; }
[data-theme="light"] .theme-toggle .moon { transform: translateY(-40px) rotate(-90deg); opacity: 0; }
.nav-toggle, .burger { display: none; }
@media (max-width: 980px) {
  .burger { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; cursor: pointer;
    background: var(--glass-strong); border: 1px solid var(--glass-border); font-size: 20px; color: var(--text); }
  .topbar { flex-wrap: wrap; }
  .topbar .theme-toggle { margin-left: auto; order: 0; }
  .topbar .me { order: 0; }
  .topbar nav, .topbar .me { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  .nav-toggle:checked ~ nav, .nav-toggle:checked ~ .me { display: flex; }
  .topbar nav a { padding: 11px 14px; }
  .me { padding-top: 8px; border-top: 1px solid var(--tint-3); justify-content: space-between; flex-direction: row !important; }
}

/* ---------- tugmalar ---------- */
.btn {
  --lift: 0px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 13px; border: 1px solid rgba(255,255,255,.22); cursor: pointer;
  font: 600 14px/1.2 inherit; color: #fff !important; background: var(--accent); background-size: 140% 140%; text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(99,102,241,.35), inset 0 1px 0 rgba(255,255,255,.3);
  transform: translateY(var(--lift)); transition: transform .2s, box-shadow .2s, background-position .4s; position: relative; overflow: hidden;
}
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s; }
.btn:hover { --lift: -2px; background-position: 100% 0; box-shadow: 0 14px 32px rgba(99,102,241,.5), inset 0 1px 0 rgba(255,255,255,.35); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { --lift: 0px; }
.btn .i3d { width: 22px; height: 22px; vertical-align: middle; }
.btn.small { padding: 7px 13px; font-size: 13px; border-radius: 11px; }
.btn.small .i3d { width: 18px; height: 18px; }
.btn.big { padding: 14px 26px; font-size: 16px; border-radius: 16px; }
.btn.ghost { background: var(--glass-strong); color: var(--text) !important; border-color: var(--glass-border); box-shadow: var(--inner-hi); }
.btn.ghost:hover { background: var(--tint-3); box-shadow: var(--shadow); }
.btn.danger { background: linear-gradient(135deg, #f43f5e, #f97316); box-shadow: 0 8px 24px rgba(244,63,94,.3); }
.btn svg { width: 18px; height: 18px; fill: currentColor; vertical-align: -3px; }
.btn.tg { background: linear-gradient(135deg, #229ed9, #38bdf8); box-shadow: 0 8px 24px rgba(34,158,217,.35); }
.btn:disabled { opacity: .6; cursor: wait; }
.link { background: none; border: 0; color: var(--link); cursor: pointer; padding: 0; font: inherit; }
.link:hover { color: var(--link-hover); }
form.inline { display: inline; }

/* ---------- forma elementlari ---------- */
label { display: block; margin-bottom: 14px; font-weight: 500; font-size: 14px; color: var(--text-2); }
input, select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 14px; border-radius: 12px; font: inherit; color: var(--text);
  background: var(--input-bg); border: 1px solid var(--glass-border); outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
[data-theme="light"] input, [data-theme="light"] select, [data-theme="light"] textarea { border-color: rgba(30,36,80,.12); }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
input:focus, select:focus, textarea:focus { border-color: rgba(139,92,246,.7); box-shadow: 0 0 0 4px rgba(139,92,246,.18); background: var(--input-bg-focus); }
select { appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b5cf6' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
option { background: var(--option-bg); color: var(--text); }
input[type=file] { padding: 8px; cursor: pointer; }
input[type=file]::file-selector-button { margin-right: 12px; padding: 7px 14px; border: 0; border-radius: 9px; color: #fff; background: var(--accent); font-weight: 600; cursor: pointer; }
td input, td select, .inline input, .inline select { display: inline-block; width: auto; margin: 0; padding: 6px 10px; }
td select { padding-right: 30px; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--tint-3); }

.flash { padding: 12px 16px; border-radius: 14px; margin-bottom: 14px; border-left: 3px solid var(--green); }
.flash.error { border-left-color: var(--red); background: rgba(239,68,68,.12); }
.flash.warning { border-left-color: var(--amber); background: rgba(245,158,11,.12); }
.flash.success { background: rgba(16,185,129,.12); }

/* ---------- filtrlar va kartochkalar ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; padding: 12px; border-radius: var(--radius); }
.filters input, .filters select { width: auto; min-width: 160px; margin: 0; flex: 1 1 160px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.tile { border-radius: var(--radius); overflow: hidden; color: inherit; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s, background .4s; }
.tile:hover { transform: translateY(-6px); border-color: var(--glass-hi); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(139,92,246,.25); color: inherit; }
.thumb { position: relative; aspect-ratio: 16/10; background: var(--tint-1); display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--tint-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.tile:hover .thumb img { transform: scale(1.05); }
/* Slaydlar (keng rasm) qirqilmasin: to'liq ko'rinadi; varaqlar (tik) yuqori qismi bilan ko'rinadi */
.thumb img.wide { object-fit: contain; }
.thumb.big { aspect-ratio: 4/3; border-radius: var(--radius); border: 1px solid var(--glass-border); }
.ext { font-size: 30px; font-weight: 800; letter-spacing: .05em; }
.badge { position: absolute; top: 10px; right: 10px; background: rgba(7,11,26,.7); backdrop-filter: blur(8px); color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,.18); }
.tile-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 3px; }
.tile-body strong { font-size: 15px; line-height: 1.35; margin-bottom: 2px; }
.stars { color: var(--amber); letter-spacing: 1px; }
.empty { text-align: center; padding: 50px 20px; border-radius: var(--radius); }
.empty .i3d { width: 96px; height: 96px; margin-bottom: 8px; }

/* ---------- resurs sahifasi ---------- */
.resource { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 860px) { .resource, .two { grid-template-columns: 1fr !important; } }
.big-preview { width: 100%; border-radius: var(--radius); border: 1px solid var(--glass-border); box-shadow: var(--shadow); background: #fff; }
.preview-col { position: sticky; top: 96px; align-self: start; }
@media (max-width: 860px) { .preview-col { position: static; } }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; align-items: center; }
.rate { display: flex; align-items: center; gap: 2px; }
.rate span { margin-right: 8px; color: var(--muted); }
.star { background: none; border: 0; font-size: 28px; color: var(--star-off); cursor: pointer; padding: 0 2px; transition: transform .15s, color .15s; }
.star.on { color: var(--amber); text-shadow: 0 0 14px rgba(245,158,11,.45); }
.rate:hover .star { color: var(--amber); }
.rate .star:hover ~ .star { color: var(--star-off); text-shadow: none; }
.star:hover { transform: scale(1.2); }
.comment { border-top: 1px solid var(--tint-3); padding: 12px 0; }
.comment-text { white-space: pre-wrap; margin-top: 3px; }
.pill { display: inline-block; background: rgba(139,92,246,.16); color: var(--chip-text); font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(139,92,246,.3); }
.pill.ok { background: rgba(16,185,129,.15); color: var(--green); border-color: rgba(16,185,129,.35); }
.pill.off { background: var(--tint-1); color: var(--muted); border-color: var(--tint-3); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---------- jadvallar va statistika ---------- */
table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: var(--radius); overflow: hidden; }
@media (max-width: 860px) { table { display: block; overflow-x: auto; } }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--tint-2); vertical-align: middle; }
th { background: var(--tint-1); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
table tr:hover td { background: var(--tint-1); }
tr.dim td { color: var(--muted); } tr.pending td { background: rgba(245,158,11,.07); }
td.actions { white-space: nowrap; } td.actions .inline + .inline::before { content: " · "; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-bottom: 14px; }
.kpi { border-radius: var(--radius); padding: 16px 18px; position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; width: 90px; height: 90px; right: -30px; top: -30px; border-radius: 50%; background: var(--accent); opacity: .25; filter: blur(10px); }
.kpi b { display: block; font-size: 28px; letter-spacing: -.02em; } .kpi span { color: var(--muted); font-size: 13px; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 140px; border-radius: var(--radius); padding: 14px; }
.bar { flex: 1; background: var(--accent); border-radius: 6px 6px 2px 2px; min-height: 3px; opacity: .85; transition: opacity .2s; }
.bar:hover { opacity: 1; box-shadow: 0 0 18px rgba(139,92,246,.6); }
.bars-axis { display: flex; justify-content: space-between; margin-top: 6px; }
code { background: var(--tint-2); padding: 2px 7px; border-radius: 6px; }

/* ---------- profil ---------- */
.profile-head { display: flex; align-items: center; gap: 18px; }
.profile-head .avatar { width: 64px; height: 64px; font-size: 26px; border-radius: 20px; box-shadow: 0 10px 30px rgba(139,92,246,.45); }
.info-list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 18px 0 0; }
.info-list dt { color: var(--muted); } .info-list dd { margin: 0; }
.tg-box { display: flex; gap: 16px; align-items: flex-start; }
.tg-icon { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, #229ed9, #38bdf8);
  box-shadow: 0 10px 24px rgba(34,158,217,.35); }
.tg-icon svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- landing ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; min-height: calc(100vh - 140px); padding: 30px 0; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; min-height: 0; text-align: center; } .hero .cta { justify-content: center; } .hero .scene { margin: 30px auto 10px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--chip-text);
  background: rgba(139,92,246,.12); border: 1px solid rgba(139,92,246,.3); }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 800; letter-spacing: -.035em; margin: 18px 0; line-height: 1.05; }
.hero p.lead { font-size: 18px; color: var(--text-2); max-width: 560px; }
@media (max-width: 900px) { .hero p.lead { margin: 0 auto; } }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* 3D kub */
.scene { width: 340px; height: 340px; perspective: 1100px; position: relative; justify-self: center; }
.scene .orbit { position: absolute; inset: -30px; border-radius: 50%; border: 1px solid rgba(139,92,246,.4); transform: rotateX(72deg); animation: spin 14s linear infinite; }
.scene .orbit.o2 { inset: -60px; border-color: rgba(6,182,212,.3); animation-duration: 22s; animation-direction: reverse; transform: rotateX(72deg) rotateY(20deg); }
.scene .orbit::after { content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
.scene .orbit.o2::after { background: var(--pink); box-shadow: 0 0 18px var(--pink); }
@keyframes spin { to { transform: rotateX(72deg) rotateZ(360deg); } }
.cube-wrap { position: absolute; inset: 50px; transform-style: preserve-3d; transition: transform .2s ease-out; }
.cube { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; animation: cube 20s linear infinite; }
@keyframes cube { from { transform: rotateX(-22deg) rotateY(0); } to { transform: rotateX(-22deg) rotateY(360deg); } }
.face { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; border-radius: 26px;
  background: var(--face-bg); border: 1px solid rgba(255,255,255,.4);
  box-shadow: inset 0 0 40px rgba(255,255,255,.12); font-weight: 700; color: #fff; backface-visibility: hidden; }
.face img { display: block; width: 104px; height: 104px; margin: 0 auto 8px; filter: drop-shadow(0 12px 18px rgba(10,10,40,.35)); }
.face > div { padding: 0 12px; }
.face span { display: block; line-height: 1.25; font-size: 15px; letter-spacing: .02em; text-shadow: 0 2px 8px rgba(0,0,0,.25); }
.f1 { transform: translateZ(120px); } .f2 { transform: rotateY(90deg) translateZ(120px); } .f3 { transform: rotateY(180deg) translateZ(120px); }
.f4 { transform: rotateY(-90deg) translateZ(120px); } .f5 { transform: rotateX(90deg) translateZ(120px); } .f6 { transform: rotateX(-90deg) translateZ(120px); }
@media (max-width: 420px) { .scene { width: 260px; height: 260px; } .f1 { transform: translateZ(80px); } .f2 { transform: rotateY(90deg) translateZ(80px); }
  .f3 { transform: rotateY(180deg) translateZ(80px); } .f4 { transform: rotateY(-90deg) translateZ(80px); } .f5 { transform: rotateX(90deg) translateZ(80px); }
  .f6 { transform: rotateX(-90deg) translateZ(80px); } .face img { width: 70px; height: 70px; margin-bottom: 6px; } .face span { font-size: 12px; } }
.float { position: absolute; display: flex; align-items: center; gap: 8px; border-radius: 18px; background: var(--glass-strong); border: 1px solid var(--glass-border);
  backdrop-filter: var(--blur); padding: 8px 14px 8px 8px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow); animation: bob 6s ease-in-out infinite; white-space: nowrap; z-index: 2; }
.float img { width: 34px; height: 34px; }
.float.b { bottom: 6%; right: -16%; animation-delay: -3s; }
@media (max-width: 900px) { .float.b { right: auto; left: 50%; bottom: -30%; translate: -50% 0; } .hero .scene { margin-bottom: 70px; } }
@keyframes bob { 50% { transform: translateY(-14px); } }
/* Fon bo'ylab suzuvchi 3D ikonkalar */
.hero-icons img { position: absolute; z-index: 1; pointer-events: none; filter: drop-shadow(0 18px 24px rgba(20,20,60,.3)); animation: bob 7s ease-in-out infinite; }
.hero-icons .h1 { width: 74px; top: -10%; right: 4%; animation-delay: -1s; }
.hero-icons .h2 { width: 62px; bottom: -12%; left: 6%; animation-delay: -4s; }
.hero-icons .h3 { width: 54px; top: 46%; right: -18%; animation-delay: -2.5s; }
@media (max-width: 900px) { .hero-icons .h3 { right: -6%; } }

.section { padding: 56px 0 10px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 30px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.03em; margin: 10px 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat { padding: 20px 22px; border-radius: 22px; display: flex; align-items: center; gap: 16px; }
.stat img { width: 60px; height: 60px; flex: none; filter: drop-shadow(0 10px 14px rgba(20,20,60,.25)); }
.stat b { display: block; font-size: 36px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat span { color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; counter-reset: step; }
.step { padding: 26px; border-radius: 22px; position: relative; transition: transform .25s, box-shadow .25s; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 18px; right: 22px; font-size: 54px; font-weight: 800; line-height: 1;
  background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .45; }
.step .ico { width: 76px; height: 76px; margin: -6px 0 10px -6px; filter: drop-shadow(0 12px 16px rgba(20,20,60,.25)); transition: transform .4s; }
.step:hover .ico { transform: rotate(-8deg) scale(1.08); }
.step h3 { margin: 0 0 6px; }

/* 3D ag'dariladigan fakt kartochkalari */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.flip { perspective: 1000px; height: 240px; cursor: pointer; }
.flip-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.flip:hover .flip-inner, .flip:focus-within .flip-inner, .flip.open .flip-inner { transform: rotateY(180deg); }
.flip-face { position: absolute; inset: 0; border-radius: 22px; padding: 24px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column; justify-content: center; }
.flip-front { text-align: center; align-items: center; }
.flip-front img { width: 96px; height: 96px; margin-bottom: 10px; filter: drop-shadow(0 14px 20px rgba(20,20,60,.3)); }
.flip-front h3 { margin: 0 0 4px; } .flip-front small { color: var(--muted); }
.flip-back { transform: rotateY(180deg); background: var(--face-bg); color: #fff; }
.flip-back .year { font-size: 30px; font-weight: 800; }

.deps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.dep { padding: 20px; border-radius: 20px; display: flex; gap: 14px; align-items: center; transition: transform .15s ease-out, box-shadow .2s; }
.dep img { width: 52px; height: 52px; flex: none; }
.dep:hover { box-shadow: var(--shadow-lg), 0 0 0 1px rgba(139,92,246,.3); }
.dep h3 { margin: 0 0 4px; font-size: 16px; }
.cta-band { margin-top: 60px; padding: 40px; border-radius: 28px; text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, rgba(139,92,246,.25), transparent 40%); animation: rot 10s linear infinite; z-index: -1; }
.cta-band > img { width: 88px; height: 88px; margin-bottom: 6px; filter: drop-shadow(0 14px 20px rgba(20,20,60,.3)); }
@keyframes rot { to { transform: rotate(360deg); } }
.cta-band .cta { justify-content: center; }
footer.site { text-align: center; color: var(--muted); font-size: 13px; padding: 40px 16px; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s, transform .8s; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print { .topbar, .btn, .bg-orbs { display: none; } body { background: #fff; color: #000; } }

[hidden] { display: none !important; }
.cols3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }

/* ---------- chap menyu (kirgan foydalanuvchilar uchun) ---------- */
.side-toggle, .mobilebar, .side-overlay { display: none; }
body.has-side main { margin-left: 280px; max-width: none; padding: 28px 32px 80px; }
body.has-side main > * { max-width: 1240px; margin-left: auto; margin-right: auto; }
body.has-side main > .card.narrow { max-width: 440px; }
.sidebar {
  position: fixed; top: 12px; bottom: 12px; left: 12px; width: 256px; z-index: 60; border-radius: 22px;
  display: flex; flex-direction: column; gap: 16px; padding: 18px 14px; overflow-y: auto;
  background: var(--topbar-bg); border: 1px solid var(--glass-border); box-shadow: var(--shadow), var(--inner-hi);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.sidebar .brand { padding: 2px 6px; }
.side-cta { width: 100%; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); padding: 14px 12px 6px; }
.side-nav a {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 14px;
  color: var(--text-2); font-size: 14.5px; font-weight: 500; text-decoration: none; transition: background .2s, color .2s, transform .2s;
}
.side-nav a img { width: 28px; height: 28px; flex: none; filter: drop-shadow(0 4px 6px rgba(20,20,60,.25)); transition: transform .3s; }
.side-nav a:hover { background: var(--tint-2); color: var(--text); }
.side-nav a:hover img { transform: scale(1.12) rotate(-6deg); }
.side-nav a.active { color: var(--text); font-weight: 600; background: linear-gradient(135deg, rgba(139,92,246,.24), rgba(59,130,246,.12));
  box-shadow: inset 0 0 0 1px rgba(139,92,246,.35); }
.side-nav a.active::before { content: ""; position: absolute; left: -7px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--tint-3); }
.side-foot .avatar-pill { border-radius: 16px; padding: 8px 10px; }
.side-foot .avatar-pill.active { box-shadow: inset 0 0 0 1px rgba(139,92,246,.45); }
.side-foot .avatar-pill > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-row { display: flex; gap: 8px; align-items: center; }
.side-row form { flex: 1; } .side-row .btn { width: 100%; height: 40px; }
@media (max-width: 980px) {
  body.has-side main { margin-left: 0; padding: 18px 16px 80px; }
  .mobilebar { display: flex; align-items: center; gap: 10px; position: sticky; top: 12px; z-index: 50; margin: 12px 12px 0;
    padding: 10px 14px; border-radius: 20px; background: var(--topbar-bg); border: 1px solid var(--glass-border); box-shadow: var(--shadow); }
  .mobilebar .theme-toggle { margin-left: auto; }
  .sidebar { transform: translateX(calc(-100% - 24px)); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
  .side-toggle:checked ~ .sidebar { transform: none; }
  .side-overlay { position: fixed; inset: 0; z-index: 55; background: rgba(5,8,20,.5); backdrop-filter: blur(2px); }
  .side-toggle:checked ~ .side-overlay { display: block; }
}

/* ---------- ro'yxatdan o'tish: rol tanlash ---------- */
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0 16px; }
.role-opt { margin: 0; cursor: pointer; }
.role-opt input { position: absolute; opacity: 0; pointer-events: none; }
.role-opt > span { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; height: 100%;
  padding: 16px 12px; border-radius: 18px; border: 1.5px solid var(--glass-border); background: var(--input-bg); transition: border-color .2s, box-shadow .2s, transform .2s; }
.role-opt img { width: 52px; height: 52px; margin-bottom: 4px; filter: drop-shadow(0 8px 12px rgba(20,20,60,.25)); }
.role-opt b { color: var(--text); font-size: 15px; } .role-opt small { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.35; }
.role-opt:hover > span { transform: translateY(-2px); }
.role-opt input:checked + span { border-color: #8b5cf6; box-shadow: 0 0 0 4px rgba(139,92,246,.18), 0 10px 26px rgba(99,102,241,.25); }
.role-opt input:focus-visible + span { outline: 2px solid #8b5cf6; outline-offset: 2px; }

/* ---------- admin dashboard ---------- */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.dash-head h1 { margin: 0 0 4px; } .dash-head p { margin: 0; }
.dash-alerts { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.dash-alert { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; color: var(--text) !important; text-decoration: none !important; }
.dash-alert img { width: 32px; height: 32px; } .dash-alert i { font-style: normal; color: var(--muted); margin-left: 6px; }
.dash-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-bottom: 18px; }
.dash-kpi { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 20px; }
.dash-kpi img { width: 54px; height: 54px; flex: none; filter: drop-shadow(0 10px 14px rgba(20,20,60,.25)); }
.dash-kpi b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.dash-kpi span { color: var(--muted); font-size: 13px; } .dash-kpi small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dash-card { border-radius: 22px; padding: 18px 20px; min-width: 0; }
.dash-card.wide { grid-column: 1 / -1; }
.dash-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.dash-card-head h2 { margin: 0; font-size: 17px; }
.legend { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 8px; }
.legend .l1, .dash-chart .b1 { background: linear-gradient(180deg, #8b5cf6, #6366f1); }
.legend .l2, .dash-chart .b2 { background: linear-gradient(180deg, #22d3ee, #0ea5e9); }
.dash-chart { display: flex; align-items: stretch; gap: 6px; height: 170px; margin-bottom: 10px; }
.dash-chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.dash-chart .pair { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.dash-chart .pair span { width: 40%; max-width: 16px; min-height: 3px; border-radius: 5px 5px 2px 2px; }
.dash-chart small { color: var(--muted); font-size: 11px; }
.dash-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.dash-list li { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 12px; }
.dash-list li:hover { background: var(--tint-1); }
.dash-list li > div { min-width: 0; } .dash-list a { display: block; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-list small { display: block; font-size: 12px; }
.dash-list .avatar { flex: none; }
.ext-pill, .rank { flex: none; display: grid; place-items: center; width: 40px; height: 30px; border-radius: 9px; font-size: 10.5px; font-weight: 700;
  background: var(--tint-2); color: var(--text-2); }
.rank { width: 30px; border-radius: 50%; font-size: 13px; background: var(--accent); color: #fff; }
@media (max-width: 1200px) { .dash-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .dash-grid { grid-template-columns: 1fr; } .role-pick { grid-template-columns: 1fr 1fr; } }
