/* ═══════════════════════════════════════════════════════════
   Imkon AI — мавзӯи SOYUZ-сохтор бо рангҳои бренд
   ═══════════════════════════════════════════════════════════ */
:root {
    /* Палитра (интихоби корбар, 2026-10-08): графит + индиго-периwinkle #4a53b8 (аз иконаи фиристодаи корбар, каме ториктар) */
    --bg: #101214; --surface: #17191c; --surface-2: #1d2024; --surface-3: #262a30;
    --line: #ffffff14; --line-2: #ffffff24; --line-3: #ffffff38;
    --text: #fff; --text-2: #ffffffc7; --muted: #ffffff85;
    --accent: #4a53b8; --accent-ink: #fff; --accent-soft: #4a53b829; --accent-glow: #4a53b873;
    --lime: #ff4d6a; --lime-ink: #fff;
    --r-xs: 8px; --r-sm: 12px; --r: 14px; --r-md: 16px; --r-lg: 22px; --r-xl: 28px;
    --topbar-h: 64px;
    --cta: radial-gradient(ellipse 78% 135% at 50% 50%, #3a4296 0%, #4a53b8 40%, #5560c9 72%, #7079d6 100%);
    --cta-hover: radial-gradient(ellipse 78% 135% at 50% 50%, #444dad 0%, #5560c9 40%, #636ed0 72%, #7c86dc 100%);
}
body { background: var(--bg); }
.container { width: min(1400px, 100% - 32px); }
/* ── сарлавҳа ── */
.topbar { height: var(--topbar-h); gap: 14px; padding: 0 18px; background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 1px solid var(--line); }
.nav { gap: 0; margin-left: 10px; align-items: center; }
.nav a { padding: 7px 11px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--text-2); position: relative; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--surface-3); color: var(--text); }
.nav a.hl { color: var(--accent); }
.nav a:nth-child(2)::before, .nav a:nth-child(3)::before, .nav a:nth-child(7)::before, .nav a:nth-child(8)::before { content: ""; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 1px; background: var(--line-2); }
.tbtn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; font-size: 13px; color: var(--text-2); position: relative; transition: .15s; }
.tbtn:hover { background: var(--surface-3); color: var(--text); }
.tbtn .ic { width: 16px; height: 16px; }
.tbtn-accent { background: var(--accent); border-color: transparent; color: var(--accent-ink); font-weight: 700; }
.tbtn-accent:hover { background: #5560c9; color: #fff; }
.tbtn-accent .ic { width: 15px; height: 15px; stroke-width: 2.6; background: #ffffff33; border-radius: 50%; padding: 2px; box-sizing: content-box; }
.tbtn .badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; font-style: normal; display: grid; place-items: center; }
.avatar { width: 38px; height: 38px; font-size: 13px; background: var(--surface-3); border: 1px solid var(--line-2); color: var(--text); }
.menu { border-radius: 16px; padding: 8px; background: var(--surface-2); }
.menu-profile { min-width: 260px; }
.menu-stats { display: grid; gap: 4px; padding: 6px 12px 10px; font-size: 13px; color: var(--muted); }
.menu-stats b { color: var(--text); float: right; }
.menu-up { background: var(--accent-soft); color: var(--accent) !important; margin-bottom: 4px; }
.menu-active { min-width: 320px; }
.active-list { max-height: 300px; overflow: auto; padding: 4px 0; }
.active-list .arow { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; }
.active-list .arow span { width: 40px; height: 40px; border-radius: 9px; background: var(--surface-3); display: grid; place-items: center; color: var(--accent); flex: none; overflow: hidden; }
.active-list .arow span img, .active-list .arow span video { width: 100%; height: 100%; object-fit: cover; }
.active-list .arow b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.active-list .arow small { color: var(--muted); font-size: 11.5px; }
.active-list .spinner { width: 14px; height: 14px; }
/* ── тугмаҳои асосӣ ── */
.btn-accent { background: var(--cta); border: 1px solid #7079d6; color: #fff; box-shadow: inset 0 1px 0 #ffffff3d, inset 0 -1px 0 #242a6e, 0 1px 2px #0003; }
.btn-accent:hover { background: var(--cta-hover); }
.composer .go, .cbtn.go { background: var(--cta) !important; color: #fff !important; border: 1px solid #7079d6; box-shadow: inset 0 1px 0 #ffffff3d, 0 8px 24px -10px var(--accent-glow); }
/* ── варақи «Чӣ месозем?» ── */
.csheet { position: fixed; inset: 0; z-index: 90; }
.csheet-back { position: absolute; inset: 0; background: #0008; backdrop-filter: blur(4px); }
.csheet-box { position: absolute; left: 0; right: 0; bottom: 0; background: var(--surface); border-radius: 26px 26px 0 0; padding: 14px 14px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 8px; animation: sheet .22s; }
.csheet-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 8px; font-size: 16px; }
.csheet-box > a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); color: var(--text); }
.csheet-box > a .tico { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.csheet-box > a b { display: block; font-size: 14px; }
.csheet-box > a small { color: var(--muted); font-size: 12px; }
@media (min-width: 861px) { .csheet-box { left: 50%; right: auto; bottom: 50%; translate: -50% 50%; width: 420px; border-radius: 22px; } }
/* ── таббар ── */
.tabbar .tab-create { background: none; border: 0; display: grid; justify-items: center; gap: 3px; color: var(--muted); font-size: 10.5px; font-weight: 700; }
.tabbar .tab-create > span { width: 54px; height: 54px; border-radius: 18px; background: var(--cta); color: var(--accent-ink); display: grid; place-items: center; margin-top: -30px; box-shadow: 0 12px 28px -8px var(--accent-glow); border: 1px solid #7079d6; }
.tabbar .tab-create > span .ic { width: 26px; height: 26px; }
/* ── саҳифаи асосӣ ── */
.studio-hero { padding: 26px 0 8px; }
.studio-head h1 { font-size: clamp(26px, 4vw, 40px); margin: 6px 0 4px; }
.studio-head .logo-mark.big { display: none; }
.hero-glow i { opacity: .55; }
.hsec { padding: 26px 0 0; }
.hsec-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.hsec-head h2 { font-family: var(--display); font-size: clamp(17px, 2vw, 22px); letter-spacing: -.01em; margin: 0; text-transform: uppercase; }
.hsec-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.hsec-head .more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.hsec-head .more:hover { color: var(--accent); }
/* карусели баннерҳо */
.hcar { position: relative; }
.hcar-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.hcar-track::-webkit-scrollbar { display: none; }
.hban { flex: 0 0 min(100%, 440px); scroll-snap-align: start; color: var(--text); }
.hban .img { aspect-ratio: 16/8.6; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); position: relative; }
.hban .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hban .img em { position: absolute; left: 12px; top: 10px; font-style: normal; font-size: 10px; letter-spacing: .12em; font-weight: 800; color: #fffc; text-transform: uppercase; }
.hban .img .ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 22px; color: #fff9; text-align: center; padding: 20px; background: linear-gradient(135deg, hsl(var(--h) 60% 30%), hsl(calc(var(--h) + 50) 60% 18%)); }
.hban b { display: block; margin-top: 10px; font-size: 15px; text-transform: uppercase; }
.hban small { display: block; color: var(--muted); font-size: 12.5px; }
.hcar .arrow { position: absolute; right: -6px; top: 32%; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text); }
.hcar .dots { display: flex; gap: 6px; justify-content: center; margin-top: 8px; }
.hcar .dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line-3); transition: .2s; }
.hcar .dots i.on { width: 18px; background: var(--accent); }
/* кортҳои калони модел */
.fgrid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; grid-auto-rows: 150px; gap: 12px; }
.fcard { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--surface); border: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; color: var(--text); isolation: isolate; }
.fcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 90% at 85% 100%, hsl(var(--h) 70% 40% / .55), transparent 70%); }
.fcard .k { font-size: 12px; color: var(--muted); }
.fcard b { font-family: var(--display); font-size: 17px; margin-top: 2px; }
.fcard p { margin: 6px 0 0; font-size: 12.5px; color: var(--text-2); max-width: 30ch; }
.fcard .big { font-family: var(--display); font-size: 74px; line-height: 1; position: absolute; right: 14px; bottom: -8px; color: hsl(var(--h) 80% 70% / .35); letter-spacing: -.05em; pointer-events: none; }
.fcard .btn { margin-top: auto; align-self: start; }
.fcard.tall { grid-row: span 2; }
.fcard.tall b { font-size: 21px; }
/* лентаи моделҳо */
.marquee { overflow: hidden; margin-top: 18px; mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: marquee 50s linear infinite; }
.marquee span { padding: 8px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 700; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }
/* пресетҳо (9:16) */
.prow { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.prow::-webkit-scrollbar { display: none; }
.pcard { flex: 0 0 170px; aspect-ratio: 9/16; border-radius: var(--r-md); overflow: hidden; position: relative; background: var(--surface-2); border: 1px solid var(--line); color: #fff; }
.pcard img, .pcard video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard .cover { position: absolute; inset: 0; }
.pcard::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(transparent, #000c); }
.pcard b { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1; font-size: 12.5px; line-height: 1.2; }
.pcard .views { position: absolute; left: 10px; bottom: 10px; z-index: 1; display: inline-flex; gap: 5px; align-items: center; font-size: 11.5px; font-weight: 700; padding: 4px 8px; border-radius: 8px; background: #000a; }
.pcard .views .ic { width: 13px; height: 13px; }
.pcard .views + b { bottom: 40px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.pgrid .pcard { flex: none; }
.tagrow { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tagrow button { padding: 6px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 11.5px; font-weight: 700; color: var(--text-2); text-transform: uppercase; }
.tagrow button.on { background: #fff; color: #111; border-color: #fff; }
/* баннери Supercomputer */
.sban { margin-top: 26px; border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); background: radial-gradient(70% 120% at 50% 110%, #2a3080, var(--surface) 60%), var(--surface); border: 1px solid var(--line); text-align: center; position: relative; overflow: hidden; }
.sban h2 { font-family: var(--display); font-size: clamp(20px, 3vw, 30px); margin: 0 0 14px; text-transform: uppercase; }
.sban .orbs { display: flex; justify-content: center; gap: 10px; margin-bottom: 16px; }
.sban .orbs span { width: 46px; height: 46px; border-radius: 14px; background: var(--surface-3); border: 1px solid var(--line-2); display: grid; place-items: center; font-weight: 800; font-size: 12px; color: var(--text-2); }
/* каталоги моделҳо (3 сутун) */
.catcols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.catcol { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; }
.catcol h3 { margin: 4px 6px 10px; font-size: 11px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.catcol a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; color: var(--text); font-size: 13.5px; font-weight: 600; }
.catcol a:hover { background: var(--surface-2); }
.catcol a .cover { width: 26px; height: 26px; border-radius: 7px; font-size: 9px; font-weight: 800; display: grid; place-items: center; background: hsl(var(--h) 55% 40%); flex: none; }
.catcol a .pill { margin-left: auto; }
.pill-lime { background: var(--lime); color: var(--lime-ink); }
/* маркетинг-кортҳо (4:5) */
.mkrow { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.mkrow::-webkit-scrollbar { display: none; }
.mkcard { flex: 0 0 200px; color: var(--text); }
.mkcard .img { aspect-ratio: 4/5; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.mkcard .img img, .mkcard .img video { width: 100%; height: 100%; object-fit: cover; }
.mkcard b { display: block; margin-top: 8px; font-size: 13.5px; }
.mkcard small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cover.ph { display: grid; place-items: center; color: #fff9; font-family: var(--display); font-size: 13px; text-align: center; padding: 10px; background: linear-gradient(160deg, hsl(var(--h) 55% 32%), hsl(calc(var(--h) + 60) 55% 16%)); height: 100%; }
@media (max-width: 1020px) { .fgrid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; } .catcols { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
    :root { --topbar-h: 58px; }
    .topbar { padding: 0 12px; }
    .tbtn-accent .hide-sm { display: none; }
    .fgrid { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .fcard { min-height: 150px; } .fcard.tall { grid-row: auto; }
    .hban { flex-basis: 88%; }
    .hsec-head h2 { font-size: 16px; }
}
.pill-accent { background: var(--accent); color: var(--accent-ink); }
.hban .img, .mkcard .img { display: block; }
@media (max-width: 860px) { .hide-sm { display: none !important; } }
/* ── саҳифаҳои /image, /video: таърих + композери поёнӣ ── */
.is-create .main { display: flex; flex-direction: column; }
.cpage { display: flex; flex-direction: column; min-height: calc(100dvh - var(--topbar-h)); }
.cpage-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 6px; }
.cpage-top .tabs button .ic { width: 15px; height: 15px; }
.gsize { display: flex; align-items: center; gap: 8px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.gsize input { width: 90px; accent-color: var(--accent); }
.cpage-feed { flex: 1; padding: 8px 0 240px; }
.hgrid { grid-template-columns: repeat(var(--gcols, 5), 1fr); }
.cempty { text-align: center; color: var(--muted); padding: 90px 16px; font-size: 14px; }
.dock { position: fixed; left: 50%; bottom: calc(14px + var(--tabbar-h) + env(safe-area-inset-bottom)); translate: -50% 0; width: min(800px, 100% - 24px); z-index: 40; }
.dock-tabs { display: inline-flex; gap: 2px; padding: 5px; margin-left: 20px; background: var(--surface-2); border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; }
.dock-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.dock-tabs a .ic { width: 16px; height: 16px; }
.dock-tabs a.on { background: var(--surface-3); color: var(--accent); }
.dock-box { background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(18px); box-shadow: 0 24px 60px -20px #000; }
.dock-box .prompt { min-height: 54px; }
.pcount { position: absolute; right: 8px; bottom: 2px; font-size: 11px; color: var(--muted); pointer-events: none; }
.dock-box .prompt { padding-bottom: 18px; }
.prompt-wrap { position: relative; }
.wiz, .wiz-next { display: none; }
.chipset span { max-width: 80px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 860px) {
    .cpage-feed { padding-bottom: 150px; }
    .hgrid { grid-template-columns: 1fr 1fr; }
    .dock { width: 100%; left: 0; translate: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
    .dock-tabs { display: flex; margin: 0 12px; justify-content: stretch; }
    .dock-tabs a { flex: 1; justify-content: center; }
    .dock-box { border-radius: 18px 18px 0 0; max-height: 72dvh; overflow: auto; }
}
.card-actions button.on, .ib.on { color: #ff4d7a; }
/* ── чат / Supercomputer (услуби SOYUZ) ── */
.chat-side .side-new { justify-content: flex-start; }
.side-links { display: grid; gap: 2px; margin: 6px 0; }
.side-links a { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px; color: var(--text-2); font-size: 13.5px; font-weight: 600; }
.side-links a:hover { background: var(--surface-2); }
.side-label { font-size: 11px; color: var(--muted); font-weight: 700; padding: 10px 10px 4px; }
.chat-welcome h2 { font-family: var(--display); text-transform: uppercase; font-size: clamp(20px, 3vw, 28px); letter-spacing: -.01em; }
.chat-welcome .logo-mark.big { margin: 0 auto 10px; }
.chatbox { display: block; padding: 10px 12px 10px; border-radius: 20px; }
.chatbox .cstats { display: flex; gap: 6px; font-size: 11px; color: var(--muted); padding: 2px 4px 6px; }
.chatbox textarea { width: 100%; background: none; border: 0; color: var(--text); font: inherit; font-size: 15px; resize: none; outline: none; padding: 2px 4px; }
.chatbox .crow { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.chatbox .crow .sp { flex: 1; }
.chatbox .auto { font-size: 12.5px; font-weight: 700; }
.chatbox .send { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.chatbox .send:disabled { opacity: .4; }
.cbtn.toggle { gap: 8px; cursor: pointer; }
.cbtn.toggle input { accent-color: var(--accent); }
.chat.is-agent [data-memory] { display: none; }
/* ── аудио-студия ── */
.audio-grid { display: grid; grid-template-columns: 440px 1fr; gap: 16px; align-items: start; }
.astudio { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 12px; }
.astudio-head { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.astudio-head h2 { margin: 0; font-size: 18px; }
.astudio-head p { margin: 2px 0 0; font-size: 12.5px; }
.seg3 { display: grid; grid-template-columns: 1fr 1fr; }
.seg3 button { text-align: center; }
.arow.toggle { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-weight: 600; font-size: 13.5px; cursor: pointer; }
.arow.toggle input { accent-color: var(--accent); width: 18px; height: 18px; }
.astudio .field { display: grid; gap: 6px; }
.astudio .field label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.astudio .tagrow { margin: 4px 0 0; }
.astudio .tagrow button { text-transform: none; }
.astudio .tagrow button.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.afine { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.afine summary { cursor: pointer; font-weight: 700; font-size: 13px; }
.afine .field { margin-top: 8px; }
.alist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; min-height: 60vh; position: relative; padding-bottom: 90px; }
.alist-head { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.alist-head .searchbar { flex: 1; min-width: 200px; }
.aplayer { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); }
.aplayer .cover { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.aplayer .ptx { min-width: 0; flex: 0 0 220px; }
.aplayer b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aplayer small { color: var(--muted); font-size: 11.5px; }
.aplayer audio { flex: 1; height: 36px; }
@media (max-width: 1020px) { .audio-grid { grid-template-columns: 1fr; } .aplayer .ptx { flex-basis: 120px; } }
/* ── промтҳо ── */
.pr-head { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 10px 0 6px; }
.pr-titles { text-align: center; }
.pr-titles h1 { font-family: var(--display); font-size: clamp(22px, 3.4vw, 34px); margin: 0; color: var(--accent); text-transform: uppercase; letter-spacing: -.01em; }
.pr-titles small { display: block; color: var(--muted); font-weight: 700; margin-top: 4px; }
.pr-arrow { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text); }
.pr-sub { text-align: center; color: var(--muted); margin: 0 auto 16px; max-width: 60ch; }
.prompts .tagrow { justify-content: center; }
.prompts .pgrid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
/* ── маркетинг-студия ── */
.mk-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.mkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 20px; }
.mkt .mkt-tx { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1; display: grid; gap: 4px; }
.mkt .mkt-tx b { position: static; font-size: 13px; }
.mkt .mkt-tx small { color: #fffc; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkt .mkt-tx .btn { justify-self: start; margin-top: 4px; }
.mk-composer { position: sticky; bottom: calc(14px + var(--tabbar-h) + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(16px); border: 1.5px solid var(--line-2); border-radius: 22px; padding: 14px; display: grid; gap: 10px; box-shadow: 0 24px 60px -20px #000; }
.mk-composer .prompt { width: 100%; background: none; border: 0; color: var(--text); font: inherit; font-size: 15px; resize: none; outline: none; min-height: 48px; }
.mk-sel { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--accent-soft); }
.mk-sel .tico { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.mk-sel > div { flex: 1; min-width: 0; } .mk-sel b { display: block; font-size: 13.5px; } .mk-sel small { color: var(--text-2); font-size: 12px; }
.mk-fields { display: grid; gap: 6px; } .mk-fields:empty { display: none; }
.mk-slots { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mk-slot { width: 86px; height: 72px; border-radius: 12px; border: 1.5px dashed var(--line-2); background: var(--surface-2); display: grid; justify-items: center; align-content: center; gap: 4px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; overflow: hidden; }
.mk-slot .ic-wrap { width: 34px; height: 30px; display: grid; place-items: center; } .mk-slot .ic-wrap img { width: 34px; height: 30px; object-fit: cover; border-radius: 6px; }
.mk-slot .ic-wrap .cover { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; }
.mk-slot.filled { border-style: solid; border-color: var(--accent); color: var(--text); }
/* ── ассетҳо ── */
.assets { display: grid; grid-template-columns: 240px 1fr; gap: 16px; align-items: start; }
.as-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; display: grid; gap: 2px; position: sticky; top: calc(var(--topbar-h) + 14px); }
.as-side .searchbar { margin-bottom: 8px; }
.as-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border-radius: 10px; color: var(--text-2); font-size: 13.5px; font-weight: 600; text-align: left; }
.as-item .ic { width: 16px; height: 16px; flex: none; }
.as-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-item i { margin-left: auto; font-style: normal; font-size: 11px; color: var(--muted); }
.as-item i[data-fdel] { opacity: 0; } .as-item:hover i[data-fdel] { opacity: 1; }
.as-item:hover { background: var(--surface-2); } .as-item.active { background: var(--surface-3); color: var(--text); }
.as-label { font-size: 11px; color: var(--muted); font-weight: 700; padding: 12px 10px 4px; }
.as-main { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; min-height: 70vh; }
.as-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.as-head h1 { font-size: 18px; margin: 0; }
@media (max-width: 1020px) { .assets { grid-template-columns: 1fr; } .as-side { position: static; } }
/* ── тарифҳо ── */
.bill-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(22px, 4vw, 44px); border-radius: var(--r-lg); background: radial-gradient(80% 140% at 85% 50%, #343b9c 0%, var(--surface) 55%); border: 1px solid var(--line); margin-bottom: 22px; }
.bill-hero h1 { font-family: var(--display); font-size: clamp(22px, 3.6vw, 36px); margin: 0 0 8px; text-transform: uppercase; line-height: 1.1; }
.bill-hero p { margin: 0; color: var(--text-2); max-width: 56ch; }
.bill-hero .logo-mark.big { width: 110px; height: 110px; opacity: .9; } .bill-hero .logo-mark.big img { width: 90px; height: 110px; }
.bill-h2 { font-family: var(--display); font-size: clamp(18px, 2.4vw, 24px); text-transform: uppercase; margin: 26px 0 12px; }
.bill-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.promo { margin-left: auto; display: grid; gap: 4px; } .promo label { font-size: 11px; letter-spacing: .1em; color: var(--muted); font-weight: 800; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 8px; align-content: start; }
.plan.popular { border-color: var(--accent); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface)); }
.plan.selected { outline: 2px solid var(--accent); }
.plan-best { position: absolute; top: -10px; left: 16px; font-size: 10px; letter-spacing: .1em; font-weight: 800; padding: 3px 8px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); }
.plan-top { display: flex; align-items: center; gap: 8px; } .plan-top b { font-family: var(--display); font-size: 20px; }
.plan p { margin: 0; font-size: 13px; }
.plan-credits { font-size: 15px; font-weight: 800; } .plan-credits small { color: var(--muted); font-weight: 600; }
.plan-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; } .plan-price b { font-size: 28px; } .plan-price s { color: var(--muted); } .plan-price small { color: var(--muted); }
.plan-feats { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--text-2); }
.plan-feats li { display: flex; gap: 8px; align-items: start; } .plan-feats .ic { width: 15px; height: 15px; color: var(--accent); flex: none; margin-top: 2px; }
/* ── профил ── */
.ptabs { margin-bottom: 18px; }
.phead { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.phead h1 { margin: 0; font-size: 22px; } .phead p { margin: 2px 0 0; }
.avatar.big { width: 64px; height: 64px; font-size: 20px; }
.astudio, .alist, .audio-grid > * { min-width: 0; }
.astudio-head { flex-wrap: wrap; }
@media (max-width: 860px) { .audio-grid { grid-template-columns: minmax(0, 1fr); } .alist { padding-bottom: 100px; } }
.hsec-top { padding-top: 18px; }
.hsec-after-studio { padding-top: 54px; }
.studio-hero { padding-bottom: 0; }
/* ── саҳифаи сохтан: панели амудӣ (бе таърих) ── */
.cpage { min-height: auto; padding: 18px 0 40px; display: block; }
.cpanel { width: min(760px, 100%); margin: 0 auto; }
.cpanel .dock-tabs { display: flex; width: 100%; margin: 0; border-radius: 16px 16px 0 0; align-items: center; }
.cpanel .dock-hist { margin-left: auto; display: grid; grid-template-columns: auto auto; column-gap: 6px; align-items: center; }
.cpanel .dock-hist small { grid-column: 2; font-size: 10px; color: var(--muted); font-weight: 600; margin-top: -2px; }
.dock { position: static; translate: none; width: auto; }
.dock-box.stacked { border-radius: 0 0 22px 22px; }
.dock-box.stacked .composer-row { flex-direction: column; align-items: stretch; gap: 8px; }
.dock-box.stacked .composer-row .cbtn { height: 48px; justify-content: flex-start; padding: 0 14px; border-radius: 12px; }
.dock-box.stacked .composer-row .cbtn.chipset small { color: var(--muted); font-weight: 600; margin-right: auto; }
.dock-box.stacked .composer-row .cbtn.chipset span { max-width: none; font-weight: 700; }
.dock-box.stacked .composer-row .cbtn.chipset .ic:last-child { margin-left: 6px; opacity: .6; }
.dock-box.stacked .composer-row .cbtn.chip { font-size: 14px; }
.dock-box.stacked .composer-row .mode-note { padding: 2px 4px; }
.dock-box.stacked .composer-row .cbtn.go { height: 52px; justify-content: center; font-size: 15px; margin-top: 4px; }
.dock-box.stacked .composer-row > .cbtn:not(.chipset):not(.go):not(.chip) { width: auto; }
.dock-box.stacked .crow-inline { display: flex; gap: 8px; }
@media (max-width: 860px) {
    .cpanel .dock-tabs { margin: 0; }
    .dock-box.stacked { max-height: none; overflow: visible; border-radius: 0 0 18px 18px; }
}
/* ── /image, /video: параметрҳо таг ба таг (аз рӯи модел) ── */
.inline-settings { margin: 10px 0 4px; display: grid; gap: 8px; }
.inline-settings .settings { display: grid; gap: 8px; }
.inline-settings .srow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); min-height: 50px; }
.inline-settings .srow-label { flex: 0 0 120px; font-size: 13px; color: var(--text-2); font-weight: 600; }
.inline-settings .seg { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.inline-settings .seg button { padding: 6px 10px; border-radius: 8px; background: var(--surface-3); font-size: 12.5px; font-weight: 700; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.inline-settings .seg button.on { background: var(--accent); color: var(--accent-ink); }
.inline-settings .ratio-ic { display: inline-block; border: 1.5px solid currentColor; border-radius: 2px; }
.inline-settings .srow.dur { flex-wrap: wrap; } .inline-settings .srow.dur .dstep { margin-left: auto; } .inline-settings .srow.dur .drange { flex: 1 0 100%; } .inline-settings .srow.dur .ticks { flex: 1 0 100%; display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.inline-settings .srow.check input { margin-left: auto; width: 18px; height: 18px; accent-color: var(--accent); }
.inline-settings .srow .select { margin-left: auto; max-width: 240px; }
.inline-settings .srow-model .cbtn.chip { margin-left: auto; height: 36px; }
.inline-settings .settings > p { padding: 4px 12px; }
.dock-box.stacked .composer-row { flex-direction: row; align-items: center; gap: 8px; }
.dock-box.stacked .composer-row .cbtn { height: 42px; }
.dock-box.stacked .composer-row .cbtn.go { flex: 1; justify-content: center; height: 50px; margin: 0; }
@media (max-width: 860px) { .inline-settings .srow-label { flex-basis: 90px; } .dock-box.stacked .composer-row { flex-wrap: wrap; } .dock-box.stacked .composer-row .cbtn.go { flex: 1 0 100%; } .cpage { padding-bottom: 90px; } }

.dock-head { display: grid; gap: 2px; margin-bottom: 8px; }
.dock-head b { font-size: 20px; font-family: var(--display); }
.dock-head small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 860px) { .inline-settings .srow.check .srow-label small { display: none; } .inline-settings .srow.check .srow-label br { display: none; } }
/* сатрҳои фишурда: пахш → интихоб */
.pickrow { width: 100%; text-align: left; cursor: pointer; color: var(--text); transition: .15s; }
.pickrow:hover { background: var(--surface-3); }
.pickrow .pickval { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13.5px; }
.pickrow .ic:last-child { width: 16px; height: 16px; opacity: .6; margin-left: 6px; }
.settings .pickrow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); min-height: 50px; }
.mlist .vrow .ratio-ic { display: inline-block; border: 1.5px solid currentColor; border-radius: 2px; margin-right: 8px; vertical-align: middle; }
.prompt-tools { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 2px; }
.prompt-tools .cbtn { height: 38px; padding: 0 12px; font-size: 13px; gap: 6px; }
.prompt-tools .cbtn span { font-weight: 700; }
.inline-settings.top { margin: 0 0 10px; }
.cpanel .dock-hist { display: inline-flex; gap: 6px; }

/* палитраи №1: аксент ҳамеша бо матни торик */
.avatar { background: var(--surface-3); }
.menu-up { color: var(--accent) !important; }
.active-list .arow span { color: var(--accent); }
.hero-glow i { opacity: .4; }
.ref-frame .ref-n { background: var(--accent); color: var(--accent-ink); }
/* лого пурра (икона + IMKON AI) дар ҳама экранҳо */
@media (max-width: 860px) { .logo-text { display: inline !important; font-size: 14px; } .topbar .lang-code { display: none; } }
.hcar-track { scroll-behavior: smooth; }
@media (max-width: 860px) { .chatbox .cbtn.toggle span { font-size: 11px; line-height: 1.1; max-width: 96px; } .chatbox .auto { display: none; } }
/* табҳои уфуқӣ дар мобил: бе скроллбар, бо ламс мегарданд */
.scroll-x, .ptabs, .tools-cats, .tagrow.scroll, .inspire-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; scroll-snap-type: x proximity; }
.scroll-x::-webkit-scrollbar, .ptabs::-webkit-scrollbar, .tools-cats::-webkit-scrollbar, .inspire-tabs::-webkit-scrollbar { display: none; }
.ptabs { flex-wrap: nowrap; max-width: 100%; }
.ptabs button { white-space: nowrap; scroll-snap-align: start; }
/* лентаҳои уфуқӣ: корти навбатӣ қисман намоён (ишораи кашидан), бе тирча */
.prow, .mkrow { scroll-snap-type: x proximity; scroll-padding-left: 0; mask: linear-gradient(90deg, #000 0, #000 calc(100% - 56px), transparent); -webkit-mask: linear-gradient(90deg, #000 0, #000 calc(100% - 56px), transparent); }
.prow .pcard, .mkrow .mkcard { scroll-snap-align: start; }
@media (max-width: 860px) { .prow .pcard { flex-basis: calc((100% - 20px) / 2.35); } .mkrow .mkcard { flex-basis: calc((100% - 20px) / 2.35); } }

/* Чат: замимаҳои расм (чипҳо дар композер + дар паёми корбар) */
.chatbox .cfiles { display: flex; gap: 8px; flex-wrap: wrap; padding: 2px 4px 8px; }
.chatbox .cfile { position: relative; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.chatbox .cfile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chatbox .cfile button { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; background: #000a; color: #fff; display: grid; place-items: center; }
.chatbox .cfile button svg { width: 12px; height: 12px; }
.msg-user .att { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; margin-bottom: 6px; max-width: 86%; }
.msg-user .att img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); display: block; }
@media (max-width: 640px) { .msg-user .att img { width: 90px; height: 90px; } }
.chatbox .cfile video, .msg-user .att video { width: 100%; height: 100%; object-fit: cover; display: block; }
.msg-user .att video { width: 120px; height: 120px; border-radius: 12px; border: 1px solid var(--line); }
.chatbox .cfile .cover, .msg-user .att .cover { display: grid; place-items: center; width: 100%; height: 100%; color: #fff; }
.msg-user .att .cover { width: 120px; height: 120px; border-radius: 12px; }
.chatbox .cfile .cover svg, .msg-user .att .cover svg { width: 22px; height: 22px; }

/* Чат: корти генератсия паҳлӯи паём — ҷамъу хурд, на ба андозаи саҳифа */
.msg-gen .gen-wrap-chat { max-width: 300px; width: 100%; }
.msg-gen .card { border-radius: 16px; }
.msg-gen .card .card-media { max-height: 320px; }
.msg-gen .card.pending .card-media { aspect-ratio: auto !important; height: 160px; min-height: 0; }
.msg-gen .card .card-prompt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; }
.msg-gen .card .card-info { padding: 8px 10px 10px; }
@media (max-width: 640px) { .msg-gen .gen-wrap-chat { max-width: 240px; } .msg-gen .card.pending .card-media { height: 130px; } }

/* Тирезаи файл дар мобил: медиа пурра намоён, панели тавсиф дар поён — бе буриш */
@media (max-width: 1020px) {
    .viewer-grid { display: block; overflow-y: auto; }   /* грид баландии саҳнаро мефишурд → блок: саҳна = андозаи видео, панел дар поён */
    .viewer-stage { min-height: 0; height: auto; overflow: visible; padding: 0; }
    .viewer-stage img, .viewer-stage video { display: block; max-height: 62dvh; width: auto; height: auto; max-width: 100%; object-fit: contain; }
    .viewer-side { overflow: visible; }
}

/* Табҳо бо иконка: иконка ва матн дар як хат, андозаи якхела */
.tabs button, .tabs a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; line-height: 1; }
.tabs button .ic, .tabs a .ic, .tabs button svg, .tabs a svg { width: 16px; height: 16px; flex: none; }
.ptabs button { padding: 9px 14px; font-size: 13.5px; }

/* Тарифҳо: се сутун дар десктоп, зери нарх ≈ нарх/моҳ барои солона */
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan-sub { font-size: 12.5px; min-height: 16px; margin-top: -4px; }

/* Харидани кредит бо слайдер */
.credit-buy { display: grid; gap: 14px; }
.cb-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.cb-amount { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; font-weight: 700; }
.cb-input { width: 130px; font-size: 24px; font-weight: 800; padding: 6px 10px; text-align: right; }
.cb-price { text-align: right; line-height: 1.1; }
.cb-price b { font-size: 30px; font-weight: 800; }
.cb-price s { color: var(--muted); font-size: 14px; margin-right: 6px; }
.cb-price small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.cb-marks { display: flex; gap: 6px; flex-wrap: wrap; }
.cb-marks .chip.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: linear-gradient(to right, var(--accent) var(--p, 0%), var(--surface-3) var(--p, 0%)); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 2px 8px #0006; cursor: pointer; }
.range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); cursor: pointer; }
@media (max-width: 640px) { .cb-price { text-align: left; } .cb-price b { font-size: 26px; } }
.cb-marks .chip { height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); font-size: 12.5px; font-weight: 700; }

/* Навори тасдиқи email */
.verify-bar { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 16px; background: #3a2a0f; color: #ffd27a; font-size: 13px; flex-wrap: wrap; }
.verify-bar .ic { width: 16px; height: 16px; }
.verify-bar .btn { height: 28px; padding: 0 10px; font-size: 12px; }
