/* =====================================================================
   AVTORA HOST — yagona dizayn tizimi
   Premium dark navy + oq, binafsha/ko'k gradient aksentlar. Mobil birinchi.
   ===================================================================== */
:root {
  --navy-950: #060b1f;
  --navy-900: #0a1230;
  --navy-800: #111b45;
  --navy-700: #1a2660;
  --navy-600: #26357d;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-2: #eef2f7;
  --bg: #f5f7fb;
  --white: #ffffff;
  --brand: #6d5dfc;
  --brand-2: #3b82f6;
  --brand-3: #22d3ee;
  --grad: linear-gradient(135deg, #7c5cff 0%, #4f7cff 55%, #22c1ee 100%);
  --grad-soft: linear-gradient(135deg, rgba(124, 92, 255, .12), rgba(34, 193, 238, .10));
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 30px 60px -20px rgba(10, 18, 48, .35);
  --font: "Inter", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sidebar: 264px;
  --header: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.6 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .88em; background: var(--line-2); padding: .1em .4em; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; flex-shrink: 0; }
.icon-lg { width: 28px; height: 28px; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .87rem; }
.mono { font-family: var(--mono); }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 16px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Tugmalar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 1px solid transparent;
  font: 600 15px/1.2 var(--font); cursor: pointer; text-decoration: none !important;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, opacity .2s;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px -10px rgba(91, 92, 255, .7); }
