/* Sayt doim oq (yorug') uslubda — tizimning qorong'i rejimidan qat'i nazar */
:root {
  color-scheme: light;
  --ui-bg: #FFFFFF; --ui-card: #FFFFFF; --ui-text: #151923; --ui-muted: #6B7285;
  --ui-border: #E6E8EF; --ui-accent: #4F46E5; --ui-accent-ink: #FFFFFF; --ui-soft: #EEF0FF;
  --ui-danger: #D43F3A; --ui-ok: #16A34A; --ui-warn-bg: #FFF6E5; --ui-warn: #8A5A00;
  --r: 12px; --ui-side: #F7F8FB; --ui-hover: rgba(80, 90, 120, .07);
}
body { background: radial-gradient(1200px 500px at 60% -10%, #F1F0FF 0%, #FFFFFF 60%) fixed; }
.prompt textarea, .chat textarea { background: transparent; }
input:not([type]), input[type=text], textarea, .sel { background: #F7F8FB; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background-color: var(--ui-bg); color: var(--ui-text); font: 15px/1.5 'Segoe UI', system-ui, -apple-system, sans-serif; }
.hidden { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ============ layout: chap menyu + asosiy qism ============ */
.app { display: flex; min-height: 100vh; }
.side { width: 256px; flex: none; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px;
  padding: 14px 12px; background: var(--ui-side); border-right: 1px solid var(--ui-border); overflow-y: auto; z-index: 40; }
.side-top { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px 12px; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-i { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 11px; color: var(--ui-text); text-decoration: none;
  font-weight: 600; font-size: 14.5px; border: 1px solid transparent; }
.nav-i span { width: 20px; text-align: center; }
.nav-i:hover { background: var(--ui-hover); }
.nav-i.on { background: var(--ui-card); border-color: var(--ui-border); box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.side-sec { margin-top: 14px; flex: 1; min-height: 0; }
.side-h { font-size: 12px; font-weight: 700; color: var(--ui-muted); text-transform: uppercase; letter-spacing: .05em; padding: 0 12px 6px; }
.side-recent { display: flex; flex-direction: column; gap: 1px; }
.side-recent .hint { padding: 4px 12px; font-size: 13px; }
.rec-i { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 9px; cursor: pointer; font-size: 13.5px; color: var(--ui-text); }
.rec-i:hover { background: var(--ui-hover); }
.rec-i.on { background: var(--ui-hover); font-weight: 600; }
.rec-i .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--ui-ok); }
.dot.d-warn { background: #E8A317; } .dot.d-plan { background: var(--ui-accent); }
.side-bottom { margin-top: 10px; }
.ai-card { background: var(--ui-card); border: 1px solid var(--ui-border); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.ai-card .sel.small { max-width: none; width: 100%; }
.ai-card .hint { margin: 0; font-size: 12px; }
.main { flex: 1; min-width: 0; }
.icon-btn { border: 1px solid var(--ui-border); background: var(--ui-card); border-radius: 9px; width: 34px; height: 34px; cursor: pointer; font-size: 16px; }
.m-only { display: none !important; }
.side-shade { display: none; }
.mtop { position: sticky; top: 0; z-index: 30; align-items: center; gap: 12px; padding: 10px 16px; min-height: 56px; background: var(--ui-bg); border-bottom: 1px solid var(--ui-border); }
.mtop .logo { position: absolute; left: 50%; transform: translateX(-50%); }
@media (max-width: 900px) {
  .m-only { display: flex !important; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.2); }
  .side.open { transform: none; }
  .side-shade.open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 35; }
}

/* ============ mavzu oynasi ============ */
.hero .q { font-size: clamp(20px, 2.6vw, 30px); font-weight: 700; margin: 4px 0 0; letter-spacing: -.01em; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); margin: 0; letter-spacing: -.03em; }
.prompt { max-width: 880px; margin: 0 auto; background: var(--ui-card); border: 1px solid var(--ui-border); border-radius: 22px;
  padding: 14px 14px 10px; box-shadow: 0 12px 40px rgba(20, 24, 40, .08); }
.prompt textarea, .prompt .extra { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 6px 8px; font-size: 16px; }
.prompt textarea { resize: none; }
.prompt .extra { border-top: 1px dashed var(--ui-border) !important; border-radius: 0; font-size: 14px; }
.prompt.text-mode .ai-only { display: none !important; }
.hint.tiny { font-size: 12.5px; padding: 0 8px; margin: 2px 0 6px; }
.ptools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-top: 6px; }
.ptools .sp { flex: 1; }
.pt-icon { border: 0; background: transparent; width: 36px; height: 36px; border-radius: 10px; cursor: pointer; font-size: 18px; }
.pt-icon:hover, .pt-chip:hover { background: var(--ui-hover); }
.pt-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--ui-border); background: transparent; border-radius: 99px;
  padding: 6px 12px; font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--ui-text); white-space: nowrap; }
