/* =====================================================================
   choyichamiz — portfolio
   Layout: damlangan choy rangidagi iliq fon ustida koshinli Chorsu bozori;
   eksponatlar zali fil suyagi rangidagi muzey devori (o'z ranglari bilan);
   AI ofis — kechki pixel xona.
   ===================================================================== */
:root {
  /* Rang: choy, piyola va Chorsu koshinlaridan */
  --night: #24150E;       /* damlangan qora choy — asosiy fon */
  --night-2: #36211A;     /* ko'tarilgan yuzalar */
  --lapis: #2F5DB8;       /* paxta gulli choynak ko'ki */
  --firuza: #46B6C9;      /* Chorsu firuzasi */
  --oltin: #E8A33D;       /* choy qahrabosi */
  --ivory: #F6E7CF;       /* sut / non — matn */
  --anor: #C2414F;        /* anor — kam ishlatiladi */
  --ink: #161C38;         /* fil suyagi ustidagi matn */
  --clay: #5A321F;        /* sopol */

  /* Eksponatlar zali — avvalgi ranglari saqlangan */
  --hall-bg: #F2E8D5;
  --hall-night: #0C1533;
  --hall-lapis: #1A2A66;
  --hall-gold: #E0B04F;

  --fg: var(--ivory);
  --muted: rgba(246, 231, 207, .7);
  --faint: rgba(246, 231, 207, .14);
  --line: rgba(232, 163, 61, .3);
  --ink-muted: rgba(22, 28, 56, .66);
  --ink-line: rgba(26, 42, 102, .16);

  /* Shrift */
  --display: "Unbounded", "Arial Black", "Helvetica Neue", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* O'lchov shkalasi */
  --t-xs: .8125rem; --t-sm: .9375rem; --t-md: 1.0625rem; --t-lg: 1.3125rem;
  --t-xl: 1.75rem; --t-2xl: clamp(2rem, 4.2vw, 3.25rem); --t-3xl: clamp(2.4rem, 6vw, 4.75rem);

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1240px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);

  --girih: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23E8A33D' stroke-width='1'%3E%3Cpath d='M48 20l8 20 20 8-20 8-8 20-8-20-20-8 20-8z'/%3E%3Cpath d='M28 28h40v40H28z' transform='rotate(45 48 48)'/%3E%3Cpath d='M0 0l20 20M96 0L76 20M0 96l20-20M96 96L76 76M48 0v20M48 96V76M0 48h20M96 48H76'/%3E%3C/g%3E%3C/svg%3E");
  --girih-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%231A2A66' stroke-width='1'%3E%3Cpath d='M48 20l8 20 20 8-20 8-8 20-8-20-20-8 20-8z'/%3E%3Cpath d='M28 28h40v40H28z' transform='rotate(45 48 48)'/%3E%3Cpath d='M0 0l20 20M96 0L76 20M0 96l20-20M96 96L76 76M48 0v20M48 96V76M0 48h20M96 48H76'/%3E%3C/g%3E%3C/svg%3E");

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--night); color: var(--fg);
  font-family: var(--body); font-size: var(--t-md); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--oltin); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 18px; height: 18px; flex: none; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--oltin); color: var(--night); padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 16px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Tugmalar ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent; text-decoration: none; cursor: pointer;
  font-weight: 600; font-size: var(--t-sm); letter-spacing: .01em; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--oltin); color: var(--night); }
.btn-gold:hover { background: #F2B85A; }
.btn-gold .i { transition: transform .3s var(--ease); }
.btn-gold:hover .i { transform: translateX(4px); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--oltin); color: var(--oltin); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: var(--t-xs); }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--faint); background: transparent; display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { border-color: var(--oltin); color: var(--oltin); }

/* ---------- Yuklanish ---------- */
.loader {
  position: fixed; inset: 0; z-index: 300; background: var(--night);
  display: grid; place-items: center; align-content: center; gap: 18px;
  animation: loaderOut .6s var(--ease) 2.6s forwards;
}
.loader.done { animation: loaderOut .6s var(--ease) forwards; }
.loader-star { width: 92px; height: 92px; fill: none; stroke: var(--oltin); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.loader-star > * { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1.4s var(--ease) forwards; }
.loader-star rect:nth-child(2) { animation-delay: .2s; }
.loader-star circle { stroke: var(--firuza); animation-delay: .45s; }
.loader-word { font-family: var(--display); font-weight: 400; letter-spacing: .3em; font-size: var(--t-sm); padding-left: .3em; color: var(--muted); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes loaderOut { to { opacity: 0; visibility: hidden; } }

/* ---------- Navigatsiya ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter) 14px;
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(36, 21, 14, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--faint); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-star { width: 24px; height: 24px; fill: none; stroke: var(--oltin); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.logo-word { font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { text-decoration: none; font-size: var(--t-sm); padding: 8px 14px; border-radius: 999px; color: var(--muted); transition: color .2s, background-color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--fg); background: var(--faint); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--faint); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: transparent; cursor: pointer; font-size: .75rem; font-weight: 600; letter-spacing: .06em; padding: 6px 10px; border-radius: 999px; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--ivory); color: var(--night); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--faint); background: transparent; cursor: pointer; position: relative; }
.burger span:not(.sr) { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--fg); transition: transform .3s var(--ease); }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- 3D sahna ---------- */
.scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; transition: opacity .2s linear; }
main, .footer { position: relative; z-index: 1; }

/* ---------- HERO ---------- */
.hero { height: 260vh; position: relative; }
.hero-pin {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: grid; grid-template-rows: 1fr auto; align-items: center;
  max-width: var(--maxw); margin: 0 auto; padding: 96px var(--gutter) 32px;
}
.hero-copy { max-width: min(800px, 60vw); display: grid; gap: 28px; }
.hero-title {
  font-family: var(--display); font-weight: 700; line-height: .98; letter-spacing: -.025em;
  font-size: clamp(2.5rem, 5.7vw, 5.6rem); display: grid;
}
.ht-line { display: block; overflow: hidden; padding-bottom: .04em; }
.ht-line > span { display: inline-block; animation: rise 1.1s var(--ease) both; }
.ht-line:nth-child(2) > span { animation-delay: .1s; }
.ht-line:nth-child(3) > span { animation-delay: .2s; }
.ht-indent { padding-left: 1.1em; font-weight: 300; }
.hero-lead { color: var(--muted); font-size: var(--t-lg); line-height: 1.5; max-width: 32em; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
body.loading .ht-line > span { animation-play-state: paused; }

.build { max-width: 520px; display: grid; gap: 10px; font-size: var(--t-xs); color: var(--muted); }
.build-bar { height: 2px; background: var(--faint); border-radius: 2px; overflow: hidden; }
.build-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--firuza), var(--oltin)); }
.build-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.build-count { font-variant-numeric: tabular-nums; }
.build-count b { color: var(--fg); font-weight: 600; }
.build-stage { color: var(--oltin); transition: opacity .3s; }