.btn-primary:hover { box-shadow: 0 12px 28px -10px rgba(91, 92, 255, .9); }
.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { background: var(--line-2); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--line-2); }
.btn-light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .22); backdrop-filter: blur(8px); }
.btn-light:hover { background: rgba(255, 255, 255, .18); }
.btn-danger { background: #fff; color: var(--red); border-color: #fecaca; }
.btn-danger:hover { background: #fef2f2; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand-2); font: inherit; cursor: pointer; }

/* ---------- Kartalar ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-header h2, .card-header h3 { margin: 0; font-size: 1.05rem; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush .card-header { padding: 16px 20px 0; }
.stat { display: flex; gap: 14px; align-items: center; }
.stat-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); color: var(--brand); flex-shrink: 0; }
.stat-value { font-size: 1.45rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.stat-label { color: var(--muted); font-size: .85rem; }

/* ---------- Badge ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.badge-green { background: #ecfdf5; color: #047857; }
.badge-amber { background: #fffbeb; color: #b45309; }
.badge-red { background: #fef2f2; color: #b91c1c; }
.badge-blue { background: #eff6ff; color: #1d4ed8; }
.badge-purple { background: #f5f3ff; color: #6d28d9; }
.badge-gray { background: #f1f5f9; color: #475569; }
.badge-grad { background: var(--grad); color: #fff; }

/* ---------- Alert / banner ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); border: 1px solid; font-size: .93rem; }
.alert .icon { margin-top: 2px; }
.alert p:last-child { margin-bottom: 0; }
.alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.alert-error { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.alert-demo { background: linear-gradient(135deg, #f5f3ff, #eff6ff); border-color: #ddd6fe; color: #4c1d95; }
.demo-ribbon { background: linear-gradient(90deg, #6d28d9, #2563eb); color: #fff; text-align: center; font-size: 13px; padding: 7px 12px; font-weight: 500; }
.demo-ribbon a { color: #fff; text-decoration: underline; }

/* ---------- Formalar ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field label, .label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink-2); }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); font: 16px/1.4 var(--font); transition: border-color .15s, box-shadow .15s; appearance: none;
}
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
textarea.input { min-height: 120px; resize: vertical; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(109, 93, 252, .15); }
.input.is-invalid { border-color: var(--red); }
.field-error { color: var(--red); font-size: .84rem; margin: 6px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); flex-shrink: 0; }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }
.radio-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.radio-card { position: relative; display: block; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card > span { display: block; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; transition: border-color .15s, background .15s; }
.radio-card input:checked + span { border-color: var(--brand); background: var(--grad-soft); box-shadow: 0 0 0 3px rgba(109, 93, 252, .12); }
.radio-card input:focus-visible + span { outline: 2px solid var(--brand); }
.radio-card b { display: block; }

/* ---------- Jadval (mobilda kartaga aylanadi) ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fafbfd; white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafbff; }
.table .actions { text-align: right; white-space: nowrap; }
@media (max-width: 760px) {
  .table.responsive thead { display: none; }
  .table.responsive, .table.responsive tbody, .table.responsive tr, .table.responsive td { display: block; width: 100%; }
  .table.responsive tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .table.responsive tr:last-child { border-bottom: 0; }
  .table.responsive td { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border: 0; text-align: right; }
  .table.responsive td::before { content: attr(data-label); color: var(--muted); font-size: .84rem; text-align: left; flex-shrink: 0; }
  .table.responsive td.actions { justify-content: flex-end; padding-top: 10px; }
  .table.responsive td.actions::before { content: none; }
}

/* ---------- Bo'sh holat ---------- */
.empty { text-align: center; padding: 40px 20px; }
.empty .empty-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; background: var(--grad-soft); color: var(--brand); }
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--muted); max-width: 420px; margin: 0 auto 18px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; padding: 16px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 600; padding: 0 10px; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* =====================================================================
   OMMAVIY SAHIFALAR
   ===================================================================== */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(6, 11, 31, .82); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.site-header .container { display: flex; align-items: center; gap: 20px; height: var(--header); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; letter-spacing: .02em; font-size: 1.05rem; text-decoration: none !important; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; color: #fff; box-shadow: 0 6px 20px -6px rgba(124, 92, 255, .8); }
.brand-mark svg { width: 20px; height: 20px; }
.brand img { height: 34px; width: auto; border-radius: 8px; }
.brand small { font-weight: 600; opacity: .7; margin-left: 2px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: rgba(255, 255, 255, .78); padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: .95rem; text-decoration: none; }
.nav a:hover, .nav a.active { color: #fff; background: rgba(255, 255, 255, .08); }
.header-cta { display: flex; gap: 8px; }
.nav .nav-mobile { display: none; }
.nav-toggle { display: none; margin-left: auto; background: transparent; border: 0; color: #fff; padding: 8px; border-radius: 10px; cursor: pointer; }
@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.open .nav { display: flex; position: absolute; top: var(--header); left: 0; right: 0; flex-direction: column; padding: 12px 16px 6px; background: var(--navy-950); border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .site-header.open .nav .nav-mobile { display: flex; gap: 8px; padding: 10px 0 8px; }
  .site-header.open .nav .nav-mobile .btn { flex: 1; }
  .site-header.open .nav a { padding: 12px; }
}

.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 80% -10%, rgba(124, 92, 255, .35), transparent 60%), radial-gradient(900px 500px at -10% 20%, rgba(34, 193, 238, .18), transparent 60%), var(--navy-950); color: #fff; padding: 72px 0 96px; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 6vw, 3.6rem); line-height: 1.05; letter-spacing: -.035em; margin-bottom: 18px; }
.hero p.lead { color: rgba(255, 255, 255, .78); font-size: clamp(1.02rem, 2.4vw, 1.18rem); max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 30px; color: rgba(255, 255, 255, .72); font-size: .9rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges .icon { color: var(--brand-3); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; color: rgba(255, 255, 255, .85); margin-bottom: 20px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(16, 185, 129, .2); }
.eyebrow.demo .dot { background: var(--amber); box-shadow: 0 0 0 4px rgba(245, 158, 11, .2); }

.hero-visual { position: relative; }
.glass { background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; backdrop-filter: blur(16px); box-shadow: var(--shadow-lg); }
.console { padding: 18px; animation: float 6s ease-in-out infinite; }
.console-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.console-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.console-bar i:nth-child(1) { background: #ff6b6b; } .console-bar i:nth-child(2) { background: #ffd166; } .console-bar i:nth-child(3) { background: #06d6a0; }
.console-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); margin-bottom: 10px; font-size: .9rem; }
.console-row .k { color: rgba(255, 255, 255, .65); display: flex; gap: 10px; align-items: center; }
.console-row .v { font-weight: 600; }
.meter { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; width: 38%; background: var(--grad); border-radius: 99px; }
.float-chip { position: absolute; padding: 10px 14px; font-size: .85rem; display: flex; gap: 8px; align-items: center; color: #fff; }
.float-chip.one { left: -24px; bottom: -22px; animation: float 7s ease-in-out infinite reverse; }
.float-chip.two { right: -12px; top: -18px; animation: float 8s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .console, .float-chip { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero .container { grid-template-columns: 1fr; gap: 36px; }
  .float-chip.one { left: 8px; bottom: -18px; }
  .float-chip.two { right: 8px; top: -18px; }
}

.section { padding: 80px 0; }
.section.alt { background: #fff; }
.section.dark { background: var(--navy-950); color: #fff; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head .kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section.dark .section-head p { color: rgba(255, 255, 255, .7); }
@media (max-width: 760px) { .section { padding: 56px 0; } .section-head { margin-bottom: 30px; } }

.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan.featured { border: 0; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; border: 2px solid transparent; box-shadow: 0 30px 60px -30px rgba(91, 92, 255, .55); }
.plan .ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); }
.plan-name { font-weight: 800; letter-spacing: .08em; font-size: .9rem; color: var(--brand); }
.plan-desc { color: var(--muted); font-size: .92rem; min-height: 2.8em; }
.plan-price { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 2px; }
.plan-price small { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan-list { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; flex: 1; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; }
.plan-list .icon-sm { color: var(--green); margin-top: 3px; }
.plan-list li.off { color: var(--muted); }
.plan-list li.off .icon-sm { color: #cbd5e1; }

.feature { padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); height: 100%; }
.feature .stat-icon { margin-bottom: 14px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }
.section.dark .feature { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .08); }
.section.dark .feature p { color: rgba(255, 255, 255, .66); }
.section.dark .feature .stat-icon { background: rgba(124, 92, 255, .18); color: #b9adff; }

.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.step { position: relative; padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 14px; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 18px; margin: 0; }

.cta-band { border-radius: 28px; padding: 44px 32px; background: radial-gradient(600px 300px at 90% 0%, rgba(34, 193, 238, .35), transparent), var(--grad); color: #fff; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; opacity: .9; }
.cta-band .btn-secondary { border: 0; }

.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: #ecfdf5; color: #047857; }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-pill.warn { background: #fffbeb; color: #b45309; }

.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .7); padding: 56px 0 28px; font-size: .93rem; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer a { color: rgba(255, 255, 255, .7); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr repeat(3, 1fr); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

.page-hero { background: var(--navy-950); color: #fff; padding: 48px 0 56px; }
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: rgba(255, 255, 255, .72); margin: 0; max-width: 640px; }
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.6em; font-size: 1.3rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* =====================================================================
   AUTH
   ===================================================================== */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { background: radial-gradient(800px 500px at 100% 0%, rgba(124, 92, 255, .4), transparent 60%), var(--navy-950); color: #fff; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-aside h2 { color: #fff; font-size: 2rem; max-width: 420px; }
.auth-aside p { color: rgba(255, 255, 255, .72); max-width: 420px; }
.auth-aside ul { list-style: none; padding: 0; display: grid; gap: 12px; color: rgba(255, 255, 255, .82); }
.auth-aside li { display: flex; gap: 10px; }
.auth-aside li .icon { color: var(--brand-3); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 32px 16px; background: #fff; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 1.7rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 24px; }
.auth-mobile-brand { display: none; margin-bottom: 24px; }
.auth-mobile-brand .brand { color: var(--ink); }
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-mobile-brand { display: block; }
  .auth-main { align-items: flex-start; padding-top: 28px; }
}

/* =====================================================================
   KABINET / ADMIN
   ===================================================================== */
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: var(--navy-950); color: rgba(255, 255, 255, .78); display: flex; flex-direction: column; z-index: 50; transition: transform .25s ease; }
.sidebar .brand { padding: 18px 20px; height: var(--header); }
.side-nav { flex: 1; overflow-y: auto; padding: 8px 12px 16px; }
.side-nav .group { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .4); padding: 16px 12px 6px; font-weight: 700; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: rgba(255, 255, 255, .74); font-weight: 500; font-size: .94rem; text-decoration: none; margin-bottom: 2px; }
.side-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-nav a.active { background: linear-gradient(90deg, rgba(124, 92, 255, .32), rgba(79, 124, 255, .12)); color: #fff; box-shadow: inset 2px 0 0 #8b7bff; }
.side-nav a .count { margin-left: auto; background: var(--red); color: #fff; font-size: 11px; border-radius: 999px; padding: 1px 7px; font-weight: 700; }
.side-foot { padding: 14px 16px; border-top: 1px solid rgba(255, 255, 255, .07); }
.user-chip { display: flex; align-items: center; gap: 10px; color: #fff; }
.avatar { width: 36px; height: 36px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; font-weight: 700; color: #fff; flex-shrink: 0; }
.user-chip small { display: block; color: rgba(255, 255, 255, .5); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.main { margin-left: var(--sidebar); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; height: var(--header); background: rgba(245, 247, 251, .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 24px; }
.topbar h1 { font-size: 1.15rem; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.icon-btn { position: relative; width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }
.menu-btn { display: none; }
.content { padding: 24px; flex: 1; width: 100%; max-width: 1240px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h2 { margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.backdrop { display: none; }
.bottom-nav { display: none; }
.kv { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 10px 16px; font-size: .94rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; word-break: break-word; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.list-item:last-child { border-bottom: 0; }
.list-item .meta { color: var(--muted); font-size: .84rem; }
.notice-unread { position: relative; }
.notice-unread::before { content: ""; position: absolute; left: -10px; top: 20px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.thread { display: grid; gap: 14px; }
.msg { max-width: 85%; padding: 14px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.msg.staff { margin-left: auto; background: linear-gradient(135deg, #f5f3ff, #eef4ff); border-color: #ddd6fe; }
.msg .who { font-size: .82rem; color: var(--muted); margin-bottom: 6px; display: flex; gap: 8px; justify-content: space-between; }
.msg .body { white-space: pre-wrap; word-break: break-word; }
.chart { display: flex; align-items: flex-end; gap: 10px; height: 160px; padding-top: 10px; }
.chart .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; font-size: .75rem; color: var(--muted); }
.chart .bar i { width: 100%; max-width: 46px; border-radius: 10px 10px 4px 4px; background: var(--grad); min-height: 4px; }
.preview-frame { width: 100%; height: 70vh; min-height: 420px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.check-list { display: grid; gap: 8px; }
.check-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.check-item .badge { margin-top: 1px; }
.price-total { font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; }
.sticky-summary { position: sticky; top: calc(var(--header) + 16px); }

@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  .app-shell.nav-open .sidebar { transform: none; }
  .app-shell.nav-open .backdrop { display: block; position: fixed; inset: 0; background: rgba(6, 11, 31, .5); z-index: 45; }
  .main { margin-left: 0; }
  .menu-btn { display: inline-grid; }
  .content { padding: 16px 16px 96px; }
  .topbar { padding: 0 12px; }
  .bottom-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 35; background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; font-size: 11px; color: var(--muted); border-radius: 12px; text-decoration: none; font-weight: 600; }
  .bottom-nav a.active { color: var(--brand); background: var(--grad-soft); }
  .sticky-summary { position: static; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
}

/* ---------- Modal / bottom sheet ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6, 11, 31, .55); backdrop-filter: blur(2px); animation: fade .2s ease; }
.modal-panel { position: relative; width: 100%; max-width: 480px; background: #fff; border-radius: 22px; padding: 24px; box-shadow: var(--shadow-lg); animation: pop .2s ease; max-height: 90vh; overflow-y: auto; }
.modal-panel h3 { margin-bottom: 8px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
@media (max-width: 640px) {
  .modal { align-items: flex-end; padding: 0; }
  .modal-panel { max-width: none; border-radius: 22px 22px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); animation: sheet .25s ease; }
  .modal-panel::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: -8px auto 16px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }
@keyframes sheet { from { transform: translateY(100%); } }

/* ---------- Toast ---------- */
.toasts { position: fixed; z-index: 200; right: 16px; bottom: 16px; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--navy-900); color: #fff; box-shadow: var(--shadow-lg); font-size: .93rem; animation: toast-in .25s ease; }
.toast.hide { animation: toast-out .25s ease forwards; }
.toast .icon { margin-top: 1px; }
.toast-success .icon { color: #34d399; } .toast-error .icon { color: #f87171; } .toast-warning .icon { color: #fbbf24; } .toast-info .icon { color: #60a5fa; }
.toast button { margin-left: auto; background: none; border: 0; color: rgba(255, 255, 255, .6); cursor: pointer; padding: 0 0 0 8px; font-size: 18px; line-height: 1; }
@media (max-width: 1024px) { .toasts { bottom: 84px; right: 16px; left: 16px; width: auto; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }

/* ---------- Xato sahifasi ---------- */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 60px 16px; }
.error-code { font-size: clamp(4rem, 14vw, 7rem); font-weight: 900; line-height: 1; letter-spacing: -.05em; }

/* ---------- Print (hisob-faktura) ---------- */
@media print {
  .sidebar, .topbar, .bottom-nav, .no-print, .toasts { display: none !important; }
  .main { margin: 0; }
  .content { padding: 0; }
  .card { border: 0; box-shadow: none; }
}