.pt-chip input { accent-color: var(--ui-accent); margin: 0; }
.pt-chip.on { background: var(--ui-soft); border-color: var(--ui-accent); }
.pt-sel { border: 1px solid var(--ui-border); background: transparent; border-radius: 99px; padding: 6px 10px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.seg { display: inline-flex; background: var(--ui-bg); border-radius: 99px; padding: 3px; }
.seg-b { border: 0; background: transparent; border-radius: 99px; padding: 6px 12px; font-size: 13.5px; font-weight: 600; color: var(--ui-muted); cursor: pointer; white-space: nowrap; }
.seg-b.active { background: var(--ui-card); color: var(--ui-text); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.send { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ui-accent); color: #fff; font-size: 20px; font-weight: 700; cursor: pointer; flex: none; }
.send:hover { filter: brightness(1.1); }
.send:disabled { opacity: .55; cursor: wait; }
.send.busy { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.att-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 4px; }
.att-list:not(:empty) { margin-bottom: 8px; }
.att { display: flex; align-items: center; gap: 8px; background: var(--ui-bg); border: 1px solid var(--ui-border); border-radius: 12px; padding: 4px 8px 4px 4px; font-size: 13px; max-width: 260px; }
.att img, .att .ph { width: 40px; height: 30px; object-fit: cover; border-radius: 7px; flex: none; background: var(--ui-soft); display: grid; place-items: center; font-size: 14px; }
.att .an { font-weight: 700; color: var(--ui-accent); }
.att .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.att button { border: 0; background: none; cursor: pointer; color: var(--ui-muted); padding: 0 2px; }
.att.loading { opacity: .6; }
.designs { max-width: 1180px; margin: 46px auto 0; }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sec-head h2 { font-size: 21px; }
.sec-head .tabs { margin: 0; background: #F1F2F7; }
.dtabs .tab { flex: none; white-space: nowrap; padding: 8px 16px; }
#v-decks { max-width: 980px; }
.orow .omedia { padding: 7px 8px; background: var(--ui-card); max-width: 130px; }

.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; color: var(--ui-text); text-decoration: none; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #6366F1, #22D3EE); font-weight: 800; }
.top-right { display: flex; gap: 8px; align-items: center; min-width: 0; }
.pill { font-size: 13px; padding: 4px 10px; border-radius: 99px; background: var(--ui-soft); color: var(--ui-muted); white-space: nowrap; }
.pill.ok { background: color-mix(in srgb, var(--ui-ok) 14%, transparent); color: var(--ui-ok); }
.pill.bad { background: color-mix(in srgb, var(--ui-danger) 14%, transparent); color: var(--ui-danger); }

/* generic */
.view { max-width: 1240px; margin: 0 auto; padding: 28px 28px 60px; }
#v-home { padding-top: 7vh; }
#v-editor { max-width: 1500px; padding-top: 16px; }
.card { background: var(--ui-card); border: 1px solid var(--ui-border); border-radius: 18px; padding: 24px; }
.main-card { max-width: 860px; margin: 0 auto; }
.wide { max-width: 980px; margin: 0 auto; }
.hero { text-align: center; margin: 10px auto 26px; max-width: 760px; }
.lead { color: var(--ui-muted); font-size: 17px; margin: 0; }
h2 { margin: 0; font-size: 22px; }
.lbl { display: block; font-weight: 600; font-size: 13.5px; margin: 16px 0 6px; }
.opt, .hint { color: var(--ui-muted); font-weight: 400; font-size: 13.5px; }
.hint code, kbd { background: var(--ui-soft); padding: 1px 5px; border-radius: 5px; font-size: 12.5px; }
.center { text-align: center; }
input:not([type]), input[type=text], textarea, .sel {
  width: 100%; background: var(--ui-bg); border: 1px solid var(--ui-border); border-radius: 10px; padding: 10px 12px; outline: none; }
input:focus, textarea:focus, .sel:focus { border-color: var(--ui-accent); box-shadow: 0 0 0 3px var(--ui-soft); }
textarea { resize: vertical; }
.sel.small { width: auto; padding: 6px 10px; font-size: 13.5px; max-width: 220px; }
input[type=range] { width: 100%; accent-color: var(--ui-accent); }
.row3 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.btn { border: 1px solid var(--ui-border); background: var(--ui-card); border-radius: 10px; padding: 9px 16px; cursor: pointer;
  font-weight: 600; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; }
.btn:hover { border-color: var(--ui-accent); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--ui-accent); border-color: var(--ui-accent); color: var(--ui-accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.big { padding: 12px 22px; font-size: 16px; }
.btn.small { padding: 6px 11px; font-size: 13.5px; border-radius: 8px; }
.btn.ghost { border-style: dashed; width: 100%; margin-top: 10px; background: transparent; }
.btn.danger:hover { border-color: var(--ui-danger); color: var(--ui-danger); }
.warn { background: var(--ui-warn-bg); color: var(--ui-warn); border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-bottom: 6px; }
.warn code { background: rgba(0,0,0,.08); padding: 1px 6px; border-radius: 5px; }

.count-row { display: flex; align-items: center; gap: 12px; }
.count-row .num { width: 76px; flex: none; background: var(--ui-bg); border: 1px solid var(--ui-border); border-radius: 10px; padding: 8px 10px; text-align: center; font-weight: 700; }
.check { display: flex; align-items: center; gap: 9px; margin-top: 16px; font-weight: 600; font-size: 14px; cursor: pointer; flex-wrap: wrap; }
.check input { width: 17px; height: 17px; accent-color: var(--ui-accent); }
.add-slide { border: 2px dashed var(--ui-border); background: transparent; border-radius: 6px; cursor: pointer; aspect-ratio: 16 / 9;
  color: var(--ui-muted); font-weight: 600; font-size: 13px; margin-left: 24px; flex: none; display: grid; place-items: center; padding: 4px; }
.add-slide:hover { border-color: var(--ui-accent); color: var(--ui-accent); }
.add-slide:disabled { opacity: .5; cursor: wait; }
@media (max-width: 820px) { .add-slide { width: 150px; margin-left: 0; } }

/* tabs */
.tabs { display: flex; gap: 4px; background: var(--ui-bg); padding: 4px; border-radius: 12px; margin-bottom: 6px; }
.tab { flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 9px; cursor: pointer; font-weight: 600; color: var(--ui-muted); }
.tab.active { background: var(--ui-card); color: var(--ui-text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.dtabs { margin-bottom: 12px; }
.my-upload { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 14px; }
.up-btn { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; text-align: left; align-items: center;
  border: 2px dashed var(--ui-border); background: var(--ui-bg); border-radius: 14px; padding: 14px 16px; cursor: pointer; }
.up-btn:hover { border-color: var(--ui-accent); background: var(--ui-soft); }
.up-btn:disabled { opacity: .6; cursor: wait; }
.up-ic { grid-row: 1 / 3; font-size: 28px; }
.up-btn b { font-size: 15px; }
.up-btn .hint { font-size: 12.5px; line-height: 1.35; }
@media (max-width: 640px) { .my-upload { grid-template-columns: 1fr; } }

/* theme grid */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tcard { border: 2px solid transparent; border-radius: 12px; padding: 4px; cursor: pointer; background: var(--ui-bg); position: relative; }
.tcard:hover { border-color: var(--ui-border); }
.tcard.sel-on { border-color: var(--ui-accent); }
.tcard .tname { font-size: 13px; font-weight: 600; padding: 6px 4px 2px; display: flex; justify-content: space-between; gap: 6px; }
.tcard .tname span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcard .tdel { border: 0; background: none; cursor: pointer; color: var(--ui-muted); padding: 0 2px; }
.tcard .sframe { border-radius: 8px; pointer-events: none; }
.tcard.upload { display: grid; place-items: center; text-align: center; min-height: 110px; border: 2px dashed var(--ui-border);
  color: var(--ui-muted); font-weight: 600; font-size: 13.5px; }
.tcard.upload:hover { border-color: var(--ui-accent); color: var(--ui-accent); }
.tcard .tplimg { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; display: block; background: #ddd; }
.tag { position: absolute; top: 9px; left: 9px; font-size: 11px; background: rgba(0,0,0,.6); color: #fff; padding: 1px 7px; border-radius: 99px; }

.resume { margin: 14px 0 0; background: var(--ui-card); border: 1px solid var(--ui-border); border-radius: 16px; padding: 6px 16px; }
.resume .empty { padding: 30px 0; text-align: center; }
.draft:first-child { border-top: 0; }
.resume h3 { margin: 2px 2px 10px; font-size: 16px; }
.draft { display: flex; align-items: center; gap: 10px; padding: 10px 6px; border-top: 1px solid var(--ui-border); }
.dr-main { flex: 1; min-width: 0; }
.dr-main b { margin-right: 8px; overflow-wrap: anywhere; }
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 99px; vertical-align: 1px; }
.badge.ok { background: color-mix(in srgb, var(--ui-ok) 15%, transparent); color: var(--ui-ok); }
.badge.warn { background: var(--ui-warn-bg); color: var(--ui-warn); }
.badge.plan { background: var(--ui-soft); color: var(--ui-accent); }
.resumebar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: var(--ui-warn-bg);
  color: var(--ui-warn); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-weight: 600; font-size: 14px; }

/* outline */
.olist { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.orow { display: grid; grid-template-columns: 30px 1.3fr 140px 2fr auto auto; gap: 8px; align-items: center;
  background: var(--ui-bg); border: 1px solid var(--ui-border); border-radius: 12px; padding: 8px; }
.orow .no { text-align: center; color: var(--ui-muted); font-weight: 700; }
.orow input, .orow .sel { padding: 7px 10px; background: var(--ui-card); }
.orow .obtns { display: flex; gap: 2px; }
.orow .obtns button { border: 0; background: none; cursor: pointer; padding: 4px 6px; border-radius: 6px; color: var(--ui-muted); }
.orow .obtns button:hover { background: var(--ui-card); color: var(--ui-text); }

/* editor */
.ed-bar { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.ed-left, .ed-right { display: flex; gap: 8px; align-items: center; min-width: 0; flex-wrap: wrap; }
.ed-left { flex: 1; }
.title-input { border: 1px solid transparent !important; background: transparent !important; font-weight: 700; font-size: 18px !important; min-width: 160px; flex: 1; }
.title-input:hover { border-color: var(--ui-border) !important; }
.genbar { background: var(--ui-card); border: 1px solid var(--ui-border); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.genbar-txt { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 14px; margin-bottom: 8px; gap: 10px; }
.progress { height: 6px; background: var(--ui-bg); border-radius: 9px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--ui-accent); transition: width .4s; }
.ed { display: grid; grid-template-columns: 310px 190px 1fr; gap: 16px; align-items: start; }
.ed.no-chat { grid-template-columns: 190px 1fr; }
.ed.no-chat .chat { display: none; }
/* chat */
.chat { position: sticky; top: 16px; height: calc(100vh - 110px); display: flex; flex-direction: column; background: var(--ui-card);
  border: 1px solid var(--ui-border); border-radius: 16px; overflow: hidden; }
.chat-head { padding: 12px 14px; border-bottom: 1px solid var(--ui-border); display: flex; flex-direction: column; gap: 2px; }
.chat-head .hint { font-size: 12.5px; }
.chat-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 92%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.user { align-self: flex-end; background: var(--ui-accent); color: #fff; border-bottom-right-radius: 4px; }
.msg.ai { align-self: flex-start; background: var(--ui-bg); border-bottom-left-radius: 4px; }
.msg.op { align-self: flex-start; background: transparent; color: var(--ui-muted); font-size: 12.5px; padding: 0 4px; }
.msg.typing::after { content: '…'; animation: pulse 1s infinite; }
.msg .mfiles { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.msg .mfiles img { width: 46px; height: 34px; object-fit: cover; border-radius: 6px; }
.chat-empty { color: var(--ui-muted); font-size: 13.5px; line-height: 1.5; }
.chat-empty b { color: var(--ui-text); }
.chat-empty .ex { display: block; margin-top: 6px; padding: 6px 10px; border: 1px solid var(--ui-border); border-radius: 10px; cursor: pointer; background: var(--ui-bg); }
.chat-empty .ex:hover { border-color: var(--ui-accent); color: var(--ui-text); }
.chat-in { border-top: 1px solid var(--ui-border); padding: 8px 10px; }
.chat-in textarea { border: 0 !important; box-shadow: none !important; background: transparent !important; resize: none; padding: 4px; font-size: 14px; }
.chat-tools { display: flex; align-items: center; gap: 6px; }
.chat-tools .sp { flex: 1; }
.chat-tools .send { width: 34px; height: 34px; font-size: 17px; }
.chat .att-list:not(:empty) { margin-bottom: 4px; }
/* muharrir ekranga to'liq moslashadi: har bir ustun o'z ichida skroll bo'ladi, chat yozish joyi doim pastda */
@media (min-width: 1181px) {
  #v-editor { height: 100vh; display: flex; flex-direction: column; padding-bottom: 14px; box-sizing: border-box; overflow: hidden; }
  #v-editor > .ed-bar, #v-editor > .genbar, #v-editor > .resumebar { flex: none; }
  #v-editor .ed { flex: 1; min-height: 0; align-items: stretch; }
  #v-editor .chat { position: static; height: 100%; min-height: 0; }
  #v-editor .thumbs { position: static; height: 100%; max-height: none; overflow-y: auto; padding: 6px 8px 10px 4px; }
  #v-editor .stage { height: 100%; min-height: 0; overflow-y: auto; padding: 4px 6px 10px 4px; }
}
.chat-log { min-height: 0; }
.chat-in { flex: none; }
/* tor ekranda chat yopilmaydi — slayd ostida to'liq kenglikda turadi */
@media (max-width: 1180px) {
  .ed { grid-template-columns: 190px 1fr; }
  .chat { grid-column: 1 / -1; order: 3; position: static; height: 460px; }
}
.thumbs { display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 110px); overflow-y: auto; padding: 2px 6px 2px 2px; position: sticky; top: 16px; }
.thumb { display: grid; grid-template-columns: 18px 1fr; gap: 6px; cursor: pointer; align-items: start; }
.thumb .tn { font-size: 12px; color: var(--ui-muted); text-align: right; padding-top: 2px; }
.thumb .sframe { border-radius: 6px; outline: 2px solid transparent; outline-offset: 2px; }
.thumb.on .sframe { outline-color: var(--ui-accent); }
.thumb:hover .sframe { outline-color: var(--ui-border); }
.thumb.on:hover .sframe { outline-color: var(--ui-accent); }
.stage { min-width: 0; }
.tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.tools .sp { flex: 1; }
.btn.icon { width: 32px; padding-left: 0; padding-right: 0; }
.frame-wrap .sframe { border-radius: 10px; box-shadow: 0 6px 28px rgba(15, 20, 40, .14); }
#sNotes { background: var(--ui-card); }

@media (max-width: 820px) {
  .ed, .ed.no-chat { grid-template-columns: 1fr; }
  .thumbs { flex-direction: row; max-height: none; overflow-x: auto; position: static; order: 2; }
  .thumb { width: 150px; flex: none; }
  .orow { grid-template-columns: 26px 1fr auto; }
  .orow .obrief { grid-column: 2 / 4; }
  .orow .sel { grid-column: 2; }
  .row3 { grid-template-columns: 1fr; }
  .view { padding: 18px 16px 50px; }
  .card { padding: 18px; }
}

/* present */
.present { position: fixed; inset: 0; z-index: 100; background: #000; display: grid; place-items: center; cursor: none; }
.present #presentFrame { width: min(100vw, calc(100vh * var(--ratio, 1.7778))); }
.present-hint { position: fixed; bottom: 10px; right: 14px; color: #777; font-size: 12px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #111; color: #fff; padding: 10px 18px;
  border-radius: 10px; z-index: 200; font-size: 14px; max-width: 90vw; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.toast.err { background: var(--ui-danger); }

/* print */
.print-area { position: fixed; left: -20000px; top: 0; width: 1280px; }
@media print {
  body > *:not(#printArea) { display: none !important; }
  .print-area { position: static; width: 100%; }
  .print-area .sframe { break-after: page; border-radius: 0; }
  body { background: #fff; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ================= SLIDES ================= */
.sframe { position: relative; width: 100%; container-type: inline-size; overflow: hidden; background: #000; }
.slide { position: absolute; inset: 0; background-color: var(--bg); background-size: cover; background-position: center;
  color: var(--text); font-family: var(--bf); padding: 4.5cqw 5.25cqw 4.6cqw; display: flex; flex-direction: column; overflow: hidden; }
.slide [contenteditable] { outline: none; border-radius: .3cqw; }
/* tayyor matn: kursor kelganda — yumshoq fon (chegaralar kesilib, chiziqcha bo'lib qolmasin), bosilganda — biroz to'qroq */
.slide [contenteditable] { border-radius: .35cqw; transition: background-color .15s; }
.slide [contenteditable]:hover { background-color: color-mix(in srgb, var(--accent) 9%, transparent); }
.slide [contenteditable]:focus { background-color: color-mix(in srgb, var(--accent) 14%, transparent); outline: none; }
.slide [contenteditable]:empty::before { content: '…'; opacity: .35; }
.slide h1, .slide h2, .slide h3, .slide p, .slide ul, .slide ol { margin: 0; padding: 0; }
.s-head h2 { font: 600 3.6cqw/1.15 var(--tf); max-height: 8.6cqw; overflow: hidden; }
.bar { display: block; width: 6.75cqw; height: .5cqw; background: var(--accent); margin-top: 1.4cqw; }
.s-body { flex: 1; min-height: 0; margin-top: 3cqw; font-size: 2.35cqw; overflow: hidden; display: flex; flex-direction: column; }
.s-num { position: absolute; right: 3.4cqw; bottom: 2.4cqw; font-size: .9cqw; color: var(--muted); }

.b-list { list-style: none; }
.b-list li { display: flex; gap: .85em; margin-bottom: .7em; line-height: 1.3; }
.b-list li::before { content: ''; flex: none; width: .55em; height: .55em; border-radius: .14em; background: var(--accent); margin-top: .4em; }

.ag { list-style: none; display: grid; grid-auto-flow: row; align-content: start; }
.ag.two { grid-template-columns: 1fr 1fr; column-gap: 3em; }
.ag li { display: flex; align-items: center; gap: .8em; margin-bottom: .75em; line-height: 1.25; }
.ag .n { flex: none; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--accent); color: var(--bg);
  display: grid; place-items: center; font-weight: 700; font-size: .8em; }

.cards { display: flex; flex-direction: column; gap: .55em; }
.ccard { background: var(--card); border-left: .32em solid var(--accent); padding: .65em 1em; line-height: 1.3; }

.cols { display: flex; gap: 1.4em; height: 100%; }
.col { flex: 1; min-width: 0; background: var(--card); padding: 1.1em 1.3em; border-top: .2em solid var(--accent); font-size: .92em; }
.col h3 { color: var(--accent); font: 700 1.15em/1.2 var(--tf); margin-bottom: .8em; }
.col .b-list li { margin-bottom: .55em; }
.t-comparison .col { border-top: 0; padding-top: 0; }
.t-comparison .col h3 { background: var(--accent); color: var(--bg); margin: 0 -1.3em 1em; padding: .6em 1.3em; }
.t-comparison .col.right h3 { background: var(--accent2); }
.t-comparison .col.right .b-list li::before { background: var(--accent2); }
.vs { flex: none; align-self: center; width: 2.4em; height: 2.4em; margin: 0 -1.9em; z-index: 2; border-radius: 50%;
  background: var(--text); color: var(--bg); display: grid; place-items: center; font-weight: 800; font-size: .75em; }

.tl { position: relative; display: flex; height: 100%; }
.tl-line { position: absolute; top: calc(36% + .45em); height: .16em; background: var(--muted); opacity: .6;
  left: 10%; right: 10%; }
.tl.n3 .tl-line { left: 16.6%; right: 16.6%; } .tl.n4 .tl-line { left: 12.5%; right: 12.5%; }
.tl.n5 .tl-line { left: 10%; right: 10%; } .tl.n6 .tl-line { left: 8.33%; right: 8.33%; }
.tl-it { flex: 1; min-width: 0; display: grid; grid-template-rows: 36% auto 1fr; justify-items: center; text-align: center; padding: 0 .4em; position: relative; }
.tl-l { align-self: end; padding-bottom: .55em; color: var(--accent); font: 700 1.3em/1.15 var(--tf); }
.tl-dot { width: 1.1em; height: 1.1em; border-radius: 50%; border: .28em solid var(--accent); background: var(--bg); z-index: 1; display: block; }
.tl-t { margin-top: .8em; font-size: .82em; line-height: 1.3; }

.st { display: flex; gap: 1.1em; height: 100%; align-items: center; }
.st-c { flex: 1; min-width: 0; background: var(--card); border-top: .2em solid var(--accent); padding: 1.2em .9em; text-align: center;
  height: 78%; display: flex; flex-direction: column; justify-content: center; gap: .5em; }
.st-c:nth-child(2n) { border-top-color: var(--accent2); }
.st-v { font: 700 2.5em/1.1 var(--tf); color: var(--accent); white-space: nowrap; overflow: hidden; }
.st-l { color: var(--muted); font-size: .82em; line-height: 1.3; }

.qt { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; position: relative; padding: 0 3em; }
.qm { position: absolute; left: 0; top: 0; font: 700 4.5em/.8 Georgia, serif; color: var(--accent); }
.qq { font-style: italic; font-size: 1.4em; line-height: 1.35; }
.qa { margin-top: 1.1em; color: var(--accent); font-weight: 700; }

.t-title, .t-section { justify-content: center; padding-left: 6.75cqw; }
.t-title .tt, .t-section .tt { position: relative; z-index: 1; max-width: 64%; }
.t-section .tt { max-width: 85%; }
.t-title h1 { font: 600 5.2cqw/1.1 var(--tf); margin: 2cqw 0 1.8cqw; max-height: 18cqw; overflow: hidden; }
.t-section h1 { font: 600 4.2cqw/1.12 var(--tf); margin: 1cqw 0 1.4cqw; max-height: 14cqw; overflow: hidden; }
.slide .sub { font-size: 2.1cqw; color: var(--muted); max-height: 9cqw; overflow: hidden; line-height: 1.35; }
.dec { position: absolute; border-radius: 50%; display: block; }
.dec.d1 { width: 60cqw; height: 60cqw; background: var(--accent); opacity: .16; right: -21cqw; top: -16.5cqw; }
.dec.d2 { width: 31.5cqw; height: 31.5cqw; background: var(--accent2); opacity: .22; right: -12cqw; bottom: -9cqw; }
.stripe { position: absolute; left: 0; top: 0; bottom: 0; width: 1.9cqw; background: var(--accent); }
.secno { font: 700 7.2cqw/1 var(--tf); color: var(--accent); }
.tpl .dec, .tpl .stripe { display: none; }

/* rasmlar va "cards" oilasi */
.ab { position: absolute; display: block; }
.im { background-size: cover; background-position: center; background-color: var(--card); }
.im.is-vid::after { content: '▶'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 3cqw; text-shadow: 0 0 1cqw rgba(0,0,0,.6); }
.slide.fam-cards { padding: 0; }
.cc { background: var(--card); border-radius: var(--rad); box-shadow: var(--shd); }
.ov { border-radius: 50%; }
.tx { display: flex; flex-direction: column; overflow: hidden; line-height: 1.25; color: var(--text); }
.tx.ab-b { justify-content: flex-end; }
.tx.ab-c { justify-content: center; }
.tx.acc { color: var(--accent); }
.tx.mut { color: var(--muted); }
.tx.r { text-align: right; }
.tx.c { text-align: center; }
.tx.nw { white-space: nowrap; }
.fam-cards .ttl { font-family: var(--tf); font-weight: 600; line-height: 1.12; }
.fam-cards.up .ttl { text-transform: uppercase; }
.nc { border-radius: 50%; background: var(--accent); color: var(--card); display: grid; place-items: center; font-weight: 700; }
.pill { border-radius: 99px; color: var(--card); display: grid; place-items: center; font-weight: 700; padding: 0 .6em; white-space: nowrap; overflow: hidden; }
.fam-cards .s-body { flex: none; }
.slide.fam-geo { padding: 0; }
.fam-geo .ttl { font-family: var(--tf); font-weight: 800; line-height: 1.1; text-transform: uppercase; }
.fam-geo .tx.wh { color: #fff; }
.fam-geo .acc-w { color: var(--accent); }
.fam-geo .nc { color: #fff; }
.fam-geo .nc.sq { border-radius: 0; }
.fam-geo .tx.it { font-style: italic; }
.fam-geo .b-list.sqb li::before { content: '■'; color: var(--text); }
.fam-geo .geo-title [contenteditable] .acc-w { color: var(--accent); }
.fam-cards .b-list.plain li { margin-bottom: .45em; gap: .7em; }
.fam-cards .b-list.plain li::before { color: var(--accent); }
.b-list.chk li::before { content: '✓'; font-weight: 700; }

/* shablon geometriyasi bo'yicha joylashuv */
.slide.geo { padding: 0; }
.gbox { position: absolute; display: flex; flex-direction: column; overflow: hidden; margin: 0 !important; padding: .4cqw .8cqw; }
.gbox.gt { font-family: var(--tf); font-size: 3.4cqw; line-height: 1.1; }
.gbox.gs { font-size: 1.9cqw; color: var(--muted); line-height: 1.3; }
.gbox.gb { font-size: 2.2cqw; flex: none; }
.geo .gbox h1, .geo .gbox h2, .geo .gbox p { font: inherit; color: inherit; max-height: none; margin: 0; overflow: visible; }
.b-list.plain li { gap: .5em; margin-bottom: .3em; }
.b-list.plain li::before { content: '•'; width: auto; height: auto; background: none; margin: 0; color: inherit; border-radius: 0; }
.plain2 { gap: 6%; }

/* =====================================================================
   v2: zamonaviy interfeys — ikonkalar, menyu, sozlamalar, dialoglar
   ===================================================================== */
body { font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.ico { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -3px; }
.btn, .pt-chip, .seg-b, .tab, .nav-i, .new-btn, .chip { display: inline-flex; align-items: center; gap: 7px; }
.btn .ico { width: 16px; height: 16px; }
.btn.small .ico { width: 15px; height: 15px; }
.btn { border-radius: 11px; transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; }
.btn:hover { border-color: #C9CCF6; background: #FAFAFF; }
.btn.primary { background: linear-gradient(180deg, #5B54F0, #4338CA); border-color: #4338CA; box-shadow: 0 4px 14px rgba(79, 70, 229, .25); }
.btn.primary:hover { background: linear-gradient(180deg, #6760F2, #4A40D6); }
.btn.danger-soft { color: var(--ui-danger); border-color: #F5C2C0; background: #FFF6F5; }
#wipeBtn { margin-top: 10px; }
.icon-btn { display: inline-grid; place-items: center; border-radius: 10px; color: var(--ui-text); transition: background .15s, border-color .15s; }
.icon-btn:hover { background: #F4F4FB; border-color: #C9CCF6; }
.icon-btn.ghost { border-color: transparent; background: transparent; }
.icon-btn.sm { width: 28px; height: 28px; }
.icon-btn.danger:hover { color: var(--ui-danger); border-color: #F5C2C0; background: #FFF6F5; }
.icon-btn .ico { width: 17px; height: 17px; }

/* --- chap menyu --- */
.side { width: 264px; background: #FBFBFD; padding: 14px 12px; gap: 4px; transition: width .2s; }
.logo { gap: 10px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.logo-mark { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, #6366F1, #8B5CF6 55%, #EC4899); box-shadow: 0 4px 12px rgba(99, 102, 241, .35); }
.logo-mark .ico { width: 18px; height: 18px; color: #fff; }
.side-top { padding: 2px 4px 14px 6px; }
.new-btn { justify-content: flex-start; width: 100%; border: 0; border-radius: 12px; padding: 11px 14px; cursor: pointer; font-weight: 700; font-size: 14.5px;
  color: #fff; background: linear-gradient(135deg, #4F46E5, #7C3AED); box-shadow: 0 6px 18px rgba(79, 70, 229, .28); margin-bottom: 10px; }
.new-btn:hover { filter: brightness(1.07); }
.new-btn kbd { margin-left: auto; background: rgba(255,255,255,.2); color: #fff; border: 0; font-size: 11px; padding: 1px 6px; border-radius: 5px; }
.nav { gap: 2px; }
.nav-i { gap: 12px; padding: 9px 12px; font-weight: 500; color: #3B4152; border-radius: 10px; }
.nav-i .ico { color: #7A8094; }
.nav-i:hover { background: #F1F2F8; }
.nav-i.on { background: #EEF0FF; border-color: transparent; box-shadow: none; color: #3730A3; font-weight: 600; }
.nav-i.on .ico { color: #4F46E5; }
.nav-i span.lbl-t { width: auto; text-align: left; white-space: nowrap; }
.ui-lang { display: flex; gap: 4px; background: #F1F2F7; border-radius: 11px; padding: 3px; margin-top: 8px; }
.ui-lang button { flex: 1; border: 0; background: transparent; border-radius: 8px; padding: 6px 0; font-size: 12.5px; font-weight: 600; color: #6B7285; cursor: pointer; }
.ui-lang button.on { background: #fff; color: #1F2333; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
/* kichik menyu: faqat joriy til (ixcham), bosilsa — o'ngda 3 til */
@media (min-width: 901px) {
.side.mini .ui-lang { position: relative; width: 100%; padding: 3px; }
.side.mini .ui-lang button:not(.on) { display: none; }
.side.mini .ui-lang button.on { padding: 7px 0; }
 }
.nav-badge { margin-left: auto; font-size: 11.5px; font-weight: 700; color: #6B7285; background: #EEF0F5; padding: 0 7px; border-radius: 99px; }
.nav-badge:empty { display: none; }
.side-sec { margin-top: 18px; display: flex; flex-direction: column; min-height: 0; }
.side-h { font-size: 11.5px; letter-spacing: .06em; padding: 0 12px 8px; }
.side-search { display: flex; align-items: center; gap: 8px; margin: 0 4px 6px; padding: 0 10px; border: 1px solid var(--ui-border); border-radius: 10px; background: #fff; }
.side-search .ico { width: 15px; height: 15px; color: #9AA0B2; }
.side-search input { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 7px 0; font-size: 13px; }
.side-recent { overflow-y: auto; min-height: 0; }
.rec-i { padding: 7px 12px; font-size: 13.5px; color: #3B4152; }
.rec-i:hover { background: #F1F2F8; }
.rec-i.on { background: #EEF0FF; color: #3730A3; }
.ai-card { border-radius: 14px; padding: 12px; background: #fff; }
.ai-row { display: flex; align-items: center; gap: 10px; }
.ai-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #ECFDF3; color: #16A34A; flex: none; }
.ai-ic.bad { background: #FEF2F2; color: #DC2626; }
.ai-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.ai-txt b { font-size: 13.5px; }
.ai-txt .hint { font-size: 11.5px; }
#modelPill.pill { background: none; padding: 0; font-size: 13.5px; color: var(--ui-text); }
/* yig'ilgan menyu */
.side.mini { width: 72px; padding: 14px 10px; }
.side.mini .lbl-t { display: none !important; }
.side.mini .side-top { flex-direction: column; gap: 10px; padding: 2px 0 12px; }
.side.mini .new-btn { justify-content: center; padding: 11px 0; }
.side.mini .nav-i { justify-content: center; padding: 10px 0; }
.side.mini .ai-card { padding: 8px; align-items: center; }
.side.mini .ai-row { justify-content: center; }
.side.mini #sideCollapse .ico { transform: rotate(180deg); }
.d-only { display: inline-grid; }
@media (max-width: 900px) { .d-only { display: none !important; } .side.mini { width: 264px; } .side.mini .lbl-t { display: revert !important; } }

/* --- bosh sahifa --- */
#v-home { padding-top: 6vh; }
.hero-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #4F46E5; background: #EEF0FF;
  padding: 5px 12px; border-radius: 99px; margin-bottom: 14px; }
.hero-tag .ico { width: 14px; height: 14px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 50px); letter-spacing: -.035em; line-height: 1.1; }
.hero .q { font-size: clamp(15px, 1.6vw, 18px); font-weight: 400; color: var(--ui-muted); margin-top: 10px; }
.prompt { border-radius: 24px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 16px 48px rgba(79, 70, 229, .10); border-color: #E3E4F3; transition: box-shadow .2s, border-color .2s; }
.prompt:focus-within { border-color: #B9B6F7; box-shadow: 0 0 0 4px rgba(99, 102, 241, .10), 0 16px 48px rgba(79, 70, 229, .14); }
.pt-icon { display: grid; place-items: center; color: #5B6175; }
.pt-icon .ico { width: 20px; height: 20px; }
.seg-b .ico, .pt-chip .ico { width: 15px; height: 15px; }
.seg-b { gap: 6px; }
.pt-sel-wrap { display: inline-flex; align-items: center; gap: 4px; padding-left: 10px; border: 1px solid var(--ui-border); border-radius: 99px; color: #5B6175; background: #fff; }
.pt-sel-wrap .ico { width: 15px; height: 15px; }
.pt-sel-wrap .pt-sel { border: 0; padding-left: 2px; color: var(--ui-text); background: transparent; outline: none; }
.pt-sel-wrap.bordered { border-radius: 10px; }
.pt-sel-wrap:hover { border-color: #C9CCF6; }
.send { display: grid; place-items: center; background: linear-gradient(135deg, #4F46E5, #7C3AED); box-shadow: 0 6px 16px rgba(79, 70, 229, .35); }
.send .ico { width: 19px; height: 19px; stroke-width: 2.4; }
.prompt { max-width: 920px; }
.ptools { flex-wrap: nowrap; gap: 5px; }
.ptools .seg-b { padding: 6px 10px; }
.pt-sel-wrap .pt-sel { padding-right: 6px; max-width: 132px; }
@media (max-width: 1100px) { .ptools { flex-wrap: wrap; } .ptools .send { margin-left: auto; } }
.ideas { max-width: 880px; margin: 14px auto 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.idea { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--ui-border); background: #fff; border-radius: 99px; padding: 6px 13px;
  font-size: 13px; color: #4A5065; cursor: pointer; transition: all .15s; }
.idea .ico { width: 14px; height: 14px; color: #8B5CF6; }
.idea:hover { border-color: #B9B6F7; color: #3730A3; background: #F7F7FF; transform: translateY(-1px); }
.dtabs .tab .ico { width: 15px; height: 15px; }
.fam-filter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { border: 1px solid var(--ui-border); background: #fff; border-radius: 99px; padding: 5px 13px; font-size: 13px; font-weight: 600; color: #5B6175; cursor: pointer; }
.chip:hover { border-color: #C9CCF6; }
.chip.on { background: #1F2333; color: #fff; border-color: #1F2333; }
.theme-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.tcard { border-radius: 14px; padding: 5px; background: #fff; border: 2px solid transparent; box-shadow: 0 1px 3px rgba(16, 24, 40, .06); transition: transform .15s, box-shadow .15s; }
.tcard:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16, 24, 40, .10); border-color: transparent; }
.tcard.sel-on { border-color: #4F46E5; box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
.tcard .tname { font-size: 13.5px; padding: 8px 6px 4px; }
.tcard .sframe { border-radius: 10px; }
.tcard .tdel { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; }
.tcard .tdel:hover { background: #FEF2F2; color: var(--ui-danger); }
.tcard .tdel .ico { width: 14px; height: 14px; }
.sel-tick { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; background: #4F46E5; color: #fff; display: none; place-items: center; z-index: 2; }
.tcard.sel-on .sel-tick { display: grid; }
.sel-tick .ico { width: 13px; height: 13px; stroke-width: 3; }
.up-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #EEF0FF; color: #4F46E5; }
.up-ic .ico { width: 22px; height: 22px; }
.up-btn { background: #fff; border-style: dashed; border-color: #D5D7E6; align-content: center; row-gap: 2px; }
.up-btn.busy { border-style: solid; border-color: #C9C4F7; background: #FBFAFF; cursor: progress; opacity: 1; }
.up-btn.busy .up-ic { animation: pulse 1.4s ease-in-out infinite; }
.up-prog { grid-column: 1 / -1; margin-top: 12px; }
.up-bar { height: 7px; border-radius: 99px; background: #ECEBFA; overflow: hidden; position: relative; }
.up-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 99px; background: linear-gradient(90deg, #6366F1, #A855F7); transition: width .25s linear; }
.up-bar i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: shine 1.3s linear infinite; }
@keyframes shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.up-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 12.5px; }
.up-st { color: #4F46E5; font-weight: 600; }
.up-tm { color: var(--ui-muted); font-variant-numeric: tabular-nums; }
.up-prog.ok .up-bar i { background: #16A34A; }
.up-prog.ok .up-st { color: #16A34A; }

/* --- sahifalar --- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h2 { font-size: 26px; letter-spacing: -.02em; }
.page-head .hint { margin: 4px 0 0; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.toolbar .fam-filter { margin: 0; }
.search-box { display: flex; align-items: center; gap: 8px; border: 1px solid var(--ui-border); background: #fff; border-radius: 12px; padding: 0 12px; flex: 1; min-width: 220px; max-width: 420px; }
.search-box .ico { color: #9AA0B2; width: 16px; height: 16px; }
.search-box input { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 9px 0; }
.resume { padding: 4px 6px; border-radius: 18px; }
.draft { gap: 14px; padding: 12px 10px; border-radius: 12px; border-top: 0; }
.draft + .draft { border-top: 1px solid #F0F1F6; }
.draft:hover { background: #FAFAFD; }
.dr-thumb { width: 112px; flex: none; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.12); background: #EEF0F5; aspect-ratio: 16/9; }
.dr-thumb .sframe { pointer-events: none; }
.dr-act { display: flex; gap: 6px; align-items: center; }
.set-grid, .help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 18px; align-items: start; }
.set-card { background: #fff; border: 1px solid var(--ui-border); border-radius: 18px; padding: 18px 20px; }
.set-card h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; font-size: 16px; }
.set-card h3 .ico { color: #4F46E5; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid #F0F1F6; }
.set-row:first-of-type { border-top: 0; }
.set-row span { display: flex; flex-direction: column; }
.set-row small { color: var(--ui-muted); font-size: 12.5px; }
.set-row .sel { width: auto; min-width: 160px; }
.switch { appearance: none; width: 40px; height: 23px; border-radius: 99px; background: #D5D7E2; position: relative; cursor: pointer; flex: none; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .2s; }
.switch:checked { background: #4F46E5; }
.switch:checked::after { left: 20px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-info { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.ai-m { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid #F0F1F6; border-radius: 12px; font-size: 14px; }
.ai-m .tg { margin-left: auto; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #EEF0FF; color: #4F46E5; }
.ai-m .tg.v { background: #FDF2F8; color: #DB2777; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.tips { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; color: #3B4152; }
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; font-size: 13.5px; }
kbd { background: #F3F4F8; border: 1px solid #E2E4EC; border-bottom-width: 2px; border-radius: 6px; padding: 0 6px; font-size: 12px; font-family: inherit; }

/* --- muharrir --- */
.ed-bar { background: #fff; border: 1px solid var(--ui-border); border-radius: 16px; padding: 8px 10px; }
.title-input { font-size: 17px !important; }
.save-state { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: #16A34A; white-space: nowrap; }
.save-state .ico { width: 14px; height: 14px; }
.save-state.saving { color: var(--ui-muted); }
.tools .icon-btn { width: 32px; height: 32px; }
.chat-head { flex-direction: row; align-items: center; gap: 10px; }
.chat-head > div { display: flex; flex-direction: column; flex: 1; line-height: 1.25; }
.ch-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #6366F1, #A855F7); flex: none; }
.ch-ic .ico { width: 17px; height: 17px; }
.msg.user { background: linear-gradient(135deg, #4F46E5, #7C3AED); }
.msg.ai { background: #F4F5FA; }
.chat-empty .ex { display: flex; align-items: center; gap: 8px; }
.add-slide { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: calc(100% - 24px); margin-left: 24px; box-sizing: border-box; text-align: center; }
.thumbs .add-slide { flex: none; }
.add-slide .ico { width: 22px; height: 22px; }

/* --- PPTX shablonning namuna slaydi bo'yicha ko'rinish --- */
.slide.tslide { padding: 0; background-size: 100% 100%; }
.ts-slot { position: absolute; overflow: hidden; line-height: 1.15; color: var(--text); font-family: var(--bf); display: flex; flex-direction: column; }
.ts-slot > div { min-height: 1em; }
.ts-title { line-height: 1.05; }
.ts-pic { position: absolute; background-size: cover; background-position: center; }
.ts-chart { position: absolute; font-size: 2.1cqw; }
.ts-chart .ch-side { display: none; }
.ts-chart .ch-plot { background-color: transparent; }

/* --- diagramma va foto galereya (slayd ichida) --- */
.ch-wrap { display: flex; gap: 1em; height: 100%; min-height: 0; }
.ch-side { width: 32%; flex: none; padding: 1em; display: flex; flex-direction: column; gap: .5em; }
.ch-side.ch-acc { background: var(--accent); color: #fff; }
.ch-unit { font-size: .6em; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ch-acc .ch-unit { color: rgba(255,255,255,.8); }
.ch-sum { font-size: .82em; line-height: 1.35; }
.ch-plot { flex: 1; min-width: 0; display: flex; align-items: stretch; gap: .7em; padding: 1em 1em .6em;
  background-image: linear-gradient(color-mix(in srgb, var(--muted) 22%, transparent) 1px, transparent 1px); background-size: 100% 25%; background-origin: content-box; }
.ch-plot.cc { background-image: linear-gradient(color-mix(in srgb, var(--muted) 22%, transparent) 1px, transparent 1px); background-color: var(--card); }
.ch-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.ch-val { font-size: .62em; font-weight: 700; margin-bottom: .25em; }
.ch-box { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; min-height: 0; }
.ch-bar { display: block; width: 62%; background: var(--accent); border-radius: .12em .12em 0 0; min-height: 2px; }
.ch-lab { font-size: .55em; color: var(--muted); margin-top: .35em; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.gl { display: flex; gap: .9em; height: 100%; }
.gl-i { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: center; }
.gl-i.cc { padding: .45em; }
.gl-img { height: 62%; flex: none; background: var(--card) center / cover no-repeat; border-radius: var(--rad, 0); }
.gl-img.off0 { box-shadow: .4em .4em 0 var(--accent); } .gl-img.off1 { box-shadow: .4em .4em 0 var(--accent2); }
.gl-l { font-weight: 700; font-family: var(--tf); font-size: .78em; margin-top: .7em; }
.gl-t { color: var(--muted); font-size: .6em; margin-top: .2em; line-height: 1.3; }

/* --- bosh sahifa (boshqaruv paneli) --- */
#v-home { padding-top: 34px; }
.home-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 34px 38px; border-radius: 26px;
  background: radial-gradient(600px 300px at 90% 10%, #EDE9FE 0%, transparent 70%), linear-gradient(135deg, #F7F7FF, #FFFFFF); border: 1px solid #ECEBFA; overflow: hidden; }
.home-hero h1 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.035em; margin: 12px 0 12px; }
.home-hero .q { color: var(--ui-muted); font-size: 16px; margin: 0 0 22px; max-width: 520px; }
.hh-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.hh-art { position: relative; height: 270px; }
.ha { position: absolute; width: 62%; border-radius: 12px; overflow: hidden; box-shadow: 0 18px 40px rgba(30, 27, 75, .18); transition: transform .3s; }
.ha .sframe { border-radius: 12px; }
.ha0 { left: 0; top: 10px; transform: rotate(-5deg); z-index: 1; }
.ha1 { right: 0; top: 0; transform: rotate(4deg); z-index: 2; }
.ha2 { left: 18%; bottom: 0; z-index: 3; }
.home-hero:hover .ha0 { transform: rotate(-7deg) translateX(-6px); } .home-hero:hover .ha1 { transform: rotate(6deg) translateX(6px); }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.qk { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 18px; border-radius: 18px; border: 1px solid var(--ui-border);
  background: #fff; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.qk:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(16, 24, 40, .08); border-color: #D9D7F7; }
.qk b { font-size: 15px; margin-top: 8px; }
.qk > span:last-child { color: var(--ui-muted); font-size: 13px; }
.qk-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; }
.qk-ic .ico { width: 21px; height: 21px; }
.qk-ic.c1 { background: #EEF0FF; color: #4F46E5; } .qk-ic.c2 { background: #ECFDF3; color: #16A34A; }
.qk-ic.c3 { background: #FFF4E5; color: #D97706; } .qk-ic.c4 { background: #FDF2F8; color: #DB2777; }
.home-sec { margin-top: 36px; }
.link { display: inline-flex; align-items: center; gap: 4px; color: #4F46E5; font-weight: 600; font-size: 14px; text-decoration: none; }
.link .ico { width: 15px; height: 15px; }
.recent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.rc { display: flex; flex-direction: column; text-align: left; padding: 6px; border-radius: 14px; border: 1px solid var(--ui-border); background: #fff; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.rc:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16, 24, 40, .08); }
.rc-thumb { aspect-ratio: 16/9; border-radius: 9px; overflow: hidden; background: #F1F2F7; display: grid; place-items: center; color: #A3A8BA; }
.rc-thumb .sframe { pointer-events: none; width: 100%; }
.rc-txt { padding: 9px 6px 5px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rc-txt b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-txt span { font-size: 12.5px; color: var(--ui-muted); display: flex; align-items: center; gap: 6px; }
.rc-new { align-items: center; justify-content: center; gap: 8px; border-style: dashed; color: #6B7285; min-height: 150px; }
.rc-new .ico { width: 26px; height: 26px; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.feat { background: #fff; border: 1px solid var(--ui-border); border-radius: 18px; padding: 18px; }
.feat b { display: block; font-size: 15px; margin: 10px 0 4px; }
.feat p { margin: 0; color: var(--ui-muted); font-size: 13.5px; line-height: 1.5; }
.ft-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, #EEF0FF, #F5EBFF); color: #6D28D9; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: how; }
.how-i { background: #fff; border: 1px solid var(--ui-border); border-radius: 18px; padding: 18px; }
.how-i b { display: block; margin: 10px 0 4px; }
.how-i p { margin: 0; color: var(--ui-muted); font-size: 13.5px; }
.how-n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #4F46E5, #7C3AED); }
@media (max-width: 1000px) { .home-hero { grid-template-columns: 1fr; } .hh-art { display: none; } .quick { grid-template-columns: 1fr 1fr; } .how { grid-template-columns: 1fr; } }

/* --- yaratish sahifasi: tanlangan dizayn --- */
#v-create { padding-top: 9vh; }
.chosen { max-width: 920px; margin: 22px auto 0; display: flex; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid var(--ui-border); border-radius: 16px; background: #fff; }
.ch-thumb { width: 120px; flex: none; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.ch-thumb .tplimg, .pb-thumb .tplimg { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.ch-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ch-txt .hint { font-size: 12px; }

/* --- dizaynlar sahifasi: pastdagi "davom etish" paneli --- */
#v-designs { padding-bottom: 120px; }
.pick-bar { position: fixed; bottom: 18px; left: calc(264px + (100vw - 264px) / 2); transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid #E3E4F3; border-radius: 18px; padding: 10px 10px 10px 12px; box-shadow: 0 16px 48px rgba(30, 27, 75, .18); width: min(640px, calc(100vw - 300px)); }
.side.mini ~ .main .pick-bar { left: calc(72px + (100vw - 72px) / 2); }
.pb-thumb { width: 104px; flex: none; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.pb-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pb-txt .hint { font-size: 12px; }
.pb-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#pbGo .ico { width: 18px; height: 18px; }
@media (max-width: 900px) { .pick-bar { left: 50%; width: calc(100vw - 24px); } .pick-bar .btn span { display: none; } }

/* --- jonli generatsiya --- */
.genbar { background: linear-gradient(90deg, #F5F3FF, #FFFFFF); border-color: #DDD8FB; display: flex; align-items: center; gap: 16px; }
.genbar.hidden { display: none !important; }
.genbar .gb-main { flex: 1; min-width: 0; }
.genbar .genbar-txt { margin-bottom: 8px; }
.genbar #genStop { flex: none; align-self: center; }
.genbar-txt span .ico, .genbar-txt .ico { color: #7C3AED; }
.spin-soft { animation: pulse 1.4s ease-in-out infinite; }
.progress { height: 5px; }
.progress i { background: linear-gradient(90deg, #6366F1, #A855F7); }
.progress.indet { position: relative; }
.progress.indet i { position: absolute; width: 35% !important; animation: indet 1.3s ease-in-out infinite; }
@keyframes indet { 0% { left: -35%; } 100% { left: 100%; } }
/* yaltirash — slayd ustidagi alohida qatlamda (slaydning o'z foniga, masalan shablon rasmiga tegmaydi) */
.thumb .pending::after, .frame-wrap .pending::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* --- chap menyudagi generatsiya kartasi (har qanday sahifada ko'rinadi) --- */
.side-gen { width: 100%; text-align: left; border: 1px solid #DDD8FB; background: linear-gradient(135deg, #F5F3FF, #FFFFFF); border-radius: 14px;
  padding: 10px 12px; margin-bottom: 8px; cursor: pointer; display: flex; flex-direction: column; gap: 5px; }
.side-gen:hover { border-color: #B9B6F7; }
.sg-top { display: flex; align-items: center; gap: 7px; min-width: 0; }
.sg-top .ico { width: 15px; height: 15px; color: #7C3AED; flex: none; }
.sg-top b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-txt { font-size: 12px; color: #4F46E5; font-weight: 600; }
.side-gen .progress { height: 4px; }
.side.mini .side-gen { padding: 8px; align-items: center; }
.side.mini .side-gen .sg-top b, .side.mini .side-gen .sg-txt { display: none; }
/* galereyada rasm topilmasa — chiroyli bo'sh joy */
.gl-img.empty { display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 8%, var(--bg)); box-shadow: none; color: color-mix(in srgb, var(--accent) 45%, var(--bg)); }
.gl-img.empty .ico { width: 2.2em; height: 2.2em; }

/* --- tasdiqlash oynasi --- */
.dlg { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(17, 20, 35, .42); backdrop-filter: blur(3px); padding: 16px; animation: fadeIn .12s ease-out; }
.dlg-box { width: min(420px, 100%); background: #fff; border-radius: 20px; padding: 24px; box-shadow: 0 24px 64px rgba(17, 20, 35, .28); text-align: center; animation: popIn .16s ease-out; }
.dlg-ic { width: 52px; height: 52px; border-radius: 16px; margin: 0 auto 14px; display: grid; place-items: center; background: #FEF2F2; color: #DC2626; }
.dlg-ic.info { background: #EEF0FF; color: #4F46E5; }
.dlg-ic .ico { width: 26px; height: 26px; }
.dlg-box h3 { margin: 0 0 6px; font-size: 18px; }
.dlg-box p { margin: 0 0 20px; color: var(--ui-muted); font-size: 14.5px; }
.dlg-box input { margin-bottom: 18px; }
.dlg-btns { display: flex; gap: 10px; }
.dlg-btns .btn { flex: 1; justify-content: center; padding: 11px; }
.btn.danger { background: #DC2626; border-color: #DC2626; color: #fff; box-shadow: 0 4px 14px rgba(220, 38, 38, .25); }
.btn.danger:hover { background: #C81E1E; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(.94) translateY(6px); } }
.toast { border-radius: 12px; padding: 11px 18px; background: #1F2333; }
.plain2 .col { background: none; border: 0; padding: 0; font-size: 1em; }
.plain2 .col h3 { color: inherit; font: inherit; font-weight: 700; margin-bottom: .3em; }
.b-list.sub { font-size: .85em; padding-left: 1.1em; }
.b-list.sub li::before { content: '–'; }

/* aniq ko'rinish oynasi */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(10, 12, 20, .72); display: grid; place-items: center; padding: 20px; }
.modal-box { background: var(--ui-card); border-radius: 16px; width: min(1200px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; overflow: hidden; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--ui-border); }
.modal-body { overflow-y: auto; padding: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.modal-box.narrow { width: min(760px, 100%); }
.style-form { display: grid; grid-template-columns: 240px 1fr; gap: 20px; padding: 6px 18px 20px; overflow-y: auto; }
.sf-src img { width: 100%; border-radius: 10px; display: block; margin-top: 16px; }
.sf-colors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sf-colors label { display: flex; align-items: center; gap: 8px; font-size: 13px; background: var(--ui-bg); border: 1px solid var(--ui-border); border-radius: 9px; padding: 5px 8px; cursor: pointer; }
.sf-colors input { width: 28px; height: 28px; border: 0; padding: 0; background: none; cursor: pointer; }
.sf-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 12px; font-size: 14px; }
.sf-checks label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.sf-checks input { accent-color: var(--ui-accent); width: 16px; height: 16px; }
@media (max-width: 640px) { .style-form { grid-template-columns: 1fr; } .sf-colors { grid-template-columns: 1fr 1fr; } }
.modal-body img { width: 100%; display: block; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.15); }

.pending .skel i { display: block; height: 1.1em; background: var(--card); border-radius: .3em; margin-bottom: 1em; animation: pulse 1.2s ease-in-out infinite; }
.pending .skel i:nth-child(1) { width: 82%; } .pending .skel i:nth-child(2) { width: 68%; }
.pending .skel i:nth-child(3) { width: 75%; } .pending .skel i:nth-child(4) { width: 52%; }
.gen-badge { position: absolute; right: 3cqw; top: 3cqw; font-size: 1.2cqw; background: var(--accent); color: var(--bg); padding: .4cqw 1.1cqw; border-radius: 2cqw; font-weight: 600; }
@keyframes pulse { 50% { opacity: .45; } }

/* rasmdan uslub + FLUX Kontext toza fon */
.fam-bg { padding: 0 !important; }
.fam-bg .bgtx { justify-content: center; gap: 1.2cqw; font-family: var(--bf); }
.fam-bg .bgtx h1 { font: 700 5.8cqw/1.08 var(--tf); color: var(--text); margin: 0; max-height: none; }
.fam-bg.t-section .bgtx h1, .fam-bg.t-conclusion .bgtx h1 { font-size: 5cqw; }
.fam-bg .bgtx p { font-size: 2cqw; line-height: 1.35; color: var(--accent); margin: 0; }
.fam-bg .bgb { justify-content: flex-start; gap: .35em; line-height: 1.2; }
.fam-bg .bgb h1 { font: inherit; font-family: var(--tf); font-weight: 700; margin: 0; line-height: 1.08; }
.fam-bg .bgb p { margin: 0; font-family: var(--bf); }
.fam-bg .bgn { font-family: var(--tf); font-weight: 800; line-height: 1; justify-content: center; white-space: nowrap; }

/* slayd qo'shish: AI va bo'sh — yonma-yon */
.add-row { display: flex; gap: 6px; width: calc(100% - 24px); margin-left: 24px; aspect-ratio: 16 / 9; flex: none; box-sizing: border-box; }
.add-row .add-slide { flex: 1 1 0; width: auto; min-width: 0; margin: 0; aspect-ratio: auto; height: 100%; font-size: 11.5px; line-height: 1.2; padding: 4px 2px; }
.add-row #addSlide { color: var(--ui-accent); border-color: color-mix(in srgb, var(--ui-accent) 45%, transparent); }
.add-row .add-slide .ico { width: 18px; height: 18px; }
@media (max-width: 820px) { .add-row { width: 190px; margin-left: 0; } }
.fam-bg .bgpanel { background: rgba(255,255,255,.94); border-radius: 1.2cqw; box-shadow: 0 .5cqw 2cqw rgba(30,20,25,.10); }
.fam-bg .bgpanel.dk { background: rgba(18,18,24,.86); }
.fam-bg .gbox.gb { font-size: 2.1cqw; color: var(--text); }

/* rasmdan shablon: kontent slaydi — shablon ramkasi ustida shu uslubdagi kartochkalar */
.fam-bg .bgbody { --shd: 0 .4cqw 1.6cqw rgba(40,20,25,.13); justify-content: center; }
.fam-bg .bgbody .b-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6cqw; counter-reset: bgi; margin: 0; padding: 0; }
.fam-bg .bgbody .b-list li { counter-increment: bgi; background: var(--card); border-radius: 1.2cqw; box-shadow: var(--shd);
  padding: 1.5cqw 1.8cqw; margin: 0; display: flex; align-items: center; gap: 1.3cqw; line-height: 1.25; }
.fam-bg .bgbody .b-list li::before { content: counter(bgi, decimal-leading-zero); flex: none; width: 3.6cqw; height: 3.6cqw; border-radius: 50%;
  background: var(--accent); color: #fff; font: 700 1.5cqw/3.6cqw var(--tf); text-align: center; margin: 0; }
.fam-bg .bgbody .b-list:has(li:nth-child(5)) { display: block; background: var(--card); border-radius: 1.2cqw; box-shadow: var(--shd); padding: 2cqw 2.4cqw; }
.fam-bg .bgbody .b-list:has(li:nth-child(5)) li { background: none; box-shadow: none; padding: .45cqw 0; }
.fam-bg .bgbody .b-list:has(li:nth-child(5)) li::before { content: ''; width: .8cqw; height: .8cqw; }
.fam-bg .bgbody ol.ag li { background: var(--card); border-radius: 1.2cqw; box-shadow: var(--shd); padding: 1.1cqw 1.5cqw; }
.fam-bg .bgbody .tl, .fam-bg .bgbody .qt, .fam-bg .bgbody .chart { background: var(--card); border-radius: 1.2cqw; box-shadow: var(--shd); padding: 2cqw; }
.fam-bg .bgbody .st-c, .fam-bg .bgbody .col, .fam-bg .bgbody .ccard { background: var(--card); border-radius: 1.2cqw; box-shadow: var(--shd); }
.help-faq details { border-top: 1px solid var(--ui-border); padding: 10px 0; }
.help-faq details:first-of-type { border-top: 0; }
.help-faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.help-faq summary::-webkit-details-marker { display: none; }
.help-faq summary::after { content: '+'; color: var(--ui-muted); font-weight: 400; }
.help-faq details[open] summary::after { content: '−'; }
.help-faq details p { margin: 8px 0 0; color: var(--ui-muted); font-size: 14px; line-height: 1.5; }
.help-contact .btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.help-contact .btn { text-decoration: none; }
.btn.tg { background: #229ED9; color: #fff; border-color: #229ED9; }
.btn.tg:hover { background: #1C8CC2; }
/* obuna */
.pl-tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.pl-tab { border: 0; background: none; padding: 9px 16px; border-radius: 10px; font: inherit; color: var(--ui-muted); cursor: pointer; }
.pl-tab.on { background: #fff; color: var(--ui-text, #1d1d2b); border: 1px solid var(--ui-border); font-weight: 600; }
.pl-card { background: #fff; border: 1px solid var(--ui-border); border-radius: 18px; padding: 20px 22px; margin-bottom: 16px; }
.pl-card h3 { font-size: 20px; margin: 0 0 4px; }
.pl-card .progress { margin-top: 12px; max-width: 420px; }
.pl-banner { background: linear-gradient(120deg, #17162a, #2b2559); color: #fff; border-radius: 18px; padding: 24px 26px; margin-bottom: 16px; }
.pl-banner h3 { font-size: 22px; margin: 0 0 6px; }
.pl-banner p { margin: 0; opacity: .8; }
.pl-promo-row { display: flex; gap: 10px; margin-top: 10px; }
.pl-promo-row .inp { flex: 1; min-width: 0; border: 1px solid var(--ui-border); border-radius: 10px; padding: 10px 14px; font: inherit; }
.pl-promo-row .inp:not(:placeholder-shown) { text-transform: uppercase; }
.pl-h { font-size: 22px; margin: 26px 0 14px; }
.pl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pl-plan { position: relative; background: #fff; border: 1px solid var(--ui-border); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.pl-plan.best { border: 2px solid var(--ui-accent); }
.pl-best { position: absolute; top: -12px; right: 18px; background: var(--ui-accent); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; }
.pl-name { color: var(--ui-muted); font-weight: 600; }
.pl-desc { font-size: 13px; color: var(--ui-muted); min-height: 34px; }
.pl-price { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 4px; }
.pl-price b { font-size: 28px; letter-spacing: -.02em; }
.pl-price span { color: var(--ui-muted); }
.pl-plan ul { list-style: none; padding: 0; margin: 6px 0 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.pl-plan li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.pl-plan li.b { font-weight: 600; }
.pl-plan li svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--ui-accent); }
.btn.dark { background: #1f1d33; color: #fff; border-color: #1f1d33; justify-content: center; }
.pl-plan .btn { justify-content: center; padding: 12px; }
.pl-table { width: 100%; border-collapse: collapse; }
.pl-table th, .pl-table td { text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--ui-border); font-size: 14px; }
@media (max-width: 900px) { .pl-grid { grid-template-columns: 1fr; } .pl-promo-row { flex-direction: column; } }
.pl-once { font-size: 12.5px; color: var(--ui-muted); margin-top: -4px; }
.tag.pro { background: #1f1d33; display: inline-flex; align-items: center; gap: 4px; }
.tag.pro svg, .pro-badge svg { width: 11px; height: 11px; }
.pro-badge { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; font-size: 11px; font-weight: 600; color: #fff; background: var(--ui-accent); padding: 1px 7px; border-radius: 99px; vertical-align: middle; }
/* "Yaratish" sahifasidagi dizaynlar */
.create-designs { margin-top: 26px; }
#designs.in-create .page-head h2 { font-size: 20px; }
#designs.in-create .page-head .hint { display: none; }
/* akkaunt */
.acct { margin-bottom: 8px; }
.acct-in { width: 100%; justify-content: center; }
.acct-me { width: 100%; display: flex; align-items: center; gap: 10px; border: 1px solid var(--ui-border); background: var(--ui-card, #fff); border-radius: 14px; padding: 8px 10px; cursor: pointer; text-align: left; font: inherit; }
.acct-me:hover { border-color: var(--ui-accent); }
.acct-av { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--ui-accent); color: #fff; font-weight: 700; }
.acct-av img { width: 100%; height: 100%; object-fit: cover; }
.acct-t { display: flex; flex-direction: column; min-width: 0; }
.acct-t b, .acct-t small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-t small { color: var(--ui-muted); font-size: 11.5px; }
.side.mini .acct-me { padding: 6px; justify-content: center; }
.dlg.login h3 { margin: 0 0 6px; font-size: 20px; }
.login-btns { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 18px 0 6px; min-height: 44px; }
/* tanlangan slayd — aniq ko'rinsin */
.thumb .sframe { transition: outline-color .15s, box-shadow .15s, transform .15s; }
.thumb.on .sframe { outline: 3px solid var(--ui-accent); outline-offset: 3px; box-shadow: 0 0 0 7px color-mix(in srgb, var(--ui-accent) 18%, transparent), 0 10px 24px rgba(79, 70, 229, .25); transform: scale(1.015); }
.thumb.on .tn { color: #fff; background: var(--ui-accent); border-radius: 99px; font-weight: 700; text-align: center; padding: 1px 0; margin-top: 2px; }
.thumb:not(.on):hover .sframe { outline-color: color-mix(in srgb, var(--ui-accent) 40%, transparent); }
.thumb:not(.on) .sframe { opacity: .92; }
/* e'lon */
.announce { background: linear-gradient(90deg, #4F46E5, #7C3AED); color: #fff; text-align: center; padding: 9px 16px; font-size: 14px; font-weight: 500; }
/* profil */
.prof-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.prof-grid .pl-card { margin: 0; }
.prof-main { grid-column: 1 / -1; display: flex; gap: 20px; align-items: center; }
.prof-av { width: 72px; height: 72px; font-size: 28px; }
.prof-fields { flex: 1; min-width: 0; }
.prof-l { display: block; font-size: 13px; color: var(--ui-muted); font-weight: 600; }
.prof-row { display: flex; gap: 10px; margin: 6px 0 8px; }
.prof-row .inp, .adm-tools .inp { flex: 1; min-width: 0; border: 1px solid var(--ui-border); border-radius: 10px; padding: 9px 12px; font: inherit; }
.prof-m { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--ui-border); }
.badge.ok { background: #DCFCE7; color: #166534; }
.badge.bad { background: #FEE2E2; color: #991B1B; }
.prof-danger .btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.prof-empty .btn { margin-top: 10px; }
@media (max-width: 900px) { .prof-grid { grid-template-columns: 1fr; } .prof-main { flex-direction: column; align-items: flex-start; } }
/* admin */
.adm-tabs { flex-wrap: wrap; }
.adm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.adm-stat { background: #fff; border: 1px solid var(--ui-border); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.adm-stat b { font-size: 24px; letter-spacing: -.02em; }
.adm-stat span { color: var(--ui-muted); font-size: 13px; font-weight: 600; }
.adm-stat small { color: var(--ui-muted); font-size: 12px; }
.adm-plans { display: flex; gap: 22px; flex-wrap: wrap; } .adm-plans b { font-size: 20px; }
.adm-chart { display: flex; align-items: flex-end; gap: 8px; height: 160px; padding-top: 10px; }
.adm-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.adm-bar i { width: 100%; min-height: 2px; background: var(--ui-accent); border-radius: 6px 6px 2px 2px; }
.adm-bar span { font-size: 11px; color: var(--ui-muted); }
.adm-tools { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.adm-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--ui-border); border-radius: 16px; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.adm-table th { text-align: left; font-size: 12px; color: var(--ui-muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--ui-border); white-space: nowrap; }
.adm-table td { padding: 10px 12px; border-bottom: 1px solid var(--ui-border); vertical-align: middle; }
.adm-table td small { display: block; color: var(--ui-muted); font-size: 11.5px; }
.adm-table tr.blk { background: #FFF5F5; }
.adm-u { display: flex; gap: 10px; align-items: center; }
.acct-av.sm { width: 30px; height: 30px; font-size: 13px; }
.adm-act { white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.adm-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.adm-tpl { background: #fff; border: 1px solid var(--ui-border); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.adm-tpl img, .adm-noimg { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #F1F2F6; }
.adm-tpl b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-tpl small { color: var(--ui-muted); font-size: 12px; }
.adm-plan-row { display: grid; grid-template-columns: 70px 1fr 1fr; gap: 10px; align-items: end; padding: 8px 0; }
.adm-plan-row label { font-size: 12px; color: var(--ui-muted); display: flex; flex-direction: column; gap: 4px; }
.adm-in { border: 1px solid var(--ui-border); border-radius: 10px; padding: 8px 10px; font: inherit; width: 100%; box-sizing: border-box; }
.set-row .adm-in { max-width: 220px; }
.set-row input.switch.adm-in { width: auto; max-width: none; padding: 0; }
.adm-sys { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; } .adm-sys span { display: inline-flex; gap: 6px; align-items: center; }
.adm-save { position: sticky; bottom: 12px; display: flex; justify-content: flex-end; margin-top: 16px; }
@media (max-width: 1100px) { .adm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#sNotes { resize: none; overflow-y: auto; min-height: 84px; }
.linklike { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; display: inline-flex; gap: 8px; align-items: center; }
.linklike:hover b, button.linklike:hover { color: var(--ui-accent); }
.adm-u.linklike span small { display: block; }
.acct-av.xs { width: 22px; height: 22px; font-size: 11px; }
.adm-tools .sel.small { max-width: 180px; }
.adm-tpl.off { opacity: .55; }
.adm-tpl-img { position: relative; }
.adm-tpl-own { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.adm-tpl-act { display: flex; gap: 6px; margin-top: 4px; }
.adm-tpl-act .btn { text-decoration: none; }
.adm-upl h3 { display: flex; gap: 8px; align-items: center; }
.adm-upl-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.adm-upl-row .inp { border: 1px solid var(--ui-border); border-radius: 10px; padding: 8px 12px; font: inherit; min-width: 200px; }
.adm-plan-row { grid-template-columns: 70px 1fr 1fr 80px; }
.adm-plan-row .adm-desc { grid-column: 2 / -1; }
.adm-hide { align-items: flex-start; }
.dlg-box.big { width: min(860px, 100%); max-height: 88vh; overflow-y: auto; text-align: left; position: relative; }
.dlg-x { position: absolute; top: 14px; right: 14px; }
.dlg-box.big h4 { margin: 18px 0 8px; font-size: 15px; }
.dlg-box.big .prof-l { margin-top: 12px; }
.uc-head { display: flex; gap: 16px; align-items: center; }
.uc-head .acct-av { width: 60px; height: 60px; font-size: 24px; }
.uc-head h3 { margin: 0 0 4px; }
.uc-head .hint { margin: 2px 0; }
.uc-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 16px; }
.uc-stats div { background: #F7F7FB; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.uc-stats b { font-size: 18px; } .uc-stats span { font-size: 12px; color: var(--ui-muted); }
.uc-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.uc-tpls img { width: 100%; border-radius: 8px; aspect-ratio: 16 / 9; object-fit: cover; }
.uc-ev { max-height: 220px; overflow-y: auto; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.uc-ev small { color: var(--ui-muted); margin-right: 6px; }
@media (max-width: 700px) { .uc-stats { grid-template-columns: repeat(2, 1fr); } }
/* logo */
.logo-img { width: 32px; height: 32px; border-radius: 10px; flex: none; box-shadow: 0 4px 12px rgba(99, 102, 241, .3); }
.logo-txt { font-weight: 800; font-size: 19px; letter-spacing: -.03em; color: #15151F; }
.logo-txt em { font-style: normal; color: #6D4AEA; }
.side.mini .logo-txt { display: none; }
/* footer */
.site-foot { margin: 48px 28px 0; padding: 32px 4px 22px; border-top: 1px solid var(--ui-border); color: var(--ui-muted); font-size: 14px; }
body.ed-mode .site-foot { display: none; }
.sf-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.sf-brand p { margin: 12px 0 0; max-width: 380px; line-height: 1.55; }
.sf-col { display: flex; flex-direction: column; gap: 9px; }
.sf-col b { color: var(--ui-text, #15151F); font-size: 14px; margin-bottom: 2px; }
.sf-col a { color: var(--ui-muted); text-decoration: none; }
.sf-col a:hover { color: var(--ui-accent); }
.sf-bot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--ui-border); font-size: 13px; }
@media (max-width: 760px) { .sf-top { grid-template-columns: 1fr 1fr; } .sf-brand { grid-column: 1 / -1; } .site-foot { margin: 36px 16px 0; } }
/* footer doim eng pastda */
.main { display: flex; flex-direction: column; }
.main > .view:not(.hidden) { flex: 1 0 auto; width: 100%; box-sizing: border-box; }
.side-spacer { flex: 1; }
/* admin: shablon kartochkasi tugmalari */
.adm-tpls { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.adm-tpl { min-width: 0; overflow: hidden; }
.adm-tpl-act { display: grid; grid-template-columns: 36px 1fr 36px; gap: 6px; align-items: center; margin-top: auto; padding-top: 6px; }
.adm-tpl-act .btn { height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; min-width: 0; box-sizing: border-box; }
.adm-tpl-act .btn .ico, .adm-tpl-act .btn svg { width: 16px; height: 16px; flex: none; }
.adm-tpl-act > a.btn, .adm-tpl-act > .btn.danger-soft { width: 36px; padding: 0; }
.adm-tpl-img .tag { max-width: calc(100% - 18px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-upl-row { display: grid; grid-template-columns: minmax(200px, 1.2fr) minmax(180px, 1fr) auto auto; gap: 10px; align-items: center; }
.adm-file { cursor: pointer; justify-content: flex-start; overflow: hidden; border-style: dashed; height: 40px; box-sizing: border-box; }
.adm-file span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-upl-row .inp, .adm-upl-row .sel, .adm-upl-row .btn.primary { height: 40px; box-sizing: border-box; min-width: 0; }
@media (max-width: 900px) { .adm-upl-row { grid-template-columns: 1fr; } }
.acct-q { display: block; text-align: center; color: var(--ui-muted); font-size: 12px; margin-top: 6px; }
/* avatar atrofidagi slaydlar halqasi (stories kabi) */
@property --p { syntax: '<percentage>'; inherits: true; initial-value: 100%; }
.acct-ring { --p: 100%; position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(#4F5BEA 0%, #7B4BEA calc(var(--p) * .55), #C04BD8 var(--p), #E4E4EE var(--p) 100%);
  transition: --p .8s ease; }
.acct-ring::before { content: ""; position: absolute; inset: 2.5px; border-radius: 50%; background: var(--ui-card, #fff); }
.acct-ring .acct-av { position: relative; width: 32px; height: 32px; }
/* TOP taqdimotlar */
.top-cats { margin: 4px 0 16px; flex-wrap: wrap; }
.top-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.top-card { all: unset; cursor: pointer; background: #fff; border: 1px solid var(--ui-border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.top-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(16, 24, 40, .1); }
.top-img { position: relative; aspect-ratio: 16 / 9; background: #F1F2F6; }
.top-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.top-price { position: absolute; right: 10px; bottom: 10px; background: rgba(17, 17, 30, .82); color: #fff; font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 99px; }
.top-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.top-body b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.top-body small { color: var(--ui-muted); font-size: 12px; }
.top-meta { display: flex; gap: 12px; align-items: center; color: var(--ui-muted); font-size: 13px; flex-wrap: wrap; }
.top-meta span { display: inline-flex; gap: 4px; align-items: center; }
.top-meta svg { width: 14px; height: 14px; }
.top-au { color: var(--ui-text, #15151F); font-weight: 600; gap: 6px !important; margin-right: auto; min-width: 0; }
.top-detail { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; }
.top-main img { width: 100%; border-radius: 12px; display: block; aspect-ratio: 16 / 9; object-fit: contain; background: #F1F2F6; }
.top-thumbs { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; padding-bottom: 4px; }
.top-thumbs img { width: 96px; border-radius: 6px; cursor: pointer; opacity: .6; outline: 2px solid transparent; }
.top-thumbs img.on { opacity: 1; outline-color: var(--ui-accent); }
.top-info h3 { margin: 4px 0 10px; font-size: 22px; }
.top-desc { line-height: 1.6; white-space: pre-line; }
.top-buy { margin: 16px 0 10px; }
.btn.big { padding: 13px 20px; font-size: 15px; width: 100%; justify-content: center; }
.top-ord { background: #F5F3FF; border-radius: 12px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
@media (max-width: 800px) { .top-detail { grid-template-columns: 1fr; } }
/* profil: sotuvlar va xabarlar */
.prof-market { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.prof-market .pl-card { margin: 0; }
.prof-market h3 { display: flex; gap: 8px; align-items: center; }
.prof-market h3 svg { width: 18px; height: 18px; }
.mm-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.mm-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.mm-i { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; align-items: center; border: 1px solid var(--ui-border); border-radius: 12px; padding: 10px; }
.mm-img img, .mm-img .adm-noimg { width: 120px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; }
.mm-b small { display: flex; gap: 8px; align-items: center; color: var(--ui-muted); margin-top: 4px; flex-wrap: wrap; }
.mm-b small svg { width: 13px; height: 13px; }
.mm-b .warn, .mm-msg { margin: 6px 0 0; font-size: 13px; }
.mm-msg { color: #4338CA; }
.mm-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.mm-ord { padding: 8px 0; border-bottom: 1px solid var(--ui-border); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mm-ord small { color: var(--ui-muted); width: 100%; }
.badge.warn { background: #FEF3C7; color: #92400E; }
.notes { display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow-y: auto; }
.note { border-left: 3px solid var(--ui-border); padding: 4px 10px; }
.note.new { border-color: var(--ui-accent); background: #F7F5FF; border-radius: 0 8px 8px 0; }
.note small { color: var(--ui-muted); font-size: 11.5px; }
.note p { margin: 2px 0 0; font-size: 14px; line-height: 1.45; }
.acct-badge { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: #EF4444; color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; z-index: 2; }
@media (max-width: 700px) { .mm-i { grid-template-columns: 1fr; } .mm-img img { width: 100%; } }
/* admin: moderatsiya */
.adm-sub { margin-bottom: 14px; flex-wrap: wrap; }
.mod .mod-gal { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.mod .mod-gal img { height: 96px; border-radius: 6px; cursor: zoom-in; flex: none; }
.mod-row { margin: 10px 0; } .mod-who { display: flex; flex-direction: column; gap: 4px; } .mod-who small { color: var(--ui-muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .mod-who svg { width: 13px; height: 13px; }
.mod-f { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
.mod-f .mod-wide { grid-column: 1 / -1; }
.mod-act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
@media (max-width: 800px) { .mod-f { grid-template-columns: 1fr; } }
/* toj (o'rin) */
.crown { position: absolute; left: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(17, 17, 30, .78); display: grid; place-items: center; }
.crown svg { width: 20px; height: 20px; }
.crown b { position: absolute; bottom: -3px; right: -3px; background: #fff; color: #15151F; font-size: 10px; width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; }
/* chap menyu: TOP 5 */
.side-top5 { margin: 10px 4px 0; padding: 10px 6px 4px; border-top: 1px solid var(--ui-border); }
.side-top5 .side-h { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ui-muted); margin: 0 6px 6px; }
.st-i { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 6px; border-radius: 9px; cursor: pointer; font-size: 13px; }
.st-i:hover { background: var(--ui-soft, #F3F2FF); }
.st-n { position: relative; width: 24px; height: 24px; display: grid; place-items: center; color: var(--ui-muted); }
.st-n .crown { position: static; width: 24px; height: 24px; background: none; }
.st-n .crown svg { width: 20px; height: 20px; } .st-n .crown b { display: none; }
.st-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-p { font-size: 11.5px; font-weight: 700; color: var(--ui-accent); white-space: nowrap; }
.st-all { display: block; font-size: 12.5px; color: var(--ui-accent); text-decoration: none; padding: 6px; font-weight: 600; }
/* hisob-kitob */
.sl-calc { background: #F7F7FB; border-radius: 12px; padding: 10px 14px; margin: 12px 0 4px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.sl-calc div { display: flex; justify-content: space-between; gap: 10px; }
.sl-calc span { color: var(--ui-muted); }
.sl-calc .you { border-top: 1px dashed var(--ui-border); padding-top: 6px; } .sl-calc .you b { color: #15803D; font-size: 16px; }
.sl-calc .sm { font-size: 12.5px; }
.sl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* balans */
.bal-card { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.bal-main b { display: block; font-size: 30px; letter-spacing: -.02em; margin: 2px 0; }
.bal-main small { color: var(--ui-muted); }
.bal-act { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.wd-list { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--ui-border); padding-top: 10px; font-size: 13.5px; }
.wd-list small { color: var(--ui-muted); margin-left: 8px; }
.card-no { font-size: 13px; background: #F3F4F6; padding: 2px 6px; border-radius: 6px; user-select: all; }
/* footer: butun kenglikda, sahifaning eng pastida (menyu tepada qoladi) */
.site-foot { margin: 0; padding: 40px max(28px, calc((100vw - 1400px) / 2)) 24px; background: #fff; border-top: 1px solid var(--ui-border); position: relative; z-index: 5; }
.sf-top { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
.legal { display: flex; flex-direction: column; gap: 16px; }
.legal .pl-card { margin: 0; scroll-margin-top: 20px; }
.legal ul { margin: 8px 0 0; padding-left: 20px; line-height: 1.65; }
.legal-nav { margin-bottom: 16px; flex-wrap: wrap; } .legal-nav a { text-decoration: none; }
@media (max-width: 760px) { .sf-top { grid-template-columns: 1fr 1fr; } }
.adm-tpl-act a.btn, .adm-tpl-act a.btn:visited { color: var(--ui-text, #15151F); }
.adm-tpl-act .btn, .mod-act .btn, .adm-act .btn, .mm-act .btn { margin: 0; }
/* slayd raqami: tekis doira, slayddan ajralgan */
.thumb { grid-template-columns: 24px 1fr; gap: 10px; }
.thumb .tn { width: 24px; height: 24px; box-sizing: border-box; display: grid; place-items: center; padding: 0; margin-top: 4px; text-align: center; font-variant-numeric: tabular-nums; font-size: 12px; line-height: 1; border-radius: 50%; }
.thumb.on .tn { width: 24px; height: 24px; padding: 0; margin-top: 4px; border-radius: 50%; background: var(--ui-accent); color: #fff; font-weight: 700; box-shadow: 0 2px 6px rgba(79, 70, 229, .35); }
/* slayd qo'shish tugmalari: ustma-ust, eni slayd bilan bir xil, balandligi slaydning yarmi */
.add-row { flex-direction: column; gap: 8px; width: calc(100% - 34px); margin-left: 34px; aspect-ratio: auto; }
.add-row .add-slide { width: 100%; height: auto; aspect-ratio: 32 / 9; flex: none; flex-direction: row; gap: 8px; font-size: 13px; font-weight: 600; padding: 0 10px; border-radius: 8px; }
.add-row .add-slide .ico, .add-row .add-slide svg { width: 18px; height: 18px; }
@media (max-width: 820px) { .add-row { width: 150px; margin-left: 0; flex: none; } }
/* TOP filtrlari */
.top-filters { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.top-search { flex: 1 1 280px; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--ui-border); border-radius: 14px; padding: 4px; gap: 2px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); flex-wrap: wrap; }
.seg button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ui-muted); transition: background .15s, color .15s; }
.seg button svg { width: 15px; height: 15px; }
.seg button:hover { color: var(--ui-text, #15151F); background: #F5F5FA; }
.seg button.on { background: linear-gradient(135deg, #4F5BEA, #7B4BEA); color: #fff; box-shadow: 0 4px 12px rgba(91, 75, 234, .3); }
.top-cats { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 8px; scrollbar-width: thin; }
.cat { all: unset; cursor: pointer; white-space: nowrap; padding: 7px 14px; border-radius: 99px; font-size: 13.5px; font-weight: 500; color: var(--ui-muted); background: #F3F3F8; transition: all .15s; }
.cat:hover { background: #EAE8FB; color: var(--ui-accent); }
.cat.on { background: #15151F; color: #fff; }
/* avatar harfi markazda */
.top-au .acct-av, .mod-who .acct-av, .linklike .acct-av, .adm-tpl-own .acct-av { display: inline-grid !important; place-items: center; flex: none; line-height: 1; font-weight: 700; }
/* toj nishoni */
.crown { position: absolute; left: 10px; top: 10px; width: auto; height: auto; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 7px; border-radius: 99px; font-weight: 800; font-size: 12.5px; letter-spacing: .02em; color: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .28); border: 1.5px solid rgba(255, 255, 255, .7); }
.crown svg { width: 18px; height: 18px; fill: #fff; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.crown b { position: static; background: none; color: inherit; width: auto; height: auto; font-size: inherit; display: inline; }
.crown.c1 { background: linear-gradient(135deg, #FFE27A, #F5B300 45%, #D98E00); color: #4A2E00; }
.crown.c1 svg { fill: #6B4300; }
.crown.c1::after { content: ""; position: absolute; inset: -4px; border-radius: 99px; box-shadow: 0 0 0 2px rgba(245, 179, 0, .35), 0 0 18px rgba(255, 196, 0, .65); animation: crownGlow 2.4s ease-in-out infinite; pointer-events: none; }
.crown.c2 { background: linear-gradient(135deg, #F4F6FA, #B8C1CF 55%, #8C97A8); color: #2A3140; }
.crown.c2 svg { fill: #3B4454; }
.crown.c3 { background: linear-gradient(135deg, #F3C49B, #CD7F45 55%, #A35A27); color: #fff; }
@keyframes crownGlow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.top-card:has(.crown.c1) { border: 2px solid #F5B300; box-shadow: 0 10px 28px rgba(245, 179, 0, .22); }
.crown-mini { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; }
.crown-mini svg { width: 15px; height: 15px; fill: #fff; }
.crown-mini.c1 { background: linear-gradient(135deg, #FFE27A, #F5B300); } .crown-mini.c1 svg { fill: #6B4300; }
.crown-mini.c2 { background: linear-gradient(135deg, #F4F6FA, #9AA5B6); } .crown-mini.c2 svg { fill: #3B4454; }
.crown-mini.c3 { background: linear-gradient(135deg, #F3C49B, #B4642E); }
/* kartochka chegaralari aniqroq */
.pl-card, .set-card { border: 1px solid #E3E3EC; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 14px rgba(16, 24, 40, .04); }
.pl-card h3, .set-card h3 { display: flex; gap: 8px; align-items: center; }
.pl-card h3 svg { width: 18px; height: 18px; color: var(--ui-accent); }
/* profil joylashuvi */
.prof-head { display: flex; gap: 24px; align-items: center; margin-bottom: 18px; }
.prof-avbox { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: none; }
.acct-ring.big { width: 104px; height: 104px; }
.acct-ring.big::before { inset: 4px; }
.acct-ring.big .prof-av { width: 88px; height: 88px; font-size: 34px; }
.prof-avbtns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.prof-avbtns .btn { cursor: pointer; }
.btn.ghost-danger { color: var(--ui-danger); border-color: #F5C2C0; background: #fff; }
.prof-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.pill-plan { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; background: linear-gradient(135deg, #4F5BEA, #7B4BEA); color: #fff; font-weight: 700; font-size: 13px; }
.pill-plan svg { width: 14px; height: 14px; }
.pill-q { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 99px; background: #F3F2FF; color: #4338CA; font-weight: 600; font-size: 13px; }
.prof-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.prof-feed { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.prof-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
.prof-side .pl-card { margin: 0; padding: 18px 20px; }
.prof-side .pl-card h3 { font-size: 16px; margin: 0 0 6px; }
.prof-side .btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.prof-feed .pl-card { margin: 0; }
@media (max-width: 1000px) { .prof-cols { grid-template-columns: 1fr; } .prof-side { position: static; } }
@media (max-width: 700px) { .prof-head { flex-direction: column; align-items: stretch; } }
.adm-subbar { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
/* chap menyu: TOP 5 kartochkasi */
.side-top5 { margin: 12px 4px 0; padding: 0; border: 1px solid #E6E3FA; border-top: 1px solid #E6E3FA; border-radius: 16px; background: linear-gradient(180deg, #F7F5FF, #fff 60%); overflow: hidden; }
.st-head { display: flex; align-items: center; gap: 6px; padding: 12px 12px 6px; }
.st-head b { font-size: 15px; letter-spacing: -.01em; }
.st-head span:last-child { color: var(--ui-muted); font-size: 13px; }
.st-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, #FFE27A, #F5B300); }
.st-ic svg { width: 15px; height: 15px; color: #6B4300; }
.st-list { display: flex; flex-direction: column; padding: 2px 6px; }
.st-i { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 58px 1fr; gap: 9px; align-items: center; padding: 6px; border-radius: 10px; cursor: pointer; transition: background .15s; }
.st-i:hover { background: #EFECFF; }
.st-img { position: relative; width: 58px; aspect-ratio: 16 / 9; border-radius: 6px; background: #E9E8F2; overflow: visible; }
.st-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; display: block; }
.st-rank { position: absolute; left: -5px; top: -6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: #fff; color: #15151F; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.st-rank .crown-mini { width: 20px; height: 20px; } .st-rank .crown-mini svg { width: 12px; height: 12px; }
.st-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.st-t { font-size: 12.5px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ui-text, #15151F); }
.st-p { font-size: 11.5px; font-weight: 700; color: var(--ui-accent); }
.st-all { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 6px 10px 10px; padding: 8px; border-radius: 10px; background: #fff; border: 1px solid #E6E3FA; color: var(--ui-accent); font-size: 13px; font-weight: 700; text-decoration: none; transition: all .15s; }
.st-all:hover { background: var(--ui-accent); color: #fff; border-color: var(--ui-accent); }
.st-all svg { width: 14px; height: 14px; }
.side.mini .side-top5 { display: none; }
/* toj + o'rin raqami */
.crown-mini { width: auto !important; min-width: 24px; padding: 0 6px 0 4px; gap: 2px; border-radius: 99px !important; display: inline-flex !important; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.crown-mini b { font-size: 11px; font-weight: 800; line-height: 1; }
.crown-mini.c1 b { color: #5A3800; } .crown-mini.c2 b { color: #2F3746; } .crown-mini.c3 b { color: #fff; }
.st-rank { width: auto; min-width: 20px; height: 20px; padding: 0; background: transparent; box-shadow: none; left: -6px; }
.st-rank:not(:has(.crown-mini)) { background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); width: 20px; }
.st-rank .crown-mini { height: 20px; } .st-rank .crown-mini svg { width: 11px; height: 11px; }
/* to'lovdan qaytish */
.pay-ret { text-align: center; padding: 10px 6px; }
.pay-ic { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; background: #EEF0FF; color: var(--ui-accent); }
.pay-ic svg { width: 30px; height: 30px; }
.pay-ic.ok { background: #DCFCE7; color: #15803D; } .pay-ic.bad { background: #FEE2E2; color: #B91C1C; }
.pay-sum { margin: 10px 0 4px; }
.pay-ret .dlg-btns { justify-content: center; }
.badge.bought { background: #F3F2FF; color: #4338CA; display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; }
.badge.bought svg { width: 12px; height: 12px; }
#statusFilter .chip svg { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; }
/* sotuvchi: ism yoki anonim */
.sl-anon { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.sl-anon > .prof-l { grid-column: 1 / -1; margin: 0; }
.radio-card { display: grid; grid-template-columns: auto auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; border: 1.5px solid var(--ui-border); border-radius: 12px; padding: 10px 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.radio-card input { grid-row: 1 / 3; accent-color: var(--ui-accent); margin: 0; }
.radio-card .acct-av { grid-row: 1 / 3; display: inline-grid; place-items: center; }
.radio-card b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-card small { color: var(--ui-muted); font-size: 12px; grid-column: 3; }
.radio-card:has(input:checked) { border-color: var(--ui-accent); background: #F7F5FF; }
.acct-av.anon { background: #9CA3AF; color: #fff; }
/* taqdimot sahifasi (TOP) */
.ti-back { display: inline-block; color: var(--ui-muted); text-decoration: none; font-weight: 600; margin-bottom: 14px; }
.ti-back:hover { color: var(--ui-accent); }
.ti-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.ti-main { position: relative; border-radius: 18px; overflow: hidden; background: #F1F2F6; box-shadow: 0 18px 40px rgba(16, 24, 40, .14); }
.ti-main img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: contain; }
.ti-main .crown { left: 16px; top: 16px; transform: scale(1.15); transform-origin: left top; }
.ti-thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.ti-thumbs img { width: 150px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; cursor: pointer; outline: 3px solid transparent; outline-offset: 2px; opacity: .75; transition: all .15s; }
.ti-thumbs img.on, .ti-thumbs img:hover { opacity: 1; outline-color: var(--ui-accent); }
.ti-more { width: 150px; aspect-ratio: 16 / 9; border-radius: 10px; border: 2px dashed #D9D7EE; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--ui-muted); text-align: center; font-size: 12px; padding: 4px; box-sizing: border-box; }
.ti-more b { font-size: 22px; color: var(--ui-accent); }
.ti-desc { margin-top: 26px; }
.ti-desc h3 { font-size: 19px; margin: 0 0 8px; }
.ti-desc p { line-height: 1.7; white-space: pre-line; color: #374151; }
.ti-facts { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ti-facts li { background: #fff; border: 1px solid #E3E3EC; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.ti-facts svg { width: 18px; height: 18px; color: var(--ui-accent); }
.ti-facts span { font-size: 12px; color: var(--ui-muted); }
.ti-side { position: sticky; top: 18px; }
.ti-card { background: #fff; border: 1px solid #E3E3EC; border-radius: 20px; padding: 24px; box-shadow: 0 12px 32px rgba(16, 24, 40, .08); display: flex; flex-direction: column; gap: 14px; }
.ti-cat { align-self: flex-start; background: #F3F2FF; color: #4338CA; font-weight: 600; font-size: 12.5px; padding: 4px 10px; border-radius: 99px; }
.ti-card h1 { font-size: 26px; line-height: 1.25; margin: 0; letter-spacing: -.02em; }
.ti-seller { display: flex; gap: 10px; align-items: center; }
.ti-seller .acct-av { width: 40px; height: 40px; display: grid; place-items: center; font-weight: 700; }
.ti-seller small { display: block; color: var(--ui-muted); font-size: 12px; }
.ti-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ti-stats div { background: #F7F7FB; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.ti-stats svg { width: 16px; height: 16px; color: var(--ui-muted); }
.ti-stats b { font-size: 17px; } .ti-stats span { font-size: 11.5px; color: var(--ui-muted); }
.ti-price { font-size: 34px; font-weight: 800; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 8px; }
.ti-price small { font-size: 13px; font-weight: 500; color: var(--ui-muted); }
.ti-card .btn.big { padding: 15px; font-size: 16px; }
.ti-own { background: #F3F2FF; color: #4338CA; border-radius: 12px; padding: 12px; display: flex; gap: 8px; align-items: center; justify-content: center; font-weight: 600; }
.ti-own svg { width: 16px; height: 16px; }
.ti-share { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--ui-border); padding-top: 14px; }
.ti-share > span { font-size: 13px; color: var(--ui-muted); margin-right: auto; font-weight: 600; }
.ti-share .btn { text-decoration: none; }
.ti-share .btn.tg { background: #229ED9; color: #fff; border-color: #229ED9; }
.hint.center { text-align: center; }
.ti-similar { margin-top: 40px; } .ti-similar h3 { font-size: 20px; margin-bottom: 14px; }
@media (max-width: 1000px) { .ti-grid { grid-template-columns: 1fr; } .ti-side { position: static; } .ti-facts { grid-template-columns: 1fr 1fr; } }
/* halqa: uzluksiz gradient (rang uzilmaydi) + kulrang yo'lak */
.acct-ring { background: #E7E6F0 !important; isolation: isolate; }
.acct-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: 0;
  background: conic-gradient(from 0deg, #4F5BEA, #7B4BEA 25%, #C04BD8 50%, #7B4BEA 75%, #4F5BEA);
  -webkit-mask: conic-gradient(#000 var(--p), transparent 0); mask: conic-gradient(#000 var(--p), transparent 0); }
.acct-ring::after { content: ""; position: absolute; inset: 2.5px; border-radius: 50%; background: var(--ui-card, #fff); z-index: 1; }
.acct-ring.big::after { inset: 4px; }
.acct-ring .acct-av { z-index: 2; }
.acct-ring .acct-badge { z-index: 3; }
/* kursor: qolgan slaydlar */
.acct-me { position: relative; }
.acct-tip { position: absolute; left: 0; right: 0; bottom: calc(100% + 10px); background: #fff; border: 1px solid #E6E3FA; border-radius: 14px; padding: 12px 14px;
  box-shadow: 0 14px 34px rgba(16, 24, 40, .14); display: flex; flex-direction: column; gap: 6px; text-align: left;
  opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .18s, transform .18s; z-index: 60; }
.acct-me:hover .acct-tip, .acct-me:focus-visible .acct-tip { opacity: 1; transform: none; }
.acct-tip::after { content: ""; position: absolute; left: 24px; bottom: -6px; width: 10px; height: 10px; background: #fff; border-right: 1px solid #E6E3FA; border-bottom: 1px solid #E6E3FA; transform: rotate(45deg); }
.qt-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ui-muted); }
.qt-top em { font-style: normal; font-weight: 700; font-size: 11px; color: #fff; background: linear-gradient(135deg, #4F5BEA, #7B4BEA); padding: 2px 8px; border-radius: 99px; }
.qt-num { display: flex; align-items: baseline; gap: 4px; }
.qt-num b { font-size: 26px; letter-spacing: -.02em; color: var(--ui-text, #15151F); line-height: 1; }
.qt-num span { color: var(--ui-muted); font-size: 13px; }
.qt-bar { height: 6px; background: #EEEDF5; border-radius: 99px; overflow: hidden; }
.qt-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #4F5BEA, #7B4BEA, #C04BD8); }
.qt-foot { font-size: 11.5px; color: var(--ui-muted); }
.side.mini .acct-tip { left: 0; right: auto; width: 220px; }
.acct-ring.big::before { inset: 0; }
/* ulashish */
.ti-share { display: block; border-top: 1px solid var(--ui-border); padding-top: 14px; }
.ti-share-h { display: block; font-size: 13px; color: var(--ui-muted); font-weight: 600; margin-bottom: 10px; }
.sh-row { display: flex; gap: 8px; flex-wrap: wrap; }
.sh-btn { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 54px; text-align: center; }
.sh-btn > span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; transition: transform .15s, box-shadow .15s; }
.sh-btn svg { width: 21px; height: 21px; }
.sh-btn small { font-size: 11px; color: var(--ui-muted); white-space: nowrap; }
.sh-btn:hover > span { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(16, 24, 40, .18); }
.sh-telegram > span { background: #229ED9; }
.sh-whatsapp > span { background: #25D366; }
.sh-instagram > span { background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FD5949 45%, #D6249F 60%, #285AEB 90%); }
.sh-mail > span { background: #EA4335; }
.sh-link > span { background: #F1F1F6; color: #15151F; }
.sh-more > span { background: #F1F1F6; color: #15151F; }
.sh-btn.done > span { background: #16A34A; color: #fff; }
.sh-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(48px, 1fr)); gap: 6px; } .sh-btn { width: auto; }
/* xavfli amallar — sahifaning eng pastida, yopiq holda */
.danger-zone { margin-top: 40px; border-top: 1px solid var(--ui-border); padding-top: 14px; }
.danger-zone summary { cursor: pointer; color: var(--ui-muted); font-size: 13px; font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.danger-zone summary::-webkit-details-marker { display: none; }
.danger-zone summary::before { content: "›"; display: inline-block; transition: transform .15s; font-size: 16px; }
.danger-zone[open] summary::before { transform: rotate(90deg); }
.dz-body { margin-top: 12px; border: 1px solid #F5C2C0; border-radius: 14px; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; background: #FFFBFA; }
.dz-body p { margin: 4px 0 0; font-size: 13px; }
.dz-del { all: unset; cursor: pointer; color: var(--ui-danger); font-weight: 600; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.dz-del:hover { color: #991B1B; }
@media (max-width: 700px) { .dz-body { flex-direction: column; align-items: flex-start; } }
/* ============ MOBIL: Taqdimotlarim ro'yxati ============ */
@media (max-width: 700px) {
  .draft { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "th main" "act act"; gap: 10px 12px; align-items: start; padding: 12px 4px; }
  .dr-thumb { grid-area: th; width: 96px; }
  .dr-main { grid-area: main; min-width: 0; }
  .dr-main b { display: block; margin: 0 0 4px; font-size: 14.5px; line-height: 1.3; overflow-wrap: break-word; word-break: normal; }
  .dr-main .badge { margin: 0 4px 4px 0; display: inline-flex; }
  .dr-main .hint { font-size: 12.5px; }
  .dr-act { grid-area: act; display: flex; gap: 6px; flex-wrap: nowrap; }
  .dr-act .btn.small { flex: 1; justify-content: center; }
  .dr-act .icon-btn { flex: none; width: 40px; height: 36px; }
}
/* ============ MOBIL: TOP ============ */
@media (max-width: 700px) {
  .top-filters { flex-direction: column; align-items: stretch; gap: 10px; }
  .seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-radius: 12px; }
  .seg::-webkit-scrollbar, .top-cats::-webkit-scrollbar { display: none; }
  .seg button { white-space: nowrap; padding: 8px 12px; font-size: 13.5px; }
  .top-cats { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 8px; padding: 2px 16px 8px; }
  .top-grid { grid-template-columns: 1fr; gap: 14px; }
  .page-head { align-items: flex-start; }
  .page-head .btn { width: 100%; justify-content: center; }
}
/* ============ MOBIL: taqdimot sahifasi — narx va "Sotib olish" rasmlardan keyin ============ */
@media (max-width: 1000px) {
  .ti-grid { display: flex; flex-direction: column; gap: 16px; }
  .ti-left { display: contents; }
  .ti-main { order: 1; } .ti-thumbs { order: 2; margin-top: 0; } .ti-side { order: 3; } .ti-desc { order: 4; margin-top: 4px; }
}
@media (max-width: 700px) {
  .ti-thumbs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 8px; }
  .ti-thumbs img, .ti-more { width: 112px; flex: none; }
  .ti-card { padding: 18px; border-radius: 16px; }
  .ti-card h1 { font-size: 22px; }
  .ti-price { font-size: 28px; }
  .ti-main { border-radius: 12px; }
  .ti-main .crown { transform: none; left: 10px; top: 10px; }
}
/* ============ MOBIL: profil va admin ============ */
@media (max-width: 700px) {
  .bal-card { grid-template-columns: 1fr; }
  .bal-main b { font-size: 26px; }
  .bal-act { align-items: stretch; } .bal-act .btn { justify-content: center; }
  .wd-list > div { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
  .wd-list small { margin-left: 0; }
  .mm-head { flex-direction: column; gap: 4px; }
  .mm-act { justify-content: flex-start; }
  .prof-row { flex-wrap: nowrap; } .prof-row .inp { min-width: 0; }
  .prof-avbtns .btn { font-size: 12.5px; }
  /* admin: bo'limlar bitta suriladigan qatorda */
  .pl-tabs, .adm-tabs { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; }
  .pl-tabs::-webkit-scrollbar { display: none; }
  .pl-tab { white-space: nowrap; flex: none; }
  .adm-stats { gap: 10px; }
  .adm-stat { padding: 12px 14px; min-width: 0; }
  .adm-stat b { font-size: 19px; overflow-wrap: anywhere; }
  .adm-tools { gap: 8px; } .adm-tools .inp { flex: 1 1 100%; } .adm-tools .sel.small { max-width: none; flex: 1 1 45%; }
  .adm-subbar { flex-direction: column; } .adm-sub { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; }
  .adm-sub .chip { flex: none; white-space: nowrap; }
  .adm-plan-row { grid-template-columns: 1fr 1fr; } .adm-plan-row > b { grid-column: 1 / -1; }
  .adm-upl-row { grid-template-columns: 1fr; }
  .uc-head { flex-direction: column; align-items: flex-start; }
  .mod-act .btn { flex: 1 1 45%; justify-content: center; }
  .dlg-box.big { padding: 18px; max-height: 92vh; }
  .ti-share .sh-row { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 700px) {
  .adm-table-wrap { margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; -webkit-overflow-scrolling: touch; }
  .adm-table { min-width: 720px; }
  .adm-table td:first-child { min-width: 170px; }
}
/* sotuvchilar uchun chaqiruv */
.sell-cta { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; margin: 0 0 18px; padding: 18px 22px; border-radius: 18px;
  background: linear-gradient(120deg, #1F1B4D 0%, #3B2A8C 55%, #7B3FC4 100%); color: #fff; position: relative; overflow: hidden; }
.sell-cta::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 102, .35), transparent 70%); pointer-events: none; }
.sc-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #FFE27A, #F5B300); color: #5A3800; flex: none; }
.sc-ic svg, .sc-ic .ico { width: 24px; height: 24px; }
.sc-txt b { font-size: 17px; display: block; }
.sc-txt p { margin: 4px 0 0; opacity: .85; font-size: 14px; line-height: 1.5; }
.sc-btn { background: #fff; color: #2B2170; border-color: #fff; font-weight: 700; white-space: nowrap; position: relative; z-index: 1; }
.sc-btn:hover { background: #FFF6D6; }
.home-cta { margin: 30px 0 22px; }
@media (max-width: 700px) {
  .sell-cta { grid-template-columns: auto 1fr; padding: 16px; gap: 12px; }
  .sc-btn { grid-column: 1 / -1; justify-content: center; }
  .sc-txt b { font-size: 15.5px; } .sc-txt p { font-size: 13px; }
}
@media (max-width: 700px) {
  .top-search { flex: none; }
  .seg { display: flex; max-width: 100%; width: 100%; box-sizing: border-box; }
  .top-filters, .top-cats, .seg { min-width: 0; }
}
#topSell { display: none; }
/* ============ MOBIL: slaydlar qatori — ramka va tepa kesilmasin ============ */
@media (max-width: 820px) {
  .thumbs { padding: 14px 12px 16px; gap: 14px; align-items: flex-start; scroll-padding: 12px; }
  .thumb { grid-template-columns: 24px 140px; gap: 8px; }
  .thumb .sframe { box-shadow: 0 0 0 1px #E3E3EC; border-radius: 6px; }
  .thumb.on .sframe { transform: none; outline-width: 3px; outline-offset: 2px; box-shadow: 0 0 0 1px #E3E3EC, 0 0 0 6px color-mix(in srgb, var(--ui-accent) 16%, transparent); }
  .thumb .tn, .thumb.on .tn { margin-top: 2px; }
  .add-row { align-self: stretch; justify-content: center; }
}
@media (max-width: 820px) { .thumbs { gap: 20px; } }
/* ============ TAHRIRLAGICH: tugmalar guruhlari (kompyuter va telefon) ============ */
.ed-bar { padding: 10px 12px; gap: 10px 14px; }
.ed-left { flex: 1 1 280px; flex-wrap: nowrap; }
.ed-left .title-input { flex: 1; min-width: 0; }
.ed-left .save-state { flex: none; white-space: nowrap; }
.ed-right { flex: 0 1 auto; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tg { display: inline-flex; align-items: stretch; background: #fff; border: 1px solid var(--ui-border); border-radius: 10px; overflow: hidden; flex: none; }
.tg > .btn, .tg > .icon-btn { border: 0 !important; border-radius: 0 !important; margin: 0 !important; height: 36px; box-shadow: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; background: #fff; }
.tg > .icon-btn { width: 38px; padding: 0; }
.tg > * + * { border-left: 1px solid var(--ui-border) !important; }
.tg > .btn:hover:not(:disabled), .tg > .icon-btn:hover:not(:disabled) { background: #F5F4FF; color: var(--ui-accent); }
.tg > .btn.primary { background: var(--ui-accent); color: #fff; }
.tg > .btn.primary:hover { background: var(--ui-accent); filter: brightness(1.08); color: #fff; }
.tg > .icon-btn.danger { color: var(--ui-danger); }
.tg > .icon-btn.danger:hover { background: #FFF1F0; color: var(--ui-danger); }
.tg > .hidden { display: none !important; }
.tg > .hidden + * { border-left: 0 !important; }
.tg svg, .tg .ico { width: 16px; height: 16px; flex: none; }
.ed-theme, .tg-type { height: 38px; box-sizing: border-box; border-radius: 10px; }
.tools { gap: 8px; align-items: center; margin-bottom: 12px; }
.tools .sp { flex: 1 1 0; }
@media (max-width: 1100px) { .tools .sp { display: none; } }
/* telefon: har guruh to'liq kenglikda, teng kataklar */
@media (max-width: 700px) {
  .ed-bar { flex-direction: column; align-items: stretch; padding: 10px; }
  .ed-left { flex: none; }
  .ed-right { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; justify-content: stretch; }
  .ed-right .ed-theme { grid-column: 1 / -1; width: 100%; }
  .ed-right .ed-theme select { width: 100%; }
  .ed-right .tg { width: 100%; }
  .tools { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .tools .tg-type { width: 100%; } .tools .tg-type select { width: 100%; }
  .tools .tg { width: 100%; }
  .tg > .btn, .tg > .icon-btn { flex: 1 1 0; min-width: 0; width: auto; padding: 0 6px; font-size: 13px; }
  .tg > .btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tg-view .btn span { font-size: 12.5px; }
}

.acct-me.tip-open .acct-tip { opacity: 1; transform: none; pointer-events: auto; }
@media (hover: none) { .acct-me:hover .acct-tip { opacity: 0; transform: translateY(6px); } .acct-me.tip-open .acct-tip { opacity: 1; transform: none; } .acct-ring { cursor: pointer; } }
@media (max-width: 700px) {
  .ed-right { grid-template-columns: 1fr; }
  .tg > .btn, .tg > .icon-btn { gap: 5px; padding: 0 4px; }
  .tg-text > #sRegen { flex: 1.35 1 0; }
  .tg > .btn span { overflow: visible; text-overflow: clip; }
}
/* slaydlar ro'yxati: oq fonli slaydlar ham ajralib tursin (yumshoq soya + chegara) */
.thumb .sframe { box-shadow: 0 0 0 1px #DCDCE8, 0 2px 8px rgba(16, 24, 40, .08); border-radius: 6px; }
.thumb:not(.on):hover .sframe { box-shadow: 0 0 0 1px #C9C6F2, 0 4px 12px rgba(16, 24, 40, .12); }
.thumb.on .sframe { box-shadow: 0 0 0 1px #DCDCE8, 0 0 0 7px color-mix(in srgb, var(--ui-accent) 18%, transparent), 0 10px 24px rgba(79, 70, 229, .25); }
/* telefon: tartib — asboblar, katta slayd, slaydlar ro'yxati, izohlar, AI chat */
@media (max-width: 820px) {
  .ed, .ed.no-chat { display: flex; flex-direction: column; }
  .ed > .stage { display: contents; }
  .stage > .tools { order: 1; }
  .stage > #stageFrame { order: 2; }
  .ed > #thumbs { order: 3; }
  .stage > p.hint { order: 4; }
  .stage > .lbl { order: 5; }
  .stage > #sNotes { order: 6; }
  .ed > .chat { order: 7; }
}
@media (max-width: 820px) {
  .ed > *, .stage > * { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
  .ed > #thumbs { overflow-x: auto; }
}
@media (max-width: 820px) {
  .thumbs .thumb { width: auto; flex: none; }
  .thumbs .add-row { width: 160px; flex: none; margin: 0 0 0 4px; align-self: flex-start; }
}

/* tahrirlagich: dizayn tugmasi va tanlash oynasi */
.ed-theme-btn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 4px 10px 4px 4px; border: 1px solid var(--ui-border); border-radius: 12px; background: #fff; max-width: 280px; transition: border-color .15s, box-shadow .15s; }
.ed-theme-btn:hover { border-color: var(--ui-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-accent) 14%, transparent); }
.etb-img { width: 60px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; flex: none; background: #F1F2F6; box-shadow: 0 0 0 1px #E3E3EC; position: relative; }
.etb-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.etb-img .sframe, .tp-img .sframe { pointer-events: none; }
.etb-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.etb-txt b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etb-txt small { font-size: 11px; color: var(--ui-muted); white-space: nowrap; }
.ed-theme-btn > svg { width: 16px; height: 16px; color: var(--ui-muted); flex: none; }
.dlg-box.tp-box { width: min(1000px, 100%); padding: 0; display: flex; flex-direction: column; max-height: 88vh; overflow: hidden; }
.tp-head { padding: 22px 24px 12px; border-bottom: 1px solid var(--ui-border); }
.tp-head h3 { margin: 0 0 4px; font-size: 20px; }
.tp-head .hint { margin: 0 0 12px; }
.tp-nav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.tp-nav::-webkit-scrollbar { display: none; }
.tp-body { overflow-y: auto; padding: 8px 24px 24px; }
.tp-group { padding-top: 16px; scroll-margin-top: 8px; }
.tp-gh { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.tp-gh b { font-size: 15px; } .tp-gh span { color: var(--ui-muted); font-size: 12.5px; }
.tp-gh em { font-style: normal; margin-left: auto; font-size: 12px; color: var(--ui-muted); background: #F3F3F8; padding: 1px 8px; border-radius: 99px; }
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.tp-card { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.tp-img { position: relative; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: #F1F2F6; box-shadow: 0 0 0 1px #DCDCE8, 0 2px 8px rgba(16, 24, 40, .06); transition: box-shadow .15s, transform .15s; }
.tp-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tp-card:hover .tp-img { transform: translateY(-2px); box-shadow: 0 0 0 1px #C9C6F2, 0 8px 18px rgba(16, 24, 40, .12); }
.tp-card.on .tp-img { box-shadow: 0 0 0 3px var(--ui-accent), 0 8px 18px rgba(79, 70, 229, .22); }
.tp-card.locked .tp-img { opacity: .75; }
.tp-tag { position: absolute; left: 6px; top: 6px; display: inline-flex; align-items: center; gap: 3px; background: rgba(17, 17, 30, .78); color: #fff; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 99px; }
.tp-tag svg { width: 10px; height: 10px; }
.tp-tick { position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--ui-accent); color: #fff; display: grid; place-items: center; }
.tp-tick svg { width: 13px; height: 13px; }
.tp-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) {
  .ed-theme-btn { max-width: none; width: 100%; }
  .etb-txt { flex: 1; }
  .tp-head { padding: 16px 16px 10px; } .tp-body { padding: 4px 16px 16px; }
  .tp-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dlg-box.tp-box { max-height: 92vh; }
}
/* katta slayd: ingichka toza chegara + har tomonga teng yengil soya, burchaklarda qora fon ko'rinmasin */
.frame-wrap .sframe { border-radius: 10px; background: transparent; box-shadow: 0 0 0 1px #E2E2EC, 0 2px 10px rgba(16, 24, 40, .05); }
.frame-wrap .sframe > .slide { border-radius: inherit; }
.sframe { background: transparent; }
.sframe > .slide { background-color: var(--bg, #fff); }

/* ============ ERKIN ELEMENTLAR (figuralar, matn) ============ */
.obj-layer { position: absolute; inset: 0; pointer-events: none; z-index: 20; }
.ob { position: absolute; box-sizing: border-box; transform-origin: 50% 50%; }
.ob-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; display: block; }
.ob-text { width: 100%; height: 100%; box-sizing: border-box; padding: .3cqw .5cqw; line-height: 1.25; white-space: pre-wrap; word-break: break-word; overflow: hidden; outline: none; border-radius: .3cqw; }
.obj-layer.live .ob { pointer-events: auto; cursor: move; touch-action: none; user-select: none; -webkit-user-select: none; }
.obj-layer.live .ob:hover:not(.sel) { outline: 1px dashed color-mix(in srgb, var(--ui-accent, #6366F1) 70%, transparent); outline-offset: 2px; }
.obj-layer.live .ob.sel { outline: 1.5px solid var(--ui-accent, #6366F1); outline-offset: 2px; }
.obj-layer.live .ob.editing { cursor: text; user-select: text; -webkit-user-select: text; }
.obj-layer.live .ob.editing .ob-text { background-color: rgba(255, 255, 255, .35); }
.ob-h { position: absolute; width: 12px; height: 12px; background: #fff; border: 1.5px solid var(--ui-accent, #6366F1); border-radius: 3px; box-sizing: border-box; z-index: 3; touch-action: none; }
.ob-h::after { content: ""; position: absolute; inset: -10px; }   /* barmoq uchun kattaroq tegish maydoni */
.h-nw { left: -8px; top: -8px; cursor: nwse-resize; } .h-n { left: calc(50% - 6px); top: -8px; cursor: ns-resize; } .h-ne { right: -8px; top: -8px; cursor: nesw-resize; }
.h-e { right: -8px; top: calc(50% - 6px); cursor: ew-resize; } .h-se { right: -8px; bottom: -8px; cursor: nwse-resize; } .h-s { left: calc(50% - 6px); bottom: -8px; cursor: ns-resize; }
.h-sw { left: -8px; bottom: -8px; cursor: nesw-resize; } .h-w { left: -8px; top: calc(50% - 6px); cursor: ew-resize; }
.h-rot { left: calc(50% - 7px); top: -34px; width: 14px; height: 14px; border-radius: 50%; cursor: grab; background: var(--ui-accent, #6366F1); border-color: #fff; box-shadow: 0 0 0 1px var(--ui-accent, #6366F1); }
.h-rot::before { content: ""; position: absolute; left: 50%; top: 14px; width: 1.5px; height: 20px; background: var(--ui-accent, #6366F1); transform: translateX(-50%); }
.ob-line .h-w, .ob-line .h-e { top: calc(50% - 6px); }
#stageFrame .sframe { overflow: visible; }
#stageFrame .sframe > .slide { overflow: hidden; }
@media (pointer: coarse) { .ob-h { width: 16px; height: 16px; } .h-nw, .h-sw, .h-w { left: -10px; } .h-ne, .h-se, .h-e { right: -10px; } .h-nw, .h-ne, .h-n { top: -10px; } .h-sw, .h-se, .h-s { bottom: -10px; } .h-rot { top: -40px; width: 18px; height: 18px; left: calc(50% - 9px); } }
/* qo'shish menyusi */
.tools { position: relative; }
.obj-menu { display: none; position: absolute; z-index: 60; top: 100%; margin-top: 6px; left: 0; background: #fff; border: 1px solid var(--ui-border); border-radius: 14px; padding: 10px; box-shadow: 0 16px 40px rgba(16, 24, 40, .16); grid-template-columns: repeat(4, 76px); gap: 6px; }
.obj-menu.open { display: grid; }
.obj-menu button { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 10px; color: #4F46E5; text-align: center; }
.obj-menu button:hover { background: #F3F2FF; }
.obj-menu svg { width: 34px; height: 28px; }
.obj-menu span { font-size: 11px; color: var(--ui-text, #15151F); line-height: 1.2; }
/* xususiyatlar paneli */
.obj-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 8px; margin-bottom: 10px; background: #fff; border: 1px solid #DCD9F7; border-radius: 12px; box-shadow: 0 6px 18px rgba(79, 70, 229, .08); }
.obj-bar.hidden { display: none; }
.obj-bar button { all: unset; cursor: pointer; min-width: 30px; height: 30px; padding: 0 6px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 14px; color: var(--ui-text, #15151F); }
.obj-bar button:hover { background: #F3F2FF; } .obj-bar button.on { background: #E8E6FF; color: #4338CA; }
.obj-bar button.dang { color: var(--ui-danger, #DC2626); } .obj-bar button svg { width: 16px; height: 16px; }
.obj-bar select { height: 30px; border: 1px solid var(--ui-border); border-radius: 8px; padding: 0 6px; font: inherit; font-size: 13px; background: #fff; max-width: 150px; }
.ob-size { display: inline-flex; align-items: center; border: 1px solid var(--ui-border); border-radius: 8px; overflow: hidden; }
.ob-size input { width: 44px; height: 28px; border: 0; text-align: center; font: inherit; font-size: 13px; -moz-appearance: textfield; }
.ob-size input::-webkit-inner-spin-button { -webkit-appearance: none; }
.ob-size button { height: 28px; border-radius: 0; min-width: 26px; }
.ob-col { display: inline-flex; align-items: center; gap: 2px; }
.ob-col input[type=color] { width: 30px; height: 30px; padding: 0; border: 1px solid var(--ui-border); border-radius: 8px; background: none; cursor: pointer; }
.ob-col input[type=color]::-webkit-color-swatch-wrapper { padding: 3px; } .ob-col input[type=color]::-webkit-color-swatch { border: 0; border-radius: 5px; }
.ob-none { font-size: 15px !important; color: var(--ui-muted) !important; }
.ob-none.on { background: #FFF1F0 !important; color: var(--ui-danger) !important; }
.ob-sep { width: 1px; height: 22px; background: var(--ui-border); margin: 0 2px; }
.ob-lbl { font-size: 12px; color: var(--ui-muted); margin-left: 2px; }
.ob-op { display: inline-flex; align-items: center; gap: 4px; color: var(--ui-muted); } .ob-op svg { width: 15px; height: 15px; } .ob-op input { width: 80px; accent-color: var(--ui-accent); }
.ob-quick { display: inline-flex; gap: 3px; } .ob-quick .qc { min-width: 18px !important; width: 18px; height: 18px !important; padding: 0 !important; border-radius: 50% !important; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15) inset; }
@media (max-width: 700px) {
  .obj-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; border-radius: 0; border-left: 0; border-right: 0; position: sticky; top: 56px; z-index: 25; }
  .obj-bar > * { flex: none; }
  .obj-menu { left: 50%; transform: translateX(-50%); grid-template-columns: repeat(4, 70px); }
  .stage > .obj-bar { order: 1; }
}

/* shablon matn blokini surish tutqichi */
.ts-slot { position: absolute; }
.ts-grip { position: absolute; left: -1.6cqw; top: 0; width: 1.4cqw; min-width: 16px; height: 1.8cqw; min-height: 20px; display: grid; place-items: center; font-size: 12px; line-height: 1;
  color: #fff; background: var(--ui-accent, #6366F1); border-radius: 5px; cursor: grab; opacity: 0; transition: opacity .15s; z-index: 5; touch-action: none; user-select: none; }
#stageFrame .ts-slot:hover .ts-grip, #stageFrame .ts-slot:focus-within .ts-grip { opacity: 1; }
@media (pointer: coarse) { #stageFrame .ts-grip { opacity: .85; } }
.ts-grip { left: 0; top: 0; border-radius: 0 0 6px 0; }

.ob-img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; }

/* yangi maket oilalari (layouts.py) */
.slide.fam-spec { padding: 0; }
.fam-spec.up .ttl { text-transform: uppercase; }
.fam-spec .tx > [contenteditable], .fam-spec .tx > div { min-width: 1em; }
@media (max-width: 760px) {
  .fam-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .fam-filter::-webkit-scrollbar { display: none; }
  .fam-filter .chip { flex: none; }
}

/* savat */
.chip .chip-n { margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ui-danger, #DC2626); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.trash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.draft.trashed { cursor: default; }
.draft.trashed .dr-thumb { opacity: .55; filter: grayscale(.4); }
.sg-eta { display: block; opacity: .7; font-size: 11px; margin-top: 2px; }

/* slaydning o'z rasmi/videosi ustidagi panel */
.media-bar { position: absolute; z-index: 30; height: 0; pointer-events: none; }
.media-bar > span { position: absolute; right: 6px; top: 6px; display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(17, 24, 39, .82); backdrop-filter: blur(6px); pointer-events: auto; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.media-bar button { display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; color: #fff; font: 600 12px/1 Inter, system-ui, sans-serif; cursor: pointer; }
.media-bar button:hover { background: rgba(255, 255, 255, .16); }
.media-bar button.dang:hover { background: #DC2626; }
.media-bar button svg { width: 15px; height: 15px; }
.media-bar button i { font-style: normal; }
@media (max-width: 760px) { .media-bar button i { display: none; } .media-bar button { padding: 0 7px; } }
.slide video.im { background: #000; }

/* 30 ta figura: kengroq menyu */
.obj-menu { grid-template-columns: repeat(6, 78px); max-height: min(70vh, 460px); overflow-y: auto; }
@media (max-width: 760px) { .obj-menu { grid-template-columns: repeat(4, 70px); max-height: 56vh; } }

/* matn bloki: surish va o'lchamini o'zgartirish */
.obj-layer.live .ob.ob-body { pointer-events: none; cursor: default; outline: 1px dashed transparent; outline-offset: 3px; transition: outline-color .15s; }
.obj-layer.live .ob.ob-body:hover:not(.sel) { outline: 1px dashed transparent; }
#stageFrame:hover .obj-layer.live .ob.ob-body:not(.sel) { outline-color: color-mix(in srgb, var(--ui-accent, #6366F1) 38%, transparent); }
.obj-layer.live .ob.ob-body.sel { outline: 1.5px solid var(--ui-accent, #6366F1); }
.ob-body .ob-bgrip { position: absolute; left: -3px; bottom: 100%; margin-bottom: 4px; pointer-events: auto; cursor: move; touch-action: none; user-select: none; -webkit-user-select: none;
  background: var(--ui-accent, #6366F1); color: #fff; font: 600 11px/1 Inter, system-ui, sans-serif; padding: 5px 8px; border-radius: 7px; white-space: nowrap; opacity: 0; transition: opacity .15s; box-shadow: 0 2px 8px rgba(79, 70, 229, .3); }
#stageFrame:hover .ob-body .ob-bgrip, .ob-body.sel .ob-bgrip, .ob-body.moved .ob-bgrip { opacity: 1; }
.ob-body .ob-h { pointer-events: auto; }
@media (hover: none) { .ob-body .ob-bgrip { opacity: 1; } .obj-layer.live .ob.ob-body:not(.sel) { outline-color: color-mix(in srgb, var(--ui-accent, #6366F1) 38%, transparent); } }
.obj-bar .ob-hint { font-size: 12px; color: var(--ui-muted, #6B7280); }
.obj-bar .ob-txtbtn { width: auto !important; padding: 0 10px !important; gap: 6px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; }
.obj-bar .ob-txtbtn[disabled] { opacity: .45; pointer-events: none; }
@media (max-width: 760px) { .obj-bar .ob-hint { display: none; } }
/* umumiy ".sel" (tanlash maydoni) uslubi slayd elementlariga ta'sir qilmasin */
.obj-layer .ob.sel { background: none; border: 0; padding: 0; border-radius: 0; box-shadow: none; min-height: 0; }
/* 100 ta figura: tepada 12 tasi (4 x 3) ko'rinadi, qolgani skroll bilan */
.obj-menu { grid-template-columns: repeat(4, 84px); grid-auto-rows: 84px; max-height: 290px; overflow-y: auto; align-items: start; scrollbar-width: thin; }
.obj-menu button { height: 100%; justify-content: flex-start; overflow: hidden; }
.obj-menu span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 760px) { .obj-menu { grid-template-columns: repeat(4, 74px); grid-auto-rows: 80px; max-height: 262px; } }

/* ------------------------------------------------------------ slaydlar orasidagi o'tish effektlari */
@property --trp { syntax: '<number>'; inherits: false; initial-value: 100; }
@keyframes trp { from { --trp: 0; } to { --trp: 100; } }
@keyframes tr-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes tr-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes tr-in2 { 0%, 50% { opacity: 0; } 100% { opacity: 1; } }
@keyframes tr-out2 { 0% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes tr-fromR { from { transform: translateX(100%); } to { transform: none; } }
@keyframes tr-fromL { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes tr-fromB { from { transform: translateY(100%); } to { transform: none; } }
@keyframes tr-fromT { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes tr-toL { to { transform: translateX(-100%); } }
@keyframes tr-toR { to { transform: translateX(100%); } }
@keyframes tr-toT { to { transform: translateY(-100%); } }
@keyframes tr-toB { to { transform: translateY(100%); } }
@keyframes tr-spin { from { transform: scale(0) rotate(-720deg); } to { transform: none; } }
.tr-box { position: relative; overflow: hidden; }
#stageFrame.tr-box { overflow: visible; }
.tr-box > .tr-old { position: absolute !important; inset: 0; z-index: 1; pointer-events: none; }
.tr-box > .tr-new { position: relative; z-index: 2; }
.tr-box > .tr-new, .tr-box > .tr-old { --e: cubic-bezier(.4, 0, .2, 1); animation: trp var(--trd, 800ms) var(--e) both; }
.tr-fade > .tr-new, .tr-demo-fade > b { animation-name: trp, tr-in; }
.tr-fadeblack > .tr-new, .tr-demo-fadeblack > b { animation-name: trp, tr-in2; }
.tr-fadeblack > .tr-old, .tr-demo-fadeblack > i { animation-name: trp, tr-out2; }
.tr-fadeblack { background: #000; }
.tr-pushl > .tr-new, .tr-demo-pushl > b, .tr-coverl > .tr-new, .tr-demo-coverl > b { animation-name: trp, tr-fromR; }
.tr-pushl > .tr-old, .tr-demo-pushl > i { animation-name: trp, tr-toL; }
.tr-pushr > .tr-new, .tr-demo-pushr > b { animation-name: trp, tr-fromL; } .tr-pushr > .tr-old, .tr-demo-pushr > i { animation-name: trp, tr-toR; }
.tr-pushu > .tr-new, .tr-demo-pushu > b { animation-name: trp, tr-fromB; } .tr-pushu > .tr-old, .tr-demo-pushu > i { animation-name: trp, tr-toT; }
.tr-pushd > .tr-new, .tr-demo-pushd > b { animation-name: trp, tr-fromT; } .tr-pushd > .tr-old, .tr-demo-pushd > i { animation-name: trp, tr-toB; }
.tr-uncoverl > .tr-old, .tr-demo-uncoverl > i { z-index: 3; animation-name: trp, tr-toL; }
.tr-wipel > .tr-new, .tr-demo-wipel > b { clip-path: inset(0 0 0 calc(100% - var(--trp) * 1%)); }
.tr-wiper > .tr-new, .tr-demo-wiper > b { clip-path: inset(0 calc(100% - var(--trp) * 1%) 0 0); }
.tr-wiped > .tr-new, .tr-demo-wiped > b { clip-path: inset(0 0 calc(100% - var(--trp) * 1%) 0); }
.tr-splith > .tr-new, .tr-demo-splith > b { clip-path: inset(calc(50% - var(--trp) * .5%) 0); }
.tr-splitv > .tr-new, .tr-demo-splitv > b { clip-path: inset(0 calc(50% - var(--trp) * .5%)); }
.tr-circle > .tr-new, .tr-demo-circle > b { clip-path: circle(calc(var(--trp) * .75%) at 50% 50%); }
.tr-diamond > .tr-new, .tr-demo-diamond > b { clip-path: polygon(50% calc(50% - var(--trp) * 1%), calc(50% + var(--trp) * 1%) 50%, 50% calc(50% + var(--trp) * 1%), calc(50% - var(--trp) * 1%) 50%); }
.tr-plus > .tr-new, .tr-demo-plus > b { -webkit-mask: linear-gradient(#000, #000) center / 100% calc(var(--trp) * 1%) no-repeat, linear-gradient(#000, #000) center / calc(var(--trp) * 1%) 100% no-repeat; mask: linear-gradient(#000, #000) center / 100% calc(var(--trp) * 1%) no-repeat, linear-gradient(#000, #000) center / calc(var(--trp) * 1%) 100% no-repeat; }
.tr-boxout > .tr-new, .tr-demo-boxout > b { clip-path: inset(calc(50% - var(--trp) * .5%)); }
.tr-boxin > .tr-old, .tr-demo-boxin > i { z-index: 3; clip-path: inset(calc(var(--trp) * .5%)); }
.tr-blindsh > .tr-new, .tr-demo-blindsh > b { -webkit-mask: linear-gradient(to bottom, #000 calc(var(--trp) * 1%), transparent 0) 0 0 / 100% 12.5%; mask: linear-gradient(to bottom, #000 calc(var(--trp) * 1%), transparent 0) 0 0 / 100% 12.5%; }
.tr-blindsv > .tr-new, .tr-demo-blindsv > b { -webkit-mask: linear-gradient(to right, #000 calc(var(--trp) * 1%), transparent 0) 0 0 / 10% 100%; mask: linear-gradient(to right, #000 calc(var(--trp) * 1%), transparent 0) 0 0 / 10% 100%; }
.tr-dissolve > .tr-new, .tr-demo-dissolve > b { -webkit-mask: radial-gradient(circle, #000 calc(var(--trp) * .75%), transparent calc(var(--trp) * .75% + 1%)) 0 0 / 2.5% 4.44%; mask: radial-gradient(circle, #000 calc(var(--trp) * .75%), transparent calc(var(--trp) * .75% + 1%)) 0 0 / 2.5% 4.44%; }
.tr-randombar > .tr-new, .tr-demo-randombar > b { --m: repeating-linear-gradient(to bottom, #000 0 calc(var(--trp) * .03%), transparent 0 3%, #000 3% calc(3% + var(--trp) * .07%), transparent 0 10%, #000 10% calc(10% + var(--trp) * .02%), transparent 0 12%, #000 12% calc(12% + var(--trp) * .05%), transparent 0 17%, #000 17% calc(17% + var(--trp) * .04%), transparent 0 21%); -webkit-mask: var(--m); mask: var(--m); }
.tr-wheel1 > .tr-new, .tr-demo-wheel1 > b { -webkit-mask: conic-gradient(#000 calc(var(--trp) * 3.6deg), transparent 0); mask: conic-gradient(#000 calc(var(--trp) * 3.6deg), transparent 0); }
.tr-wheel4 > .tr-new, .tr-demo-wheel4 > b { -webkit-mask: repeating-conic-gradient(#000 0 calc(var(--trp) * .9deg), transparent 0 90deg); mask: repeating-conic-gradient(#000 0 calc(var(--trp) * .9deg), transparent 0 90deg); }
.tr-wheel8 > .tr-new, .tr-demo-wheel8 > b { -webkit-mask: repeating-conic-gradient(#000 0 calc(var(--trp) * .45deg), transparent 0 45deg); mask: repeating-conic-gradient(#000 0 calc(var(--trp) * .45deg), transparent 0 45deg); }
.tr-wedge > .tr-new, .tr-demo-wedge > b { -webkit-mask: conic-gradient(from calc(var(--trp) * -1.8deg), #000 calc(var(--trp) * 3.6deg), transparent 0); mask: conic-gradient(from calc(var(--trp) * -1.8deg), #000 calc(var(--trp) * 3.6deg), transparent 0); }
.tr-newsflash > .tr-new, .tr-demo-newsflash > b { animation-name: trp, tr-spin; }
.tr-strips > .tr-new, .tr-demo-strips > b { clip-path: polygon(0 0, calc(var(--trp) * 2%) 0, 0 calc(var(--trp) * 2%)); }
/* tanlash oynasi */
.tg-trans .btn.on { border-color: var(--ui-accent); color: var(--ui-accent); }
.pro-mini { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; font: 700 10px/1 Inter, system-ui, sans-serif; font-style: normal; color: #B45309; background: #FEF3C7; padding: 3px 5px; border-radius: 6px; }
.pro-mini svg { width: 10px; height: 10px; }
.trp-opts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.trp-opts label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.trp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; padding: 4px 2px 12px; }
.trp-card { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1.5px solid var(--ui-border); border-radius: 12px; background: #fff; text-align: center; }
.trp-card:hover { border-color: #C9C6F2; }
.trp-card.on { border-color: var(--ui-accent); box-shadow: 0 0 0 3px var(--ui-soft); }
.trp-name { font-size: 12px; font-weight: 600; color: var(--ui-text); line-height: 1.2; }
.trp-demo { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #0F172A; --trd: 1300ms; }
:where(.trp-demo > i), :where(.trp-demo > b) { position: absolute; inset: 0; display: block; animation: trp var(--trd) linear both; z-index: 2; }
:where(.trp-demo > i) { z-index: 1; }
.trp-demo > i, .trp-demo > b { animation-duration: var(--trd); animation-timing-function: linear; animation-fill-mode: both; animation-iteration-count: infinite !important; animation-play-state: paused !important; animation-delay: -560ms; }
.trp-demo > i { background: linear-gradient(135deg, #CBD5E1, #94A3B8); }
.trp-demo > b { background: linear-gradient(135deg, #6366F1, #A855F7); }
.trp-card:hover .trp-demo > i, .trp-card:hover .trp-demo > b { animation-play-state: running !important; animation-delay: 0s; }
@media (max-width: 760px) { .trp-grid { grid-template-columns: repeat(3, 1fr); gap: 7px; } .trp-card { padding: 6px; } }
.obj-bar .ob-txtbtn { white-space: nowrap; }

/* ------------------------------------------------------------ slayd bloki: shu slaydga tegishli amallar */
.slide-bar { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 6px 8px 6px 12px; background: #F6F5FF; border: 1px solid #DCD9F7; border-radius: 12px; }
.slide-bar .sb-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #4338CA; white-space: nowrap; flex: none; }
.slide-bar .sb-label svg { width: 15px; height: 15px; }
.slide-bar .sb-label b { background: #fff; border: 1px solid #DCD9F7; border-radius: 7px; padding: 2px 7px; font-weight: 700; color: var(--ui-text); min-width: 46px; text-align: center; }
.slide-bar .sb-btns { display: flex; gap: 4px; flex: none; }
.slide-bar .icon-btn { width: 34px; height: 34px; display: grid; place-items: center; background: #fff; }
.slide-bar .icon-btn svg { width: 16px; height: 16px; }
.slide-bar .icon-btn.danger { color: var(--ui-danger, #DC2626); }
.slide-bar .sb-tr { margin-left: auto; flex: 0 1 auto; min-width: 0; max-width: 240px; background: #fff; }
.slide-bar .sb-tr > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.slide-bar .sb-tr.on { border-color: var(--ui-accent); color: var(--ui-accent); }
.slide-bar .sb-tr .pro-mini { flex: none; }
@media (max-width: 980px) {
  .stage > #slideBar, .stage > #objBar { order: 1; }
  .slide-bar { flex-wrap: wrap; gap: 8px; padding: 8px; }
  .slide-bar .sb-btns { margin-left: auto; }
  .slide-bar .sb-tr { margin-left: 0; flex: 1 1 100%; max-width: none; justify-content: center; }
}

/* ------------------------------------------------------------ biznes dizaynlar: tilla hoshiya va belgi */
.tcard.biz { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #F8E08E, #C9A227 35%, #FFF1B8 55%, #B8860B) border-box; box-shadow: 0 2px 10px rgba(201, 162, 39, .22); }
.tcard.biz:hover { box-shadow: 0 6px 18px rgba(201, 162, 39, .34); }
.tcard.biz.sel-on { background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #F8E08E, #C9A227 35%, #FFF1B8 55%, #B8860B) border-box; box-shadow: 0 0 0 3px var(--ui-accent), 0 6px 18px rgba(201, 162, 39, .34); }
.tag.pro.gold, .tp-tag.gold { background: linear-gradient(135deg, #FBE7A1, #D4AF37 55%, #B8860B); color: #2A1E00; font-weight: 800; letter-spacing: .02em; padding: 3px 9px 3px 7px; border-radius: 99px; box-shadow: 0 2px 6px rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(255, 255, 255, .45); text-shadow: 0 1px 0 rgba(255, 255, 255, .35); display: inline-flex; align-items: center; gap: 4px; }
.tag.pro.gold svg, .tp-tag.gold svg { width: 12px; height: 12px; }
.tp-card.biz .tp-img { box-shadow: 0 0 0 2px #D4AF37, 0 2px 10px rgba(201, 162, 39, .25); }
.tp-card.biz:hover .tp-img { box-shadow: 0 0 0 2px #D4AF37, 0 8px 18px rgba(201, 162, 39, .35); }
.tp-card.biz.on .tp-img { box-shadow: 0 0 0 2px #D4AF37, 0 0 0 5px var(--ui-accent); }

/* AI rasm oynasi */
.img-dlg { max-width: 480px; }
.img-dlg textarea.dlg-in { width: 100%; min-height: 76px; resize: vertical; font: inherit; }
.img-q { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 4px; text-align: left; }
.img-q label { display: flex; gap: 8px; align-items: flex-start; padding: 10px; border: 1.5px solid var(--ui-border); border-radius: 12px; cursor: pointer; }
.img-q label:has(input:checked) { border-color: var(--ui-accent); background: var(--ui-soft); }
.img-q input { margin-top: 3px; accent-color: var(--ui-accent); }
.img-q b { display: block; font-size: 13.5px; } .img-q small { display: block; color: var(--ui-muted); font-size: 11.5px; line-height: 1.25; }
@media (max-width: 480px) { .img-q { grid-template-columns: 1fr; } }

/* yon panel: bir vaqtda yozilayotgan bir nechta taqdimot */
.side-gen { border: 0; background: none; padding: 0; margin-bottom: 8px; cursor: default; gap: 6px; }
.side-gen:hover { border: 0; }
.side-gen .sg-item { all: unset; box-sizing: border-box; width: 100%; display: flex; flex-direction: column; gap: 5px; text-align: left; cursor: pointer;
  border: 1px solid #DDD8FB; background: linear-gradient(135deg, #F5F3FF, #FFFFFF); border-radius: 14px; padding: 10px 12px; }
.side-gen .sg-item:hover { border-color: #B9B6F7; }
.side.mini .side-gen { padding: 0; }
.side.mini .side-gen .sg-item { padding: 8px; align-items: center; }

/* ------------------------------------------------------------ bo'sh slayd taklifi, blok oynasi, undo, tepaga tugmasi */
.empty-hint { position: absolute; z-index: 25; display: grid; place-items: center; border: 2px dashed color-mix(in srgb, var(--ui-accent, #6366F1) 45%, transparent); border-radius: 14px; background: color-mix(in srgb, #fff 10%, transparent); pointer-events: none; }
.empty-hint > span { pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 14px 18px; border-radius: 14px; background: rgba(255, 255, 255, .96); box-shadow: 0 8px 24px rgba(16, 24, 40, .16); max-width: 92%; font-family: Inter, system-ui, sans-serif; }
.empty-hint b { font-size: 15px; color: #15151F; } .empty-hint small { font-size: 12.5px; color: #6B7280; line-height: 1.35; }
.empty-hint .eh-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.tg-undo { display: flex; gap: 4px; }
.tg-undo .icon-btn { width: 36px; height: 36px; display: grid; place-items: center; }
.tg-undo .icon-btn svg { width: 16px; height: 16px; }
.tg-undo .icon-btn:disabled { opacity: .4; cursor: default; }
.ob-quick .qc.tc { box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px color-mix(in srgb, var(--ui-accent, #6366F1) 55%, transparent); }
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 46; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--ui-border); background: #fff; color: var(--ui-accent); cursor: pointer; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(16, 24, 40, .18); transition: transform .15s, opacity .2s; }
.to-top:hover { transform: translateY(-2px); background: var(--ui-soft); }
.to-top svg { width: 22px; height: 22px; }
.to-top.hidden { display: none; }
@media (max-width: 760px) { .to-top { right: 12px; bottom: 84px; width: 42px; height: 42px; } .empty-hint > span { padding: 10px 12px; } .empty-hint small { display: none; } }
@media print { .to-top, .empty-hint { display: none !important; } }
/* slayd bloki: rasmni asl joyiga qaytarish */
.slide-bar .sb-back { margin-left: auto; flex: none; background: #fff; border-color: #F5D08A; color: #92400E; }
.slide-bar .sb-back:hover { background: #FFFBEB; }
.slide-bar .sb-back:not(.hidden) + .sb-tr { margin-left: 0; }
@media (max-width: 980px) { .slide-bar .sb-back { margin-left: 0; flex: 1 1 100%; justify-content: center; } }

/* erkin video elementi */
.ob-vid { width: 100%; height: 100%; object-fit: cover; background: #000; display: block; }
.obj-layer.live .ob-vid { pointer-events: none; }
.obj-layer.play .ob-video { pointer-events: auto; }
.ob-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 5.2cqw; height: 5.2cqw; min-width: 34px; min-height: 34px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(17, 24, 39, .72); color: #fff; font-size: 2cqw; display: grid; place-items: center; z-index: 2; padding: 0 0 0 .15em; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.ob-play:hover { background: var(--ui-accent, #6366F1); }
.ob-play.on { opacity: .25; padding: 0; } .ob:hover .ob-play.on { opacity: 1; }
.ob-vposter { width: 100%; height: 100%; background: #111 center / cover; display: grid; place-items: center; }
.ob-vposter i { font-style: normal; color: #fff; font-size: 2.6cqw; width: 5cqw; height: 5cqw; border-radius: 50%; background: rgba(17, 24, 39, .7); display: grid; place-items: center; padding-left: .15em; }

/* AI rasm variantlarini tanlash */
.img-pick { max-width: 760px; width: calc(100vw - 32px); }
.img-vars { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 6px; }
.img-var { all: unset; cursor: pointer; border-radius: 12px; overflow: hidden; border: 2px solid var(--ui-border); display: block; aspect-ratio: 16 / 9; background: #F3F4F6; transition: transform .12s, border-color .12s; }
.img-var:hover, .img-var:focus-visible { border-color: var(--ui-accent); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(79, 70, 229, .22); }
.img-var img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 560px) { .img-vars { grid-template-columns: 1fr; } }

/* AI rasm chizilish holati */
#sGenImg .gi-meta { font-style: normal; font-size: 11px; font-weight: 700; margin-left: 6px; padding: 2px 6px; border-radius: 6px; background: var(--ui-soft); color: var(--ui-accent); }
#sGenImg:disabled { opacity: 1; color: var(--ui-accent); border-color: #C9C6F2; background: #F8F7FF; }
.thumb { position: relative; }
.th-draw { position: absolute; right: 6px; bottom: 6px; z-index: 3; display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 99px; background: var(--ui-accent, #4F46E5); color: #fff; font: 700 10px/1.4 Inter, system-ui, sans-serif; box-shadow: 0 2px 6px rgba(79, 70, 229, .4); }
.th-draw svg { width: 10px; height: 10px; }
.stage-draw { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 8px; padding: 8px 14px 10px; border-radius: 12px; background: rgba(17, 24, 39, .86); color: #fff; font-family: Inter, system-ui, sans-serif; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); overflow: hidden; pointer-events: none; white-space: nowrap; }
.stage-draw svg { width: 18px; height: 18px; color: #A5B4FC; flex: none; }
.stage-draw b { display: block; font-size: 13px; } .stage-draw small { display: block; font-size: 11.5px; opacity: .8; }
.stage-draw i { position: absolute; left: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #818CF8, #C084FC); transition: width 1s linear; }
@media (max-width: 760px) { .stage-draw { padding: 6px 10px 8px; gap: 6px; } .stage-draw b { font-size: 12px; } .stage-draw small { font-size: 10.5px; } }
#sGenImg { white-space: nowrap; }
@media (max-width: 760px) { #sGenImg .gi-meta { display: none; } #sGenImg > span { overflow: hidden; text-overflow: ellipsis; } }

/* ------------------------------------------------------------ chap menyu: TOP 5 (yangilangan) */
.side-top5 { border-radius: 18px; border-color: #ECE8FB; background: linear-gradient(180deg, #FBF9FF 0%, #fff 70%); box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.st-head { gap: 9px; padding: 13px 13px 8px; align-items: center; }
.st-ic { width: 32px; height: 32px; border-radius: 10px; flex: none; box-shadow: 0 2px 8px rgba(245, 179, 0, .35); }
.st-ic svg { width: 17px; height: 17px; }
.st-hd { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.st-hd b { font-size: 15px; font-weight: 800; letter-spacing: -.01em; color: var(--ui-text, #15151F); }
.st-hd small { font-size: 11px; color: var(--ui-muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-list { gap: 2px; padding: 2px 7px 4px; }
.st-i { grid-template-columns: 54px 1fr; gap: 10px; align-items: start; padding: 8px 6px; border-radius: 12px; }
.st-i + .st-i { border-top: 1px dashed #EEEAFB; border-radius: 0 0 12px 12px; }
.st-i:hover { background: #F3F0FF; border-radius: 12px; border-top-color: transparent; }
.st-img { width: 54px; margin-top: 2px; }
.st-txt { gap: 5px; }
.st-t { font-size: 12.5px; font-weight: 600; line-height: 1.3; display: block; -webkit-line-clamp: unset; overflow: visible; overflow-wrap: anywhere; white-space: normal; text-overflow: clip; }
.st-p { display: inline-flex; align-self: flex-start; align-items: center; gap: 4px; padding: 2px 8px 2px 6px; border-radius: 99px; background: #EEF2FF; color: #4338CA; font-size: 11px; font-weight: 800; white-space: nowrap; }
.st-p svg { width: 11px; height: 11px; }
.st-i:hover .st-p { background: var(--ui-accent); color: #fff; }
.st-all { display: flex; justify-content: space-between; align-items: center; margin: 4px 10px 11px; padding: 7px 7px 7px 13px; border-radius: 12px; background: #F3F0FF; border: 0; color: #4338CA; font-size: 12.5px; font-weight: 700; text-decoration: none; transition: background .15s, color .15s; }
.st-all i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ui-accent); font-style: normal; box-shadow: 0 1px 3px rgba(79, 70, 229, .18); transition: transform .15s; }
.st-all i svg { width: 13px; height: 13px; }
.st-all:hover { background: var(--ui-accent); color: #fff; }
.st-all:hover i { transform: translateX(2px); }
/* TOP 5: ekran past bo'lsa ro'yxat ichida suriladi — sarlavha va "Barcha taqdimotlar" doim ko'rinadi */
.side-top5 { display: flex; flex-direction: column; min-height: 150px; }
.side-top5 .st-head, .side-top5 .st-all { flex: none; }
.side-top5 .st-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #D9D4FA transparent; }
.side-top5 .st-list::-webkit-scrollbar { width: 5px; } .side-top5 .st-list::-webkit-scrollbar-thumb { background: #D9D4FA; border-radius: 9px; }
@media (max-width: 900px) { /* telefonda menyu o'zi suriladi — TOP 5 to'liq ko'rinsin */
  .side-top5 { flex: none; min-height: 0; }
  .side-top5 .st-list { overflow: visible; }
}
.th-draw.wait { background: #fff; color: #4338CA; box-shadow: 0 1px 4px rgba(16, 24, 40, .2); }
.stage-draw:not(:has(i)) { padding-bottom: 8px; }

/* ixcham element boshqaruvi: [−] Element [+] */
.tg-items { display: inline-flex; align-items: center; gap: 2px; padding: 3px; }
.tg-items .icon-btn { width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 8px; }
.tg-items .icon-btn:hover:not(:disabled) { background: var(--ui-soft); color: var(--ui-accent); }
.tg-items .icon-btn:disabled { opacity: .35; cursor: default; }
.tg-items .icon-btn svg { width: 16px; height: 16px; }
.tg-items .it-lbl { font-size: 13px; font-weight: 600; padding: 0 4px; color: var(--ui-text); user-select: none; }
/* slayd bloki: undo/redo boshida, "Qayta yozish" shu yerda */
.slide-bar .tg-undo { display: flex; gap: 3px; padding-right: 8px; margin-right: 2px; border-right: 1px solid #DCD9F7; }
.slide-bar .tg-undo .icon-btn { width: 34px; height: 34px; background: #fff; }
.slide-bar .sb-regen { flex: none; background: #fff; }
.slide-bar .sb-regen:disabled { opacity: .5; }
.slide-bar .sb-regen:not(:disabled):hover { border-color: var(--ui-accent); color: var(--ui-accent); }
@media (max-width: 980px) {
  .slide-bar .tg-undo { width: auto; border-right: 0; padding-right: 0; }
  .slide-bar .sb-regen { flex: 1 1 auto; justify-content: center; }
  .tools .tg-items { justify-content: space-between; }
}

/* ------------------------------------------------------------ asboblar: har bir funksiya alohida tugma */
.tools .tg { background: none; border: 0; border-radius: 0; overflow: visible; gap: 6px; }
.tools .tg > * + * { border-left: 0 !important; }
.tools .tg > .btn, .tools .tg > .icon-btn { border: 1px solid var(--ui-border) !important; border-radius: 10px !important; background: #fff; padding: 0 12px; }
.tools .tg > .icon-btn { padding: 0; }
.tools .tg > .btn:hover:not(:disabled), .tools .tg > .icon-btn:hover:not(:disabled) { border-color: #C9C6F2 !important; background: #F8F7FF; }
.tools .tg > .btn:disabled { color: var(--ui-accent); border-color: #C9C6F2 !important; background: #F8F7FF; }
.tools .tg + .tg { margin-left: 8px; }
/* [−] Element [+] — bitta boshqaruv sifatida qoladi */
.tools .tg-items { border: 1px solid var(--ui-border); border-radius: 10px; background: #fff; gap: 0; padding: 2px; }
.tools .tg-items > .icon-btn { border: 0 !important; height: 32px; width: 32px; }
/* havola: manzil maydoni */
.ob-url { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 4px 0 9px; border: 1px solid var(--ui-border); border-radius: 9px; background: #fff; min-width: 220px; flex: 1 1 260px; max-width: 420px; }
.ob-url > svg { width: 15px; height: 15px; color: var(--ui-muted); flex: none; }
.ob-url input { border: 0 !important; outline: none; box-shadow: none !important; background: transparent !important; padding: 0 !important; font-size: 13px; min-width: 0; flex: 1; height: 30px; }
.ob-url:focus-within { border-color: var(--ui-accent); box-shadow: 0 0 0 3px var(--ui-soft); }
.ob-open { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: var(--ui-accent); flex: none; }
.ob-open:hover { background: var(--ui-soft); }
.ob-open svg { width: 14px; height: 14px; }
.ob-link { cursor: inherit; }
a.ob-link { cursor: pointer; text-decoration-thickness: from-font; }
.obj-layer:not(.live) a.ob-link { pointer-events: auto; }
@media (max-width: 980px) {
  .tools .tg { gap: 6px; }
  .tools .tg + .tg { margin-left: 0; }
  .tools .tg > .btn, .tools .tg > .icon-btn { padding: 0 6px; }
  .ob-url { min-width: 0; max-width: none; flex-basis: 100%; }
}
@media (max-width: 760px) { .obj-bar .ob-url { flex: none; width: 240px; min-width: 240px; max-width: none; } }

/* ------------------------------------------------------------ element paneli: kengroq, taqalmagan */
.obj-bar { gap: 8px; padding: 8px 10px; row-gap: 8px; }
.obj-bar .ob-sep { margin: 0 4px; height: 24px; }
.obj-bar .ob-lbl { margin: 0 2px 0 4px; }
.obj-bar button { min-width: 32px; height: 32px; }
.obj-bar .ob-size { height: 32px; } .obj-bar .ob-size input { height: 30px; }
.obj-bar .ob-op { gap: 6px; padding: 0 4px; }
.obj-bar .ob-op input[type=range] { width: 110px; height: 22px; cursor: pointer; touch-action: none; }
/* rang tugmasi */
.obj-bar .ob-sw { gap: 4px; padding: 0 6px 0 4px; border: 1px solid var(--ui-border); border-radius: 9px; background: #fff; }
.obj-bar .ob-sw i { width: 22px; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); display: block; }
.obj-bar .ob-sw.none i { background: repeating-linear-gradient(45deg, #fff 0 4px, #F3F4F6 4px 8px); position: relative; }
.obj-bar .ob-sw.none i::after { content: ''; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; background: #EF4444; transform: rotate(45deg); }
.obj-bar .ob-sw svg { width: 12px; height: 12px; color: var(--ui-muted); }
/* shrift tugmasi */
.obj-bar .ob-font { gap: 6px; justify-content: space-between; width: 168px; padding: 0 8px 0 10px; border: 1px solid var(--ui-border); border-radius: 9px; background: #fff; font-size: 14px; }
.obj-bar .ob-font span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obj-bar .ob-font svg { width: 12px; height: 12px; color: var(--ui-muted); flex: none; }
/* qalinlik */
.ob-swf .ob-unit { font-size: 12px; color: var(--ui-muted); padding-right: 4px; }
.ob-swf input { width: 40px !important; }
.ob-swf .ob-swpre { border-left: 1px solid var(--ui-border) !important; min-width: 26px !important; }
.ob-swf .ob-swpre svg { width: 12px; height: 12px; }
/* ochiladigan oynalar */
.ob-pop { position: fixed; z-index: 120; background: #fff; border: 1px solid var(--ui-border); border-radius: 14px; box-shadow: 0 16px 40px rgba(16, 24, 40, .18); padding: 12px; max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); overflow-y: auto; font-family: Inter, system-ui, sans-serif; }
.pal-pop { width: 316px; }
.pal-h { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ui-muted); margin: 2px 2px 7px; }
.pal-h:not(:first-child) { margin-top: 12px; }
.pal-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pal-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.pal-c { all: unset; box-sizing: border-box; width: 100%; aspect-ratio: 1; min-width: 20px; border-radius: 6px; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); transition: transform .1s; }
.pal-row .pal-c { width: 26px; height: 26px; }
.pal-c:hover { transform: scale(1.15); }
.pal-c.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ui-accent); }
.pal-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ui-border); flex-wrap: wrap; }
.pal-custom { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 12.5px; font-weight: 600; }
.pal-custom input { width: 30px; height: 30px; padding: 0; border: 1px solid var(--ui-border); border-radius: 8px; background: none; cursor: pointer; }
.pal-custom input::-webkit-color-swatch-wrapper { padding: 3px; } .pal-custom input::-webkit-color-swatch { border: 0; border-radius: 5px; }
.pal-hex { width: 88px; height: 30px; border: 1px solid var(--ui-border); border-radius: 8px; padding: 0 8px !important; font: 600 12.5px/1 ui-monospace, Consolas, monospace; text-transform: uppercase; }
.pal-none { all: unset; cursor: pointer; font-size: 12.5px; padding: 6px 9px; border-radius: 8px; border: 1px solid var(--ui-border); margin-left: auto; }
.pal-none.on, .pal-none:hover { border-color: var(--ui-accent); color: var(--ui-accent); }
.fp-pop { width: 260px; padding: 10px; }
.fp-q { width: 100%; height: 34px; border: 1px solid var(--ui-border); border-radius: 9px; padding: 0 10px !important; margin-bottom: 8px; font-size: 13px; }
.fp-list { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; padding-right: 2px; }
.fp-i { all: unset; box-sizing: border-box; flex-shrink: 0; padding: 7px 10px; border-radius: 8px; cursor: pointer; font-size: 17px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-i:hover { background: #F3F2FF; } .fp-i.on { background: #E8E6FF; color: #4338CA; }
.fp-i[hidden] { display: none; }
.sw-pop { width: 170px; padding: 6px; }
.sw-list { display: flex; flex-direction: column; gap: 2px; }
.sw-list button { all: unset; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.sw-list button:hover { background: #F3F2FF; } .sw-list button.on { background: #E8E6FF; color: #4338CA; }
.sw-list i { width: 48px; background: currentColor; border-radius: 2px; flex: none; }
@media (max-width: 760px) {
  .obj-bar { gap: 8px; }
  .obj-bar .ob-font { width: 140px; flex: none; }
  .obj-bar > * { flex-shrink: 0; }
  .pal-pop { width: calc(100vw - 16px); }
}
/* katta raqamlar bir qatorda qoladi va kerak bo'lsa kichrayib sig'adi (bo'linib, qirqilib qolmaydi) */
.slide [data-k^="stats."][data-k$=".value"], .slide .st-v { white-space: nowrap; }
.ob-radf { gap: 0; padding-left: 6px; } .ob-radf > svg { width: 14px; height: 14px; color: var(--ui-muted); margin-right: 2px; }
.ob-radf input { width: 40px !important; }
.ob-text { box-sizing: border-box; }
/* setka */
.grid-ov { position: absolute; inset: 0; z-index: 19; pointer-events: none;
  background-image: linear-gradient(to right, rgba(99, 102, 241, .22) 1px, transparent 1px), linear-gradient(to bottom, rgba(99, 102, 241, .22) 1px, transparent 1px);
  background-size: calc(100% / 24) calc(100% / 13.5); }
.slide-bar .sb-grid { flex: none; background: #fff; }
.slide-bar .sb-grid.on { border-color: var(--ui-accent); color: var(--ui-accent); background: var(--ui-soft); }
@media print { .grid-ov { display: none; } }
.slide-bar { flex-wrap: wrap; row-gap: 8px; } .slide-bar .sb-tr { max-width: none; }

/* ===== Slayd paneli: tugmalar ketma-ket, bo'sh joysiz oqadi (kompyuter va mobil).
   Yangi tugma qo'shilsa ham shu qoida bilan avtomatik joylashadi: ikonkalar ixcham,
   yozuvli tugmalar qatordagi qolgan joyni teng to'ldiradi — "teshik" qolmaydi. */
.slide-bar { flex-wrap: wrap; gap: 6px; row-gap: 6px; justify-content: flex-start; padding: 6px; }
.slide-bar > *, .slide-bar .sb-btns > *, .slide-bar .tg-undo > * { margin: 0 !important; }
.slide-bar .tg-undo, .slide-bar .sb-btns { display: contents; }
.slide-bar .icon-btn, .slide-bar .sb-label { flex: 0 0 auto; }
.slide-bar .sb-label { padding: 0 4px; }
.slide-bar > .btn { flex: 1 1 auto; max-width: none; justify-content: center; white-space: nowrap; }
.slide-bar > .btn.hidden { display: none; }
@media (max-width: 760px) {
  .slide-bar .icon-btn { width: 38px; height: 38px; }
  .slide-bar > .btn { min-height: 38px; }
}
/* element paneli: bog'liq tugmalar (B I U, tekislash, fon, tartib) bitta guruh — hech qachon qatorlarga bo'linmaydi */
.obj-bar .ob-grp { display: inline-flex; align-items: center; gap: 4px; flex: none; }

/* ===== "Tanlangan dizayn" paneli — ajralib turadi; mobilda tugma yozuvi bilan, ikki qator */
.pick-bar { border: 1.5px solid #C9C4FA; background: linear-gradient(180deg, #FFFFFF 0%, #F7F6FF 100%); box-shadow: 0 -2px 0 rgba(79, 70, 229, .06), 0 18px 50px rgba(30, 27, 75, .26); }
.pick-bar .pb-txt .hint { color: var(--ui-accent); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 11px; }
.pick-bar .pb-txt b { font-size: 16px; }
#v-designs { padding-bottom: 120px; }
@media (max-width: 900px) {
  .pick-bar { display: grid; grid-template-columns: 76px 1fr; gap: 10px 12px; padding: 12px; bottom: 12px; border-radius: 20px; }
  .pick-bar .pb-thumb { width: 76px; }
  .pick-bar .btn span { display: inline; }
  .pick-bar #pbGo { grid-column: 1 / -1; width: 100%; justify-content: center; gap: 8px; min-height: 50px; font-size: 16px; }
  #v-designs { padding-bottom: 190px; }
  body:has(#v-designs:not(.hidden)) .to-top { bottom: 196px; }
}
@media (min-width: 901px) { .pick-bar .pb-txt { min-width: 150px; } .pick-bar #pbGo { flex: 0 0 auto; width: auto; } }
/* yaratish sahifasi: Dizaynlar bo'limidan tanlab kelinganda — faqat tanlangan dizayn kartochkasi */
#chosenDesign { max-width: 760px; margin-top: 28px; border: 1.5px solid #C9C4FA; background: linear-gradient(180deg, #fff, #F7F6FF); box-shadow: 0 10px 30px rgba(30, 27, 75, .10); }
#chosenDesign .ch-txt .hint { color: var(--ui-accent); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 11px; }
#chosenDesign .ch-txt b { font-size: 16px; }
#chosenDesign .btn { flex: none; }
@media (max-width: 760px) { #chosenDesign { margin: 20px 0 0; } #chosenDesign .ch-thumb { width: 92px; } #chosenDesign .btn span, #chosenDesign .btn { white-space: nowrap; } }

/* ===== Yaratish maydoni: boshqaruvlar tartibli to'rda (planshet va mobil).
   1-qator: biriktirish | AI yozsin / O'z matnim | yuborish
   2-3-qator: ohang, istaklar, slaydlar soni, til — teng kenglikda, ikkitadan */
@media (max-width: 1100px) {
  .ptools { display: grid; grid-template-columns: 40px 1fr 1fr 44px; gap: 8px; align-items: center; }
  .ptools .sp { display: none; }
  .ptools #attBtn { grid-column: 1; grid-row: 1; }
  .ptools .seg { grid-column: 2 / 4; grid-row: 1; justify-self: start; }
  .ptools .send { grid-column: 4; grid-row: 1; margin: 0; justify-self: end; }
  .ptools .pt-sel-wrap, .ptools .pt-chip { width: 100%; min-width: 0; height: 40px; box-sizing: border-box; }
  .ptools .pt-sel-wrap .pt-sel { flex: 1; min-width: 0; max-width: none; width: 100%; text-overflow: ellipsis; }
  .ptools .pt-chip { justify-content: flex-start; padding: 0 12px; }
  .ptools > :nth-child(5) { grid-column: 1 / 3; }   /* ohang */
  .ptools > :nth-child(6) { grid-column: 3 / 5; }   /* istaklar */
  .ptools > :nth-child(7) { grid-column: 1 / 3; }   /* slaydlar soni */
  .ptools > :nth-child(8) { grid-column: 3 / 5; }   /* til */
  .ptools .hidden, .ptools [hidden] { display: none !important; }
}
/* bosh sahifa: 3 ta tezkor kartochka — planshetda 3 tasi bir qatorda, telefonda ixcham qatorlar (2+1 "teshik"siz) */
@media (max-width: 1000px) { .quick { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .quick { grid-template-columns: 1fr; gap: 10px; }
  .quick .qk { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; align-items: center; text-align: left; padding: 14px; }
  .quick .qk .qk-ic { grid-row: 1 / 3; margin: 0; }
  .quick .qk b { grid-column: 2; align-self: end; }
  .quick .qk > span:last-child { grid-column: 2; align-self: start; }
}
@media (max-width: 640px) { .quick .qk b { margin: 0; } }
@media (max-width: 640px) {
  /* imkoniyat kartochkalari: belgi chapda, matn o'ngda — ixcham */
  .feat { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; row-gap: 2px; align-items: start; padding: 14px; }
  .feat .ft-ic { grid-row: 1 / 3; margin: 0; }
  .feat b { grid-column: 2; margin: 0; }
  .feat p { grid-column: 2; margin: 2px 0 0; }
  /* "Yangi taqdimot" plitkasi — bo'sh baland quti emas, ixcham tugma */
  .rc-new { min-height: 64px; flex-direction: row; }
}

/* ===== Dizaynlar sarlavhasi: chapda — nom, izoh va ajratilgan tablar; kategoriyalar bitta ixcham qatorda */
#designs .page-head { align-items: flex-start; }
#designs .ph-main { display: flex; flex-direction: column; align-items: flex-start; gap: 0; min-width: 0; width: 100%; }
#designs .dtabs { display: inline-flex; gap: 4px; margin: 14px 0 0; padding: 4px; background: #F1F0FB; border: 1px solid #E3E1F7; border-radius: 14px; box-shadow: none; }
#designs .dtabs .tab { border: 0; border-radius: 10px; padding: 8px 16px; font-size: 14px; font-weight: 600; color: #5B6175; background: transparent; box-shadow: none; }
#designs .dtabs .tab:hover { color: var(--ui-text); background: rgba(255, 255, 255, .6); }
#designs .dtabs .tab.active { background: #fff; color: var(--ui-accent); box-shadow: 0 1px 3px rgba(16, 24, 40, .10), 0 0 0 1px #E3E1F7; }
#designs.in-create .dtabs { margin-top: 10px; }

.ff-wrap { position: relative; display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.ff-wrap .fam-filter { flex: 1; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0; padding: 2px 0; scroll-behavior: smooth; }
.ff-wrap .fam-filter::-webkit-scrollbar { display: none; }
.ff-wrap .fam-filter .chip { flex: none; padding: 6px 13px; font-size: 13px; min-height: 0; }
.ff-arr { display: none; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--ui-border); background: #fff; color: var(--ui-text); cursor: pointer; place-items: center; box-shadow: 0 1px 3px rgba(16, 24, 40, .08); }
.ff-arr svg { width: 16px; height: 16px; }
.ff-arr:hover { border-color: var(--ui-accent); color: var(--ui-accent); }
.ff-wrap.scrolls .ff-arr { display: grid; }
.ff-arr.off { opacity: .35; pointer-events: none; }
@media (max-width: 760px) {
  #designs .dtabs { display: flex; width: 100%; box-sizing: border-box; }
  #designs .dtabs .tab { flex: 1; justify-content: center; padding: 9px 8px; }
  .ff-wrap.scrolls .ff-arr { display: none; }          /* telefonda barmoq bilan suriladi */
  .ff-wrap .fam-filter { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
}
/* dizaynlar: telefonda ikkitadan — kamroq aylantirish, ko'proq tanlov ko'rinadi */
@media (max-width: 640px) {
  .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .theme-grid .tcard { padding: 6px 6px 8px; }
  .theme-grid .tcard b, .theme-grid .tcard .tname { font-size: 13px; }
}
/* TOP sahifasi: saralash tugmalari telefonda yashirinmasin — ikki qatorga teng to'lib joylashadi */
@media (max-width: 640px) {
  #v-top .seg { flex-wrap: wrap; overflow: visible; width: 100%; box-sizing: border-box; }
  #v-top .seg button { flex: 1 1 auto; justify-content: center; padding: 8px 10px; font-size: 13px; }
}
.pl-card .progress { height: 8px; background: #ECEBFA; max-width: none; }
/* "Istaklar" maydoni — yozuv to'liq ko'rinadi, matnga qarab o'sadi */
.prompt textarea.extra { display: block; width: 100%; box-sizing: border-box; min-height: 52px; line-height: 1.4; resize: none; overflow: auto; }
.prompt textarea.extra.hidden { display: none; }
@media (max-width: 640px) {
  .ideas { gap: 6px; justify-content: center; }
  .ideas .idea { font-size: 13px; padding: 6px 11px; gap: 5px; }
  .ideas .idea .ico, .ideas .idea svg { width: 13px; height: 13px; }
}
/* kategoriyalar: "Biznes" — oltin, toj belgisi bilan ajratilgan; yonida ingichka ajratgich */
.fam-filter .chip-biz { display: inline-flex; align-items: center; gap: 5px; color: #8A5A00; font-weight: 700; border: 1.5px solid #E8B84A; background: linear-gradient(135deg, #FFF8E1, #FDEBB8); box-shadow: 0 1px 4px rgba(214, 158, 46, .25); }
.fam-filter .chip-biz svg { width: 14px; height: 14px; color: #C98A00; }
.fam-filter .chip-biz:hover { border-color: #D69E2E; background: linear-gradient(135deg, #FFF3CC, #FADF92); color: #6B4500; }
.fam-filter .chip-biz.on { color: #fff; border-color: #C98A00; background: linear-gradient(135deg, #E0A526, #B7791F); box-shadow: 0 4px 12px rgba(183, 121, 31, .35); }
.fam-filter .chip-biz.on svg { color: #fff; }
.fam-filter .ff-sep { flex: none; width: 1px; align-self: stretch; margin: 4px 4px; background: var(--ui-border); }
/* qator oxiriga yetganda o'ngdagi oq so'nish yo'qoladi */
.ff-wrap .fam-filter.at-end { -webkit-mask-image: none; mask-image: none; }
/* footer endi asosiy ustun ichida: chap menyu footergacha uzluksiz davom etadi (tillar "osilib" qolmaydi) */
.main > .site-foot { margin-top: auto; padding: 40px 28px 24px; }
.main > .site-foot > * { max-width: 1320px; margin-left: auto; margin-right: auto; }
.side { border-right: 1px solid var(--ui-border); }

/* ===== Sayt rejimi: och / to'q almashtirgich (yon menyu pastida, tillar yonida) */
.ui-row { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.ui-row .ui-lang { flex: 1; margin-top: 0; }
.theme-tg { flex: none; width: 38px; height: 34px; border-radius: 11px; border: 0; background: #F1F2F7; color: #4B5165; cursor: pointer; display: grid; place-items: center; position: relative; overflow: hidden; }
.theme-tg:hover { color: var(--ui-accent); }
.theme-tg span { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .25s, opacity .25s; }
.theme-tg svg { width: 17px; height: 17px; }
.theme-tg .tg-moon { transform: translateY(100%); opacity: 0; }
.theme-tg.dark .tg-sun { transform: translateY(-100%); opacity: 0; }
.theme-tg.dark .tg-moon { transform: none; opacity: 1; }
@media (min-width: 901px) { .side.mini .ui-row { flex-direction: column; }
.side.mini .theme-tg { width: 100%; } }

/* dizaynlar sahifasi: pastdagi "Tanlangan dizayn" paneli footerni yopmasin */
body:has(#v-designs:not(.hidden)) .site-foot { padding-bottom: 120px; }
@media (max-width: 900px) { body:has(#v-designs:not(.hidden)) .site-foot { padding-bottom: 190px; } #v-designs { padding-bottom: 24px; } }



/* =====================================================================
   BOSH SAHIFA — yangilangan ko'rinish
   ===================================================================== */
/* --- bosh blok: to'q binafsha fon, rangli nur dog'lari, oq matn --- */
.home-hero { position: relative; isolation: isolate; color: #fff; border: 0; padding: 44px 44px 40px; border-radius: 28px;
  background:
    radial-gradient(520px 320px at 12% 0%, rgba(124, 58, 237, .55) 0%, transparent 70%),
    radial-gradient(460px 300px at 100% 100%, rgba(236, 72, 153, .38) 0%, transparent 70%),
    radial-gradient(420px 260px at 70% 10%, rgba(59, 130, 246, .40) 0%, transparent 70%),
    linear-gradient(135deg, #1E1B4B 0%, #312E81 55%, #4C1D95 100%);
  box-shadow: 0 24px 60px rgba(49, 46, 129, .28); }
.home-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: .35;
  background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(120deg, #000 0%, transparent 65%); mask-image: linear-gradient(120deg, #000 0%, transparent 65%); }
.home-hero h1 { color: #fff; font-size: clamp(30px, 3.6vw, 48px); font-weight: 800;
  background: linear-gradient(90deg, #FFFFFF 0%, #FFFFFF 45%, #F0ABFC 75%, #A5B4FC 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.home-hero .q { color: rgba(237, 233, 254, .82); font-size: 16.5px; line-height: 1.55; }
.home-hero .hero-tag { color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.home-hero .hero-tag .ico, .home-hero .hero-tag svg { color: #FDE68A; }
.home-hero .hh-btns .btn.primary { background: #fff; color: #3B2A9E; border: 0; box-shadow: 0 10px 28px rgba(0, 0, 0, .25); }
.home-hero .hh-btns .btn.primary:hover { background: #F5F3FF; transform: translateY(-1px); }
.home-hero .hh-btns .btn.primary svg { color: #7C3AED; }
.home-hero .hh-btns .btn:not(.primary) { background: rgba(255, 255, 255, .10); color: #fff; border: 1px solid rgba(255, 255, 255, .28); }
.home-hero .hh-btns .btn:not(.primary):hover { background: rgba(255, 255, 255, .18); }
.hh-trust { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 20px; font-size: 13px; color: rgba(237, 233, 254, .85); }
.hh-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hh-trust svg { width: 15px; height: 15px; padding: 2px; border-radius: 50%; background: rgba(52, 211, 153, .22); color: #6EE7B7; }
.hh-art { height: 290px; }
.ha { box-shadow: 0 22px 50px rgba(0, 0, 0, .40); border: 1px solid rgba(255, 255, 255, .18); }

/* --- tezkor kartochkalar: rangli belgi, nozik fon, strelka --- */
.quick { gap: 16px; margin-top: 20px; }
.qk { position: relative; overflow: hidden; padding: 20px 20px 18px; border-radius: 20px; border: 1px solid #ECEAF7; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.qk::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; opacity: .55; transition: transform .35s; }
.qk:nth-child(1)::after { background: radial-gradient(circle, #E0E7FF, transparent 70%); }
.qk:nth-child(2)::after { background: radial-gradient(circle, #D1FAE5, transparent 70%); }
.qk:nth-child(3)::after { background: radial-gradient(circle, #FEF3C7, transparent 70%); }
.qk:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(16, 24, 40, .10); border-color: #DCD8F8; }
.qk:hover::after { transform: scale(1.35); }
.qk-ic { width: 46px; height: 46px; border-radius: 14px; color: #fff !important; position: relative; z-index: 1; }
.qk-ic.c1 { background: linear-gradient(135deg, #6366F1, #8B5CF6); box-shadow: 0 8px 18px rgba(99, 102, 241, .35); }
.qk-ic.c2 { background: linear-gradient(135deg, #10B981, #22C55E); box-shadow: 0 8px 18px rgba(16, 185, 129, .30); }
.qk-ic.c3 { background: linear-gradient(135deg, #F59E0B, #F97316); box-shadow: 0 8px 18px rgba(245, 158, 11, .30); }
.qk b { position: relative; z-index: 1; font-size: 16px; margin-top: 12px; }
.qk > span:last-of-type { position: relative; z-index: 1; }
.qk-go { position: absolute; right: 18px; bottom: 18px; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #F4F3FB; color: #6B7285; transition: all .2s; }
.qk-go svg { width: 15px; height: 15px; }
.qk:hover .qk-go { background: var(--ui-accent); color: #fff; transform: translateX(2px); }

/* --- bo'lim sarlavhalari --- */
.home-sec .sec-head h2 { font-size: 22px; letter-spacing: -.02em; }

/* --- imkoniyatlar: rangli belgilar, yumshoq hover --- */
.feat-grid { gap: 16px; }
.feat { border-radius: 20px; border-color: #ECEAF7; padding: 20px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.feat:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(16, 24, 40, .08); border-color: #DCD8F8; }
.ft-ic { width: 42px; height: 42px; border-radius: 13px; color: #fff; }
.ft-ic svg { width: 20px; height: 20px; }
.feat:nth-child(7n+1) .ft-ic { background: linear-gradient(135deg, #6366F1, #8B5CF6); }
.feat:nth-child(7n+2) .ft-ic { background: linear-gradient(135deg, #EC4899, #F472B6); }
.feat:nth-child(7n+3) .ft-ic { background: linear-gradient(135deg, #F59E0B, #F97316); }
.feat:nth-child(7n+4) .ft-ic { background: linear-gradient(135deg, #0EA5E9, #38BDF8); }
.feat:nth-child(7n+5) .ft-ic { background: linear-gradient(135deg, #8B5CF6, #D946EF); }
.feat:nth-child(7n+6) .ft-ic { background: linear-gradient(135deg, #10B981, #22C55E); }
.feat:nth-child(7n+7) .ft-ic { background: linear-gradient(135deg, #475569, #64748B); }
.feat b { font-size: 15.5px; margin-top: 12px; }

/* --- qanday ishlaydi: raqamlar orasida chiziq --- */
.how { position: relative; gap: 16px; }
.how-i { position: relative; border-radius: 20px; border-color: #ECEAF7; padding: 22px 20px; background: linear-gradient(180deg, #FFFFFF, #FBFAFF); }
.how-n { width: 40px; height: 40px; font-size: 17px; box-shadow: 0 8px 18px rgba(99, 102, 241, .35); }
@media (min-width: 1001px) { .how-i:not(:last-child)::after { content: ""; position: absolute; top: 41px; right: -16px; width: 16px; height: 2px; background: linear-gradient(90deg, #A5B4FC, #C4B5FD); } }

/* --- "Davom ettirish": kartochkalar ko'tarilib turadi --- */
.rc { border-radius: 18px; transition: transform .2s, box-shadow .2s; }
.rc:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(16, 24, 40, .10); }
.rc-new { background: linear-gradient(180deg, #FBFAFF, #F4F2FF); border-color: #D6D1FA; color: var(--ui-accent); }
.rc-new:hover { background: #EFEBFF; }

/* --- telefon --- */
@media (max-width: 760px) {
  .home-hero { padding: 26px 20px 24px; border-radius: 22px; }
  .home-hero .hh-btns .btn { width: 100%; justify-content: center; }
  .hh-trust { gap: 6px 12px; font-size: 12.5px; }
}
@media (max-width: 640px) {
  .qk { padding: 14px 52px 14px 14px; }
  .qk-ic { width: 44px; height: 44px; }
  .qk b { margin: 0; }
  .qk-go { right: 12px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .qk:hover .qk-go { transform: translate(2px, -50%); }
}


/* =====================================================================
   YON PANEL — TOP 5: yorqinroq, o'rinlar medal rangida, narx — yorliq
   ===================================================================== */
.side-top5 { border: 1px solid #F1E3B5; background: linear-gradient(180deg, #FFFBEB 0%, #FFFFFF 46%); box-shadow: 0 6px 18px rgba(217, 119, 6, .08); }
.st-head { padding: 13px 13px 9px; border-bottom: 1px dashed #F3E5BC; margin-bottom: 4px; }
.st-ic { background: linear-gradient(135deg, #FCD34D, #F59E0B); box-shadow: 0 4px 12px rgba(245, 158, 11, .40); }
.st-ic svg { color: #fff; }
.st-hd b { background: linear-gradient(90deg, #B45309, #D97706); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.st-i { padding: 7px 6px; }
.st-i + .st-i { border-top: 0; }
.st-i:hover { background: #FFF7E0; }
.st-img { border-radius: 8px; box-shadow: 0 2px 6px rgba(16, 24, 40, .12); }
.st-img img { border-radius: 8px; }
.st-ph { position: absolute; inset: 0; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.st-ph.ph0 { background: linear-gradient(135deg, #6366F1, #A855F7); }
.st-ph.ph1 { background: linear-gradient(135deg, #0EA5E9, #6366F1); }
.st-ph.ph2 { background: linear-gradient(135deg, #F97316, #EC4899); }
.st-ph.ph3 { background: linear-gradient(135deg, #10B981, #0EA5E9); }
.st-ph.ph4 { background: linear-gradient(135deg, #EAB308, #F97316); }
.st-rank { z-index: 2; }
.st-t { font-size: 12.5px; }
.st-p { display: inline-flex; align-items: baseline; gap: 3px; align-self: flex-start; padding: 3px 9px; border-radius: 999px; font-size: 12px; line-height: 1.2;
  background: linear-gradient(135deg, #ECFDF5, #D1FAE5); color: #047857; border: 1px solid #A7F3D0; }
.st-p b { font-weight: 800; letter-spacing: -.01em; }
.st-p small { font-size: 10.5px; font-weight: 600; opacity: .8; }
.st-p svg { display: none; }
.st-i:nth-child(1) .st-p { background: linear-gradient(135deg, #FEF3C7, #FDE68A); color: #92400E; border-color: #FCD34D; }
.st-all { background: linear-gradient(135deg, #FDE68A, #F59E0B); color: #78350F; border: 0; box-shadow: 0 4px 12px rgba(245, 158, 11, .30); }
.st-all:hover { background: linear-gradient(135deg, #FCD34D, #D97706); color: #fff; }
.home-hero h1 { background: linear-gradient(180deg, #FFFFFF 25%, #E9D5FF 75%, #C4B5FD 100%); -webkit-background-clip: text; background-clip: text; }


/* =====================================================================
   BOSH BLOK: 5 ta shablon — 3D yelpig'ich, sichqonchaga ergashadi
   ===================================================================== */
.home-hero { --gx: 70%; --gy: 30%; }
.home-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px 320px at var(--gx) var(--gy), rgba(255, 255, 255, .16), transparent 70%); }
.home-hero:hover::after { opacity: 1; }
.hh-art { --mx: 0; --my: 0; height: 320px; perspective: 1100px; }
.ha-stage { position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateY(calc(var(--mx) * 9deg)) rotateX(calc(var(--my) * -7deg)); }
.home-hero .hh-art .ha { position: absolute; left: 50%; top: 50%; right: auto; bottom: auto; width: 56%; margin: 0; border-radius: 12px; overflow: visible; box-shadow: none; border: 0;
  --d: calc((var(--i) - 2) * 1);                       /* -2 … 2: markazdan uzoqligi */
  transform: translate(-50%, -50%)
             translate3d(calc(var(--d) * 21% + var(--mx) * (8px + var(--i) * 6px)), calc(var(--d) * var(--d) * 4% - 4% + var(--my) * (6px + var(--i) * 4px)), calc(var(--i) * 18px))
             rotate(calc(var(--d) * 7deg));
  transition: transform .55s cubic-bezier(.2, .8, .2, 1), filter .3s; z-index: calc(10 - (var(--d) * var(--d))); }
.home-hero .hh-art .ha2 { z-index: 20; }
.ha-in { border-radius: 12px; overflow: hidden; box-shadow: 0 22px 48px rgba(0, 0, 0, .42), 0 0 0 1px rgba(255, 255, 255, .16);
  animation: haFloat 6s ease-in-out infinite; animation-delay: calc(var(--i) * -1.2s); }
.ha-in .sframe { border-radius: 12px; }
@keyframes haFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
/* ustiga kelinganda — kartalar yelpig'ichdek ochiladi */
.home-hero:hover .hh-art .ha { transform: translate(-50%, -50%)
             translate3d(calc(var(--d) * 30% + var(--mx) * (10px + var(--i) * 8px)), calc(var(--d) * var(--d) * 6% - 6% + var(--my) * (8px + var(--i) * 5px)), calc(var(--i) * 18px))
             rotate(calc(var(--d) * 10deg)); }
/* alohida kartaning ustiga kelinganda — oldinga chiqadi */
.home-hero .hh-art .ha:hover { z-index: 30; filter: brightness(1.04); }
.home-hero .hh-art .ha:hover .ha-in { animation-play-state: paused; scale: 1.08; transition: scale .3s; box-shadow: 0 30px 60px rgba(0, 0, 0, .5), 0 0 0 2px rgba(255, 255, 255, .5); }
.home-hero:hover .ha0, .home-hero:hover .ha1 { transform: none; }   /* eski qoidalar bekor */
.home-hero:hover .hh-art .ha0, .home-hero:hover .hh-art .ha1 { transform: translate(-50%, -50%)
             translate3d(calc(var(--d) * 30% + var(--mx) * (10px + var(--i) * 8px)), calc(var(--d) * var(--d) * 6% - 6% + var(--my) * (8px + var(--i) * 5px)), calc(var(--i) * 18px))
             rotate(calc(var(--d) * 10deg)); }
@media (prefers-reduced-motion: reduce) { .ha-in { animation: none; } .home-hero .hh-art .ha { transition: none; } }
/* planshet va telefon: matn ostida ixcham yelpig'ich (sichqonchasiz, faqat yengil suzish) */
@media (max-width: 1000px) {
  .hh-art { display: block; height: 230px; margin-top: 8px; }
  .home-hero .hh-art .ha { width: 46%; }
}
@media (max-width: 640px) {
  .hh-art { height: 170px; margin: 4px -6px 0; }
  .home-hero .hh-art .ha { width: 52%; transform: translate(-50%, -50%) translate3d(calc(var(--d) * 19%), calc(var(--d) * var(--d) * 5% - 5%), 0) rotate(calc(var(--d) * 7deg)); }
}
/* yelpig'ich: markazdagi karta eng oldinda, chetlar orqada; kengroq yoyilgan */
.home-hero .hh-art .ha { width: 46%;
  transform: translate(-50%, -50%)
             translate3d(calc(var(--d) * 33% + var(--mx) * (10px + (4 - var(--d) * var(--d)) * 5px)), calc(var(--d) * var(--d) * 5% - 2% + var(--my) * (8px + (4 - var(--d) * var(--d)) * 3px)), calc((4 - var(--d) * var(--d)) * 14px))
             rotate(calc(var(--d) * 6deg)); }
.home-hero:hover .hh-art .ha, .home-hero:hover .hh-art .ha0, .home-hero:hover .hh-art .ha1 {
  transform: translate(-50%, -50%)
             translate3d(calc(var(--d) * 44% + var(--mx) * (14px + (4 - var(--d) * var(--d)) * 7px)), calc(var(--d) * var(--d) * 7% - 3% + var(--my) * (10px + (4 - var(--d) * var(--d)) * 4px)), calc((4 - var(--d) * var(--d)) * 18px))
             rotate(calc(var(--d) * 9deg)); }
.home-hero .hh-art .ha:hover { z-index: 30; }
.home-hero .hh-art .ha:hover .ha-in { translate: 0 -14px; }
@media (max-width: 1000px) { .home-hero .hh-art .ha { width: 40%; } }
@media (max-width: 640px) {
  .home-hero .hh-art .ha, .home-hero:hover .hh-art .ha { width: 50%; transform: translate(-50%, -50%) translate3d(calc(var(--d) * 26%), calc(var(--d) * var(--d) * 6% - 3%), calc((4 - var(--d) * var(--d)) * 10px)) rotate(calc(var(--d) * 6deg)); }
}
@media (min-width: 1001px) { .home-hero .hh-art .ha { width: 52%; } .home-hero { grid-template-columns: 1fr 1.05fr; } }
.home-hero .hh-text { position: relative; z-index: 5; }
@media (min-width: 1001px) {
  .home-hero .hh-art .ha { width: 48%; }
  .home-hero:hover .hh-art .ha, .home-hero:hover .hh-art .ha0, .home-hero:hover .hh-art .ha1 {
    transform: translate(-50%, -50%)
               translate3d(calc(var(--d) * 36% + 4% + var(--mx) * (12px + (4 - var(--d) * var(--d)) * 6px)), calc(var(--d) * var(--d) * 7% - 3% + var(--my) * (10px + (4 - var(--d) * var(--d)) * 4px)), calc((4 - var(--d) * var(--d)) * 18px))
               rotate(calc(var(--d) * 8deg)); }
}


/* =====================================================================
   BOSH BLOK v2: 6 ta shablon — tepada 3, pastda 3, tartibsiz sochilgan; sichqonchaga qatlamli ergashadi
   (oldingi yelpig'ich qoidalarini bekor qiladi)
   ===================================================================== */
.home-hero::after { display: none !important; }                  /* sichqoncha atrofidagi nur — kerak emas */
.hh-art { height: 360px; perspective: 1200px; }
.ha-stage { transform: rotateY(calc(var(--mx) * 6deg)) rotateX(calc(var(--my) * -5deg)); transition: transform .2s ease-out; }
.home-hero .hh-art .ha, .home-hero:hover .hh-art .ha, .home-hero:hover .hh-art .ha0, .home-hero:hover .hh-art .ha1 {
  left: calc(50% + (var(--l) - 50%) * var(--sp, 1)); top: calc(50% + (var(--t) - 50%) * var(--sp, 1)); right: auto; bottom: auto; width: 36%;
  transform: translate(-50%, -50%) translate3d(calc(var(--mx) * var(--z) * 1px), calc(var(--my) * var(--z) * .8px), calc(var(--z) * 1px)) rotate(var(--r));
  transition: left .6s cubic-bezier(.2, .8, .2, 1), top .6s cubic-bezier(.2, .8, .2, 1), transform .5s cubic-bezier(.2, .8, .2, 1);
  z-index: var(--z); }
.home-hero:hover .hh-art { --sp: 1.07; }                            /* ustiga kelinganda — biroz yoyiladi */
.home-hero .hh-art .ha:hover { z-index: 60; }
.home-hero .hh-art .ha:hover .ha-in { scale: 1.12; translate: 0 -6px; rotate: calc(var(--r) * -1); transition: scale .35s, translate .35s, rotate .35s; }
.ha-in { animation-duration: 7s; }
@media (min-width: 1001px) { .home-hero .hh-art .ha { width: 36%; } }
@media (max-width: 1000px) { .hh-art { height: 260px; } .home-hero .hh-art .ha, .home-hero:hover .hh-art .ha { width: 34%; } }
@media (max-width: 640px) {
  .hh-art { height: 200px; margin: 6px -4px 0; }
  .home-hero .hh-art .ha, .home-hero:hover .hh-art .ha { width: 36%; transform: translate(-50%, -50%) rotate(var(--r)); }
}

/* bosh blok v3: kartalar kattaroq va yaqinroq */
@media (min-width: 1001px) { .home-hero .hh-art .ha, .home-hero:hover .hh-art .ha { width: 39%; } .hh-art { height: 340px; } }
.home-hero:hover .hh-art { --sp: 1.05; }

/* =====================================================================
   OBUNA SAHIFASI — yangilangan
   ===================================================================== */
#plNow { padding: 22px 24px; border-radius: 22px; border: 1px solid #E7E4FA; background: radial-gradient(500px 220px at 100% 0%, #F1EDFF 0%, transparent 70%), #fff; }
.pn-top { display: flex; align-items: center; gap: 12px; }
.pn-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex: none; background: linear-gradient(135deg, #6366F1, #8B5CF6); box-shadow: 0 8px 18px rgba(99, 102, 241, .3); }
.pn-ic.biznes { background: linear-gradient(135deg, #FCD34D, #D97706); box-shadow: 0 8px 18px rgba(217, 119, 6, .3); }
.pn-ic.start { background: linear-gradient(135deg, #22C55E, #10B981); }
.pn-ic svg { width: 22px; height: 22px; }
.pn-ttl { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pn-ttl h3 { margin: 0; font-size: 20px; }
.pn-ttl .hint { margin: 2px 0 0; font-size: 13px; }
.pn-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: #EEF0FF; color: #4338CA; flex: none; }
.pn-badge.ok { background: #DCFCE7; color: #15803D; } .pn-badge.warn { background: #FEF3C7; color: #92400E; }
.pn-badge svg { width: 13px; height: 13px; }
.pn-main { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; margin: 20px 0 16px; }
.pn-big { display: flex; flex-direction: column; }
.pn-big b { font-size: 46px; line-height: 1; font-weight: 800; letter-spacing: -.03em; background: linear-gradient(135deg, #4F46E5, #A855F7); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pn-big span { color: var(--ui-muted); font-size: 13.5px; margin-top: 4px; }
.pn-bar { height: 14px; border-radius: 999px; background: #ECEAF7; overflow: hidden; position: relative; }
.pn-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6366F1, #A855F7); box-shadow: 0 0 12px rgba(139, 92, 246, .45); transition: width .6s; }
.pn-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 9px; font-size: 13px; color: var(--ui-muted); }
.pn-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pn-legend b { color: var(--ui-text); }
.pn-legend .pn-tot { margin-left: auto; }
.dot-l, .dot-u { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.dot-l { background: linear-gradient(90deg, #6366F1, #A855F7); } .dot-u { background: #DCD8F0; }
.pn-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pn-t { display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #F8F7FF; border: 1px solid #EEEBFB; }
.pn-t > span { grid-row: 1 / 3; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: #fff; color: var(--ui-accent); box-shadow: 0 1px 3px rgba(16, 24, 40, .08); }
.pn-t > span svg { width: 18px; height: 18px; }
.pn-t b { font-size: 18px; line-height: 1.1; }
.pn-t small { color: var(--ui-muted); font-size: 12px; line-height: 1.3; }
#plNow .pl-id { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; }
#plNow .pl-id .hint { margin: 0; }
.pn-copy { width: 28px; height: 28px; }
.pn-copy svg { width: 14px; height: 14px; }

/* afzalliklar bloki */
.pl-banner { position: relative; overflow: hidden; padding: 26px 28px; border-radius: 22px;
  background: radial-gradient(420px 220px at 0% 0%, rgba(124, 58, 237, .5), transparent 70%), radial-gradient(380px 220px at 100% 100%, rgba(236, 72, 153, .35), transparent 70%), linear-gradient(135deg, #1E1B4B, #312E81 60%, #4C1D95); }
.plb-head h3 { font-size: 24px; margin: 0 0 6px; color: #fff; }
.plb-head p { margin: 0; color: rgba(237, 233, 254, .82); opacity: 1; }
.plb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.plb-i { display: flex; flex-direction: column; gap: 3px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(4px); }
.plb-i b { color: #fff; font-size: 14px; }
.plb-i small { color: rgba(237, 233, 254, .75); font-size: 12.5px; line-height: 1.35; }
.plb-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #FDE68A; margin-bottom: 6px; }
.plb-ic svg { width: 17px; height: 17px; }

/* tarif kartochkalari */
.pl-h { font-size: 22px; letter-spacing: -.02em; }
.pl-grid { gap: 18px; align-items: stretch; }
.pl-plan { border-radius: 22px; padding: 24px 22px 22px; border: 1px solid #ECEAF7; transition: transform .2s, box-shadow .2s; }
.pl-plan:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(16, 24, 40, .10); }
.pl-plan.best { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #6366F1, #A855F7) border-box; box-shadow: 0 18px 44px rgba(99, 102, 241, .18); }
.pl-plan.pp-biznes { border: 2px solid transparent; background: linear-gradient(180deg, #FFFBEB, #fff 40%) padding-box, linear-gradient(135deg, #FCD34D, #D97706) border-box; }
.pl-best { display: inline-flex; align-items: center; gap: 5px; top: -13px; padding: 4px 12px; font-weight: 700; background: linear-gradient(135deg, #6366F1, #A855F7); box-shadow: 0 6px 14px rgba(99, 102, 241, .35); }
.pl-best.gold { background: linear-gradient(135deg, #FCD34D, #D97706); color: #fff; box-shadow: 0 6px 14px rgba(217, 119, 6, .35); }
.pl-best svg { width: 13px; height: 13px; }
.pl-name { display: inline-flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 800; color: var(--ui-text); }
.pl-name svg { width: 17px; height: 17px; color: #D97706; }
.pl-desc { font-size: 13px; color: var(--ui-muted); min-height: 34px; }
.pl-price b { font-size: 34px; font-weight: 800; }
.pl-plan.best .pl-price b { background: linear-gradient(135deg, #4F46E5, #A855F7); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pl-per { align-self: flex-start; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #F3F4F8; color: #4B5165; margin: 2px 0 6px; }
.pl-per.best { background: #DCFCE7; color: #15803D; }
.pl-plan ul { flex: 1; }
.pl-plan li svg { color: #22C55E; }
.pl-plan.pp-biznes li svg { color: #D97706; }
.pl-mine { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 700; color: #15803D; margin-bottom: 6px; }
.pl-mine svg { width: 14px; height: 14px; }
.pl-plan .btn { width: 100%; justify-content: center; min-height: 46px; border-radius: 14px; font-weight: 700; }
.pl-plan .btn.gold { background: linear-gradient(135deg, #FCD34D, #D97706); color: #fff; border: 0; box-shadow: 0 8px 20px rgba(217, 119, 6, .30); }
.pl-plan .btn.gold:hover { filter: brightness(1.05); }
.pl-plan .btn.primary { box-shadow: 0 8px 20px rgba(99, 102, 241, .35); }
@media (max-width: 1000px) { .plb-grid { grid-template-columns: repeat(2, 1fr); } .pl-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .pn-main { grid-template-columns: 1fr; gap: 12px; }
  .pn-big b { font-size: 40px; }
  .pn-tiles { grid-template-columns: 1fr; }
  .pn-legend .pn-tot { margin-left: 0; }
  .plb-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .plb-i { padding: 12px; }
  .pl-banner { padding: 22px 18px; }
  .plb-head h3 { font-size: 20px; }
}

/* =====================================================================
   YORDAM SAHIFASI — yangilangan
   ===================================================================== */
.hp-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 18px; padding: 30px 32px; border-radius: 26px; color: #fff; margin-bottom: 18px;
  background: radial-gradient(460px 260px at 0% 0%, rgba(124, 58, 237, .55), transparent 70%), radial-gradient(420px 260px at 100% 100%, rgba(14, 165, 233, .35), transparent 70%), linear-gradient(135deg, #1E1B4B, #312E81 60%, #4C1D95); }
.hp-hero h2 { margin: 10px 0 6px; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.03em; color: #fff; }
.hp-hero p { margin: 0; color: rgba(237, 233, 254, .82); }
.hp-hero .hero-tag { color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); }
.hp-hero .hero-tag svg { color: #FDE68A; }
.hp-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.hp-link { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; color: #fff !important; text-decoration: none;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .18); transition: background .15s, transform .15s; }
.hp-link:hover { background: rgba(255, 255, 255, .2); transform: translateY(-1px); }
.hp-link svg { width: 16px; height: 16px; color: #C4B5FD; }

.hp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; scroll-margin-top: 16px; }
.hp-step { position: relative; overflow: hidden; padding: 22px 20px; border-radius: 22px; background: #fff; border: 1px solid #ECEAF7; transition: transform .2s, box-shadow .2s; }
.hp-step:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(16, 24, 40, .09); }
.hp-step b { display: block; font-size: 16px; margin: 14px 0 6px; }
.hp-step p { margin: 0; color: var(--ui-muted); font-size: 14px; line-height: 1.5; }
.hp-n { position: absolute; right: 14px; top: 2px; font-size: 76px; font-weight: 900; line-height: 1; letter-spacing: -.05em; color: #F1EFFC; pointer-events: none; }
.hp-sic { position: relative; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.hp-step:nth-child(1) .hp-sic { background: linear-gradient(135deg, #6366F1, #8B5CF6); box-shadow: 0 8px 18px rgba(99, 102, 241, .32); }
.hp-step:nth-child(2) .hp-sic { background: linear-gradient(135deg, #EC4899, #F472B6); box-shadow: 0 8px 18px rgba(236, 72, 153, .28); }
.hp-step:nth-child(3) .hp-sic { background: linear-gradient(135deg, #10B981, #22C55E); box-shadow: 0 8px 18px rgba(16, 185, 129, .28); }
.hp-sic svg { width: 21px; height: 21px; }

.hp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.hp-side { display: flex; flex-direction: column; gap: 16px; }
.hp-card { padding: 22px; border-radius: 22px; background: #fff; border: 1px solid #ECEAF7; scroll-margin-top: 16px; }
.hp-card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 18px; }
.hp-card > .hint { margin: -4px 0 12px; }
.hp-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: none; }
.hp-ic svg { width: 18px; height: 18px; }
.hp-ic.c1 { background: linear-gradient(135deg, #6366F1, #8B5CF6); } .hp-ic.c2 { background: linear-gradient(135deg, #F59E0B, #F97316); }
.hp-ic.c3 { background: linear-gradient(135deg, #0EA5E9, #38BDF8); } .hp-ic.c4 { background: linear-gradient(135deg, #10B981, #22C55E); }
.hp-ic.c5 { background: linear-gradient(135deg, #475569, #64748B); }
.hp-cmds { display: flex; flex-wrap: wrap; gap: 8px; }
.hp-cmd { all: unset; box-sizing: border-box; cursor: pointer; position: relative; padding: 9px 14px; border-radius: 16px 16px 16px 4px; font-size: 14px; font-weight: 500;
  background: #F3F1FF; color: #3730A3; border: 1px solid #E2DEFB; transition: background .15s, transform .15s; }
.hp-cmd::before { content: "“"; color: #A5B4FC; margin-right: 2px; } .hp-cmd::after { content: "”"; color: #A5B4FC; margin-left: 2px; }
.hp-cmd:hover { background: #E9E5FF; transform: translateY(-1px); }
.hp-cmd.ok { background: #DCFCE7; color: #15803D; border-color: #A7F3D0; }
.hp-list { margin: 0 0 14px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.hp-list li { position: relative; padding-left: 26px; color: var(--ui-muted); font-size: 14px; line-height: 1.5; }
.hp-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #FEF3C7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D97706' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.hp-list b { color: var(--ui-text); }
.hp-card.help-faq details { border-top: 1px solid #EEECF8; padding: 13px 2px; }
.hp-card.help-faq details:first-of-type { border-top: 0; }
.hp-card.help-faq summary { font-size: 15px; }
.hp-card.help-faq summary::after { content: "+"; width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #F3F1FF; color: var(--ui-accent); font-weight: 700; transition: transform .2s; }
.hp-card.help-faq details[open] summary::after { content: "+"; transform: rotate(45deg); background: var(--ui-accent); color: #fff; }
.hp-card.help-faq details[open] summary { color: var(--ui-accent); }
.hp-contact { background: linear-gradient(180deg, #F0FDF4, #fff 60%); border-color: #D1FAE5; }
.hp-contact .btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.hp-contact .btn { flex: 1; justify-content: center; min-height: 44px; border-radius: 13px; }
.hp-keys { display: flex; flex-direction: column; gap: 2px; }
.hp-keys > div { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px dashed #EEECF8; }
.hp-keys > div:first-child { border-top: 0; }
.hp-keys span { display: inline-flex; align-items: center; gap: 4px; color: var(--ui-muted); }
.hp-keys em { font-style: normal; font-size: 14px; color: var(--ui-text); }
.hp-keys kbd { min-width: 26px; text-align: center; padding: 3px 8px; border-radius: 8px; font: 600 12px Inter, system-ui, sans-serif; background: #fff; border: 1px solid #DDD9F0; border-bottom-width: 3px; color: #3730A3; }
@media (max-width: 1000px) { .hp-steps { grid-template-columns: 1fr; } .hp-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .hp-hero { padding: 24px 18px; border-radius: 22px; } .hp-link { padding: 8px 11px; font-size: 13px; } .hp-card { padding: 18px; } .hp-keys > div { grid-template-columns: 112px 1fr; } }

/* =====================================================================
   DIZAYN KARTOCHKALARI — barcha joyda (Dizaynlar, Yaratish sahifasi)
   ===================================================================== */
.theme-grid { gap: 18px; }
.tcard { padding: 7px 7px 10px; border-radius: 18px; background: #fff; border: 1px solid #ECEAF7; box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s, border-color .22s; }
.tcard .sframe { border-radius: 12px; box-shadow: 0 0 0 1px rgba(16, 24, 40, .05); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.tcard > .sframe, .tcard > .tplimg { overflow: hidden; }
.tcard:hover { transform: translateY(-4px); border-color: #D9D5F7; box-shadow: 0 18px 36px rgba(30, 27, 75, .12); }
.tcard:hover .sframe { transform: scale(1.015); }
.tcard .tname { align-items: center; padding: 10px 6px 0; font-size: 14px; font-weight: 700; }
.tdots { display: inline-flex; flex: none; }
.tdots i { width: 13px; height: 13px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(16, 24, 40, .10); }
.tdots i + i { margin-left: -5px; }
.tcat { padding: 1px 6px 0; font-size: 12px; color: var(--ui-muted); }
.tcard.sel-on { border: 1px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #6366F1, #A855F7) border-box; box-shadow: 0 0 0 3px rgba(99, 102, 241, .16), 0 16px 34px rgba(99, 102, 241, .18); }
.sel-tick { top: 14px; right: 14px; width: 26px; height: 26px; background: linear-gradient(135deg, #6366F1, #A855F7); box-shadow: 0 4px 10px rgba(99, 102, 241, .45); border: 2px solid #fff; }
.sel-tick svg { width: 14px; height: 14px; }
.tcard.biz { background: linear-gradient(180deg, #FFFBEB, #fff 55%); border-color: #F3E2B0; }
.tcard.biz:hover { border-color: #E8B84A; box-shadow: 0 18px 36px rgba(217, 119, 6, .14); }
.tcard .tag.pro.gold { top: 14px; left: 14px; }

/* --- Dizaynlar sahifasining sarlavhasi (alohida sahifada) --- */
#v-designs > #designs > .page-head { position: relative; overflow: hidden; padding: 28px 30px; border-radius: 26px; margin-bottom: 18px; color: #fff;
  background: radial-gradient(460px 260px at 0% 0%, rgba(236, 72, 153, .45), transparent 70%), radial-gradient(420px 260px at 100% 100%, rgba(14, 165, 233, .38), transparent 70%), linear-gradient(135deg, #1E1B4B, #312E81 60%, #4C1D95); }
#v-designs > #designs > .page-head::after { content: ""; position: absolute; right: -30px; top: -40px; width: 260px; height: 260px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 90deg, #F472B6, #FBBF24, #34D399, #38BDF8, #A78BFA, #F472B6); opacity: .22; filter: blur(30px); }
#v-designs > #designs > .page-head h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); }
#v-designs > #designs > .page-head .hint { color: rgba(237, 233, 254, .85); }
#v-designs > #designs > .page-head .dtabs { background: rgba(255, 255, 255, .10); border-color: rgba(255, 255, 255, .18); }
#v-designs > #designs > .page-head .dtabs .tab { color: rgba(255, 255, 255, .85); }
#v-designs > #designs > .page-head .dtabs .tab:hover { background: rgba(255, 255, 255, .12); color: #fff; }
#v-designs > #designs > .page-head .dtabs .tab.active { background: #fff; color: #3B2A9E; box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }
@media (max-width: 640px) { #v-designs > #designs > .page-head { padding: 22px 18px; border-radius: 22px; } .theme-grid { gap: 10px; } .tcard { padding: 5px 5px 8px; border-radius: 14px; } .tcard .tname { font-size: 13px; padding-top: 7px; } .tcat { display: none; } }

/* --- muharrirdagi "Dizayn tanlang" oynasi --- */
.tp-grid { gap: 16px; }
.tp-img { border-radius: 12px; box-shadow: 0 0 0 1px #E4E2F2, 0 2px 8px rgba(16, 24, 40, .06); }
.tp-card:hover .tp-img { transform: translateY(-3px); box-shadow: 0 0 0 1px #C9C6F2, 0 14px 26px rgba(30, 27, 75, .14); }
.tp-card.on .tp-img { box-shadow: 0 0 0 3px #7C6CF2, 0 12px 24px rgba(99, 102, 241, .25); }
.tp-name { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-weight: 600; }
.tp-card.biz .tp-img { box-shadow: 0 0 0 1px #F0D78C, 0 2px 8px rgba(217, 119, 6, .10); }
.tp-gh b { display: inline-flex; align-items: center; gap: 6px; }
.tp-gh b svg, .tp-nav .cat svg { width: 14px; height: 14px; color: #D97706; }
.tp-nav .cat { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
/* yordam: bog'lanish tugmalari — belgi yozuv bilan bir chiziqda, markazda */
.hp-contact .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1; }
.hp-contact .btn svg { width: 19px; height: 19px; flex: none; display: block; margin: 0; position: static; transform: none; }
.hp-contact .btn.tg svg { width: 21px; height: 21px; margin-left: -2px; }
.hp-grid { grid-template-columns: 1.15fr 1fr; }

/* =====================================================================
   YARATISH SAHIFASI — yangilangan
   ===================================================================== */
#v-create { position: relative; isolation: isolate; }
#v-create::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 0; width: min(1100px, 100%); height: 520px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(380px 240px at 22% 30%, rgba(167, 139, 250, .30), transparent 70%), radial-gradient(360px 240px at 80% 22%, rgba(244, 114, 182, .22), transparent 70%), radial-gradient(420px 260px at 55% 70%, rgba(56, 189, 248, .18), transparent 70%);
  filter: blur(10px); }
.cr-tag { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #5B21B6;
  background: linear-gradient(135deg, #EDE9FE, #FCE7F3); border: 1px solid #DDD6FE; box-shadow: 0 4px 14px rgba(124, 58, 237, .12); }
.cr-tag svg { width: 14px; height: 14px; color: #A855F7; }
#v-create .hero h1 { background: linear-gradient(135deg, #1E1B4B 0%, #4338CA 55%, #9333EA 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-bottom: 4px; }
#v-create .hero .q { font-size: clamp(15px, 1.6vw, 18px); }

/* yozish maydoni: gradient ramka va yumshoq nur, yozayotganda kuchayadi */
#v-create .prompt { position: relative; border: 1.5px solid transparent; border-radius: 26px;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #C4B5FD, #F9A8D4 50%, #93C5FD) border-box;
  box-shadow: 0 20px 50px rgba(99, 102, 241, .14), 0 2px 6px rgba(16, 24, 40, .04); transition: box-shadow .25s; }
#v-create .prompt:focus-within { box-shadow: 0 0 0 5px rgba(139, 92, 246, .12), 0 24px 60px rgba(99, 102, 241, .22); }
#v-create .prompt .send { box-shadow: 0 8px 20px rgba(124, 58, 237, .45); transition: transform .15s, box-shadow .15s; }
#v-create .prompt .send:hover { transform: translateY(-1px) scale(1.05); box-shadow: 0 12px 26px rgba(124, 58, 237, .55); }

/* takliflar: rangli belgilar */
#v-create .ideas { gap: 9px; margin-top: 18px; }
#v-create .idea { background: rgba(255, 255, 255, .85); border-color: #E7E4F7; box-shadow: 0 2px 6px rgba(16, 24, 40, .04); font-weight: 500; }
#v-create .idea:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(99, 102, 241, .14); }
#v-create .idea:nth-child(4n+1) svg { color: #8B5CF6; } #v-create .idea:nth-child(4n+2) svg { color: #EC4899; }
#v-create .idea:nth-child(4n+3) svg { color: #0EA5E9; } #v-create .idea:nth-child(4n+4) svg { color: #F59E0B; }

/* dizaynlar bo'limi (yaratish sahifasida) */
#designs.in-create { margin-top: 46px; padding-top: 28px; border-top: 1px solid #EEECF8; }
#designs.in-create .page-head h2 { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; }
#designs.in-create .page-head h2::before { content: ""; width: 34px; height: 34px; border-radius: 11px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='13.5' cy='6.5' r='.5' fill='white'/%3E%3Ccircle cx='17.5' cy='10.5' r='.5' fill='white'/%3E%3Ccircle cx='8.5' cy='7.5' r='.5' fill='white'/%3E%3Ccircle cx='6.5' cy='12.5' r='.5' fill='white'/%3E%3Cpath d='M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z'/%3E%3C/svg%3E") center / 18px no-repeat, linear-gradient(135deg, #F59E0B, #F97316);
  box-shadow: 0 6px 14px rgba(245, 158, 11, .3); }
@media (max-width: 640px) { #v-create::before { height: 420px; } #designs.in-create { margin-top: 30px; padding-top: 20px; } .cr-tag { font-size: 12px; } }

/* Dizaynlar tablari (yaratish sahifasida va boshqa och fonlarda): faol tab — gradient, qolgani toza */
#designs .dtabs { background: #fff; border: 1px solid #E6E3F5; padding: 5px; gap: 4px; border-radius: 16px; box-shadow: 0 2px 8px rgba(16, 24, 40, .05); }
#designs .dtabs .tab { padding: 9px 18px; border-radius: 12px; color: #5B6175; transition: background .15s, color .15s, box-shadow .15s; }
#designs .dtabs .tab:hover { background: #F5F4FB; color: #1F2333; }
#designs .dtabs .tab.active { background: linear-gradient(135deg, #6366F1, #8B5CF6); color: #fff; box-shadow: 0 6px 16px rgba(99, 102, 241, .35); }
#designs .dtabs .tab.active svg { color: #fff; }
.feat:nth-child(8) .ft-ic { background: linear-gradient(135deg, #14B8A6, #06B6D4); }

/* =====================================================================
   ADMIN PANEL — yangilangan
   ===================================================================== */
#v-admin .page-head { padding: 24px 26px; border-radius: 24px; color: #fff; margin-bottom: 16px;
  background: radial-gradient(420px 220px at 0% 0%, rgba(124, 58, 237, .5), transparent 70%), radial-gradient(380px 220px at 100% 100%, rgba(14, 165, 233, .32), transparent 70%), linear-gradient(135deg, #1E1B4B, #312E81 60%, #4C1D95); }
#v-admin .page-head h2 { color: #fff; } #v-admin .page-head .hint { color: rgba(237, 233, 254, .82); }
#v-admin .page-head .btn { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .25); }
#v-admin .page-head .btn:hover { background: rgba(255, 255, 255, .22); }
#v-admin .pl-tabs { gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
#v-admin .pl-tab { border-radius: 12px; padding: 9px 16px; font-weight: 600; }
#v-admin .pl-tab.on { background: linear-gradient(135deg, #6366F1, #8B5CF6); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(99, 102, 241, .32); }

.adm-stats { gap: 14px; }
.adm-stat { position: relative; overflow: hidden; padding: 18px 18px 16px; border-radius: 20px; border: 1px solid #ECEAF7; gap: 3px; transition: transform .2s, box-shadow .2s; }
.adm-stat:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(16, 24, 40, .08); }
.adm-stat::after { content: ""; position: absolute; right: -36px; top: -36px; width: 110px; height: 110px; border-radius: 50%; opacity: .55; pointer-events: none; }
.as-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff !important; margin-bottom: 8px; position: relative; z-index: 1; }
.as-ic svg { width: 19px; height: 19px; }
.adm-stat b { font-size: 26px; font-weight: 800; position: relative; z-index: 1; }
.adm-stat > span:not(.as-ic) { position: relative; z-index: 1; }
.adm-stat.c-violet .as-ic { background: linear-gradient(135deg, #6366F1, #8B5CF6); } .adm-stat.c-violet::after { background: radial-gradient(circle, #E0E7FF, transparent 70%); }
.adm-stat.c-blue .as-ic { background: linear-gradient(135deg, #3B82F6, #06B6D4); } .adm-stat.c-blue::after { background: radial-gradient(circle, #DBEAFE, transparent 70%); }
.adm-stat.c-green .as-ic { background: linear-gradient(135deg, #10B981, #22C55E); } .adm-stat.c-green::after { background: radial-gradient(circle, #D1FAE5, transparent 70%); }
.adm-stat.c-gold .as-ic { background: linear-gradient(135deg, #F59E0B, #F97316); } .adm-stat.c-gold::after { background: radial-gradient(circle, #FEF3C7, transparent 70%); }
.adm-stat.c-pink .as-ic { background: linear-gradient(135deg, #EC4899, #F472B6); } .adm-stat.c-pink::after { background: radial-gradient(circle, #FCE7F3, transparent 70%); }
.adm-stat.c-sky .as-ic { background: linear-gradient(135deg, #0EA5E9, #38BDF8); } .adm-stat.c-sky::after { background: radial-gradient(circle, #E0F2FE, transparent 70%); }
.adm-stat.c-amber .as-ic { background: linear-gradient(135deg, #FCD34D, #D97706); } .adm-stat.c-amber::after { background: radial-gradient(circle, #FEF3C7, transparent 70%); }
.adm-stat.c-slate .as-ic { background: linear-gradient(135deg, #475569, #64748B); } .adm-stat.c-slate::after { background: radial-gradient(circle, #F1F5F9, transparent 70%); }

.adm-two { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-top: 16px; align-items: start; }
.adm-two .pl-card { margin: 0; border-radius: 22px; }
.adm-side { display: flex; flex-direction: column; gap: 16px; }
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.acc-head h3 { margin: 0; }
.acc-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #F4F3FB; }
.acc-tabs button { all: unset; cursor: pointer; padding: 6px 11px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: #5B6175; }
.acc-tabs button b { color: var(--ui-text); margin-left: 3px; }
.acc-tabs button.on { background: #fff; color: #4338CA; box-shadow: 0 1px 4px rgba(16, 24, 40, .1); }
.adm-chart { height: 210px; gap: 7px; padding-top: 22px; background: repeating-linear-gradient(to top, transparent 0 41px, #F1F0F8 41px 42px); border-radius: 8px; }
.adm-bar { position: relative; }
.adm-bar i { border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #8B5CF6, #6366F1); box-shadow: 0 4px 10px rgba(99, 102, 241, .25); transition: height .5s cubic-bezier(.2, .8, .2, 1); }
.adm-chart[data-k="revenue"] .adm-bar i { background: linear-gradient(180deg, #34D399, #10B981); box-shadow: 0 4px 10px rgba(16, 185, 129, .25); }
.adm-chart[data-k="users"] .adm-bar i { background: linear-gradient(180deg, #38BDF8, #0EA5E9); box-shadow: 0 4px 10px rgba(14, 165, 233, .25); }
.adm-bar.zero i { background: #E7E5F4 !important; box-shadow: none !important; }
.adm-bar em { font-style: normal; font-size: 11px; font-weight: 700; color: #4338CA; min-height: 14px; }
.adm-chart[data-k="revenue"] .adm-bar em { color: #047857; } .adm-chart[data-k="users"] .adm-bar em { color: #0369A1; }
.adm-plans2 { display: flex; flex-direction: column; gap: 10px; }
.ap { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 12px; background: #F8F7FF; overflow: hidden; font-weight: 600; }
.ap b { font-size: 18px; position: relative; z-index: 1; } .ap span { position: relative; z-index: 1; }
.ap i { position: absolute; left: 0; top: 0; bottom: 0; opacity: .18; }
.ap.c-green i { background: #10B981; } .ap.c-violet i { background: #8B5CF6; } .ap.c-gold i { background: #F59E0B; }
.adm-recent { display: flex; flex-direction: column; gap: 4px; }
.adm-recent > div { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 8px 4px; border-top: 1px dashed #EEECF8; }
.adm-recent > div:first-child { border-top: 0; }
.ar-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #EEF0FF; color: #6366F1; }
.ar-ic.c-green { background: #DCFCE7; color: #15803D; } .ar-ic.c-gold { background: #FEF3C7; color: #B45309; }
.ar-ic svg { width: 16px; height: 16px; }
.ar-t { display: flex; flex-direction: column; min-width: 0; } .ar-t b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ar-t small { color: var(--ui-muted); font-size: 12px; }
.ar-p { font-size: 13.5px; color: #047857; white-space: nowrap; }

/* sozlamalar: tarif qatorlari va "≈ so'm / slayd" */
#v-admin .set-card { border-radius: 22px; }
.adm-plan-row { padding: 14px; margin-bottom: 10px; border-radius: 16px; background: #FAFAFE; border: 1px solid #EEECF8; }
.adm-plan-row > b { font-size: 15px; }
.adm-per { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 9px 12px; border-radius: 12px; background: #fff; border: 1px dashed #DCD8F0; font-size: 13px; }
.pp-v { color: #4338CA; } .pp-v b { font-size: 16px; } .pp-v.best { color: #047857; }
.pp-h { color: var(--ui-muted); font-size: 12.5px; }
.pp-tag { margin-left: auto; padding: 2px 9px; border-radius: 999px; background: #DCFCE7; color: #15803D; font-size: 11.5px; font-weight: 700; }
/* o'chirib-yoqish tugmalari uzun matn yonida siqilmasin */
.set-row { gap: 14px; }
.set-row .switch { flex: 0 0 40px; width: 40px; min-width: 40px; height: 23px; margin: 0; padding: 0; }
.adm-hide .switch { align-self: flex-start; }
.adm-save { position: sticky; bottom: 14px; z-index: 5; display: flex; justify-content: flex-end; margin-top: 14px; }
.adm-save .btn { min-height: 46px; padding: 0 26px; border-radius: 14px; box-shadow: 0 10px 26px rgba(99, 102, 241, .38); }
@media (max-width: 1000px) { .adm-two { grid-template-columns: 1fr; } }
@media (max-width: 640px) { #v-admin .page-head { padding: 20px 18px; } .adm-chart { height: 170px; gap: 4px; } .adm-bar em { font-size: 9px; } .acc-tabs button { padding: 6px 8px; font-size: 12px; } }
/* profil: ma'lumotlar (zaxira) bloki */
.prof-data { margin-top: 16px; border-radius: 22px; }
.prof-data h3 { display: flex; align-items: center; gap: 8px; }
.prof-data .btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
/* yordam: savollar bloki o'ng ustun balandligiga cho'ziladi, pastida bog'lanishga havola */
.hp-grid { align-items: stretch; }
.hp-card.help-faq { display: flex; flex-direction: column; }
.hp-more { margin-top: auto; align-self: stretch; display: flex !important; align-items: center; gap: 12px; padding: 14px 16px !important; border-radius: 16px !important;
  background: linear-gradient(135deg, #EEF2FF, #F5F3FF) !important; border: 1px solid #E0E0FA !important; color: var(--ui-text) !important; }
.hp-more svg { width: 34px !important; height: 34px !important; padding: 8px; border-radius: 10px; background: linear-gradient(135deg, #6366F1, #8B5CF6); color: #fff !important; flex: none; }
.hp-more span { display: flex; flex-direction: column; } .hp-more b { font-size: 14.5px; } .hp-more small { color: var(--ui-muted); font-size: 12.5px; font-weight: 500; }
.hp-more:hover { background: linear-gradient(135deg, #E0E7FF, #EDE9FE) !important; }
.help-faq details:last-of-type { margin-bottom: 16px; }

/* =====================================================================
   OBUNA — ixcham ko'rinish: sarlavha va tablar bir qatorda, tariflar yuqoriroqda
   ===================================================================== */
.pl-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pl-head h2 { margin: 0; }
.pl-head .pl-tabs { margin: 0; display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: #fff; border: 1px solid #E6E3F5; }
.pl-head .pl-tab { border: 0; border-radius: 10px; padding: 7px 14px; font-weight: 600; background: transparent; }
.pl-head .pl-tab.on { background: linear-gradient(135deg, #6366F1, #8B5CF6); color: #fff; box-shadow: 0 4px 12px rgba(99, 102, 241, .3); }

#plNow { padding: 16px 20px; margin-bottom: 12px; }
.pn-top { gap: 10px; }
.pn-ic { width: 38px; height: 38px; border-radius: 12px; }
.pn-ic svg { width: 19px; height: 19px; }
.pn-ttl h3 { font-size: 17px; } .pn-ttl .hint { font-size: 12.5px; margin: 0; }
.pn-main { margin: 12px 0 10px; gap: 22px; }
.pn-big b { font-size: 36px; } .pn-big span { font-size: 12.5px; margin-top: 2px; }
.pn-bar { height: 11px; } .pn-legend { margin-top: 6px; font-size: 12.5px; }
.pn-tiles { gap: 8px; }
.pn-t { padding: 8px 12px; grid-template-columns: 30px 1fr; column-gap: 9px; border-radius: 12px; }
.pn-t > span { width: 30px; height: 30px; border-radius: 9px; } .pn-t > span svg { width: 15px; height: 15px; }
.pn-t b { font-size: 15px; } .pn-t small { font-size: 11.5px; }
#plNow .pl-id { margin-top: 10px; font-size: 12.5px; }

.pl-banner { padding: 16px 20px; margin-bottom: 18px; border-radius: 20px; display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; align-items: center; }
.plb-head h3 { font-size: 18px; margin: 0; white-space: nowrap; } .plb-head p { display: none; }
.plb-grid { margin: 0; grid-template-columns: repeat(4, auto); justify-content: end; gap: 8px; }
.plb-i { flex-direction: row; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 12px; }
.plb-ic { width: 26px; height: 26px; border-radius: 8px; margin: 0; } .plb-ic svg { width: 14px; height: 14px; }
.plb-i b { font-size: 12.5px; white-space: nowrap; } .plb-i small { display: none; }
.pl-h { margin: 6px 0 14px; }
.pl-plan { padding: 20px 20px 18px; }
.pl-desc { min-height: 0; }
.pl-price b { font-size: 30px; }
@media (max-width: 1200px) { .pl-banner { grid-template-columns: 1fr; } .plb-grid { justify-content: start; grid-template-columns: repeat(2, auto); } }
@media (max-width: 640px) {
  .pl-head { gap: 10px; } .pl-head .pl-tabs { width: 100%; } .pl-head .pl-tab { flex: 1; text-align: center; justify-content: center; }
  .pn-main { grid-template-columns: auto 1fr; gap: 14px; align-items: end; }
  .pn-big b { font-size: 32px; }
  .pn-tiles { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .pn-t { grid-template-columns: 1fr; grid-template-rows: auto; padding: 8px; text-align: center; }
  .pn-t > span { display: none; } .pn-t small { font-size: 10.5px; }
  .plb-head h3 { white-space: normal; font-size: 16px; }
  .plb-grid { grid-template-columns: 1fr 1fr; }
  .plb-i b { white-space: normal; font-size: 12px; }
}
.plb-grid { display: flex; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 1500px) { .pl-banner { grid-template-columns: 1fr; } .plb-grid { justify-content: flex-start; } }
@media (max-width: 640px) { .plb-grid { display: grid; grid-template-columns: 1fr 1fr; } }
/* "Bir marta to'lang" bloki — avvalgi to'liq ko'rinishga qaytarildi (izohlari bilan) */
.pl-banner { display: block; padding: 26px 28px; margin-bottom: 18px; border-radius: 22px; }
.plb-head h3 { font-size: 24px; margin: 0 0 6px; white-space: normal; }
.plb-head p { display: block; }
.plb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; justify-content: initial; }
.plb-i { flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px; border-radius: 16px; }
.plb-ic { width: 34px; height: 34px; border-radius: 10px; margin-bottom: 6px; } .plb-ic svg { width: 17px; height: 17px; }
.plb-i b { font-size: 14px; white-space: normal; } .plb-i small { display: block; }
@media (max-width: 1500px) { .plb-grid { justify-content: initial; } }
@media (max-width: 1000px) { .plb-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pl-banner { padding: 22px 18px; } .plb-head h3 { font-size: 20px; } .plb-grid { grid-template-columns: 1fr 1fr; gap: 8px; } .plb-i { padding: 12px; } }

/* =====================================================================
   ADMIN: tariflar muharriri — har bir tarif alohida kartochka
   ===================================================================== */
.adm-plans-card > .hint { margin: -4px 0 12px; font-size: 13px; }
.apl-list { display: flex; flex-direction: column; gap: 12px; }
.apl { --lc: #22C55E; position: relative; padding: 14px 14px 12px 18px; border-radius: 16px; background: #FAFAFE; border: 1px solid #ECEAF7; overflow: hidden; transition: opacity .2s; }
.apl::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--lc); }
.apl.lv-profi { --lc: #8B5CF6; } .apl.lv-biznes { --lc: #F59E0B; }
.apl.off { opacity: .6; }
.apl-top { display: flex; align-items: center; gap: 8px; }
.apl-dot { display: none; }
.apl-name { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; height: 38px; }
.apl-best { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 11px; border-radius: 10px; border: 1px solid #E6E3F5; background: #fff; font-size: 12.5px; font-weight: 600; color: #6B7285; cursor: pointer; }
.apl-best input { display: none; }
.apl-best svg { width: 13px; height: 13px; }
.apl-best.on { background: linear-gradient(135deg, #6366F1, #A855F7); color: #fff; border-color: transparent; }
.apl-del { flex: none; width: 34px; height: 34px; color: #DC2626; }
.apl-del:hover { background: #FEF2F2; }
.apl-grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 10px; margin-top: 10px; }
.apl-grid label, .apl-desc { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.apl-grid label span, .apl-desc span { font-size: 11.5px; font-weight: 600; color: var(--ui-muted); }
.apl-grid .inp, .apl-grid .sel, .apl-desc .inp { width: 100%; min-width: 0; box-sizing: border-box; height: 38px; }
.apl-desc { margin-top: 10px; }
.apl-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #E6E3F5; }
.apl-per { font-size: 12.5px; color: #4338CA; } .apl-per b { font-size: 15px; } .apl-per.best { color: #047857; }
.apl-hide { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ui-muted); cursor: pointer; }
.apl-hide .switch { flex: 0 0 40px; width: 40px; height: 23px; margin: 0; }
.apl-add { width: 100%; justify-content: center; margin-top: 12px; min-height: 44px; border-style: dashed; border-radius: 14px; color: var(--ui-accent); font-weight: 700; }
.apl-add:hover { background: #F5F3FF; border-color: var(--ui-accent); }
/* to'g'ri ishlaydigan o'chirib-yoqish tugmasi (yumaloq "polzunok" chetga boradi) */
.switch { appearance: none; -webkit-appearance: none; position: relative; width: 40px; height: 23px; border-radius: 99px; background: #D5D7E2; cursor: pointer; transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: left .2s; }
.switch:checked { background: var(--ui-accent); }
.switch:checked::after { left: 20px; }
@media (max-width: 640px) { .apl-grid { grid-template-columns: 1fr 1fr; } .apl-grid label:last-child { grid-column: 1 / -1; } .apl-best { padding: 0 8px; } }

/* =====================================================================
   YORDAM YOZISHMASI (foydalanuvchi oynasi va admin "Murojaatlar")
   ===================================================================== */
.dlg-box.sup-dlg { width: min(560px, 100%); padding: 0; overflow: hidden; display: flex; flex-direction: column; max-height: 86vh; }
.sup-box { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.sup-head { display: flex; align-items: center; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid #EEECF8;
  background: linear-gradient(135deg, #EEF2FF, #F5F3FF 60%, #FFFFFF); }
.sup-head h3 { margin: 0; font-size: 18px; } .sup-head .hint { margin: 2px 0 0; font-size: 13px; }
.sup-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; flex: none; background: linear-gradient(135deg, #6366F1, #8B5CF6); box-shadow: 0 6px 16px rgba(99, 102, 241, .35); }
.sup-ic svg { width: 20px; height: 20px; }
.sup-log { flex: 1; min-height: 220px; max-height: 50vh; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; background: #FAFAFE; }
.sup-m { display: flex; flex-direction: column; max-width: 82%; }
.sup-m.user { align-self: flex-end; align-items: flex-end; }
.sup-m.admin { align-self: flex-start; align-items: flex-start; }
.sup-b { padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; word-break: break-word; }
.sup-m.user .sup-b { background: linear-gradient(135deg, #6366F1, #8B5CF6); color: #fff; border-bottom-right-radius: 5px; }
.sup-m.admin .sup-b { background: #fff; border: 1px solid #ECEAF7; border-bottom-left-radius: 5px; }
.sup-m small { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 11px; color: var(--ui-muted); }
.sup-m small svg { width: 11px; height: 11px; color: #10B981; }
.sup-empty { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--ui-muted); padding: 20px; }
.sup-empty svg { width: 34px; height: 34px; color: #A5B4FC; } .sup-empty b { color: var(--ui-text); font-size: 16px; } .sup-empty span { font-size: 13.5px; max-width: 320px; }
.sup-form { padding: 12px 14px 14px; border-top: 1px solid #EEECF8; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.sup-row { display: flex; align-items: flex-end; gap: 8px; }
.sup-row textarea { flex: 1; resize: none; min-height: 44px; max-height: 140px; border-radius: 14px; }
.sup-row .send { flex: none; width: 44px; height: 44px; }
.sup-dot { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 99px; background: #EF4444; color: #fff; font-size: 11px; font-weight: 800; }
.sup-dot.hidden { display: none; }
.nav-i { position: relative; }
.nav-dot { position: absolute; left: 22px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: #EF4444; box-shadow: 0 0 0 2px var(--ui-side, #F7F8FB); }
.nav-dot.hidden { display: none; }
.prof-sup h3 { display: flex; align-items: center; gap: 8px; } .prof-sup h3 .badge { margin-left: 4px; }
.hp-contact button.btn { cursor: pointer; }

/* admin: murojaatlar */
.adm-alert { all: unset; box-sizing: border-box; cursor: pointer; grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px;
  background: linear-gradient(135deg, #FEF2F2, #FFF7ED); border: 1px solid #FECACA; color: #991B1B; font-size: 14px; }
.adm-alert svg { width: 18px; height: 18px; } .adm-alert span { margin-left: auto; font-weight: 700; }
.sp-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 14px; min-height: 520px; }
.sp-list { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 20px; background: #fff; border: 1px solid #ECEAF7; max-height: 640px; overflow-y: auto; }
.sp-filter { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #F4F3FB; margin-bottom: 4px; }
.sp-filter button { all: unset; cursor: pointer; flex: 1; text-align: center; padding: 6px 4px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: #5B6175; }
.sp-filter button.on { background: #fff; color: #4338CA; box-shadow: 0 1px 4px rgba(16, 24, 40, .1); }
.sp-item { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; }
.sp-item:hover { background: #F7F6FF; } .sp-item.on { background: #EEF0FF; }
.sp-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #6366F1, #A855F7); }
.sp-t { display: flex; flex-direction: column; min-width: 0; } .sp-t b { font-size: 13.5px; } .sp-t small { font-size: 12px; color: var(--ui-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-item.new .sp-t b { color: #4338CA; }
.sp-r { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; } .sp-r small { font-size: 11px; color: var(--ui-muted); }
.sp-r em { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #EF4444; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.sp-chat { display: flex; flex-direction: column; border-radius: 20px; background: #fff; border: 1px solid #ECEAF7; overflow: hidden; min-height: 520px; }
.sp-ch-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid #EEECF8; }
.sp-ch-head b { display: block; font-size: 15px; } .sp-ch-head small { font-size: 12px; color: var(--ui-muted); }
.sp-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.sp-log { max-height: none; flex: 1; }
.sp-reply { padding: 12px 14px; border-top: 1px solid #EEECF8; }
@media (max-width: 900px) { .sp-wrap { grid-template-columns: 1fr; } .sp-list { max-height: 280px; } .sp-chat { min-height: 420px; } }
@media (max-width: 640px) { .dlg-box.sup-dlg { max-height: 92vh; } .sup-log { max-height: 55vh; } .sup-m { max-width: 90%; } }
#profDanger .danger-zone { margin-top: 16px; }

/* yordam: rasm biriktirish */
.sup-imgs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.sup-m.user .sup-imgs { justify-content: flex-end; }
.sup-imgs a { display: block; width: 150px; max-width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid #ECEAF7; background: #fff; }
.sup-imgs img { display: block; width: 100%; height: 110px; object-fit: cover; transition: transform .2s; }
.sup-imgs a:hover img { transform: scale(1.04); }
.sup-prev { display: flex; gap: 8px; flex-wrap: wrap; }
.sup-prev.hidden { display: none; }
.sup-att { position: relative; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: #F1F0FA; border: 1px solid #E4E2F2; display: grid; place-items: center; }
.sup-att img { width: 100%; height: 100%; object-fit: cover; }
.sup-att i svg { width: 18px; height: 18px; color: var(--ui-muted); }
.sup-att.busy { opacity: .7; }
.sup-att button { all: unset; cursor: pointer; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(17, 17, 30, .7); color: #fff; }
.sup-att button svg { width: 12px; height: 12px; }
.sup-clip { flex: none; width: 44px; height: 44px; border-radius: 14px; }
.sup-note { color: var(--ui-muted); font-size: 11.5px; }
.sup-box.drag, .sp-reply.drag { outline: 2px dashed var(--ui-accent); outline-offset: -6px; }
.sp-reply { display: flex; flex-direction: column; gap: 8px; }

/* =====================================================================
   PROFIL — yangilangan sarlavha, bildirishnomalar oynasi
   ===================================================================== */
.prof-head { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 26px; align-items: start; padding: 0 26px 22px !important; overflow: hidden; border-radius: 24px; }
.prof-cover { grid-column: 1 / -1; height: 110px; margin: 0 -26px 0; display: flex; justify-content: flex-end; align-items: flex-start; padding: 14px 16px;
  background: radial-gradient(360px 180px at 10% 0%, rgba(236, 72, 153, .55), transparent 70%), radial-gradient(360px 180px at 90% 100%, rgba(14, 165, 233, .45), transparent 70%), linear-gradient(135deg, #1E1B4B, #312E81 55%, #6D28D9); }
.prof-head .prof-avbox { margin-top: -62px; position: relative; z-index: 1; }
.prof-head .acct-ring.big { box-shadow: 0 0 0 5px #fff, 0 10px 26px rgba(30, 27, 75, .25); border-radius: 50%; }
.prof-head .prof-fields { padding-top: 14px; }
.prof-bell { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 12px; font-size: 13.5px; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(6px); transition: background .15s; }
.prof-bell:hover { background: rgba(255, 255, 255, .24); }
.prof-bell svg { width: 17px; height: 17px; }
.prof-bell em { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: #EF4444; color: #fff; font-size: 11.5px; font-weight: 800; display: grid; place-items: center; box-sizing: border-box; }
.prof-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.prof-stats > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 14px; background: #F8F7FF; border: 1px solid #EEEBFB; }
.prof-stats b { font-size: 20px; font-weight: 800; } .prof-stats span { font-size: 12.5px; color: var(--ui-muted); }
.prof-stats > div:nth-child(1) b { color: #4F46E5; } .prof-stats > div:nth-child(3) b { color: #B45309; }
.prof-list { display: flex; flex-direction: column; gap: 16px; align-items: stretch; min-width: 0; }
.prof-list > .pl-card, #profSupSlot > .pl-card { width: 100%; box-sizing: border-box; margin: 0; }
#profSupSlot:empty { display: none; }
.prof-sup { background: linear-gradient(135deg, #EEF2FF, #F5F3FF 60%, #fff) !important; border-color: #DCD8F8 !important; }
.prof-side .pl-card, .prof-feed .pl-card { border-radius: 20px; }
/* bildirishnomalar oynasi */
.dlg-box.nt-dlg { width: min(560px, 100%); padding: 0; overflow: hidden; display: flex; flex-direction: column; max-height: 84vh; }
.nt-head { display: flex; align-items: center; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid #EEECF8; background: linear-gradient(135deg, #EEF2FF, #F5F3FF 60%, #FFFFFF); }
.nt-head h3 { margin: 0; font-size: 18px; } .nt-head .hint { margin: 2px 0 0; font-size: 13px; }
.nt-list { overflow-y: auto; padding: 10px 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.nt-i { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 11px 12px; border-radius: 14px; }
.nt-i.new { background: #F5F3FF; }
.nt-i p { margin: 0; font-size: 14px; line-height: 1.45; } .nt-i small { color: var(--ui-muted); font-size: 12px; }
.nt-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; }
.nt-ic svg { width: 17px; height: 17px; }
.nt-ic.c-violet { background: linear-gradient(135deg, #6366F1, #8B5CF6); } .nt-ic.c-green { background: linear-gradient(135deg, #10B981, #22C55E); }
.nt-ic.c-gold { background: linear-gradient(135deg, #F59E0B, #F97316); } .nt-ic.c-sky { background: linear-gradient(135deg, #0EA5E9, #38BDF8); }
@media (max-width: 700px) {
  .prof-head { grid-template-columns: 1fr; padding: 0 16px 18px !important; justify-items: stretch; }
  .prof-cover { margin: 0 -16px; height: 96px; }
  .prof-head .prof-avbox { margin-top: -56px; }
  .prof-head .prof-fields { padding-top: 4px; }
  .prof-stats { gap: 6px; } .prof-stats > div { padding: 10px; } .prof-stats b { font-size: 16px; }
  .prof-bell span { display: none; }
}

/* yozish maydoni — yagona quti: 📎 | matn | yuborish, bir xil balandlikda */
.sup-row { align-items: flex-end; gap: 4px; padding: 5px; border: 1.5px solid #E2DEF5; border-radius: 18px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.sup-row:focus-within { border-color: #A5B4FC; box-shadow: 0 0 0 4px rgba(99, 102, 241, .10); }
.sup-row textarea, .sup-row textarea:focus { flex: 1; min-width: 0; height: 40px; min-height: 40px; max-height: 150px; padding: 10px 6px; border: 0 !important; outline: 0; box-shadow: none !important; background: transparent !important; border-radius: 0; resize: none; line-height: 20px; font-size: 14.5px; overflow-y: auto; scrollbar-width: thin; }
.sup-row .sup-clip { flex: none; width: 40px; height: 40px; border: 0; border-radius: 13px; background: transparent; color: #6B7285; }
.sup-row .sup-clip:hover { background: #F3F1FF; color: var(--ui-accent); }
.sup-row .sup-clip svg { width: 19px; height: 19px; }
.sup-row .send { flex: none; width: 40px; height: 40px; border-radius: 13px; box-shadow: 0 4px 12px rgba(124, 58, 237, .35); }
.sup-row .send svg { width: 18px; height: 18px; }
.sup-note { padding-left: 6px; }
/* rasmni kattalashtirib ko'rish */
.lightbox { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 24px; background: rgba(8, 9, 18, .86); backdrop-filter: blur(4px); animation: lbIn .18s ease-out; cursor: zoom-out; }
.lightbox img { max-width: min(1200px, 100%); max-height: calc(100vh - 48px); border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); cursor: default; }
.lb-x { all: unset; cursor: pointer; position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); color: #fff; }
.lb-x:hover { background: rgba(255, 255, 255, .28); } .lb-x svg { width: 22px; height: 22px; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.sup-imgs a { cursor: zoom-in; }

/* =====================================================================
   TAQDIMOTLARIM — kartochkalar tarmog'i
   ===================================================================== */
.dk-head { padding: 26px 28px; border-radius: 24px; color: #fff; margin-bottom: 16px; align-items: center;
  background: radial-gradient(420px 220px at 0% 0%, rgba(236, 72, 153, .45), transparent 70%), radial-gradient(420px 240px at 100% 100%, rgba(14, 165, 233, .35), transparent 70%), linear-gradient(135deg, #1E1B4B, #312E81 60%, #4C1D95); }
.dk-head h2 { color: #fff; } .dk-head .hint { color: rgba(237, 233, 254, .82); }
.dk-head > .btn.primary { background: #fff; color: #3B2A9E; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.dk-head > .btn.primary svg { color: #7C3AED; }
.dk-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.dk-stats span { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 12px; background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .18); font-size: 12.5px; color: rgba(237, 233, 254, .85); }
.dk-stats b { font-size: 16px; color: #fff; }

#v-decks .resume { background: transparent; border: 0; padding: 0; margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
#v-decks .resume > .empty, #v-decks .resume > .trash-head { grid-column: 1 / -1; }
#v-decks .draft { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; border: 1px solid #ECEAF7 !important; border-radius: 20px; background: #fff; overflow: hidden; cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04); transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s, border-color .22s; }
#v-decks .draft:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(30, 27, 75, .12); border-color: #D9D5F7 !important; background: #fff; }
#v-decks .dr-thumb { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 0; box-shadow: none; background: #F1F0FA; }
#v-decks .dr-thumb .sframe { transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
#v-decks .draft:hover .dr-thumb .sframe { transform: scale(1.03); }
.dk-ph { position: absolute; inset: 0; display: grid; place-items: center; color: #A5B4FC; } .dk-ph svg { width: 34px; height: 34px; }
.dk-badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.dk-badges .badge { box-shadow: 0 2px 8px rgba(0, 0, 0, .15); backdrop-filter: blur(4px); }
.dk-open { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 14px; color: #fff;
  background: linear-gradient(180deg, rgba(30, 27, 75, .15), rgba(30, 27, 75, .55)); opacity: 0; transition: opacity .2s; }
.dk-open svg { width: 18px; height: 18px; }
#v-decks .draft:hover .dk-open { opacity: 1; }
#v-decks .dr-main { padding: 12px 14px 4px; }
#v-decks .dr-main b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 4px; font-size: 14.5px; line-height: 1.35; min-height: 39px; }
#v-decks .dr-main .hint { display: flex; align-items: center; gap: 5px; font-size: 12.5px; margin: 0; }
#v-decks .dr-main .hint svg { width: 13px; height: 13px; }
#v-decks .dr-act { display: flex; gap: 4px; padding: 8px 10px 12px 14px; flex-wrap: nowrap; }
#v-decks .dr-act .btn.small { flex: 1; justify-content: center; min-height: 34px; border-radius: 10px; }
#v-decks .dr-act .icon-btn { flex: none; width: 34px; height: 34px; border-radius: 10px; }
#v-decks .dr-act .icon-btn svg { width: 15px; height: 15px; }
#v-decks .draft.st-tugallanmagan { border-color: #F6DDA6 !important; }
#v-decks .draft.trashed .dr-act { flex-wrap: wrap; }
@media (max-width: 640px) {
  .dk-head { padding: 20px 18px; flex-direction: column; align-items: stretch; } .dk-head > .btn.primary { width: 100%; justify-content: center; }
  #v-decks .resume { grid-template-columns: 1fr; gap: 12px; }
  #v-decks .draft { display: flex; }
  #v-decks .dr-thumb { width: 100%; }
  #v-decks .dr-act { grid-area: auto; }
}
/* profil: kattaroq avatar, ostida ikki tugma ustma-ust; "Yana slayd sotib olish" */
.prof-head .acct-ring.big { width: 124px; height: 124px; }
.prof-head .acct-ring.big .prof-av { width: 108px; height: 108px; font-size: 40px; }
.prof-head .prof-avbox { margin-top: -72px; gap: 12px; }
.prof-head .prof-avbtns { flex-direction: column; flex-wrap: nowrap; align-items: stretch; width: 160px; gap: 6px; }
.prof-head .prof-avbtns .btn { justify-content: center; width: 100%; }
.prof-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.prof-buy { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #F59E0B, #EC4899 60%, #8B5CF6); box-shadow: 0 6px 16px rgba(236, 72, 153, .30); transition: transform .15s, box-shadow .15s; }
.prof-buy:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(236, 72, 153, .40); }
.prof-buy svg { width: 14px; height: 14px; }
@media (max-width: 700px) { .prof-head .prof-avbox { margin-top: -64px; } .prof-head .prof-avbtns { flex-direction: row; width: auto; } .prof-head .prof-avbtns .btn { width: auto; } }
/* taqdimotlarim: sahifalar */
.dk-pager { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.pg-b { all: unset; box-sizing: border-box; cursor: pointer; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; color: #3F4458; background: #fff; border: 1px solid #E6E3F5; transition: all .15s; }
.pg-b:hover:not([disabled]) { border-color: #A5B4FC; color: var(--ui-accent); }
.pg-b.on { background: linear-gradient(135deg, #6366F1, #8B5CF6); color: #fff; border-color: transparent; box-shadow: 0 6px 14px rgba(99, 102, 241, .32); }
.pg-b[disabled] { opacity: .4; cursor: default; }
.pg-b svg { width: 16px; height: 16px; }
.pg-gap { color: var(--ui-muted); padding: 0 2px; }
.pg-info { margin-left: 8px; font-size: 13px; color: var(--ui-muted); }
@media (max-width: 640px) { .pg-info { width: 100%; text-align: center; margin: 4px 0 0; } }
/* profil: ism — avval ko'rinish, "O'zgartirish" bosilganda maydon */
.prof-l > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--ui-muted); margin-bottom: 6px; }
.prof-name-view { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.prof-name-view b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--ui-text); }
.prof-name-view .btn svg { width: 14px; height: 14px; }
#profNameEdit.hidden, #profNameView.hidden { display: none; }
#profNameEdit { gap: 8px; }
/* taqdimotlarim: kengroq sahifa, qatorda 4 ta, har bir kartochka alohida ajralib turadi */
#v-decks { max-width: 1400px; }
#v-decks .resume { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
#v-decks .draft { border: 1px solid #E4E1F5 !important; box-shadow: 0 2px 6px rgba(16, 24, 40, .05), 0 8px 24px rgba(30, 27, 75, .06); background: #fff; }
#v-decks .dr-thumb { margin: 10px 10px 0; width: auto; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px rgba(16, 24, 40, .06); }
#v-decks .dk-badges { left: 8px; top: 8px; }
@media (max-width: 1280px) { #v-decks .resume { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { #v-decks .resume { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 560px) { #v-decks .resume { grid-template-columns: 1fr; } }

/* yonga suriladigan kategoriya qatorlari: strelkalar + so'nish + sudrash */
.hs-wrap { position: relative; display: flex; align-items: center; gap: 6px; min-width: 0; }
.hs-wrap > :not(.hs-arr) { flex: 1; min-width: 0; flex-wrap: nowrap !important; overflow-x: auto !important; scrollbar-width: none; }
.hs-wrap > :not(.hs-arr)::-webkit-scrollbar { display: none; }
.hs-wrap > :not(.hs-arr) > * { flex: none; }
.hs-arr { all: unset; box-sizing: border-box; cursor: pointer; flex: none; width: 32px; height: 32px; border-radius: 50%; display: none; place-items: center;
  background: #fff; border: 1px solid var(--ui-border); color: var(--ui-text); box-shadow: 0 1px 3px rgba(16, 24, 40, .08); transition: opacity .15s, border-color .15s; }
.hs-arr svg { width: 16px; height: 16px; }
.hs-arr:hover { border-color: var(--ui-accent); color: var(--ui-accent); }
.hs-wrap.scrolls .hs-arr { display: grid; }
.hs-arr.off { opacity: .3; pointer-events: none; }
[data-hs].dragging { cursor: grabbing; user-select: none; }
[data-hs].dragging * { pointer-events: none; }
[data-hs]:not(.at-end) { -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); }
[data-hs]:not(.at-end):not(.at-start) { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 90%, transparent); }
[data-hs].at-start.at-end { -webkit-mask-image: none; mask-image: none; }
.tp-head .hs-wrap { margin-top: 2px; }
@media (max-width: 640px) { .hs-wrap.scrolls .hs-arr { display: grid; width: 28px; height: 28px; } .hs-arr svg { width: 14px; height: 14px; } }
@media (max-width: 760px) { .ff-wrap.scrolls .ff-arr { display: grid; width: 28px; height: 28px; } }

/* yon menyu: pastda gorizontal skroll chiqmasin */
.side { overflow-x: hidden; }
.side.mini .acct-tip { position: fixed; left: 82px; right: auto; bottom: auto; top: var(--ty, 50%); translate: 0 -50%; width: 220px; }
.side.mini .acct-tip::after { left: -6px; top: 50%; bottom: auto; margin-top: -5px; transform: rotate(135deg); }
@media (max-width: 900px) { .side.mini .acct-tip { position: absolute; left: 0; right: 0; top: auto; bottom: calc(100% + 10px); translate: none; width: auto; }
  .side.mini .acct-tip::after { left: 24px; top: auto; bottom: -6px; margin-top: 0; transform: rotate(45deg); } }
/* telefonda yon menyu doim to'liq ko'rinishda (kompyuterdagi "kichik menyu" holati ta'sir qilmaydi) */
@media (max-width: 900px) {
  .side.mini .nav-i { justify-content: flex-start; padding: 9px 12px; }
  .side.mini .new-btn { justify-content: flex-start; padding: 11px 14px; }
  .side.mini .side-top { flex-direction: row; gap: 0; padding: 4px 8px 12px; }
  .side.mini .acct-me { padding: 8px 10px; justify-content: flex-start; }
  .side.mini .logo-txt { display: revert; }
}

/* kichik menyu: joriy til joyida qoladi, qolgan 2 tasi o'ng tomonda chiqadi */
.lang-fly { position: fixed; top: var(--fy, 50%); translate: 0 -50%; z-index: 90; display: flex; gap: 4px; padding: 3px;
  background: #fff; border: 1px solid var(--ui-border); border-radius: 11px; box-shadow: 0 12px 30px rgba(16,24,40,.16); animation: lfIn .15s ease-out; }
.lang-fly button { border: 0; background: transparent; border-radius: 8px; padding: 7px 12px; font: inherit; font-size: 12.5px; font-weight: 600; color: #6B7285; cursor: pointer; }
.lang-fly button:hover { background: #F1F2F7; color: #1F2333; }
@keyframes lfIn { from { opacity: 0; transform: translateX(-6px); } }
html[data-theme="dark"] .lang-fly { background: var(--dk-2); border-color: var(--dk-line); }
html[data-theme="dark"] .lang-fly button { color: #9AA2B6; }
html[data-theme="dark"] .lang-fly button:hover { background: var(--dk-3); color: #fff; }

/* AI rasm: slayd yozilayotganda xira (slayd tayyor bo'lgach ochiladi) */
#sGenImg.gi-wait:disabled { opacity: .45; color: var(--ui-muted); background: transparent; border-color: var(--ui-border); cursor: not-allowed; }

/* slayddagi tayyor matn tanlanganda — "Matn" paneli ochiladi, matn ramka bilan belgilanadi */
#stageFrame [data-k].fsel { background-color: color-mix(in srgb, var(--accent) 14%, transparent); }

/* galereya: rasmsiz katakda "Rasm qo'yish" — katak o'rtasida */
.media-bar.gl-empty { display: flex; justify-content: center; margin-top: 2.2%; }

/* admin: AI modeli tanlovi */
.adm-ai .ai-opts { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.ai-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--ui-border); border-radius: 12px; cursor: pointer; background: var(--ui-card, #fff); }
.ai-opt input { margin-top: 3px; accent-color: var(--ui-accent); }
.ai-opt span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ai-opt b { font-size: 14px; } .ai-opt small { color: var(--ui-muted); font-size: 12.5px; line-height: 1.35; }
.ai-opt.on { border-color: var(--ui-accent); background: var(--ui-soft); }
.ai-opt.off { opacity: .5; cursor: not-allowed; }
.ai-usage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.ai-usage div { background: #F7F7FB; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ai-usage b { font-size: 17px; } .ai-usage span { font-size: 11.5px; color: var(--ui-muted); }
.ai-key { display: flex; gap: 8px; align-items: flex-start; background: var(--ui-warn-bg, #FFF7E6); color: var(--ui-warn, #92400E); border-radius: 12px; padding: 10px 12px; font-size: 13px; margin: 6px 0 0; }
.ai-key svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
@media (max-width: 760px) { .ai-usage { grid-template-columns: 1fr 1fr; } }

/* admin: API hisoblar qoldig'i */
.adm-bal .bal-item { border: 1px solid var(--ui-border); border-radius: 12px; padding: 12px; margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.adm-bal .bal-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.adm-bal .bal-h a { font-size: 12.5px; white-space: nowrap; }
.adm-bal .bal-num { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.adm-bal .bal-num b { font-size: 22px; letter-spacing: -.02em; } .adm-bal .bal-num span { color: var(--ui-muted); font-size: 13px; }
.bal-bar { display: block; height: 7px; border-radius: 99px; background: #EEEDF5; overflow: hidden; }
.bal-bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #22C55E, #16A34A); }
.bal-bar.mid > i { background: linear-gradient(90deg, #F59E0B, #D97706); }
.bal-bar.low > i { background: linear-gradient(90deg, #EF4444, #DC2626); }
.adm-bal .bal-in { margin-top: 4px; } .adm-bal .bal-in input { max-width: 120px; }
@media (max-width: 760px) { .adm-bal .bal-in { flex-direction: column; align-items: stretch; } .adm-bal .bal-in input { max-width: none; } }

/* ===== admin sozlamalari: bo'limlar ketma-ket (tariflar → AI → sotuv → sayt → tizim) */
.set-nav { position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 8px 0 12px; margin-bottom: 4px; background: var(--ui-bg); }
.set-nav::-webkit-scrollbar { display: none; }
.set-nav a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--ui-border); background: var(--ui-card, #fff); color: var(--ui-text); font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.set-nav a svg { width: 15px; height: 15px; color: var(--ui-accent); }
.set-nav a:hover { border-color: var(--ui-accent); }
.set-nav a.on { background: var(--ui-accent); border-color: var(--ui-accent); color: #fff; }
.set-nav a.on svg { color: #fff; }
.set-wrap { display: flex; flex-direction: column; gap: 34px; }
.set-sec { scroll-margin-top: 70px; }
.set-sec-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.set-sec-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--ui-soft); color: var(--ui-accent); }
.set-sec-ic svg { width: 20px; height: 20px; }
.set-sec-h h2 { margin: 0; font-size: 19px; letter-spacing: -.01em; }
.set-sec-h p { margin: 2px 0 0; color: var(--ui-muted); font-size: 13px; }
.set-sec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 18px; align-items: start; }
.set-sec-grid > .set-card { margin: 0; }
/* tariflar: kartochka butun eni bo'ylab, tariflar yonma-yon */
.sec-plans .set-sec-grid { grid-template-columns: 1fr; }
.sec-plans .apl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; align-items: start; }
.sec-plans .set-card:not(.adm-plans-card) .set-row { max-width: none; }
.sec-plans .set-card:not(.adm-plans-card) { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); column-gap: 28px; }
.sec-plans .set-card:not(.adm-plans-card) > h3 { grid-column: 1 / -1; }
.sec-one .set-sec-grid { grid-template-columns: 1fr; }
@media (max-width: 760px) {
  .set-wrap { gap: 26px; }
  .set-sec-h h2 { font-size: 17px; }
  .set-sec-ic { width: 34px; height: 34px; }
  .set-nav a { padding: 7px 12px; font-size: 13px; }
}
.sec-plans .set-card:not(.adm-plans-card) .set-row input.inp { max-width: 110px; }
/* bo'lim ichida kartochkalar ustunlarga zich joylashadi (balandlik farqidan bo'sh joy qolmaydi) */
.set-sec:not(.sec-plans):not(.sec-one) .set-sec-grid { display: block; columns: 2 380px; column-gap: 18px; }
.set-sec:not(.sec-plans):not(.sec-one) .set-sec-grid > .set-card { break-inside: avoid; margin: 0 0 18px; display: block; width: 100%; box-sizing: border-box; }
/* telefonda dizayn bo'limlari tugmalari ekranga sig'sin (sahifa eniga oshmasin) */
@media (max-width: 520px) {
  .dtabs { max-width: 100%; }
  .dtabs .tab { flex: 1 1 0; min-width: 0; padding-left: 8px; padding-right: 8px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; justify-content: center; }
}
@media (max-width: 520px) { .dtabs .tab { gap: 5px; padding-left: 6px; padding-right: 6px; } .dtabs .tab svg { width: 14px; height: 14px; flex: none; } }
@media (max-width: 520px) { .dtabs .tab { padding: 9px 8px !important; font-size: 13px !important; } }

/* noaniq mavzu: qaysi biri haqida ekanini tanlash oynasi */
.cl-dlg { text-align: left; width: min(560px, 100%); }
.cl-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; padding-right: 28px; }
.cl-head h3 { margin: 0 0 4px; font-size: 18px; }
.cl-head .hint { margin: 0; font-size: 13px; }
.cl-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--ui-soft); color: var(--ui-accent); }
.cl-ic svg { width: 20px; height: 20px; }
.cl-opts { display: flex; flex-direction: column; gap: 8px; }
.cl-opt { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--ui-border); border-radius: 14px; background: var(--ui-card, #fff); transition: border-color .12s, background .12s; }
.cl-opt b { font-size: 15px; grid-column: 1; } .cl-opt span { grid-column: 1; color: var(--ui-muted); font-size: 13px; line-height: 1.35; margin-top: 2px; }
.cl-opt i { grid-column: 2; grid-row: 1 / span 2; color: var(--ui-muted); display: grid; } .cl-opt i svg { width: 18px; height: 18px; }
.cl-opt:hover, .cl-opt:focus-visible { border-color: var(--ui-accent); background: var(--ui-soft); } .cl-opt:hover i { color: var(--ui-accent); }
.cl-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.cl-foot .btn { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 520px) { .cl-foot { flex-direction: column-reverse; } .cl-foot .btn { justify-content: center; } }

/* AI rasm chizish vaqtincha o'chiq: tugma va sozlamalar ko'rinmaydi */
.no-aiimg #sGenImg, .no-aiimg .set-row:has([data-set="genImages"]), .no-aiimg .set-row:has([data-k="ai_images_enabled"]),
.no-aiimg .th-draw, .no-aiimg .stage-draw { display: none !important; }

/* rasm ostidagi eslatma: asl surat qo'yilmadi (faqat muharrirda) */
.photo-hint { position: absolute; z-index: 26; display: flex; align-items: flex-start; gap: 6px; box-sizing: border-box; padding: 6px 8px 6px 9px; border-radius: 10px;
  background: rgba(255, 255, 255, .96); border: 1px solid #E6E3FA; box-shadow: 0 6px 18px rgba(16, 24, 40, .14); font: 500 11.5px/1.35 Inter, system-ui, sans-serif; color: #4B5165; }
.photo-hint > svg { width: 14px; height: 14px; flex: none; color: var(--ui-accent, #6366F1); margin-top: 1px; }
.photo-hint span { flex: 1; min-width: 0; }
.photo-hint button { all: unset; cursor: pointer; flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; color: #9AA0B2; }
.photo-hint button:hover { background: #F1F2F7; color: #1F2333; } .photo-hint button svg { width: 13px; height: 13px; }
@media (max-width: 760px) { .photo-hint { font-size: 10.5px; padding: 5px 6px; left: 2% !important; width: 96% !important; } }

/* muharrir: chat bloki sahifa pastiga yopishib qolmasin */
@media (min-width: 1181px) { #v-editor { padding-bottom: 26px; } }
@media (max-width: 1180px) { .ed > .chat, .chat { margin-bottom: 22px; } }

/* "Sotuvga qo'yish": taqdimot tanlash oynasi */
.sp-dlg { width: min(860px, 100%); text-align: left; max-height: min(88vh, 860px); display: flex; flex-direction: column; }
.sp-head { display: flex; gap: 12px; align-items: flex-start; padding-right: 30px; margin-bottom: 14px; }
.sp-head h3 { margin: 0 0 4px; font-size: 19px; } .sp-head .hint { margin: 0; font-size: 13px; }
.sp-ic { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, #FDE68A, #F59E0B); color: #7C2D12; }
.sp-ic svg { width: 21px; height: 21px; }
.sp-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--ui-border); border-radius: 12px; padding: 0 12px; margin-bottom: 12px; background: var(--ui-card, #fff); }
.sp-search svg { width: 16px; height: 16px; color: var(--ui-muted); }
.sp-search input { border: 0; outline: 0; background: transparent; flex: 1; padding: 10px 0; font: inherit; font-size: 14px; color: var(--ui-text); min-width: 0; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; overflow-y: auto; padding: 2px 2px 4px; min-height: 0; }
.sp-card { all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: flex; flex-direction: column; border: 1.5px solid var(--ui-border); border-radius: 14px; overflow: hidden; background: var(--ui-card, #fff); transition: border-color .12s, transform .12s, box-shadow .12s; }
.sp-card:hover, .sp-card:focus-visible { border-color: var(--ui-accent); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(79, 70, 229, .16); }
.sp-card.off { cursor: not-allowed; opacity: .55; } .sp-card.off:hover { transform: none; box-shadow: none; border-color: var(--ui-border); }
.sp-card.hidden { display: none; }
.sp-th { position: relative; display: block; aspect-ratio: 16 / 9; background: #F1F2F6; overflow: hidden; }
.sp-th .sframe { width: 100%; pointer-events: none; } .sp-th .dk-ph { position: absolute; inset: 0; display: grid; place-items: center; color: #A5A9BA; }
.sp-tag { position: absolute; left: 8px; top: 8px; font-style: normal; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: rgba(17, 20, 35, .78); color: #fff; }
.sp-tag.warn { background: #F59E0B; color: #3B1D02; }
.sp-meta { display: flex; flex-direction: column; gap: 3px; padding: 10px 34px 11px 12px; min-width: 0; }
.sp-meta b { font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sp-meta small { display: inline-flex; align-items: center; gap: 5px; color: var(--ui-muted); font-size: 12px; } .sp-meta small svg { width: 13px; height: 13px; }
.sp-go { position: absolute; right: 10px; bottom: 12px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ui-soft); color: var(--ui-accent); }
.sp-go svg { width: 14px; height: 14px; } .sp-card:hover .sp-go { background: var(--ui-accent); color: #fff; }
.sp-warn { display: flex; gap: 8px; align-items: center; margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--ui-warn-bg, #FFF7E6); color: var(--ui-warn, #92400E); font-size: 13px; }
.sp-warn svg { width: 16px; height: 16px; flex: none; }
.sp-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 26px 10px 10px; }
.sp-empty > svg { width: 38px; height: 38px; color: var(--ui-accent); } .sp-empty span { color: var(--ui-muted); font-size: 13.5px; max-width: 360px; }
.sp-empty .btn { margin-top: 6px; display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 560px) { .sp-grid { grid-template-columns: 1fr 1fr; gap: 8px; } .sp-meta { padding: 8px 28px 9px 9px; } .sp-meta b { font-size: 12.5px; } .sp-go { right: 7px; bottom: 9px; width: 20px; height: 20px; } }
.sp-th, .sp-meta { flex: none; }
.sp-grid { grid-auto-rows: max-content; flex: 1 1 auto; }

/* bosh sahifa: 6 ta namunaviy slayd — oddiy maket, lekin har biri o'z rangli gradientida (oq matn) */
.ha .slide { --text: #FFFFFF !important; --muted: rgba(255,255,255,.82) !important; --card: rgba(255,255,255,.16) !important; --on: #1B1F2E !important; color: #fff; }
.ha .slide .st-c, .ha .slide .col, .ha .slide .ccard { background: rgba(255,255,255,.14) !important; border-color: rgba(255,255,255,.22) !important; }
.ha0 .slide { background: linear-gradient(135deg, #0F9D6E, #23C4A0 60%, #7BE0C3) !important; --accent: #FFE58A !important; --accent2: #FFFFFF !important; }
.ha1 .slide { background: linear-gradient(135deg, #E5322D, #F2643A 55%, #FF9A5A) !important; --accent: #FFFFFF !important; --accent2: #FFE0B3 !important; }
.ha2 .slide { background: linear-gradient(135deg, #1565D8, #1E8FF0 55%, #3CC3F2) !important; --accent: #FFFFFF !important; --accent2: #C9F0FF !important; }
.ha3 .slide { background: linear-gradient(135deg, #D63FA0, #E05FB8 55%, #B06CF0) !important; --accent: #FFFFFF !important; --accent2: #FFD6F0 !important; }
.ha4 .slide { background: linear-gradient(135deg, #F7B500, #F99A1C 55%, #F57C2B) !important; --accent: #FFFFFF !important; --accent2: #FFF4CC !important; }
.ha5 .slide { background: linear-gradient(135deg, #6D2EE0, #8B3FE8 55%, #B65CF0) !important; --accent: #FFE58A !important; --accent2: #FFFFFF !important; }
.ha .slide .ch-bar { background: rgba(255,255,255,.92) !important; }

/* xabarlar (toast) har doim oynalar ustida ko'rinsin */
.toast { z-index: 400 !important; }
/* sotuv oynasi: AI tavsif yozayotganda va yozib bo'lgach */
#slDesc.ai-wait::placeholder { color: var(--ui-accent); }
#slDesc.ai-wait { background-image: linear-gradient(90deg, transparent, rgba(124, 92, 255, .08), transparent); background-size: 200% 100%; animation: aiShimmer 1.2s linear infinite; }
@keyframes aiShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
#slDesc.ai-fill { box-shadow: 0 0 0 3px var(--ui-soft); transition: box-shadow .4s; }
/* sotuv oynasi: qidiruv maydoni — ichki input o'z ramkasisiz, ramka faqat tashqi blokda */
.sp-search input { border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; padding: 11px 0 !important; height: auto !important; border-radius: 0 !important; }
.sp-search:focus-within { border-color: var(--ui-accent); box-shadow: 0 0 0 3px var(--ui-soft); }
.sp-search { height: 42px; box-sizing: border-box; }
.sp-search input { margin: 0 !important; padding: 0 !important; height: 100% !important; line-height: 42px; font-size: 14px; }
.sp-search { flex: none; min-height: 42px; }

/* admin: bildirishnomalar (chap menyudagi hisoblagich + "Umumiy" tepasidagi ro'yxat) */
#navAdmin { position: relative; }
.adm-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 99px; background: #EF4444; color: #fff; font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; line-height: 1; box-shadow: 0 0 0 2px var(--ui-side, #fff); }
.adm-count.hidden { display: none; }
.side.mini .adm-count { position: absolute; top: 2px; right: 8px; min-width: 17px; height: 17px; font-size: 10px; padding: 0 4px; }
.an-card { margin-bottom: 18px; padding: 16px 18px; }
.an-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.an-head h3 { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 16px; }
.an-head h3 svg { width: 18px; height: 18px; color: var(--ui-accent); }
.an-head h3 em { font-style: normal; font-size: 12px; font-weight: 700; color: #fff; background: #EF4444; border-radius: 99px; padding: 2px 8px; }
.an-head .btn { display: inline-flex; align-items: center; gap: 6px; }
.an-list { display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow-y: auto; }
.an-i { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--ui-border); background: var(--ui-card, #fff); transition: border-color .12s, background .12s; }
.an-i:hover { border-color: var(--ui-accent); }
.an-i.new { background: #F7F5FF; border-color: #DDD8FB; }
.an-i > svg { width: 16px; height: 16px; color: var(--ui-muted); flex: none; }
.an-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.an-tx small { color: var(--ui-muted); font-size: 11.5px; }
.an-tx b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-tx span { font-size: 12.5px; color: var(--ui-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-dot { width: 8px; height: 8px; border-radius: 50%; background: #EF4444; flex: none; }
.an-empty { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; color: var(--ui-muted); font-size: 13.5px; }
.an-empty svg { width: 16px; height: 16px; color: #16A34A; }
@media (max-width: 600px) { .an-head .btn { width: 100%; justify-content: center; } }
#sideOpen { position: relative; }
#sideOpen.has-adm::after { content: ""; position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: #EF4444; box-shadow: 0 0 0 2px #fff; }

/* ===== TOP taqdimotlar: kartochkalar (narx — pastda yumshoq belgi, bo'lim — rasm ustida) */
.top-grid { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 22px; }
.top-card.tc2 { border-radius: 18px; border: 1px solid #ECEBF3; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); transition: transform .18s, box-shadow .18s, border-color .18s; }
.top-card.tc2:hover { transform: translateY(-4px); border-color: #DDD8FB; box-shadow: 0 18px 38px rgba(40, 30, 110, .12); }
.tc2 .top-img { overflow: hidden; }
.tc2 .top-img img { transition: transform .35s ease; }
.tc2:hover .top-img img { transform: scale(1.04); }
.tc2 .top-img::after { content: ""; position: absolute; inset: auto 0 0 0; height: 36%; background: linear-gradient(transparent, rgba(10, 10, 25, .18)); pointer-events: none; }
.tc-cat { position: absolute; right: 10px; top: 10px; z-index: 2; font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 99px; background: rgba(255, 255, 255, .88); color: #3B4152; backdrop-filter: blur(4px); }
.tc2 .top-body { display: flex; flex-direction: column; gap: 9px; padding: 14px 16px 14px; }
.tc-title { font-size: 15.5px; line-height: 1.3; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.tc2 .top-au { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #4B5165; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid #F0EFF5; margin-top: 2px; }
.tc-stats { display: inline-flex; gap: 12px; color: var(--ui-muted); font-size: 12.5px; }
.tc-stats span { display: inline-flex; align-items: center; gap: 4px; } .tc-stats svg { width: 14px; height: 14px; }
.tc-price { font-size: 14px; font-weight: 700; color: #4F46E5; background: #F2F0FF; padding: 5px 11px; border-radius: 10px; white-space: nowrap; letter-spacing: -.01em; }
.top-card.tc2:hover .tc-price { background: #E9E5FF; }
.top-card.tc2:has(.crown.c1) { border: 1.5px solid #F5C64A; box-shadow: 0 10px 26px rgba(245, 179, 0, .16); }
@media (max-width: 760px) { .top-grid { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 14px; } .tc-title { font-size: 15px; } }

/* bildirishnomalar — ixcham qatorlar (oxirgi 10 ta) */
.an-card { padding: 14px 16px; }
.an-head { margin-bottom: 8px; }
.an-head h3 { font-size: 15px; }
.an-list { gap: 4px; max-height: none; }
.an-i { padding: 7px 10px; gap: 10px; border-radius: 10px; }
.an-i .nt-ic { width: 28px; height: 28px; border-radius: 8px; flex: none; }
.an-i .nt-ic svg { width: 15px; height: 15px; }
.an-tx { flex-direction: row; align-items: baseline; gap: 8px; }
.an-tx b { font-size: 13.5px; flex: 0 1 auto; max-width: 55%; }
.an-tx span { font-size: 12.5px; flex: 1; }
.an-t { flex: none; color: var(--ui-muted); font-size: 11.5px; white-space: nowrap; }
@media (max-width: 600px) { .an-tx { flex-direction: column; gap: 0; } .an-tx b { max-width: 100%; } .an-t { display: none; } }

/* TOP: narx — minimal (fonsiz, matn rangida, "so'm" yengilroq) */
.tc-price { background: none !important; padding: 0; color: var(--ui-text, #15151F); font-size: 15px; font-weight: 700; }
.tc-price em { font-style: normal; font-weight: 500; font-size: 12.5px; color: var(--ui-muted); margin-left: 3px; }
.top-card.tc2:hover .tc-price { color: var(--ui-accent); }
.sl-cat-hint { display: block; margin-top: 4px; font-size: 11.5px; color: var(--ui-muted); font-weight: 400; }

/* kirish oynasi: Telegram — tavsiya etiladi, keyin "yoki" va Google */
.login-opt.rec { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 12px 12px; border-radius: 14px;
  border: 1.5px solid #CFE6FA; background: linear-gradient(180deg, #F2F9FF, #FFFFFF); position: relative; }
.login-tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: #2AABEE; color: #fff; }
.login-tag svg { width: 12px; height: 12px; }
.login-opt.rec small { font-size: 12px; color: var(--ui-muted); }
.login-tg { min-height: 40px; display: flex; justify-content: center; }
.login-or { width: 100%; display: flex; align-items: center; gap: 10px; color: var(--ui-muted); font-size: 12.5px; }
.login-or::before, .login-or::after { content: ""; flex: 1; height: 1px; background: var(--ui-border); }
.login-g { min-height: 44px; display: flex; justify-content: center; }

/* kirish: o'z Telegram tugmamiz (tanlangan tilda) va yumshoq "tavsiya" yozuvi */
.login-opt.rec { padding: 12px 12px 10px; gap: 6px; }
.login-tag { position: static; transform: none; background: none; color: #2A8BC9; padding: 0; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; opacity: .85; }
.tg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; padding: 0 22px; min-width: 260px; border: 0; border-radius: 22px;
  background: #2AABEE; color: #fff; font: 600 15px Inter, system-ui, sans-serif; cursor: pointer; transition: background .15s, transform .15s; }
.tg-btn:hover { background: #229ED9; transform: translateY(-1px); }
.tg-btn svg { width: 19px; height: 19px; }
@media (max-width: 420px) { .tg-btn { min-width: 0; width: 100%; } }

/* Google tugmasi (Client ID qo'yilguncha) — Google uslubida, asl logotip bilan */
.g-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 42px; min-width: 260px; padding: 0 20px; border-radius: 21px;
  border: 1px solid #DADCE0; background: #fff; color: #3C4043; font: 500 14.5px Inter, system-ui, sans-serif; cursor: pointer; transition: background .15s, box-shadow .15s; }
.g-btn:hover { background: #F8FAFF; box-shadow: 0 1px 3px rgba(60, 64, 67, .15); }
.g-logo { width: 18px; height: 18px; flex: none; }
@media (max-width: 420px) { .g-btn { min-width: 0; width: 100%; } }

/* murojaatlar: mijoz tarifi (Biznes — birinchi navbatda) */
.sp-tier { display: inline-flex; align-items: center; margin-left: 6px; padding: 1px 7px; border-radius: 99px; font: 600 10.5px/1.6 Inter, system-ui, sans-serif;
  font-style: normal; background: var(--ui-soft); color: var(--ui-accent); vertical-align: middle; white-space: nowrap; }
.sp-tier.biz { background: #FEF3C7; color: #B45309; }

/* ---- foydalanuvchilar: rollar, IP va qurilmalar */
.hidden.pl-tab { display: none !important; }
.ur-roles { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.ur-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--ui-line);
  background: var(--ui-card, #fff); color: var(--ui-text); font: 600 13.5px inherit; font-family: inherit; cursor: pointer; transition: .15s; }
.ur-chip .ico { width: 15px; height: 15px; }
.ur-chip em { font-style: normal; font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--ui-soft); color: var(--ui-muted); }
.ur-chip:hover { border-color: var(--ui-accent); }
.ur-chip.on { background: var(--ui-accent); border-color: var(--ui-accent); color: #fff; }
.ur-chip.on em { background: rgba(255,255,255,.22); color: #fff; }
.ur-chip.super:not(.on) .ico { color: #D99A00; }
.ur-chip.admin:not(.on) .ico { color: #7C5CFF; }
.ur-online { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ui-muted); }
.ur-online i, .ur-on::before { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,.18); display: inline-block; }
.ur-on { display: inline-flex; align-items: center; gap: 6px; color: #16A34A; font-weight: 600; }
.ur-on::before { content: ""; width: 6px; height: 6px; box-shadow: none; }
.role-b { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 2px 8px 2px 6px; border-radius: 99px; vertical-align: 2px; letter-spacing: .01em; }
.role-b .ico { width: 12px; height: 12px; }
.role-b.super { background: linear-gradient(135deg, #FFF4D1, #FFE7A3); color: #8A5A00; }
.role-b.admin { background: #EEEAFF; color: #5B3FE0; }
.acct-av.online { position: relative; overflow: visible; }
.acct-av.online::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: #22C55E; border: 2px solid var(--ui-card, #fff); }
.acct-av.online img { border-radius: inherit; }
.ur-logins { display: inline-flex; gap: 3px; margin-right: 6px; vertical-align: -2px; color: var(--ui-muted); }
.ur-logins .ico { width: 13px; height: 13px; }
.ur-dev { display: inline-flex; align-items: center; gap: 9px; }
.ur-dev > .ico { width: 30px; height: 30px; padding: 7px; border-radius: 9px; background: var(--ui-soft); color: var(--ui-accent); flex: none; }
.ur-dev b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; }
.ur-dev code, .uc-dev code { font: 500 12px ui-monospace, SFMono-Regular, Consolas, monospace; }
.ur-table tr.ur-super td:first-child { box-shadow: inset 3px 0 0 #F5B300; }
.ur-table tr.ur-admin td:first-child { box-shadow: inset 3px 0 0 #7C5CFF; }
.ur-table .adm-act { white-space: nowrap; }
.ur-table .adm-act .btn .ico { width: 15px; height: 15px; }
.ur-note { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ui-muted); background: var(--ui-soft); padding: 9px 12px; border-radius: 10px; margin: 0 0 12px; }
.ur-note .ico { width: 16px; height: 16px; color: var(--ui-accent); flex: none; }
/* kartochka */
.uc-role { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 16px 0 4px; padding: 12px 14px; border: 1px solid var(--ui-line); border-radius: 14px; }
.uc-role > span { font-weight: 700; font-size: 14px; }
.uc-role small { flex-basis: 100%; color: var(--ui-muted); font-size: 12px; }
.uc-role .seg { display: inline-flex; background: var(--ui-soft); border-radius: 10px; padding: 3px; gap: 3px; }
.uc-role .seg button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 7px 14px; border-radius: 8px; font: 600 13px inherit; font-family: inherit; color: var(--ui-muted); cursor: pointer; }
.uc-role .seg button .ico { width: 15px; height: 15px; }
.uc-role .seg button.on { background: var(--ui-card, #fff); color: var(--ui-text); box-shadow: 0 1px 4px rgba(20,20,50,.12); }
.uc-role .seg button[data-role="admin"].on { color: #5B3FE0; }
.uc-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 2px; }
.uc-acts .btn .ico { width: 15px; height: 15px; }
.uc-devs { display: flex; flex-direction: column; gap: 6px; }
.uc-dev { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--ui-line); border-radius: 12px; }
.uc-dev > div { flex: 1; min-width: 0; }
.uc-dev b { display: block; font-size: 13.5px; }
.uc-dev small { color: var(--ui-muted); font-size: 12px; }
.uc-dev small a { color: var(--ui-accent); text-decoration: none; }
.uc-dev-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--ui-soft); color: var(--ui-accent); flex: none; }
.uc-dev-ic .ico { width: 18px; height: 18px; }
.uc-dev-t { font-size: 12px; color: var(--ui-muted); white-space: nowrap; }
.uc-dev-t.on { color: #16A34A; font-weight: 600; }
.uc-ev code { font-size: 11px; color: var(--ui-muted); }
@media (max-width: 600px) {
  .ur-online { margin-left: 0; flex-basis: 100%; }
  .ur-chip { height: 32px; padding: 0 11px; font-size: 12.5px; }
  .uc-dev { flex-wrap: wrap; } .uc-dev-t { flex-basis: 100%; padding-left: 48px; }
  .uc-acts .btn { flex: 1 1 calc(50% - 8px); justify-content: center; }
  .uc-role .seg { width: 100%; } .uc-role .seg button { flex: 1; justify-content: center; }
}