/* ---------- Hamkorlar lentasi ---------- */
.ticker {
  position: relative; z-index: 2; display: flex; align-items: stretch; height: 56px;
  background: var(--ivory); color: var(--night); border-block: 1px solid var(--oltin);
}
.ticker-label {
  flex: none; display: flex; align-items: center; gap: 10px; padding: 0 22px;
  background: var(--anor); color: var(--ivory); font-family: var(--display); font-weight: 600; font-size: .8rem; letter-spacing: .08em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); padding-right: 32px;
}
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--ivory); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.ticker-viewport { flex: 1; overflow: hidden; display: flex; align-items: center; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: flex; align-items: center; gap: 40px; white-space: nowrap; padding-left: 40px; animation: ticker 32s linear infinite; will-change: transform; }
.ticker-track span { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: .02em; }
.ticker-track svg { width: 14px; height: 14px; fill: var(--oltin); flex: none; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Bo'limlar ---------- */
.section { position: relative; padding-block: clamp(80px, 12vw, 160px); }
.sec-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-title { font-family: var(--display); font-weight: 600; font-size: var(--t-3xl); line-height: 1.04; letter-spacing: -.02em; }
.sec-lead { color: var(--muted); font-size: var(--t-lg); line-height: 1.55; max-width: 36em; }

/* Biz haqimizda */
.about { background: linear-gradient(180deg, transparent, rgba(36,21,14,.6) 30%, rgba(36,21,14,.6) 70%, transparent); }
.founders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
.founder { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr); gap: 28px; align-items: end; }
.founder:nth-child(2) { margin-top: clamp(0px, 8vw, 120px); }
.portrait {
  position: relative; aspect-ratio: 4 / 5; width: 100%; max-width: 100%; border: 0; padding: 0; cursor: pointer; background: none;
  transition: transform .5s var(--ease);
}
.portrait-in {
  position: absolute; inset: 0; clip-path: url(#archClip);
  background: radial-gradient(120% 80% at 50% 100%, #7A4527, var(--night-2)); display: grid; place-items: center;
}
.portrait-in::before { content: ""; position: absolute; inset: 0; background-image: var(--girih); background-size: 48px; opacity: .22; }
.portrait-in img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait-mono { position: relative; font-family: var(--display); font-weight: 700; font-size: 3.4rem; color: var(--oltin); letter-spacing: -.02em; }
.portrait-frame { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); fill: none; stroke: var(--oltin); stroke-width: 1; overflow: visible; }
.portrait:hover { transform: translateY(-6px); }
.portrait .go {
  position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--oltin); color: var(--night); display: grid; place-items: center; opacity: 0; transform: scale(.7);
  transition: opacity .3s, transform .3s var(--ease);
}
.portrait .go svg { width: 18px; height: 18px; }
.portrait:hover .go, .portrait:focus-visible .go { opacity: 1; transform: none; }
.portrait.no-site { cursor: default; }
.portrait.no-site .go { display: none; }
.founder-body { display: grid; gap: 12px; min-width: 0; }
.founder-name { font-family: var(--display); font-weight: 600; font-size: var(--t-xl); line-height: 1.1; }
.founder-role { color: var(--oltin); font-size: var(--t-sm); }
.founder-bio { color: var(--muted); font-size: var(--t-sm); line-height: 1.65; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.chips li { font-size: .75rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--faint); color: var(--muted); }
.founder-link { justify-self: start; margin-top: 6px; }
.founder-link[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* Xizmatlar */
.svc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.svc-grid > .sec-title { position: sticky; top: 120px; }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list li {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 18px; row-gap: 6px;
  padding: 26px 0; border-top: 1px solid var(--faint);
}
.svc-list li:last-child { border-bottom: 1px solid var(--faint); }
.svc-star { width: 18px; height: 18px; fill: var(--firuza); margin-top: 6px; grid-row: span 2; transition: transform .6s var(--ease), fill .3s; }
.svc-list li:hover .svc-star { transform: rotate(90deg); fill: var(--oltin); }
.svc-list h3 { font-family: var(--display); font-weight: 500; font-size: var(--t-lg); }
.svc-list p { color: var(--muted); font-size: var(--t-sm); max-width: 44em; }

/* ---------- Eksponatlar zali ---------- */
.hall { background: var(--hall-bg); color: var(--ink); }
.hall::before { content: ""; position: absolute; inset: 0; background-image: var(--girih-ink); background-size: 96px; opacity: .06; pointer-events: none; }
.hall .sec-lead { color: var(--ink-muted); }
.exhibits { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 56px); }
.exhibit { display: grid; min-width: 0; align-content: start; }
.exhibit.wide { grid-column: 1 / -1; }
.vitrine {
  position: relative; display: grid; place-items: center; overflow: hidden; border: 0; cursor: pointer; padding: 0;
  aspect-ratio: 16 / 11; width: 100%; max-width: 100%; border-radius: 160px 160px 6px 6px / 90px 90px 6px 6px;
  background: radial-gradient(60% 70% at 50% 0%, #FFF8EA 0%, #E9DCC1 60%, #DCCBA9 100%);
  box-shadow: inset 0 0 0 1px rgba(26,42,102,.12);
}
.exhibit.wide .vitrine { aspect-ratio: 21 / 9; border-radius: 6px; }
.vitrine::after { content: ""; position: absolute; left: 50%; top: -30%; width: 70%; height: 80%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255,255,255,.55), transparent); pointer-events: none; }
.thumb-holder { position: relative; width: 78%; height: 78%; display: grid; place-items: center; transition: transform .6s var(--ease); }
.vitrine:hover .thumb-holder, .vitrine:focus-visible .thumb-holder { transform: translateY(-8px) scale(1.02); }
.thumb { position: absolute; left: 50%; top: 50%; transform-origin: center; pointer-events: none; box-shadow: 0 30px 50px -20px rgba(12,21,51,.45); }
.vitrine-cta {
  position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 8px); opacity: 0; z-index: 2;
  display: inline-flex; gap: 8px; align-items: center; background: var(--hall-night); color: var(--hall-bg); padding: 10px 18px; border-radius: 999px; font-size: var(--t-xs); font-weight: 600;
  transition: opacity .3s, transform .3s var(--ease);
}
.vitrine:hover .vitrine-cta, .vitrine:focus-visible .vitrine-cta { opacity: 1; transform: translate(-50%, 0); }
.plinth { height: 18px; margin: 0 6%; background: linear-gradient(180deg, var(--hall-lapis), var(--hall-night)); border-top: 2px solid var(--hall-gold); border-radius: 0 0 4px 4px; }
.plaque { margin: 22px 6% 0; display: grid; gap: 10px; }
.plaque-inv { font-size: var(--t-xs); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.plaque h3 { font-family: var(--display); font-weight: 600; font-size: var(--t-xl); letter-spacing: -.01em; }
.plaque p { color: var(--ink-muted); font-size: var(--t-sm); max-width: 40em; }
.plaque dl { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 4px 0 0; font-size: var(--t-xs); }
.plaque dl div { display: flex; gap: 8px; }
.plaque dt { color: var(--ink-muted); }
.plaque dd { margin: 0; font-weight: 600; }
.plaque .btn { justify-self: start; margin-top: 6px; }
.hall .btn-gold { background: var(--hall-night); color: var(--hall-bg); }
.hall .btn-gold:hover { background: var(--hall-lapis); }
.exhibit.empty .vitrine { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(26,42,102,.25); cursor: default; }
.exhibit.empty .vitrine::after { display: none; }
.empty-star { width: 64px; height: 64px; fill: none; stroke: var(--hall-lapis); stroke-width: .6; opacity: .5; }

/* ---------- AI ofis ---------- */
.office { background: #1B0F09; }
.office::before { content: ""; position: absolute; inset: 0; background-image: var(--girih); background-size: 120px; opacity: .04; pointer-events: none; }
.office-shell { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: stretch; }
.office-stage { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #1B0F09; aspect-ratio: 16 / 9; align-self: start; min-width: 0; min-height: 0; }
/* panel balandligi ofis rasmiga teng: jurnal uzaysa ham rasm kattalashmaydi */
.office-shell > .office-panel { contain: size; }
#officeCanvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; cursor: default; }
.office-bubbles { position: absolute; inset: 0; pointer-events: none; }
.bubble {
  position: absolute; transform: translate(-50%, -100%); white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis;
  background: var(--ivory); color: var(--ink); font-size: .72rem; font-weight: 600; padding: 5px 9px; border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,.35); transition: opacity .3s;
}
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; background: var(--ivory); transform: translateX(-50%) rotate(45deg); }
.bubble.name { background: var(--oltin); }
.bubble.name::after { background: var(--oltin); }
.office-clock {
  position: absolute; left: 12px; top: 12px; background: rgba(27,15,9,.85); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font-size: var(--t-xs); color: var(--muted); font-variant-numeric: tabular-nums;
}
.office-clock b { color: var(--oltin); margin-left: 4px; }
.office-panel > * { min-width: 0; }
.office-panel {
  background: var(--night-2); border: 1px solid var(--faint); border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column; gap: 14px; min-height: 0; min-width: 0; max-height: 100%; overflow: hidden;
}
.op-title { font-family: var(--display); font-size: var(--t-md); font-weight: 600; display: flex; align-items: center; gap: 10px; }
.op-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--firuza); box-shadow: 0 0 0 4px rgba(60,195,181,.18); }
.op-hint { color: var(--muted); font-size: var(--t-xs); }
.op-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; overflow-y: auto; flex: 1; min-height: 120px; align-content: start; }
.op-log li { font-size: .8rem; line-height: 1.45; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 8px; animation: logIn .4s var(--ease); }
.op-log time { color: var(--muted); font-variant-numeric: tabular-nums; }
.op-log b { font-weight: 600; }
.op-log li.sys span { color: var(--oltin); }
@keyframes logIn { from { opacity: 0; transform: translateY(-4px); } }
.op-agent-head { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; }
.op-ava { width: 48px; height: 48px; border-radius: 12px; image-rendering: pixelated; background: var(--night); }
.op-name { font-family: var(--display); font-weight: 600; font-size: var(--t-lg); line-height: 1.1; }
.op-role { color: var(--muted); font-size: var(--t-xs); }
.op-status { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-xs); padding: 4px 10px; border-radius: 999px; background: rgba(60,195,181,.12); color: var(--firuza); justify-self: start; }
.op-status.tea { background: rgba(224,176,79,.14); color: var(--oltin); }
.op-chat { display: grid; gap: 8px; }
.op-msgs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; max-height: 150px; overflow-y: auto; }
.op-msg { font-size: .8rem; padding: 8px 10px; border-radius: 10px; max-width: 90%; overflow-wrap: anywhere; }
.op-msg.me { justify-self: end; background: var(--oltin); color: var(--night); }
.op-msg.ai { background: var(--night); border: 1px solid var(--faint); }
.op-form { display: flex; gap: 8px; }
.op-form input { flex: 1; min-width: 0; background: var(--night); border: 1px solid var(--faint); border-radius: 999px; padding: 10px 14px; color: var(--fg); font: inherit; font-size: .85rem; }
.op-form button { border: 0; background: var(--oltin); color: var(--night); border-radius: 999px; padding: 0 14px; font-weight: 600; font-size: .8rem; cursor: pointer; }
.op-back { background: none; border: 0; color: var(--muted); font-size: var(--t-xs); cursor: pointer; padding: 0; justify-self: start; text-decoration: underline; text-underline-offset: 3px; }
.op-back:hover { color: var(--fg); }
.office-roster { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.roster-item {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: center; text-align: left;
  background: transparent; border: 1px solid var(--faint); border-radius: 12px; padding: 10px; cursor: pointer; transition: border-color .2s, background-color .2s;
}
.roster-item:hover, .roster-item[aria-pressed="true"] { border-color: var(--oltin); background: rgba(224,176,79,.06); }
.roster-item canvas { width: 36px; height: 36px; image-rendering: pixelated; border-radius: 8px; background: var(--night-2); }
.roster-item b { display: block; font-size: .85rem; }
.roster-item small { display: block; color: var(--muted); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Jarayon ---------- */
.process .sec-title { margin-bottom: clamp(40px, 6vw, 72px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); position: relative; z-index: 1; }
.steps li { display: grid; gap: 12px; align-content: start; }
.step-n {
  width: 52px; height: 52px; display: grid; place-items: center; font-family: var(--display); font-weight: 600; color: var(--night);
  background: var(--oltin); clip-path: polygon(50% 0, 64% 14%, 85% 15%, 86% 36%, 100% 50%, 86% 64%, 85% 85%, 64% 86%, 50% 100%, 36% 86%, 15% 85%, 14% 64%, 0 50%, 14% 36%, 15% 15%, 36% 14%);
}
.steps h3 { font-family: var(--display); font-weight: 500; font-size: var(--t-lg); }
.steps p { color: var(--muted); font-size: var(--t-sm); }
.thread { position: absolute; left: var(--gutter); right: var(--gutter); width: calc(100% - 2 * var(--gutter)); height: 40px; margin-top: -1px; pointer-events: none; }
.process .wrap { position: relative; }
.process .thread { top: calc(var(--t-3xl) * 1.1 + clamp(40px, 6vw, 72px) + 6px); }
.thread path { fill: none; stroke: var(--firuza); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .6; }

/* ---------- Aloqa ---------- */
.contact { padding-bottom: clamp(100px, 14vw, 200px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-copy { display: grid; gap: 22px; }
.contact-title { font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 5.6vw, 4.5rem); line-height: 1; letter-spacing: -.025em; }
.channels { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.channels li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--faint); }
.channels .k { color: var(--muted); font-size: var(--t-xs); }
.channels .v { font-weight: 500; overflow-wrap: anywhere; user-select: all; }
.channels a.v { text-decoration: none; }
.channels a.v:hover { color: var(--oltin); }
.copy { border: 1px solid var(--faint); background: transparent; border-radius: 999px; font-size: .72rem; padding: 5px 10px; cursor: pointer; color: var(--muted); }
.copy:hover { border-color: var(--oltin); color: var(--oltin); }
.form {
  display: grid; gap: 18px; background: rgba(54, 33, 26, .74); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 22px 22px 22px 4px; padding: clamp(22px, 3vw, 36px);
}
.form label { display: grid; gap: 6px; font-size: var(--t-xs); color: var(--muted); }
.form input, .form textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--faint); color: var(--fg);
  font: inherit; font-size: var(--t-md); padding: 8px 0 10px; resize: vertical; border-radius: 0;
}
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--oltin); }
.form .btn { justify-self: start; margin-top: 6px; }
.form-status { font-size: var(--t-sm); min-height: 1.5em; color: var(--firuza); }
.form-status.err { color: #F08B95; }

/* ---------- Footer ---------- */
.footer { background: var(--night); }
.atlas { display: block; width: 100%; height: 44px; }
.foot-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 24px; align-items: center; padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: var(--t-xs); color: var(--muted); }
.foot-brand { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; color: var(--fg); }
.foot-brand .logo-star { width: 16px; height: 16px; }
.foot-top { text-decoration: none; }
.foot-top:hover { color: var(--oltin); }

/* ---------- Demo oynasi ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20, 11, 6, .8); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .3s; }
.modal-box {
  position: relative; width: min(1180px, 100%); max-height: calc(100svh - 32px); display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--night-2); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; animation: pop .45s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--faint); }
.modal-inv { font-size: var(--t-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.modal-title { font-family: var(--display); font-weight: 600; font-size: var(--t-lg); }
.modal-actions { display: flex; gap: 10px; align-items: center; }
.modal-stage { overflow: auto; padding: clamp(14px, 3vw, 32px); display: grid; place-items: center; background: radial-gradient(70% 60% at 50% 0%, #5A321F, var(--night-2)); min-height: 0; }
.modal-badge { padding: 10px 20px; font-size: var(--t-xs); color: var(--oltin); border-top: 1px solid var(--faint); background: rgba(224,176,79,.06); }

/* Qurilma ramkalari */
.frame-browser { width: min(1000px, 100%); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.fb-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #ECE7DE; }
.fb-bar i { width: 11px; height: 11px; border-radius: 50%; background: #D5CEC2; }
.fb-bar i:nth-child(1) { background: #EC6A5E; } .fb-bar i:nth-child(2) { background: #F4BF4F; } .fb-bar i:nth-child(3) { background: #61C554; }
.fb-url { flex: 1; margin-left: 10px; background: #fff; border-radius: 6px; padding: 4px 12px; font-size: 12px; color: #666; font-family: var(--body); max-width: 420px; }
.fb-body { height: min(600px, calc(100svh - 230px)); overflow: hidden; }
.frame-phone { width: 340px; max-width: 100%; height: min(700px, calc(100svh - 200px)); border-radius: 44px; padding: 10px; background: #0b0b10; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), inset 0 0 0 2px #2a2a33; }
.fp-screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #fff; }
.fp-notch { position: absolute; left: 50%; top: 8px; width: 96px; height: 26px; border-radius: 20px; background: #0b0b10; transform: translateX(-50%); z-index: 5; }
.fp-body { height: 100%; overflow: hidden; }
/* Haqiqiy ilova (iframe) ramkalari */
.frame-phone.app .fp-screen { display: flex; flex-direction: column; }
.frame-phone.app .fp-body { flex: 1; height: auto; min-height: 0; }
.fp-status { flex: none; height: 34px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px 0 28px; font: 600 12.5px/1 -apple-system, "SF Pro Text", Inter, system-ui, sans-serif; color: #111; background: #fff; }
.fp-status span { display: flex; align-items: flex-end; gap: 2px; }
.fp-status i { width: 3px; background: #111; border-radius: 1px; }
.fp-status i:nth-child(1) { height: 5px; } .fp-status i:nth-child(2) { height: 7px; } .fp-status i:nth-child(3) { height: 9px; }
.fp-status em { width: 20px; height: 10px; margin-left: 5px; border: 1.5px solid #111; border-radius: 3px; position: relative; box-shadow: inset 0 0 0 1.5px #fff; background: #111; }
.fp-status.dark { background: #000; color: #fff; }
.fp-status.dark i { background: #fff; } .fp-status.dark em { border-color: #fff; background: #fff; box-shadow: inset 0 0 0 1.5px #000; }
.frame-browser.is-app { width: min(1100px, 100%); }
.frame-browser.is-app .fb-body { height: min(680px, calc(100svh - 280px)); }
.fr-load { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; background: #fff; transition: opacity .35s; }
.fr-load.done { opacity: 0; pointer-events: none; }
.fr-load i { width: 8px; height: 8px; border-radius: 50%; background: var(--oltin); animation: frl 1s infinite ease-in-out; }
.fr-load i:nth-child(2) { animation-delay: .15s; } .fr-load i:nth-child(3) { animation-delay: .3s; }
@keyframes frl { 50% { transform: translateY(-6px); opacity: .4; } }

/* ---------- Javob beruvchi ---------- */
@media (max-width: 1080px) {
  .nav-links { position: absolute; top: 100%; left: 12px; right: 12px; flex-direction: column; gap: 0; background: var(--night-2); border: 1px solid var(--faint); border-radius: 16px; padding: 8px; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 14px 16px; font-size: var(--t-md); }
  .burger { display: block; }
  .office-shell { grid-template-columns: minmax(0, 1fr); }
  .office-shell > .office-panel { contain: none; height: 420px; max-height: 420px; }
  .office-roster { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .founder { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .founder .portrait { max-width: 240px; }
}
@media (max-width: 820px) {
  .nav-cta { display: none; }
  .hero-pin { grid-template-rows: 1fr auto auto; align-items: end; padding-top: 88px; }
  .hero-copy { gap: 18px; padding-top: 40vh; max-width: none; text-shadow: 0 2px 14px rgba(36,21,14,.9); }
  .hero-title { font-size: clamp(2.2rem, 10.5vw, 3.4rem); }
  .hero-ctas .btn { min-height: 44px; padding: 0 16px; }
  .build { text-shadow: 0 1px 8px rgba(36,21,14,.9); }
  .hero-lead { font-size: var(--t-md); }
  .founders { grid-template-columns: minmax(0, 1fr); }
  .founder { grid-template-columns: 150px minmax(0, 1fr); align-items: start; }
  .founder:nth-child(2) { margin-top: 0; }
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .svc-grid > .sec-title { position: static; }
  .exhibits { grid-template-columns: minmax(0, 1fr); }
  .exhibit.wide .vitrine { aspect-ratio: 16 / 11; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .thread { display: none; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-row { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 520px) {
  .lang button { padding: 6px 8px; }
  .founder { grid-template-columns: minmax(0, 1fr); }
  .founder .portrait { max-width: 200px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .channels li { grid-template-columns: 80px minmax(0, 1fr) auto; }
  .ticker-label { padding: 0 22px 0 14px; }
  .modal { padding: 0; }
  .modal-box { border-radius: 0; max-height: 100svh; height: 100svh; }
  .modal-head .btn-sm { display: none; }
  .frame-phone { width: 100%; height: calc(100svh - 170px); border-radius: 36px; }
  .modal-stage > .frame-phone { height: 100%; max-height: 780px; }
  .modal-stage > .frame-browser.is-app { height: 100%; display: flex; flex-direction: column; }
  .frame-browser.is-app .fb-body { flex: 1; height: auto; min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker-viewport { overflow-x: auto; }
}

/* =====================================================================
   DEMOLAR — har biri o'z brend uslubida
   ===================================================================== */

/* --- tekinplov.uz --- */
.d-plov { --p-bg: #FFF9EF; --p-ink: #2B1A10; --p-acc: #D9631E; --p-acc2: #F2B33D; --p-mute: #8A6F5C; font-family: var(--body); background: var(--p-bg); color: var(--p-ink); height: 100%; position: relative; overflow: hidden; }
.pl-scroll { height: 100%; overflow-y: auto; }
.d-plov button { cursor: pointer; font-family: inherit; }
.pl-nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; border-bottom: 1px solid #F0E3CF; position: sticky; top: 0; background: var(--p-bg); z-index: 3; }
.pl-logo { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.pl-logo span { color: var(--p-acc); }
.pl-links { display: flex; gap: 22px; font-size: 14px; color: var(--p-mute); }
.pl-cart-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--p-ink); color: #fff; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.pl-cart-btn b { background: var(--p-acc2); color: var(--p-ink); border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: 12px; }
.pl-cart-btn.bump { animation: bump .4s; }
@keyframes bump { 40% { transform: scale(1.12); } }
.pl-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; padding: 40px 28px 28px; align-items: center; }
.pl-hero h1 { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -.03em; }
.pl-hero p { color: var(--p-mute); margin-top: 14px; font-size: 15px; max-width: 30em; }
.pl-badges { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.pl-badges span { font-size: 12px; background: #fff; border: 1px solid #F0E3CF; padding: 6px 12px; border-radius: 999px; }
.pl-kazan { aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #F7C66A 0 22%, #E89A3C 23% 30%, #F4D9A0 31% 44%, #C7702C 45% 50%, #3A2618 51% 60%, #241710 61% 100%); position: relative; box-shadow: 0 30px 50px -20px rgba(43,26,16,.5); max-width: 300px; justify-self: center; width: 100%; }
.pl-kazan::after { content: ""; position: absolute; inset: 28%; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.18) 0 4deg, transparent 4deg 12deg); }
.pl-sec { padding: 8px 28px 36px; }
.pl-sec h2 { font-family: var(--display); font-weight: 700; font-size: 22px; margin-bottom: 14px; }
.pl-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.pl-tabs button { border: 1px solid #EBDCC4; background: #fff; padding: 7px 14px; border-radius: 999px; font-size: 13px; }
.pl-tabs button[aria-pressed="true"] { background: var(--p-ink); color: #fff; border-color: var(--p-ink); }
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.pl-card { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid #F0E3CF; display: grid; }
.pl-img { aspect-ratio: 4/3; display: grid; place-items: center; }
.pl-img i { width: 62%; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 12px 20px -8px rgba(0,0,0,.35); }
.pl-card-b { padding: 12px 14px 14px; display: grid; gap: 6px; }
.pl-card h3 { font-size: 15px; font-weight: 700; font-family: var(--body); }
.pl-card small { color: var(--p-mute); font-size: 12px; }
.pl-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.pl-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.pl-add { border: 0; background: var(--p-acc); color: #fff; border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; }
.pl-add:hover { background: #BF5317; }
.pl-step { display: inline-flex; align-items: center; gap: 8px; }
.pl-step button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #EBDCC4; background: #fff; font-weight: 700; }
.pl-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 100%); background: #fff; box-shadow: -20px 0 40px rgba(0,0,0,.15); z-index: 5; display: grid; grid-template-rows: auto 1fr auto; transform: translateX(105%); transition: transform .35s var(--ease); }
.pl-drawer.open { transform: none; }
.pl-dh { display: flex; justify-content: space-between; align-items: center; padding: 18px; border-bottom: 1px solid #F0E3CF; font-weight: 700; }
.pl-dh button { border: 0; background: none; font-size: 20px; }
.pl-items { overflow-y: auto; padding: 8px 18px; display: grid; gap: 10px; align-content: start; }
.pl-item { display: grid; grid-template-columns: 1fr auto; gap: 4px; padding: 10px 0; border-bottom: 1px dashed #F0E3CF; font-size: 14px; }
.pl-item small { color: var(--p-mute); }
.pl-df { padding: 16px 18px; border-top: 1px solid #F0E3CF; display: grid; gap: 12px; font-size: 14px; }
.pl-df label { display: grid; gap: 4px; font-size: 12px; color: var(--p-mute); }
.pl-df input, .pl-df select { border: 1px solid #EBDCC4; border-radius: 10px; padding: 9px 10px; font: inherit; font-size: 14px; color: var(--p-ink); background: #fff; }
.pl-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 16px; }
.pl-order { border: 0; background: var(--p-acc); color: #fff; border-radius: 12px; padding: 13px; font-weight: 700; font-size: 15px; }
.pl-order:disabled { opacity: .4; cursor: not-allowed; }
.pl-empty { color: var(--p-mute); font-size: 14px; padding: 20px 0; text-align: center; }
.pl-done { text-align: center; padding: 30px 10px; display: grid; gap: 10px; justify-items: center; }
.pl-done .ok { width: 64px; height: 64px; border-radius: 50%; background: #E8F6EC; color: #2E9E57; display: grid; place-items: center; font-size: 30px; }
.pl-track { display: grid; gap: 8px; text-align: left; width: 100%; margin-top: 8px; }
.pl-track div { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--p-mute); }
.pl-track div i { width: 10px; height: 10px; border-radius: 50%; background: #EBDCC4; }
.pl-track div.on { color: var(--p-ink); font-weight: 600; }
.pl-track div.on i { background: var(--p-acc); }
@media (max-width: 700px) { .pl-hero { grid-template-columns: 1fr; } .pl-links { display: none; } .pl-hero h1 { font-size: 32px; } }

/* --- ozbequrt.uz --- */
.d-qurt { --q-bg: #F6F2EA; --q-ink: #1C2A4A; --q-acc: #2D5BD7; --q-mute: #7A8197; font-family: var(--body); background: var(--q-bg); color: var(--q-ink); height: 100%; position: relative; overflow: hidden; }
.q-scroll { height: 100%; overflow-y: auto; padding-bottom: 90px; }
.d-qurt button { cursor: pointer; font-family: inherit; }
.q-top { display: flex; align-items: center; justify-content: space-between; padding: 46px 18px 10px; }
.q-logo { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.q-logo i { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #E9E1D2 60%, #CFC3AC); box-shadow: inset -2px -2px 4px rgba(0,0,0,.12); }
.q-cart { position: relative; border: 0; background: #fff; color: var(--q-ink); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-size: 18px; box-shadow: 0 4px 12px rgba(28,42,74,.08); }
.q-cart b { position: absolute; top: -5px; right: -5px; background: var(--q-acc); color: #fff; font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; }
.q-hero { margin: 8px 18px 16px; border-radius: 22px; padding: 20px; background: var(--q-ink); color: #fff; position: relative; overflow: hidden; }
.q-hero h2 { font-family: var(--display); font-size: 22px; line-height: 1.1; font-weight: 700; max-width: 11em; }
.q-hero p { font-size: 13px; opacity: .75; margin-top: 8px; max-width: 16em; }
.q-hero .balls { position: absolute; right: -10px; bottom: -14px; display: flex; gap: 4px; }
.q-hero .balls i { width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #EDE5D6 55%, #C7B99E); box-shadow: inset -4px -4px 8px rgba(0,0,0,.15); }
.q-hero .balls i:nth-child(2) { width: 42px; height: 42px; align-self: flex-end; }
.q-chips { display: flex; gap: 8px; padding: 0 18px 14px; overflow-x: auto; }
.q-chips button { flex: none; border: 1px solid #E2DACB; background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 13px; color: var(--q-ink); }
.q-chips button[aria-pressed="true"] { background: var(--q-acc); border-color: var(--q-acc); color: #fff; }
.q-list { display: grid; gap: 12px; padding: 0 18px; }
.q-card { background: #fff; border-radius: 18px; padding: 12px; display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; box-shadow: 0 6px 16px rgba(28,42,74,.06); border: 0; text-align: left; color: inherit; }
.q-pic { width: 84px; height: 84px; border-radius: 14px; display: grid; place-items: center; }
.q-pic i { width: 46px; height: 46px; border-radius: 50%; box-shadow: inset -4px -4px 8px rgba(0,0,0,.15); }
.q-card h3 { font-size: 15px; font-family: var(--body); font-weight: 700; }
.q-card small { color: var(--q-mute); font-size: 12px; display: block; margin-top: 2px; }
.q-card .pr { font-weight: 700; margin-top: 6px; font-size: 14px; font-variant-numeric: tabular-nums; }
.q-sheet { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 26px 26px 0 0; padding: 18px 18px 22px; box-shadow: 0 -20px 40px rgba(28,42,74,.18); transform: translateY(105%); transition: transform .35s var(--ease); z-index: 6; display: grid; gap: 14px; }
.q-sheet.open { transform: none; }
.q-grab { width: 40px; height: 4px; border-radius: 2px; background: #E2DACB; justify-self: center; }
.q-sheet h3 { font-family: var(--display); font-size: 18px; font-weight: 700; }
.q-opt { display: grid; gap: 8px; }
.q-opt span { font-size: 12px; color: var(--q-mute); }
.q-seg { display: flex; gap: 6px; }
.q-seg button { flex: 1; border: 1px solid #E2DACB; background: #fff; border-radius: 12px; padding: 9px 4px; font-size: 13px; color: var(--q-ink); }
.q-seg button[aria-pressed="true"] { border-color: var(--q-acc); background: #EEF2FD; color: var(--q-acc); font-weight: 700; }
.q-addrow { display: flex; gap: 10px; align-items: center; }
.q-qty { display: flex; align-items: center; gap: 10px; background: var(--q-bg); border-radius: 12px; padding: 6px 8px; }
.q-qty button { border: 0; background: #fff; width: 30px; height: 30px; border-radius: 8px; font-weight: 700; color: var(--q-ink); }
.q-primary { flex: 1; border: 0; background: var(--q-acc); color: #fff; border-radius: 14px; padding: 14px; font-weight: 700; font-size: 14px; }
.q-bar { position: absolute; left: 12px; right: 12px; bottom: 12px; background: var(--q-ink); color: #fff; border-radius: 18px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; z-index: 4; font-size: 14px; transform: translateY(140%); transition: transform .35s var(--ease); }
.q-bar.show { transform: none; }
.q-bar button { border: 0; background: #fff; color: var(--q-ink); border-radius: 12px; padding: 9px 14px; font-weight: 700; font-size: 13px; }
.q-done { padding: 70px 24px 24px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.q-done .ok { width: 72px; height: 72px; border-radius: 50%; background: #EEF2FD; color: var(--q-acc); display: grid; place-items: center; font-size: 32px; }
.q-done h3 { font-family: var(--display); font-size: 20px; }
.q-done p { color: var(--q-mute); font-size: 14px; }
.q-done .q-primary { flex: none; width: 100%; }

/* --- Direct AI --- */
.d-direct { font-family: -apple-system, var(--body); background: #fff; color: #111; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; grid-template-columns: minmax(0, 1fr); }
.dd-head > span:nth-child(2) { min-width: 0; }
.dd-head small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-head .dd-ai { flex: none; }
.dd-head { display: flex; align-items: center; gap: 10px; padding: 44px 14px 10px; border-bottom: 1px solid #efefef; }
.dd-ava { width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(#F58529, #DD2A7B, #8134AF, #515BD4, #F58529); padding: 2px; }
.dd-ava i { display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff url() center/cover; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #D9631E; font-style: normal; }
.dd-head b { font-size: 14px; display: block; }
.dd-head small { font-size: 11px; color: #8e8e8e; }
.dd-ai { margin-left: auto; font-size: 10px; font-weight: 700; color: #fff; background: linear-gradient(90deg, #515BD4, #8134AF); padding: 4px 8px; border-radius: 999px; }
.dd-msgs { min-height: 0; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.dd-day { align-self: center; font-size: 11px; color: #8e8e8e; margin: 6px 0; }
.dd-m { max-width: 78%; padding: 9px 13px; border-radius: 20px; font-size: 14px; line-height: 1.35; animation: logIn .3s var(--ease); }
.dd-m.them { align-self: flex-end; background: linear-gradient(135deg, #7638FA, #3797F0); color: #fff; }
.dd-m.bot { align-self: flex-start; background: #EFEFEF; }
.dd-meta { align-self: flex-start; font-size: 10px; color: #8e8e8e; margin: -2px 0 4px 8px; }
.dd-typing { align-self: flex-start; background: #EFEFEF; border-radius: 20px; padding: 12px 14px; display: flex; gap: 4px; }
.dd-typing i { width: 6px; height: 6px; border-radius: 50%; background: #999; animation: blink 1s infinite; }
.dd-typing i:nth-child(2) { animation-delay: .15s; } .dd-typing i:nth-child(3) { animation-delay: .3s; }
.dd-quick { display: flex; gap: 6px; padding: 8px 12px 4px; overflow-x: auto; }
.dd-quick button { flex: none; border: 1px solid #dbdbdb; background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 12px; cursor: pointer; color: #111; }
.dd-quick button:hover { border-color: #3797F0; color: #3797F0; }
.dd-input { display: flex; gap: 8px; padding: 8px 12px 18px; }
.dd-input input { flex: 1; min-width: 0; border: 1px solid #dbdbdb; border-radius: 999px; padding: 10px 14px; font: inherit; font-size: 14px; color: #111; background: #fff; }
.dd-input button { border: 0; background: none; color: #3797F0; font-weight: 700; font-size: 14px; cursor: pointer; }
.dd-card { align-self: flex-start; width: 78%; border: 1px solid #efefef; border-radius: 16px; overflow: hidden; font-size: 13px; animation: logIn .3s var(--ease); }
.dd-card div { padding: 8px 12px; display: flex; justify-content: space-between; border-top: 1px solid #f3f3f3; }
.dd-card div:first-child { border-top: 0; background: #FAFAFA; font-weight: 700; }

/* --- Office mini (eksponat ichida) --- */
.d-officemini { width: 100%; height: 100%; background: #1B0F09; display: grid; place-items: center; }
.d-officemini canvas { width: 100%; height: 100%; image-rendering: pixelated; }

/* =====================================================================
   ADMIN PANEL (faqat sayt egalariga ko'rinadi)
   ===================================================================== */
.admin-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--oltin); background: rgba(232,163,61,.12); color: var(--oltin); font-size: .78rem; font-weight: 600;
}
.admin-btn svg { width: 16px; height: 16px; }
.admin-btn:hover { background: var(--oltin); color: var(--night); }
.draft-pill {
  position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90; display: flex; align-items: center; gap: 10px;
  background: var(--night-2); border: 1px solid var(--oltin); border-radius: 999px; padding: 6px 6px 6px 14px; font-size: .78rem; color: var(--fg);
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.draft-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--oltin); animation: blink 1.6s infinite; }
.draft-pill button { border: 0; background: var(--oltin); color: var(--night); border-radius: 999px; padding: 6px 12px; font-weight: 600; cursor: pointer; font-size: .75rem; }

.adm-login { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; }
.adm-login-bg { position: absolute; inset: 0; background: rgba(20,11,6,.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.adm-login-card { position: relative; width: min(380px, 100%); background: var(--night-2); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: grid; gap: 12px; animation: pop .4s var(--ease); }
.adm-login-ico { width: 34px; height: 34px; color: var(--oltin); }
.adm-login-card h3 { font-family: var(--display); font-size: var(--t-lg); }
.adm-login-card p { color: var(--muted); font-size: var(--t-sm); }
.adm-login-card label { display: grid; gap: 6px; font-size: var(--t-xs); color: var(--muted); }
.adm-login-card input { background: var(--night); border: 1px solid var(--faint); border-radius: 12px; padding: 12px 14px; color: var(--fg); font: inherit; }
.adm-login-card input:focus { outline: none; border-color: var(--oltin); }
.adm-err { color: #F08B95 !important; min-height: 1.2em; font-size: var(--t-xs) !important; }
.adm-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.adm {
  position: fixed; inset: 0; z-index: 150; background: var(--night); color: var(--fg);
  display: grid; grid-template-columns: 220px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
  padding-top: env(safe-area-inset-top, 0px);
}
.adm-head { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--faint); background: var(--night-2); }
.adm-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.adm-title svg { width: 20px; height: 20px; color: var(--oltin); flex: none; }
.adm-title b { font-family: var(--display); font-weight: 600; }
.adm-title span { color: var(--muted); font-size: var(--t-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm [data-a="apply"].dirty { box-shadow: 0 0 0 3px rgba(232,163,61,.35); }
.adm-tabs { display: flex; flex-direction: column; gap: 2px; padding: 16px 12px; border-right: 1px solid var(--faint); overflow-y: auto; }
.adm-tabs button { text-align: left; border: 0; background: transparent; color: var(--muted); padding: 10px 14px; border-radius: 10px; cursor: pointer; font-size: var(--t-sm); }
.adm-tabs button:hover { color: var(--fg); background: var(--faint); }
.adm-tabs button[aria-selected="true"] { background: var(--oltin); color: var(--night); font-weight: 600; }
.adm-body { overflow-y: auto; padding: 24px clamp(16px, 3vw, 40px) 80px; }
.adm-inner { max-width: 1040px; display: grid; gap: 16px; }
.adm-inner h3 { font-family: var(--display); font-weight: 600; font-size: var(--t-md); margin-top: 12px; }
.ahint { color: var(--muted); font-size: var(--t-sm); max-width: 62em; }
.astatus { font-size: var(--t-sm); color: var(--firuza); min-height: 1.4em; }
.astatus.err { color: #F08B95; }
.agrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.af { display: grid; gap: 6px; font-size: var(--t-xs); color: var(--muted); align-content: start; min-width: 0; }
.af > span em { font-style: normal; opacity: .7; }
.af.ml, .af.img, .af.wide { grid-column: 1 / -1; }
.af input, .af textarea, .af select, .asearch {
  width: 100%; background: var(--night-2); border: 1px solid var(--faint); border-radius: 10px; padding: 9px 12px;
  color: var(--fg); font: inherit; font-size: var(--t-sm); line-height: 1.45; resize: vertical;
}
.af input:focus, .af textarea:focus, .af select:focus, .asearch:focus { outline: none; border-color: var(--oltin); }
.af.chk { grid-template-columns: auto 1fr; align-items: center; gap: 10px; font-size: var(--t-sm); color: var(--fg); }
.af.chk input { width: 18px; height: 18px; accent-color: var(--oltin); }
.af.clr input { height: 42px; padding: 4px; cursor: pointer; }
.ml-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ml-row label { position: relative; display: block; min-width: 0; }
.ml-row i { position: absolute; right: 8px; top: 8px; font-style: normal; font-size: .62rem; font-weight: 700; color: var(--oltin); background: rgba(232,163,61,.12); padding: 2px 6px; border-radius: 6px; pointer-events: none; }
.ml-row input, .ml-row textarea { padding-right: 40px; width: 100%; background: var(--night-2); border: 1px solid var(--faint); border-radius: 10px; padding-top: 9px; padding-bottom: 9px; padding-left: 12px; color: var(--fg); font: inherit; font-size: var(--t-sm); line-height: 1.45; resize: vertical; }
.ml-row input:focus, .ml-row textarea:focus { outline: none; border-color: var(--oltin); }
.img-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; align-items: start; }
.img-prev { width: 110px; height: 110px; border-radius: 12px; background: var(--night-2); border: 1px dashed var(--faint); display: grid; place-items: center; overflow: hidden; }
.img-prev img { width: 100%; height: 100%; object-fit: cover; }
.img-prev em { font-style: normal; font-size: .72rem; }
.img-ctl { display: grid; gap: 8px; }
.upl { cursor: pointer; }
.acard { border: 1px solid var(--faint); border-radius: 16px; padding: 18px; display: grid; gap: 14px; background: rgba(54,33,26,.45); }
.acard header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.acard h4 { font-family: var(--display); font-weight: 600; font-size: var(--t-md); }
.ib { border: 1px solid var(--faint); background: transparent; color: var(--fg); border-radius: 8px; min-width: 34px; height: 32px; padding: 0 10px; cursor: pointer; font-size: .8rem; }
.ib:hover:not(:disabled) { border-color: var(--oltin); color: var(--oltin); }
.ib:disabled { opacity: .3; cursor: default; }
.ib.del:hover { border-color: #F08B95; color: #F08B95; }
.tlist { display: grid; gap: 14px; }
.trow { display: grid; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--faint); }
.trow code { font-size: .72rem; color: var(--oltin); }
.asearch { max-width: 420px; }
@media (max-width: 820px) {
  .adm { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); }
  .adm-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--faint); padding: 10px; }
  .adm-tabs button { flex: none; }
  .adm-head { flex-wrap: wrap; }
  .agrid, .ml-row { grid-template-columns: minmax(0, 1fr); }
  .admin-btn span { display: none; }
  .admin-btn { width: 38px; padding: 0; justify-content: center; }
}
