/* ===================== Rexium: qo'shimcha bo'limlar va Rexi ===================== */

/* ---------- topbar: faqat profil rasmi, qolgani menyuda ---------- */
.pt-who.rx-who > div, .pt-who.rx-who > .pt-icon-btn { display: none; }
.pt-shell:has(.rx-who) .pt-nav.bottom { display: none; }
.rx-who-btn { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 3px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.rx-who-btn:hover, .rx-who-btn[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.rx-who-btn .pt-avatar { pointer-events: none; }
.rx-caret { font-size: 11px; color: var(--muted); }
.rx-menu { position: fixed; z-index: 9600; min-width: 240px; padding: 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); animation: rx-pop .14s ease-out; }
.rx-menu-head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.rx-menu-head b { display: block; font-size: 15px; }
.rx-menu-head small { color: var(--muted); }
.rx-menu-i { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 9px; background: none; color: var(--fg); font: 500 14px/1.2 var(--f-body); text-align: left; cursor: pointer; }
.rx-menu-i:hover, .rx-menu-i:focus-visible { background: var(--sunk); outline: none; }
.rx-menu-i svg { color: var(--muted); flex: none; }
.rx-menu-i.danger { color: var(--bad); }
.rx-menu-i.danger svg { color: var(--bad); }
.rx-menu-sep { height: 1px; margin: 6px 4px; background: var(--line); }
@keyframes rx-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- umumiy ---------- */
.rx-av { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 30%; background: var(--accent); color: #fff; font-weight: 700; overflow: hidden; }
.rx-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rx-view { display: grid; gap: 18px; }
.rx-h2 { font: 600 17px/1.3 var(--f-display); margin: 8px 0 4px; }
.rx-center { display: flex; justify-content: center; }
.rx-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rx-chip { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font: 600 12px/1.6 var(--f-body); white-space: nowrap; }
.rx-list { display: grid; gap: 8px; }
.rx-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); flex-wrap: wrap; }
.rx-row.cur { border-color: var(--accent); }
.rx-row-main { flex: 1 1 220px; min-width: 0; display: grid; gap: 2px; }
.rx-row-main b { overflow-wrap: anywhere; }
.rx-ok { color: var(--ok); font-weight: 600; }
.rx-warn { color: var(--warn); font-size: 13px; margin: 0; }
.rx-banner { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(135deg, var(--accent-soft), transparent 70%); }
.rx-banner p { margin: 6px 0 0; color: var(--muted); }
.rx-toolbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.rx-two { align-items: start; }
.pt-err:empty { display: none; }

/* ---------- toast ---------- */
.rx-toast { position: fixed; left: 50%; bottom: 24px; z-index: 9700; display: flex; align-items: center; gap: 12px; max-width: min(560px, calc(100vw - 32px)); padding: 12px 12px 12px 16px; border-radius: 12px; background: #17191F; color: #F5F5F7; border: 1px solid #2A2D36; box-shadow: 0 14px 40px rgba(0, 0, 0, .5); transform: translate(-50%, 140%); opacity: 0; transition: transform .25s, opacity .25s; pointer-events: none; }
.rx-toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.rx-toast span { flex: 1; font-size: 14px; }
.rx-toast-btn { border: 0; border-radius: 8px; padding: 7px 12px; background: var(--accent); color: #fff; font: 600 13px var(--f-body); cursor: pointer; white-space: nowrap; }
.rx-toast-x { border: 0; background: none; color: #9296A2; font-size: 20px; cursor: pointer; line-height: 1; }

/* ---------- oyna ---------- */
.rx-modal { position: fixed; inset: 0; z-index: 9800; display: grid; place-items: center; padding: 16px; background: rgba(5, 6, 9, .66); backdrop-filter: blur(3px); animation: rx-fade .15s; }
.rx-modal-card { width: min(520px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; border-radius: 16px; background: var(--surface); color: var(--fg); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); animation: rx-pop .18s ease-out; }
.rx-modal-card.wide { width: min(860px, 100%); }
.rx-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.rx-modal-head h2 { margin: 0; font: 600 18px/1.3 var(--f-display); }
.rx-modal-body { padding: 16px 18px; overflow: auto; display: grid; gap: 12px; }
.rx-modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.rx-x { border: 0; background: none; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; }
@keyframes rx-fade { from { opacity: 0; } }

/* ---------- huquqiy hujjatlar ---------- */
.rx-legal { display: grid; gap: 14px; }
.rx-legal .pt-filter { flex-wrap: wrap; }
.rx-doc { line-height: 1.6; }
.rx-doc h2 { font: 600 22px/1.3 var(--f-display); margin: 4px 0 10px; }
.rx-doc h3 { font: 600 16px/1.3 var(--f-body); margin: 18px 0 6px; }
.rx-doc p { margin: 0 0 8px; }
.rx-doc ul { margin: 0 0 8px; padding-left: 20px; }
.rx-legal-links { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; margin-top: 14px; font-size: 13px; }
.rx-legal-links a { color: var(--muted, #9296A2); text-decoration: none; }
.rx-legal-links a:hover { color: var(--accent, var(--accent)); text-decoration: underline; }
.lp-foot .rx-legal-links { margin-top: 0; justify-content: flex-start; }
.rx-legal-edit { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
.rx-legal-edit aside { display: grid; gap: 8px; align-content: start; }
.rx-legal-edit h3 { margin: 0; }
.rx-legal-ta { font: 13px/1.55 var(--f-mono); min-height: 420px; }
@media (max-width: 900px) { .rx-legal-edit { grid-template-columns: 1fr; } }

/* ---------- ro'yxatdan o'tish ---------- */
body.rx-email-only .au-card .pt-seg { display: none; }
.rx-consent { align-items: flex-start; font-size: 13px; line-height: 1.5; }
.rx-consent a { color: var(--red2, var(--accent)); }
.rx-consent input { margin-top: 3px; }
.rx-shake { animation: rx-shake .5s; }
.rx-shake input { outline: 2px solid var(--red2, var(--accent)); outline-offset: 2px; }
@keyframes rx-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.rx-restore { display: grid; gap: 8px; margin-top: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--red2, var(--accent)); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.rx-restore p { margin: 0; font-size: 14px; }

/* ---------- lenta ---------- */
.rx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.rx-stat { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.rx-stat b { display: block; font: 700 22px/1.2 var(--f-display); color: var(--fg); }
.rx-stat small { color: var(--muted); }
.rx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.rx-cards.compact { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 12px; }
.rx-card { display: grid; gap: 8px; align-content: start; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); transition: border-color .15s, transform .15s; }
.rx-card:hover { border-color: var(--line-2); transform: translateY(-1px); }
.rx-card h3 { margin: 0; font: 600 16px/1.3 var(--f-body); overflow-wrap: anywhere; }
.rx-card-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.rx-desc { margin: 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rx-mods { display: flex; flex-wrap: wrap; gap: 4px; }
.rx-mods span { padding: 1px 7px; border-radius: 6px; background: var(--sunk); color: var(--muted); font: 12px/1.6 var(--f-mono); }
.rx-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.rx-card-acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rx-author { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; min-width: 0; }
.rx-author span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 130px; }
.rx-like { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: none; color: var(--muted); cursor: pointer; font: 600 13px var(--f-body); }
.rx-like.on { color: var(--accent-strong); border-color: var(--accent); background: var(--accent-soft); }
.rx-like.on svg { fill: currentColor; }
.rx-home-feed { grid-column: 1 / -1; }
.rx-home-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.rx-home-head h2 { margin: 0; }
.rx-mine { display: grid; gap: 8px; }

/* ---------- chat ---------- */
.rx-chat { display: grid; gap: 10px; }
.rx-chat-list { display: flex; flex-direction: column; gap: 10px; height: min(60vh, 560px); overflow-y: auto; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--sunk); overscroll-behavior: contain; }
.rx-chat.embedded .rx-chat-list { height: 340px; }
.rx-chat-empty { margin: auto; text-align: center; }
.rx-msg { display: flex; gap: 10px; align-items: flex-start; max-width: 82%; animation: rx-pop .16s ease-out; }
.rx-msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.rx-msg-body { min-width: 0; padding: 8px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.rx-msg.mine .rx-msg-body { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.rx-msg.deleted .rx-msg-body { background: none; border-style: dashed; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.rx-msg-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.rx-msg-head b { font-size: 13px; }
.rx-msg-head small { font-size: 11px; }
.rx-msg p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.45; }
.rx-msg-acts { display: inline-flex; gap: 2px; margin-left: auto; opacity: 0; transition: opacity .15s; }
.rx-msg:hover .rx-msg-acts, .rx-msg:focus-within .rx-msg-acts { opacity: 1; }
.rx-mini { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 15px; padding: 0 4px; line-height: 1; }
.rx-mini:hover { color: var(--bad); }
.rx-chat-compose { display: flex; gap: 10px; align-items: flex-end; }
.rx-chat-in.pt-in { min-height: 46px; height: 46px; resize: none; }
.rx-chat-send { display: grid; gap: 4px; justify-items: end; }
.rx-chat-note { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-size: 14px; }
@media (hover: none) { .rx-msg-acts { opacity: 1; } }

/* ---------- komanda ---------- */
.rx-team { display: grid; gap: 14px; }
.rx-team-head { display: grid; gap: 10px; }
.rx-team-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rx-team-title h2 { margin: 0; }
.rx-team-head p { margin: 0; }
.rx-invite { display: grid; gap: 10px; padding: 12px; border-radius: 12px; background: var(--sunk); }
.rx-code { display: flex; gap: 10px; align-items: center; margin: 4px 0; }
.rx-code b { font: 700 22px/1.2 var(--f-mono); letter-spacing: 3px; color: var(--accent-strong); }
.rx-code-in { text-transform: uppercase; font-family: var(--f-mono); letter-spacing: 2px; }
.rx-team-foot { margin-top: 12px; }
.rx-tabs { flex-wrap: wrap; }

/* ---------- landing ---------- */
.rx-land { display: grid; gap: 18px; }
.rx-ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.rx-idea { display: flex; gap: 14px; padding: 14px; border-radius: 14px; border: 1px solid var(--ln, var(--line)); background: var(--g, var(--surface)); }
.rx-idea h3 { margin: 0 0 4px; font-size: 16px; }
.rx-idea p { margin: 0 0 6px; color: var(--gr, var(--muted)); font-size: 14px; overflow-wrap: anywhere; }
.rx-votes { display: grid; place-items: center; align-content: center; min-width: 52px; height: 58px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: #FF4D5C; }
.rx-votes b { font: 700 20px/1 var(--f-display); }
.rx-votes small { font-size: 11px; }
.lp .rx-stat, .lp .rx-card { background: var(--g, var(--surface)); border-color: var(--ln, var(--line)); }

/* ======================= Rexi ======================= */
.rexi-wrap { position: fixed; z-index: 9000; width: calc(96px * var(--rexi-k, 1)); height: calc(112px * var(--rexi-k, 1)); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; outline: none; }
.rexi-wrap:focus-visible .rexi { filter: drop-shadow(0 0 0 2px var(--accent)); }
.rexi-wrap.bye { transition: transform .4s, opacity .4s; transform: scale(.3) translateY(40px); opacity: 0; }
.rexi { position: relative; width: 100%; height: 100%; transform-origin: 50% 100%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45));
  --rx-hood: #EFECE9; --rx-hood-hi: #FFFFFF; --rx-shade: #CFC9C4; --rx-ear: var(--accent); --rx-glow: #FF5468; --rx-face: #121216; --rx-emblem: var(--accent); --rx-paw: #17171B; --rx-tail: #ECE8E4; --rx-mouth: #FF8C9A; --rx-mask: #2A1F3D; --rx-blush: rgba(255, 84, 104, .35);
  --lx: 0px; --ly: 0px; }
.rexi.sk-cyber { --rx-hood: #1B2030; --rx-hood-hi: #2A3248; --rx-shade: #0E1220; --rx-ear: #2FA8FF; --rx-glow: #4CC3FF; --rx-emblem: #2FA8FF; --rx-tail: #1B2030; --rx-mouth: #7FD4FF; --rx-blush: rgba(76, 195, 255, .25); }
.rexi.sk-panda { --rx-hood: #F4F4F2; --rx-hood-hi: #FFFFFF; --rx-shade: #D6D6D2; --rx-ear: #1A1A1A; --rx-glow: #F9F3E6; --rx-emblem: #2DBE6C; --rx-tail: #F4F4F2; --rx-mouth: #FF9DB0; --rx-blush: rgba(255, 157, 176, .35); }
.rexi.sk-miner { --rx-hood: #F2B705; --rx-hood-hi: #FFD34D; --rx-shade: #B98A00; --rx-ear: #FF8A00; --rx-glow: #6FC8FF; --rx-emblem: #FF8A00; --rx-tail: #EFE7DA; --rx-mouth: #FFB38A; --rx-blush: rgba(255, 138, 0, .3); }
.rexi.sk-ninja { --rx-hood: #2A1F3D; --rx-hood-hi: #3D2D59; --rx-shade: #160F24; --rx-ear: #9B5CFF; --rx-glow: #B57BFF; --rx-emblem: #9B5CFF; --rx-tail: #2A1F3D; --rx-mouth: #C9A6FF; --rx-mask: #1A1228; --rx-blush: rgba(181, 123, 255, .25); }
.rexi-svg { width: 100%; height: 100%; overflow: visible; transition: transform .25s; }
.rexi.flip .rexi-svg { transform: scaleX(-1); }
.rexi-svg * { transform-box: view-box; }
.rx-shadow { fill: rgba(0, 0, 0, .35); }
.rx-blush { fill: var(--rx-blush); }
/* skin qismlari */
.rx-pears, .rx-helmet, .rx-mask, .rx-cyberlines, .rx-cover, .rx-eh, .rx-ec, .rx-ea, .rx-m-o, .rx-m-a, .rx-m-open { display: none; }
.sk-panda .rx-pears { display: block; } .sk-panda .rx-ears { display: none; }
.sk-miner .rx-helmet { display: block; } .sk-miner .rx-ears { display: none; }
.sk-ninja .rx-mask { display: block; } .sk-ninja .rx-mouth { visibility: hidden; } .sk-ninja .rx-blush { display: none; }
.sk-cyber .rx-cyberlines { display: block; }
/* yangi skinlar */
.rx-acc { display: none; }
.rexi.sk-king { --rx-hood: #7B1FA2; --rx-hood-hi: #9C4DCC; --rx-shade: #4A0072; --rx-ear: #FFC93C; --rx-glow: #FFD54A; --rx-emblem: #FFC93C; --rx-tail: #7B1FA2; --rx-mouth: #FFD54A; --rx-blush: rgba(255, 201, 60, .3); }
.rexi.sk-wizard { --rx-hood: #4B36A0; --rx-hood-hi: #6A55C8; --rx-shade: #22174A; --rx-ear: #FFD54A; --rx-glow: #A98BFF; --rx-emblem: #FFD54A; --rx-tail: #4B36A0; --rx-mouth: #C9B6FF; --rx-blush: rgba(169, 139, 255, .3); }
.rexi.sk-pirate { --rx-hood: #8D6E63; --rx-hood-hi: #A1887F; --rx-shade: #5D4037; --rx-ear: #C62828; --rx-glow: #FFB74D; --rx-emblem: #C62828; --rx-tail: #8D6E63; --rx-mouth: #FFAB91; --rx-blush: rgba(255, 171, 145, .35); }
.rexi.sk-winter { --rx-hood: #F5F9FF; --rx-hood-hi: #FFFFFF; --rx-shade: #B9C6D6; --rx-ear: #2B6CB0; --rx-glow: #7FC8FF; --rx-emblem: #E53935; --rx-tail: #F5F9FF; --rx-mouth: #FF8FA3; --rx-blush: rgba(255, 120, 150, .45); }
.rexi.sk-robot { --rx-hood: #B0BEC5; --rx-hood-hi: #ECEFF1; --rx-shade: #607D8B; --rx-ear: #4CC3FF; --rx-glow: #4CC3FF; --rx-emblem: #4CC3FF; --rx-tail: #90A4AE; --rx-paw: #455A64; --rx-mouth: #4CC3FF; --rx-blush: rgba(76, 195, 255, .2); }
.rexi.sk-dj { --rx-hood: #111118; --rx-hood-hi: #2A2A36; --rx-shade: #000; --rx-ear: #FF2E88; --rx-glow: #00E5FF; --rx-emblem: #FF2E88; --rx-tail: #111118; --rx-mouth: #FF2E88; --rx-blush: rgba(255, 46, 136, .3); }
.rexi.sk-fire { --rx-hood: #D84315; --rx-hood-hi: #FF7043; --rx-shade: #8C2A0B; --rx-ear: #FFD54A; --rx-glow: #FFD54A; --rx-emblem: #FFD54A; --rx-tail: #FF7043; --rx-mouth: #FFE082; --rx-blush: rgba(255, 213, 74, .35); }
.rexi.sk-ice { --rx-hood: #B3E5FC; --rx-hood-hi: #E1F5FE; --rx-shade: #4FC3F7; --rx-ear: #E1F5FE; --rx-glow: #80DEEA; --rx-emblem: #0288D1; --rx-tail: #B3E5FC; --rx-paw: #0D3B66; --rx-mouth: #80DEEA; --rx-blush: rgba(128, 222, 234, .4); }
.rexi.sk-forest { --rx-hood: #558B2F; --rx-hood-hi: #7CB342; --rx-shade: #33691E; --rx-ear: #AED581; --rx-glow: #C5E1A5; --rx-emblem: #FFEB3B; --rx-tail: #6D8B3A; --rx-mouth: #F48FB1; --rx-blush: rgba(244, 143, 177, .4); }
.sk-king .rx-crown, .sk-wizard .rx-wizhat, .sk-pirate .rx-pirate, .sk-winter .rx-beanie, .sk-winter .rx-scarf, .sk-robot .rx-antenna, .sk-dj .rx-phones, .sk-dj .rx-shades, .sk-fire .rx-flames, .sk-forest .rx-leaf { display: block; }
.sk-wizard .rx-ears, .sk-pirate .rx-ears, .sk-winter .rx-ears, .sk-dj .rx-ears { display: none; }
.sk-robot .rx-fluff, .sk-ice .rx-fluff { display: none; }
.sk-ice .rexi-svg { filter: drop-shadow(0 0 6px rgba(128, 222, 234, .55)); }
.sk-fire .rx-flames { animation: rx-flicker .5s ease-in-out infinite alternate; transform-origin: 50% 30%; }
@keyframes rx-flicker { to { transform: scaleY(1.12) translateY(-1px); opacity: .85; } }
/* "salqin" qiliq: ko'zoynak */
.rexi.m-cool .rx-shades { display: block; }
/* yangi buyumlar */
.p-board { bottom: -6%; left: 18%; font-size: calc(34px * var(--rexi-k, 1)); animation: rx-hold 3.4s ease-in-out forwards; }
.p-balloon { top: -30%; left: 62%; font-size: calc(28px * var(--rexi-k, 1)); animation: rx-balloon 3.6s ease-in-out forwards; }
@keyframes rx-balloon { 0% { transform: translateY(20px); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateY(-10px) rotate(6deg); opacity: 1; } 100% { transform: translateY(-120px) rotate(-8deg); opacity: 0; } }
.p-ball { bottom: 0; left: 80%; animation: rx-ball 2.6s ease-out forwards; }
@keyframes rx-ball { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 35% { transform: translateX(-30px); } 55% { transform: translate(60px, -40px) rotate(360deg); } 100% { transform: translate(160px, 10px) rotate(720deg); opacity: 0; } }
.p-cup { bottom: 22%; left: 56%; animation: rx-hold 3.4s ease-in-out forwards; }
.p-magic { bottom: 26%; left: 66%; font-size: calc(26px * var(--rexi-k, 1)); animation: rx-hold 2.8s ease-in-out forwards; }
.p-mail { top: -12%; left: 58%; font-size: calc(28px * var(--rexi-k, 1)); animation: rx-mail 3.5s ease-in-out forwards; }
@keyframes rx-mail { 0% { transform: translate(60px, -40px) rotate(-20deg); opacity: 0; } 25% { transform: none; opacity: 1; } 80% { transform: translateY(-4px); opacity: 1; } 100% { transform: translateY(-30px); opacity: 0; } }
.rexi.a-skate { animation: rx-skate 3.4s ease-in-out; }
@keyframes rx-skate { 0%, 100% { transform: translateY(-4px) rotate(0); } 25% { transform: translateY(-6px) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(3deg); } 75% { transform: translateY(-5px) rotate(-2deg); } }
.rexi.a-meditate { animation: rx-meditate 4s ease-in-out; }
@keyframes rx-meditate { 20%, 80% { transform: translateY(-16px); } 50% { transform: translateY(-20px); } }
.rexi.a-peek { animation: rx-peekside 3s ease-in-out; }
@keyframes rx-peekside { 15%, 85% { transform: translateX(var(--peek, 40%)) rotate(-8deg); } }

.rx-lamp { animation: rx-lamp 2.4s ease-in-out infinite; }
@keyframes rx-lamp { 50% { opacity: .55; } }
/* doimiy harakat: nafas, dum, quloq */
.rx-head { transform-origin: 60px 96px; animation: rx-breathe 3.2s ease-in-out infinite; }
.rx-body { transform-origin: 60px 128px; animation: rx-body 3.2s ease-in-out infinite; }
.rx-tail { transform-origin: 80px 118px; animation: rx-tail 2.8s ease-in-out infinite alternate; }
.rx-ears { transform-origin: 60px 40px; }
.rx-armR { transform-origin: 80px 100px; }
.rx-armL { transform-origin: 40px 100px; }
.rx-eo { transform-origin: 60px 62px; transition: transform .2s; }
.rx-pupils { transform: translate(var(--lx), var(--ly)); transition: transform .12s; }
.rx-eyes { transform: translate(calc(var(--lx) * .5), calc(var(--ly) * .4)); transition: transform .15s; }
@keyframes rx-breathe { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(1.6px) rotate(-1deg); } }
@keyframes rx-body { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.985); } }
@keyframes rx-tail { from { transform: rotate(-10deg); } to { transform: rotate(12deg); } }
/* kayfiyatlar */
.m-happy .rx-eo, .m-sleep .rx-eo, .m-cover .rx-eo, .m-whistle .rx-eo, .m-angry .rx-eo { display: none; }
.m-happy .rx-eh { display: block; }
.m-happy .rx-m-w { display: none; } .m-happy .rx-m-open { display: block; }
.m-sleep .rx-ec, .m-cover .rx-ec, .m-whistle .rx-ec { display: block; }
.m-sleep .rx-head { animation: rx-sleephead 3.6s ease-in-out infinite; }
.m-sleep .rx-mouth { display: none; }
.m-sleep .rx-tail { animation-duration: 6s; }
@keyframes rx-sleephead { 0%, 100% { transform: translateY(4px) rotate(7deg); } 50% { transform: translateY(5.5px) rotate(8deg); } }
.m-angry .rx-ea { display: block; }
.m-angry .rx-m-w { display: none; } .m-angry .rx-m-a { display: block; }
.m-angry { --rx-glow: #FF2A3D !important; --rx-ear: #FF2A3D !important; }
.m-angry .rexi-svg { filter: drop-shadow(0 0 8px rgba(255, 42, 61, .55)); }
.m-angry .rx-tail { animation: rx-tail .35s ease-in-out infinite alternate; }
.m-sad .rx-m-w { display: none; } .m-sad .rx-m-a { display: block; }
.m-sad .rx-pupils { transform: translate(0, 2px); }
.m-sad .rx-head { animation: none; transform: rotate(-5deg) translateY(2px); }
.m-sad .rx-ears { transform: rotate(0deg) scaleY(.9); }
.m-think .rx-pupils { transform: translate(2px, -3px); }
.m-think .rx-head { animation: none; transform: rotate(6deg); }
/* parol: ko'zini yumadi (panjalar bilan) */
.m-cover .rx-cover { display: block; animation: rx-cover .35s ease-out both; }
.m-cover .rx-armL, .m-cover .rx-armR { opacity: 0; }
.m-cover .rx-m-w { display: none; } .m-cover .rx-m-o { display: block; }
@keyframes rx-cover { from { transform: translateY(26px); opacity: 0; } to { transform: none; opacity: 1; } }
/* parol: teskari qarab hushtak chaladi */
.m-whistle .rx-face { transform: translateX(-9px); transition: transform .3s; }
.m-whistle .rx-head { animation: rx-whistle 1.4s ease-in-out infinite; }
.m-whistle .rx-m-w { display: none; } .m-whistle .rx-m-o { display: block; transform: translateX(-6px); }
.m-whistle .rx-armR { transform: rotate(-35deg); }
.m-whistle .rx-ears { transform: translateX(-3px) rotate(-4deg); }
.flip .rx-emblem text { transform: scaleX(-1); transform-origin: 60px 0; }
.rexi-svg { image-rendering: pixelated; }
@keyframes rx-whistle { 0%, 100% { transform: rotate(-9deg) translateY(0); } 50% { transform: rotate(-6deg) translateY(-1.5px); } }
/* qiliqlar */
.a-blink .rx-eo { transform: scaleY(.08); }
.a-wave .rx-armR { animation: rx-wave .4s ease-in-out 4 alternate; }
@keyframes rx-wave { from { transform: rotate(-150deg); } to { transform: rotate(-115deg); } }
.a-jump { animation: rx-jump .8s cubic-bezier(.3, .7, .4, 1); }
@keyframes rx-jump { 0% { transform: scale(1.06, .92); } 30% { transform: translateY(-22px) scale(.96, 1.05); } 60% { transform: translateY(0) scale(1.08, .9); } 80% { transform: scale(.98, 1.03); } 100% { transform: none; } }
.a-spin .rexi-svg { animation: rx-spin 1.2s ease-in-out; }
@keyframes rx-spin { to { transform: rotateY(360deg); } }
.a-shake { animation: rx-shake2 .6s; }
@keyframes rx-shake2 { 15%, 55% { transform: translateX(-5px) rotate(-3deg); } 35%, 75% { transform: translateX(5px) rotate(3deg); } }
.a-look .rx-head { animation: rx-look 2s ease-in-out; }
@keyframes rx-look { 25% { transform: rotate(-10deg) translateX(-2px); } 65% { transform: rotate(10deg) translateX(2px); } }
.a-yawn .rx-m-w { display: none; } .a-yawn .rx-m-open { display: block; transform-origin: 60px 79px; animation: rx-yawn 1.6s ease-in-out; }
.a-yawn .rx-eo { display: none; } .a-yawn .rx-ec { display: block; }
.a-yawn .rx-head { animation: rx-yawnhead 1.6s ease-in-out; }
@keyframes rx-yawn { 0%, 100% { transform: scale(.4); } 40%, 70% { transform: scale(1.5); } }
@keyframes rx-yawnhead { 40%, 70% { transform: rotate(-6deg) translateY(-2px); } }
.a-ear .rx-ears { animation: rx-ear .25s ease-in-out 3 alternate; }
@keyframes rx-ear { to { transform: rotate(4deg) scaleY(1.04); } }
.a-stretch { animation: rx-stretch 1.1s ease-in-out; }
@keyframes rx-stretch { 30% { transform: scale(1.14, .86); } 60% { transform: scale(.94, 1.08); } }
.a-peek .rx-head { animation: rx-peek .8s; }
@keyframes rx-peek { 40% { transform: translateY(-3px) rotate(4deg); } }
.walking .rx-head, .walking .rx-body { animation-duration: .45s; }
.walking .rx-footL { animation: rx-step .45s ease-in-out infinite; }
.walking .rx-footR { animation: rx-step .45s ease-in-out infinite reverse; }
.walking .rx-tail { animation-duration: .6s; }
@keyframes rx-step { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.talking:not(.m-happy):not(.m-angry) .rx-m-w { animation: rx-talk .22s steps(1) infinite; }
@keyframes rx-talk { 50% { opacity: .2; } }
.dragged { transform: rotate(-8deg) scale(1.06); }
.dragged .rx-eo { display: none; } .dragged .rx-eh { display: block; }

/* effektlar */
.rexi-fx { position: absolute; top: 8%; z-index: 2; font-size: 18px; pointer-events: none; animation: rx-float 2.4s ease-out forwards; }
.rexi-fx.note { color: #B57BFF; font-weight: 700; text-shadow: 0 0 8px rgba(181, 123, 255, .8); left: 8% !important; }
.rexi-fx.steam { top: 0; left: 70% !important; animation-name: rx-steam; }
@keyframes rx-float { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-70px) translateX(-10px) scale(1.1); opacity: 0; } }
@keyframes rx-steam { 0% { transform: scale(.4); opacity: 0; } 30% { transform: scale(1.3); opacity: 1; } 100% { transform: translateY(-20px) scale(1); opacity: 0; } }
.rexi-zzz { position: absolute; top: -6px; right: -4px; color: #9AA4FF; font: 700 16px var(--f-display, sans-serif); letter-spacing: 2px; pointer-events: none; animation: rx-zzz 2.6s ease-in-out infinite; }
@keyframes rx-zzz { 0% { transform: translateY(6px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-16px) translateX(8px); opacity: 0; } }

/* havarcha */
.rexi-bubble { position: absolute; bottom: calc(100% + 6px); left: 34px; z-index: 3; display: none; grid-template-columns: auto 1fr; gap: 10px; align-items: start; width: max-content; max-width: min(300px, calc(100vw - 40px)); padding: 12px 34px 12px 12px; border-radius: 16px; color: #F5F5F7; cursor: default;
  background: linear-gradient(160deg, rgba(30, 32, 40, .97), rgba(14, 15, 19, .97)); border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .03) inset, 0 0 26px color-mix(in srgb, var(--accent) 32%, transparent), 0 18px 40px rgba(0, 0, 0, .5); }
.rexi-bubble.show { display: grid; animation: rx-bubble .25s cubic-bezier(.3, 1.4, .5, 1); }
.rexi-bubble::after { content: ''; position: absolute; left: 22px; bottom: -7px; width: 12px; height: 12px; background: #121318; border-right: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); transform: rotate(45deg); }
.rexi-bubble.left { left: auto; right: 34px; }
.rexi-bubble.left::after { left: auto; right: 22px; }
.rexi-bubble.below { bottom: auto; top: calc(100% + 6px); }
.rexi-bubble.below::after { bottom: auto; top: -7px; transform: rotate(225deg); }
.rexi-bubble.tip { border-color: rgba(245, 165, 36, .65); box-shadow: 0 0 26px rgba(245, 165, 36, .25), 0 18px 40px rgba(0, 0, 0, .5); }
.rexi-bubble.tip::after { border-color: rgba(245, 165, 36, .65); }
.rexi-bubble.success { border-color: rgba(61, 220, 132, .65); box-shadow: 0 0 26px rgba(61, 220, 132, .25), 0 18px 40px rgba(0, 0, 0, .5); }
.rexi-bubble.success::after { border-color: rgba(61, 220, 132, .65); }
.rexi-bubble.whistle { border-color: rgba(181, 123, 255, .7); box-shadow: 0 0 26px rgba(181, 123, 255, .3), 0 18px 40px rgba(0, 0, 0, .5); }
.rexi-bubble.whistle::after { border-color: rgba(181, 123, 255, .7); }
.rexi-bubble.error { border-color: #FF2A3D; box-shadow: 0 0 30px rgba(255, 42, 61, .45), 0 18px 40px rgba(0, 0, 0, .5); }
@keyframes rx-bubble { from { opacity: 0; transform: translateY(8px) scale(.85); } to { opacity: 1; transform: none; } }
.rexi-badge { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--accent); color: #FF4D5C; font: 800 14px/1 var(--f-display, sans-serif); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 50%, transparent); }
.tip .rexi-badge { border-color: #F5A524; box-shadow: 0 0 12px rgba(245, 165, 36, .45); }
.success .rexi-badge { border-color: #3DDC84; color: #3DDC84; box-shadow: 0 0 12px rgba(61, 220, 132, .45); }
.whistle .rexi-badge { border-color: #B57BFF; color: #B57BFF; box-shadow: 0 0 12px rgba(181, 123, 255, .5); }
.rexi-bbody { display: grid; gap: 6px; min-width: 0; }
.rexi-text { margin: 0; font: 500 14px/1.45 var(--f-body, system-ui); white-space: normal; overflow-wrap: anywhere; min-height: 1.45em; }
.rexi-wave { display: flex; align-items: center; gap: 2px; height: 12px; transition: opacity .4s; }
.rexi-wave i { width: 2px; height: 4px; border-radius: 1px; background: #FF4D5C; animation: rx-bars .6s ease-in-out infinite alternate; }
.tip .rexi-wave i { background: #F5A524; } .success .rexi-wave i { background: #3DDC84; } .whistle .rexi-wave i { background: #B57BFF; }
.rexi-wave.done { opacity: .25; }
.rexi-wave.done i { animation: none; height: 3px; }
@keyframes rx-bars { to { height: 12px; } }
.rexi-x { position: absolute; top: 6px; right: 8px; border: 0; background: none; color: #9296A2; font-size: 18px; line-height: 1; cursor: pointer; }
.rexi-x:hover { color: #F5F5F7; }
.rexi-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.rexi-acts button { border: 1px solid #363A46; border-radius: 8px; padding: 5px 10px; background: #1C1F27; color: #F5F5F7; font: 600 12px var(--f-body, system-ui); cursor: pointer; }
.rexi-acts button:hover { border-color: var(--accent); }

/* yashirilganda — qaytarish tugmasi */
.rexi-paw { position: fixed; left: 12px; bottom: 12px; z-index: 9000; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #2A2D36; background: #17191F; font-size: 18px; cursor: pointer; opacity: .65; transition: opacity .15s, transform .15s; }
.rexi-paw:hover { opacity: 1; transform: scale(1.08); }

/* sozlamalar */
.rexi-skins { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.rexi-skin { display: grid; justify-items: center; gap: 4px; padding: 8px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--sunk); color: var(--fg); cursor: pointer; font: 600 12px var(--f-body); }
.rexi-skin.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.rexi.mini { width: 56px; height: 66px; filter: none; }
.rexi.mini * { animation: none !important; }

@media (max-width: 700px) {
  .rexi-bubble { max-width: calc(100vw - 30px); }
  .rexi-skins { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .rexi *, .rexi { animation: none !important; transition: none !important; }
}
@media print { .rexi-wrap, .rexi-paw, .rx-toast { display: none !important; } }
.rx-idea-del { margin-left: 10px; }
@media (max-width: 700px) { .rexi-wrap { width: calc(58px * var(--rexi-k, 1)); height: calc(68px * var(--rexi-k, 1)); } }
.rexi-sizes { flex-wrap: wrap; }

/* ======================= Katalog ======================= */
.dc-hero { position: relative; padding: 26px 22px 18px; border-radius: 18px; border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(1200px 300px at 50% -40%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%), repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 14px, transparent 14px 28px), var(--surface); }
.dc-h { margin: 0 0 8px; font: 700 clamp(22px, 3.2vw, 38px)/1.15 var(--f-display); text-align: center; }
.dc-hero > p, .dc-land-sub { text-align: center; margin: 0 auto 16px; max-width: 640px; color: var(--muted); }
.dc-rot { display: inline-block; position: relative; min-width: 6ch; text-align: left; vertical-align: bottom; overflow: hidden; }
.dc-rot-word { display: inline-block; text-shadow: 0 0 22px currentColor; }
.dc-rot-word.dc-in { animation: dc-rot-in .55s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes dc-rot-in { from { transform: translateY(70%); opacity: 0; filter: blur(4px); } to { transform: none; opacity: 1; filter: none; } }
/* suzuvchi qatorlar */
.dc-marquee { display: grid; gap: 12px; margin-top: 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.dc-row { overflow: hidden; }
.dc-track { display: flex; gap: 12px; width: max-content; animation: dc-scroll var(--dur, 60s) linear infinite; }
.dc-track.rev { animation-direction: reverse; }
.dc-marquee:hover .dc-track { animation-play-state: paused; }
@keyframes dc-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.dc-chip { display: flex; align-items: center; gap: 10px; width: 270px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 88%, var(--k) 12%); color: var(--fg); text-align: left; cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; }
.dc-chip:hover, .dc-chip:focus-visible { transform: translateY(-3px); border-color: var(--k); box-shadow: 0 8px 24px color-mix(in srgb, var(--k) 30%, transparent); outline: none; }
.dc-chip-t { display: grid; min-width: 0; }
.dc-chip-t b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-chip-t small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-icon { position: relative; display: inline-grid; place-items: center; flex: none; border-radius: 22%; overflow: hidden; background: color-mix(in srgb, var(--k) 25%, #111); color: #fff; font: 700 18px var(--f-display); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.dc-icon img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
/* panel */
.dc-bar { margin-top: 4px; }
.dc-tabs { flex-wrap: wrap; }
.dc-tabs button[aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--k, var(--accent)); }
.dc-count { margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--sunk); color: var(--muted); font-size: 11px; }
.dc-search { max-width: 520px; }
.dc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.dc-card { position: relative; display: grid; gap: 10px; align-content: start; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: transform .18s, border-color .18s, box-shadow .18s; animation: dc-card-in .35s ease-out both; }
.dc-card:hover, .dc-card:focus-visible { transform: translateY(-3px); border-color: var(--k); box-shadow: 0 12px 30px color-mix(in srgb, var(--k) 22%, transparent); outline: none; }
.dc-card:nth-child(3n+2) { animation-delay: .04s; } .dc-card:nth-child(3n) { animation-delay: .08s; }
@keyframes dc-card-in { from { opacity: 0; transform: translateY(10px); } }
.dc-card-top { display: flex; gap: 12px; align-items: center; }
.dc-card-h { min-width: 0; display: grid; gap: 4px; }
.dc-card h3 { margin: 0; font: 600 16px/1.25 var(--f-body); overflow-wrap: anywhere; }
.dc-kind { justify-self: start; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--k, var(--accent)) 18%, transparent); color: var(--k, var(--accent)); font: 600 11px/1.7 var(--f-body); }
.dc-sum { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dc-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.dc-dl { display: inline-flex; align-items: center; gap: 5px; font: 600 13px var(--f-body); color: var(--fg); }
.dc-admin { display: flex; flex-wrap: wrap; gap: 4px; border-top: 1px dashed var(--line); padding-top: 8px; }
/* batafsil */
.dc-detail { display: grid; gap: 16px; }
.dc-d-head { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 16px; background: linear-gradient(120deg, color-mix(in srgb, var(--k) 20%, transparent), transparent 70%); }
.dc-d-head h2 { margin: 4px 0; font: 700 24px/1.2 var(--f-display); }
.dc-d-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 13px; }
.dc-d-stats span { display: inline-flex; align-items: center; gap: 5px; }
.dc-d-stats b { color: var(--fg); }
.dc-d-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; }
.dc-d-main, .dc-d-side { display: grid; gap: 14px; align-content: start; }
.dc-sec { display: grid; gap: 8px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--sunk); }
.dc-sec h3 { margin: 0; font: 600 15px var(--f-body); }
.dc-sec p { margin: 0; }
.dc-lead { font-size: 15px; line-height: 1.5; }
.dc-gal-big { width: 100%; max-height: 360px; object-fit: contain; border-radius: 10px; background: #000; }
.dc-gal-thumbs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.dc-thumb { flex: none; width: 92px; height: 56px; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #000; cursor: pointer; }
.dc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dc-compat dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 13px; }
.dc-compat dt { color: var(--muted); }
.dc-compat dd { margin: 0; overflow-wrap: anywhere; }
.dc-install p { font-size: 14px; line-height: 1.5; }
.dc-vers-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.dc-vers { display: grid; gap: 6px; max-height: 380px; overflow-y: auto; }
.dc-ver { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.dc-ver-main { flex: 1; min-width: 0; display: grid; }
.dc-ver-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-vtype { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font: 700 12px var(--f-mono); background: rgba(61, 220, 132, .15); color: #3DDC84; flex: none; }
.dc-vtype.beta { background: rgba(245, 165, 36, .15); color: #F5A524; }
.dc-vtype.alpha { background: rgba(255, 107, 120, .15); color: #FF6B78; }
.dc-ver .pt-btn svg, .dc-sec .pt-btn svg { flex: none; }
@media (max-width: 860px) { .dc-d-grid { grid-template-columns: 1fr; } .dc-chip { width: 220px; } }
/* bosh sahifa */
.dc-land { overflow: hidden; }
.dc-land .dc-chip { background: var(--g, #15171D); border-color: var(--ln, #2A2D36); color: var(--w, #F5F5F7); }
.dc-land .dc-chip-t small { color: var(--gr, #9296A2); }
.dc-land-sub { color: var(--gr, #9296A2); }
.dc-land-cta { display: flex; justify-content: center; margin-top: 18px; }
@media (prefers-reduced-motion: reduce) { .dc-track { animation: none; } .dc-row { overflow-x: auto; } }
.dc-land .dc-h { max-width: none; margin: 0 auto 10px; }
.dc-admin { opacity: 0; transition: opacity .15s; }
.dc-card:hover .dc-admin, .dc-card:focus-within .dc-admin { opacity: 1; }
@media (hover: none) { .dc-admin { opacity: 1; } }
.dc-modes button[aria-selected="true"] { background: var(--accent); color: #fff; }
.dc-total { margin: 0; font-size: 13px; }
.dc-new { margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: rgba(61, 220, 132, .16); color: #3DDC84; font: 600 11px var(--f-body); vertical-align: middle; }
.dc-ver.latest { border-color: rgba(61, 220, 132, .45); }
.dc-jars { display: grid; gap: 14px; margin-top: 18px; }
.dc-jars-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.dc-jars-head h2 { margin: 0 0 4px; }
.dc-jars-head p { margin: 0; max-width: 640px; }
.dc-jar-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 8px; }
.dc-jar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.dc-jar-main { flex: 1; min-width: 0; display: grid; }
.dc-jar-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 500px) { .dc-jar-list { grid-template-columns: 1fr; } }
.dc-pick { --k: #F5A524; }

/* ======================= Chat (messenjer) ======================= */
.mx { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100vh - 140px); min-height: 520px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.mx-side { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-right: 1px solid var(--line); min-height: 0; background: var(--sunk); }
.mx-top { display: flex; align-items: center; justify-content: space-between; }
.mx-top h2 { margin: 0; font: 600 18px var(--f-display); }
.mx-ib { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 10px; font-size: 16px; }
.mx-search.pt-in { min-height: 38px; border-radius: 999px; padding: 8px 14px; }
.mx-folders { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.mx-folders::-webkit-scrollbar { display: none; }
.mx-folder { display: inline-flex; align-items: center; gap: 5px; padding: 8px 7px; border: 0; background: none; color: var(--muted); font: 600 13px var(--f-body); cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.mx-folder[aria-selected="true"] { color: #4CC3FF; border-bottom-color: #4CC3FF; }
.mx-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--line-2); color: var(--fg); font: 700 11px var(--f-body); font-style: normal; }
.mx-folder[aria-selected="true"] .mx-count, .mx-item.unread .mx-count { background: #2B8FD6; color: #fff; }
.mx-list, .mx-people { display: grid; gap: 2px; overflow-y: auto; min-height: 0; align-content: start; }
.mx-list { flex: 1; }
.mx-label { padding: 4px 8px; color: var(--muted); font-size: 12px; font-weight: 600; }
.mx-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 12px; background: none; color: var(--fg); text-align: left; cursor: pointer; }
.mx-item:hover { background: var(--surface); }
.mx-item.on { background: #2B8FD6; color: #fff; }
.mx-item.on .mx-last, .mx-item.on small { color: rgba(255, 255, 255, .8); }
.mx-item.on .mx-count { background: #fff; color: #2B8FD6; }
.mx-item-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mx-item-top, .mx-item-bot { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-width: 0; }
.mx-item-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.mx-item-top small { color: var(--muted); font-size: 11px; flex: none; }
.mx-last { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; }
.mx-item.unread .mx-last { color: var(--fg); }
.mx-av { display: inline-grid; place-items: center; flex: none; border-radius: 50%; color: #fff; font: 700 18px var(--f-display); background: linear-gradient(135deg, #7C5CFF, #4CC3FF); }
.mx-av.global { background: linear-gradient(135deg, #2B8FD6, #3DDC84); font-size: 22px; }
.mx-av.team { background: linear-gradient(135deg, var(--accent), #F5A524); font-size: 20px; }
.mx-item .rx-av { border-radius: 50%; }
.mx-bot-av { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #FF6BD6); font-size: 15px; }
.mx-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: radial-gradient(800px 400px at 80% 0%, rgba(43, 143, 214, .08), transparent 60%), var(--surface); }
.mx-empty { margin: auto; text-align: center; color: var(--muted); }
.mx-empty-ic { font-size: 48px; display: block; margin-bottom: 8px; }
.mx-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.mx-head .rx-av { border-radius: 50%; }
.mx-head-t { flex: 1; min-width: 0; display: grid; }
.mx-head-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-back { display: none; }
.mx-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 10px 14px 14px; }
.mx-pane .rx-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.mx-pane .rx-chat-list, .mx-pane .rx-chat.embedded .rx-chat-list { flex: 1; height: auto; min-height: 0; background: transparent; border: 0; padding: 4px 0; }
.mx-pane .rx-msg-body { border-radius: 16px 16px 16px 4px; }
.mx-pane .rx-msg.mine .rx-msg-body { border-radius: 16px 16px 4px 16px; background: #2B8FD6; border-color: #2B8FD6; color: #fff; }
.mx-pane .rx-msg.mine .rx-msg-head small, .mx-pane .rx-msg.mine .rx-msg-head b { color: rgba(255, 255, 255, .85); }
.mx-pane .rx-msg.mine .rx-mini { color: rgba(255, 255, 255, .8); }
.mx-pane .rx-chat-compose { padding-top: 8px; }
.mx-pane .rx-chat-in.pt-in { border-radius: 22px; }
.mx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mx-chips button { border: 1px solid #2B8FD6; background: rgba(43, 143, 214, .1); color: #4CC3FF; border-radius: 999px; padding: 4px 10px; font: 600 12px var(--f-body); cursor: pointer; }
.mx-typing { display: flex; gap: 4px; padding: 10px 14px; width: max-content; border-radius: 14px; background: var(--sunk); }
.mx-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: mx-dot 1s infinite ease-in-out; }
.mx-typing i:nth-child(2) { animation-delay: .15s; } .mx-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes mx-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-5px); opacity: 1; } }
.mx-picker { display: grid; gap: 6px; }
.mx-pick-res { display: grid; gap: 2px; max-height: 240px; overflow-y: auto; }
.mx-person .pt-btn { pointer-events: none; }
.mx-picked { display: flex; flex-wrap: wrap; gap: 6px; }
.mx-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 3px; border-radius: 999px; background: var(--sunk); font-size: 13px; }
.mx-chip button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 15px; }
.mx-add { display: grid; gap: 6px; margin-top: 8px; }
.mx-nav-badge { background: #2B8FD6 !important; }
.mx-none { padding: 12px 8px; }
@media (max-width: 860px) {
  .mx { grid-template-columns: 1fr; height: calc(100vh - 120px); }
  .mx-main { display: none; }
  .mx.opened .mx-side { display: none; }
  .mx.opened .mx-main { display: flex; }
  .mx-back { display: inline-grid; }
}

/* ---------- Rexi: yangi qiliqlar ---------- */
.rexi-prop { position: absolute; z-index: 3; pointer-events: none; font-size: calc(22px * var(--rexi-k, 1)); line-height: 1; }
.p-note { top: 0; left: 70%; animation: rx-float 3s ease-out forwards; }
.p-fly { top: 10%; left: 50%; animation: rx-fly 3.4s ease-in-out forwards; }
@keyframes rx-fly { 0% { transform: translate(40px, -10px) scale(.6); opacity: 0; } 10% { opacity: 1; } 30% { transform: translate(-30px, -40px) rotate(-15deg); } 55% { transform: translate(50px, -20px) rotate(15deg); } 80% { transform: translate(-10px, -60px); opacity: 1; } 100% { transform: translate(60px, -110px) scale(.7); opacity: 0; } }
.p-fish { bottom: 34%; left: 58%; animation: rx-fish 2.4s ease-in forwards; }
@keyframes rx-fish { 0% { transform: translateY(20px) rotate(-20deg); opacity: 0; } 15% { opacity: 1; transform: none; } 70% { transform: scale(1); opacity: 1; } 100% { transform: scale(.2) translateX(-12px); opacity: 0; } }
.p-book { bottom: 18%; left: 30%; font-size: calc(26px * var(--rexi-k, 1)); animation: rx-hold 4.2s ease-in-out forwards; }
.p-phone { bottom: 22%; left: 54%; animation: rx-hold 3.6s ease-in-out forwards; }
.p-guitar { bottom: 16%; left: 48%; font-size: calc(28px * var(--rexi-k, 1)); animation: rx-hold 3.2s ease-in-out forwards; }
@keyframes rx-hold { 0% { transform: translateY(12px); opacity: 0; } 12%, 88% { transform: none; opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }
.p-yarn { bottom: 0; left: 100%; animation: rx-yarn 3s ease-in-out forwards; }
@keyframes rx-yarn { 0% { transform: translateX(30px) rotate(0); opacity: 0; } 15% { opacity: 1; } 50% { transform: translateX(-70px) rotate(-400deg); } 75% { transform: translateX(-30px) rotate(-200deg); } 100% { transform: translateX(40px) rotate(180deg); opacity: 0; } }
.a-dance { animation: rx-dance .5s ease-in-out 6; }
.a-dance .rx-armL { animation: rx-armup .5s ease-in-out 6 alternate; }
.a-dance .rx-armR { animation: rx-wave .25s ease-in-out 12 alternate; }
@keyframes rx-dance { 0%, 100% { transform: rotate(0) translateY(0); } 25% { transform: rotate(-7deg) translateY(-4px); } 75% { transform: rotate(7deg) translateY(-4px); } }
@keyframes rx-armup { to { transform: rotate(140deg); } }
.a-chase { animation: rx-chase 3.4s ease-in-out; }
.a-chase .rx-pupils { animation: rx-eyesfly 3.4s ease-in-out; }
@keyframes rx-chase { 20% { transform: translateY(-10px); } 30% { transform: none; } 55% { transform: translateY(-16px) rotate(6deg); } 65% { transform: none; } 85% { transform: translateY(-8px) rotate(-5deg); } }
@keyframes rx-eyesfly { 25% { transform: translate(-2px, -3px); } 55% { transform: translate(3px, -2px); } 85% { transform: translate(1px, -4px); } }
.a-munch .rx-m-w, .a-munch .rx-m-o { display: none; }
.a-munch .rx-m-open { display: block; transform-origin: 60px 79px; animation: rx-munch .22s steps(2) infinite; }
@keyframes rx-munch { 50% { transform: scaleY(.25); } }
.a-read .rx-head { animation: rx-read 4.2s ease-in-out; }
@keyframes rx-read { 10%, 90% { transform: rotate(6deg) translateY(2px); } 50% { transform: rotate(3deg) translateY(2px); } }
.a-read .rx-eo { display: none; } .a-read .rx-ec { display: block; }
.a-pounce { animation: rx-pounce 3s ease-in-out; }
@keyframes rx-pounce { 30% { transform: scale(1.06, .9); } 45% { transform: translateX(-14px) translateY(-14px) rotate(-8deg); } 60% { transform: translateX(-10px) scale(1.05, .92); } 80% { transform: translateX(6px) translateY(-6px); } }
.a-sneeze { animation: rx-sneeze .9s ease-in-out; }
@keyframes rx-sneeze { 30% { transform: rotate(-6deg) scale(1, .97); } 45% { transform: rotate(8deg) translateY(2px) scale(1.04); } }
.a-sneeze .rx-eo { display: none; } .a-sneeze .rx-ec { display: block; }
.a-flip { animation: rx-flip 1.1s cubic-bezier(.3, .7, .4, 1); }
@keyframes rx-flip { 0% { transform: scale(1.06, .9); } 25% { transform: translateY(-34px); } 60% { transform: translateY(-34px) rotate(-360deg); } 85% { transform: scale(1.08, .9); } 100% { transform: none; } }
.a-phone .rx-head { animation: rx-phone 3.6s ease-in-out; }
@keyframes rx-phone { 10%, 90% { transform: rotate(8deg) translateY(3px); } 40% { transform: rotate(5deg) translateY(1px); } 55% { transform: rotate(10deg) translateY(4px); } }
.a-sigh { animation: rx-sigh 2.2s ease-in-out; }
.a-sigh .rx-head { animation: rx-sighhead 2.2s ease-in-out; }
@keyframes rx-sigh { 40% { transform: scale(1.03, .96); } }
@keyframes rx-sighhead { 40%, 70% { transform: rotate(-8deg) translateY(4px); } }
.a-sigh .rx-tail { animation-duration: 5s; }
/* "yeb qo'yilgan" bo'lim — faqat ko'rinmay turadi, joyida qoladi */
.rx-eaten { animation: rx-bite .55s steps(4) forwards; pointer-events: auto !important; }
@keyframes rx-bite {
  0% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); opacity: 1; }
  33% { clip-path: polygon(0 0, 70% 0, 80% 20%, 70% 40%, 85% 60%, 70% 100%, 0 100%); opacity: 1; }
  66% { clip-path: polygon(0 0, 35% 0, 45% 25%, 30% 50%, 45% 75%, 35% 100%, 0 100%); opacity: .8; }
  99% { clip-path: polygon(0 0, 2% 0, 2% 100%, 0 100%); opacity: 0; }
  100% { clip-path: none; opacity: 0; } /* sichqoncha sezishi uchun joyi to'liq qoladi */
}
.rx-uneaten { animation: rx-unbite .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes rx-unbite { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.rx-crumb { position: fixed; z-index: 9100; pointer-events: none; font-size: 14px; color: #C68A4E; animation: rx-crumb 1.4s ease-in forwards; }
@keyframes rx-crumb { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(var(--dx), 70px) scale(.4) rotate(160deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rx-eaten { animation: none; opacity: .15; } .rexi-prop { display: none; } }

/* ---------- Google bilan kirish ---------- */
.rx-google-box { display: grid; gap: 10px; margin-bottom: 6px; }
.rx-google { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--ln, var(--line-2)); background: var(--g2, var(--surface)); color: var(--w, var(--fg)); font: 600 15px var(--f-body); text-decoration: none; transition: border-color .15s, background .15s, transform .1s; }
.rx-google:hover { border-color: #4285F4; background: color-mix(in srgb, var(--g2, var(--surface)) 85%, #4285F4 15%); }
.rx-google:active { transform: translateY(1px); }
.rx-google svg { flex: none; background: #fff; border-radius: 50%; padding: 2px; width: 24px; height: 24px; }
.rx-google-note { color: var(--gr, var(--muted)); font-size: 12px; line-height: 1.5; text-align: center; }
.rx-google-note a { color: var(--red2, var(--accent)); }
.rx-or { display: flex; align-items: center; gap: 12px; color: var(--gr, var(--muted)); font-size: 13px; }
.rx-or::before, .rx-or::after { content: ''; flex: 1; height: 1px; background: var(--ln, var(--line)); }

/* ---------- katta ekranlarga moslashish ---------- */
.pt-content { max-width: none; }
@media (min-width: 1500px) {
  .pt-content { padding: 28px 40px; }
  .pt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pt-grid > .rx-home-feed { grid-column: 1 / -1; }
  .lp-main, .lp-offline { max-width: 1480px; }
}
@media (min-width: 2200px) {
  .pt-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lp-main, .lp-offline { max-width: 1760px; }
}

/* ================= rasmli bo'limlar (showcase.js) ================= */
.rx-sc { text-align: left; }
.rx-sc-banner { position: relative; border-radius: 20px; overflow: hidden; min-height: 420px; background: #0B0C10 center right / cover no-repeat; display: flex; align-items: center; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 24px 60px -48px color-mix(in srgb, var(--accent) 50%, transparent); }
.rx-sc-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,9,12,.92) 0%, rgba(8,9,12,.72) 34%, rgba(8,9,12,.08) 62%, transparent 100%); }
.rx-sc-banner-in { position: relative; padding: 40px clamp(24px, 4vw, 56px); max-width: 520px; }
.lp-sec .rx-sc-banner-in h2, .rx-sc-banner-in h2 { max-width: 14ch; margin: 0 0 12px; font: 700 clamp(26px, 3vw, 40px)/1.08 var(--f-display, inherit); letter-spacing: -.02em; color: #fff; }
.rx-sc-banner-in p { margin: 0 0 22px; color: #C9CBD3; font-size: 16px; line-height: 1.55; }
.rx-sc-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.lp-sec .rx-sc-h, .rx-sc-h { max-width: none; width: 100%; margin: 64px 0 6px; text-align: center; font: 800 clamp(26px, 3.4vw, 44px)/1.1 var(--f-display, inherit); letter-spacing: .01em; text-transform: uppercase; color: #fff; }
.rx-sc-sub { margin: 0 0 28px; text-align: center; color: #9296A2; }
.rx-sc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.rx-sc-grid.compact { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.rx-sc-card { all: unset; box-sizing: border-box; display: flex; flex-direction: column; cursor: pointer; color: #F5F5F7; border-radius: 14px; outline-offset: 4px; }
.rx-sc-card:focus-visible { outline: 2px solid var(--accent); }
.rx-sc-img { display: block; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #15161B linear-gradient(135deg, #1b1d24, #0e0f13); position: relative; }
.rx-sc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s cubic-bezier(.2,.7,.2,1), filter .3s; }
.rx-sc-img::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); pointer-events: none; }
.rx-sc-card:hover .rx-sc-img img, .rx-sc-card:focus-visible .rx-sc-img img { transform: scale(1.06); filter: brightness(1.08); }
.rx-sc-card.noimg .rx-sc-img img { display: none; }
.rx-sc-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 2px 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.rx-sc-t { font-size: 20px; font-weight: 600; letter-spacing: .01em; }
.rx-sc-d { color: #9296A2; font-size: 13.5px; line-height: 1.45; }
.rx-sc-tags { color: #6E7280; font-size: 12.5px; margin-top: 2px; }
.rx-sc-card:hover .rx-sc-t { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.rx-sc-card.compact .rx-sc-body { padding: 10px 2px 4px; border-bottom: 0; }
.rx-sc-card.compact .rx-sc-t { font-size: 15px; }
.rx-sc-card.compact .rx-sc-d { font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rx-sc-home { grid-column: 1 / -1; }
.rx-sc-home-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rx-sc-home-head h2 { margin: 0; }
/* asosiy paneldagi salomlashish bloki — banner fon */
/* banner rasmi o'ng tomonda to'liq ko'rinadi (kesilmaydi), blok balandroq */
.pt-hero.rx-sc-hero { position: relative; overflow: hidden; min-height: 380px; display: flex; flex-direction: column; justify-content: center;
  background-color: #0B0C10; background-image: linear-gradient(90deg, #0B0C10 0%, #0B0C10 calc(100% - 700px), rgba(11,12,16,.55) calc(100% - 560px), rgba(11,12,16,0) calc(100% - 420px)), url(/ext/img/banner.webp?v=2);
  background-size: 100% 100%, auto 100%; background-position: 0 0, right center; background-repeat: no-repeat; }
@media (min-width: 1600px) { .pt-hero.rx-sc-hero { min-height: 430px; } }
.pt-hero .rx-sc-restore { margin-top: 14px; }
/* kirish oynasi — chap tomonda rasm */
.au-side.rx-sc-auth { position: relative; background: #0B0C10 var(--rx-sc-auth) right center / auto 100% no-repeat; }
.au-side.rx-sc-auth::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #0B0C10 34%, rgba(11,12,16,.82) 52%, rgba(11,12,16,.1) 80%); pointer-events: none; }
.au-side.rx-sc-auth > * { position: relative; }
@media (max-width: 900px) {
  .rx-sc-banner { min-height: 340px; background-position: 70% center; }
  .rx-sc-banner::before { background: linear-gradient(180deg, rgba(8,9,12,.35) 0%, rgba(8,9,12,.9) 70%); }
  .rx-sc-banner { align-items: flex-end; }
  .au-side.rx-sc-auth { background-size: cover; background-position: center 30%; }
  .au-side.rx-sc-auth::before { background: rgba(11,12,16,.8); }
  .pt-hero.rx-sc-hero { min-height: 0; background-image: linear-gradient(180deg, rgba(11,12,16,.55), rgba(11,12,16,.92) 55%), url(/ext/img/banner.webp?v=2); background-size: 100% 100%, cover; background-position: 0 0, 70% center; }
}
@media (prefers-reduced-motion: reduce) { .rx-sc-img img { transition: none; } .rx-sc-card:hover .rx-sc-img img { transform: none; } }
@media (max-width: 600px) {
  .rx-sc-grid, .rx-sc-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .rx-sc-t, .rx-sc-card.compact .rx-sc-t { font-size: 15px; }
  .rx-sc-d { font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .rx-sc-tags { display: none; }
  .rx-sc-body { padding: 8px 2px 10px; }
  .rx-sc-h { margin-top: 44px; }
}

/* ================= Datapak konstruktori (datapack-ui.js) ================= */
.rx-dp { display: flex; flex-direction: column; gap: 16px; }
.rx-dp-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rx-dp-title { font-size: 15px; min-width: 0; overflow-wrap: anywhere; }
.rx-dp-unsaved { color: #F5A524; }
.rx-dp-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rx-dp-actions .pt-btn svg { margin-right: 6px; vertical-align: -3px; }
.rx-dp-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr); gap: 16px; align-items: start; }
.rx-dp-form { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rx-dp-head > p { margin: 0 0 14px; }
.rx-dp-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rx-dp-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rx-dp-presets { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.rx-dp-mod { border: 1px solid var(--line, rgba(255,255,255,.1)); border-radius: 14px; background: var(--surface, #15161B); transition: border-color .2s; }
.rx-dp-mod.on { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.rx-dp-mod-head { display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; }
.rx-dp-mod-t { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.rx-dp-mod-t small { color: var(--muted, #9296A2); font-size: 12.5px; }
.rx-dp-state { font-size: 12px; color: var(--muted, #9296A2); white-space: nowrap; }
.rx-dp-mod.on .rx-dp-state { color: #4ADE80; }
.rx-dp-sw { appearance: none; -webkit-appearance: none; width: 38px; height: 22px; border-radius: 999px; background: #3A3D46; position: relative; cursor: pointer; flex: none; transition: background .2s; margin: 0; }
.rx-dp-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.rx-dp-sw:checked { background: var(--accent); }
.rx-dp-sw:checked::after { transform: translateX(16px); }
.rx-dp-sw:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rx-dp-mod-body { padding: 0 16px 16px; border-top: 1px solid var(--line, rgba(255,255,255,.08)); padding-top: 14px; }
.rx-dp-fields { display: flex; flex-direction: column; gap: 12px; }
.rx-dp-rows { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.rx-dp-row { display: flex; gap: 8px; width: 100%; align-items: center; }
.rx-dp-row > .pt-in:first-child { flex: 1; min-width: 0; }
.rx-dp-num { width: 110px; flex: none; }
.rx-dp-x { flex: none; width: 36px; padding: 0; font-size: 18px; line-height: 1; }
.rx-dp-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 16px; }
.rx-dp-rule { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.rx-dp-rule select { width: 150px; flex: none; }
.rx-dp-rule.na { opacity: .55; }
.rx-dp-sub { display: flex; flex-direction: column; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line, rgba(255,255,255,.08)); }
.rx-dp-sub:last-child { border-bottom: 0; }
.rx-dp-cmd { display: flex; flex-direction: column; gap: 8px; padding-left: 26px; }
.rx-dp-xyz { grid-column: span 2; }
.rx-dp-xyz-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.rx-dp-use { font-size: 12.5px; color: #4ADE80; }
.rx-dp-recipe { border: 1px solid var(--line, rgba(255,255,255,.08)); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.rx-dp-recipe-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rx-dp-recipe-head select { width: auto; }
.rx-dp-recipe-head .pt-btn { margin-left: auto; }
.rx-dp-recipe-body { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rx-dp-craft { display: grid; grid-template-columns: repeat(3, 92px); gap: 6px; }
.rx-dp-craft .pt-in { padding: 8px 6px; font-size: 12px; text-align: center; }
.rx-dp-arrow { font-size: 26px; color: var(--muted, #9296A2); }
.rx-dp-result { display: flex; flex-direction: column; gap: 8px; min-width: 180px; flex: 1; }
.rx-dp-side { position: relative; min-width: 0; }
.rx-dp-sticky { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 32px); }
.rx-dp-side-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.rx-dp-side-head h3 { margin: 0; }
.rx-dp-status { overflow-wrap: anywhere; }
.rx-dp-code { display: flex; flex-direction: column; gap: 8px; min-height: 0; flex: 1; }
.rx-dp-files { display: flex; flex-wrap: wrap; gap: 4px; max-height: 148px; overflow: auto; padding-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.06); }
.rx-dp-file { all: unset; cursor: pointer; font: 12px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 4px 8px; border-radius: 6px; background: rgba(255,255,255,.05); color: var(--muted, #9296A2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rx-dp-file[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 18%, transparent); color: #fff; }
.rx-dp-file:focus-visible { outline: 2px solid var(--accent); }
.rx-dp-code-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rx-dp-code-head code { font-size: 12px; color: var(--muted, #9296A2); overflow-wrap: anywhere; }
.rx-dp-pre { margin: 0; background: #0B0C10; color: #E6E6EA; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 12px; font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; overflow: auto; min-height: 220px; max-height: 60vh; white-space: pre; }
.rx-dp-err { background: rgba(255,92,92,.1); border: 1px solid rgba(255,92,92,.35); color: #FFB4B4; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
.rx-dp-bad { outline: 2px solid #FF5C5C; outline-offset: 3px; border-radius: 10px; }
.rx-dp-install { font-size: 12.5px; margin: 0; }
.rx-dp-saved summary { cursor: pointer; }
.rx-dp-saved .rx-list { margin-top: 12px; }
.rx-dp-saved .rx-row.cur { outline: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); border-radius: 10px; }
.pt-btn.danger { color: #FF8A80; }
@media (max-width: 1100px) { .rx-dp-cols { grid-template-columns: 1fr; } .rx-dp-sticky { position: static; max-height: none; } }
@media (max-width: 640px) {
  .rx-dp-grid2, .rx-dp-grid3 { grid-template-columns: 1fr; }
  .rx-dp-xyz { grid-column: auto; }
  .rx-dp-craft { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .rx-dp-rule select { width: 130px; }
  .rx-dp-cmd { padding-left: 0; }
}
/* datapak: ma'lumot paneli, kod yashirilgan holat, lenta kartochkasi, dars tugmasi */
.rx-dp-info summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.rx-dp-info summary::-webkit-details-marker { display: none; }
.rx-dp-info-in { display: flex; gap: 18px; margin-top: 14px; align-items: flex-start; }
.rx-dp-info-img { width: 140px; height: 140px; border-radius: 12px; object-fit: cover; flex: none; }
.rx-dp-info-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; flex: 1; }
.rx-dp-info-t { margin: 0; line-height: 1.6; color: var(--fg, #E6E6EA); max-width: 90ch; }
.rx-dp-cols.nocode { grid-template-columns: 1fr; }
.rx-dp-cols.nocode .rx-dp-side { display: none; }
@media (min-width: 1200px) {
  .rx-dp-cols.nocode .rx-dp-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 14px; }
  .rx-dp-cols.nocode .rx-dp-head, .rx-dp-cols.nocode [data-mod="recipes"], .rx-dp-cols.nocode [data-mod="rules"] { grid-column: 1 / -1; }
}
@media (min-width: 1500px) { .rx-dp-cols { grid-template-columns: minmax(0, 1.25fr) minmax(380px, 0.75fr); } }
.rx-chip.dp { background: rgba(74,222,128,.14); color: #4ADE80; }
.rx-dp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.rx-dp-chip { font-size: 12px; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted, #9296A2); }
.rx-dp-card .rx-card-foot { flex-wrap: wrap; gap: 8px; }
.rx-dp-view { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rx-dp-view .rx-dp-pre { max-height: 50vh; }
.rx-dp-cta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.rx-dp-cta span { flex: 1; min-width: 180px; font-size: 14px; }
@media (max-width: 640px) { .rx-dp-info-img { display: none; } }

/* ================= Har modul — alohida plugin (split-ui.js) ================= */
.rx-sp-slot { margin: 18px 0 22px; }
.rx-sp { border: 1px solid var(--line, rgba(255,255,255,.1)); border-radius: 16px; padding: 18px; background: var(--surface, #15161B); display: flex; flex-direction: column; gap: 14px; }
.rx-sp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.rx-sp-head h3 { margin: 0 0 4px; font-size: 18px; }
.rx-sp-head p { margin: 0; max-width: 70ch; }
.rx-sp-radios { display: flex; gap: 8px; flex-wrap: wrap; }
.rx-sp-radio { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line, rgba(255,255,255,.12)); min-width: 170px; }
.rx-sp-radio small { color: var(--muted, #9296A2); font-size: 12px; }
.rx-sp-radio[aria-checked="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.rx-sp-radio:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rx-sp-note { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.05); font-size: 13.5px; }
.rx-sp-note.warn { background: rgba(245,165,36,.12); color: #F5C26B; }
.rx-sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.rx-sp-card { border: 1px solid var(--line, rgba(255,255,255,.1)); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: rgba(255,255,255,.02); min-width: 0; }
.rx-sp-card.core { border-style: dashed; }
.rx-sp-card-head { display: flex; flex-direction: column; gap: 4px; }
.rx-sp-card-head .pt-in { font-weight: 600; }
.rx-sp-card-head small { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.rx-sp-mods { display: flex; flex-wrap: wrap; gap: 6px; }
.rx-sp-chip { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: #FF9AA2; }
.rx-sp-chip.core { background: rgba(255,255,255,.08); color: var(--fg, #E6E6EA); }
.rx-sp-list { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line, rgba(255,255,255,.07)); padding-top: 8px; }
.rx-sp-lt { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; }
.rx-sp-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; min-width: 0; }
.rx-sp-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rx-sp-sel { width: auto; max-width: 170px; padding: 6px 8px; font-size: 12.5px; flex: none; }
.rx-sp-deps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 10px; font-size: 13px; }
.rx-sp-reasons { margin: 0; padding-left: 18px; color: var(--muted, #9296A2); font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.rx-sp-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--accent) 7%, transparent); font-size: 14px; }
.rx-sp-bar.off { border-color: var(--line, rgba(255,255,255,.12)); background: rgba(255,255,255,.04); }
.rx-sp-bar.col { flex-direction: column; align-items: stretch; }
.rx-sp-bar .rx-sp-sel { max-width: 240px; }
@media (max-width: 640px) { .rx-sp-radio { min-width: 0; flex: 1; } .rx-sp-grid { grid-template-columns: 1fr; } }

/* ================= Kit inventari (kit-ui.js) ================= */
.rx-kit-slot { margin: 6px 0 10px; }
.rx-kit { display: flex; flex-direction: column; gap: 10px; }
.rx-kit-head { display: flex; flex-direction: column; gap: 2px; }
.rx-kit-body { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.rx-kit-inv { display: inline-flex; flex-direction: column; gap: 4px; padding: 10px; background: #c6c6c6; border: 3px solid; border-color: #fff #555 #555 #fff; border-radius: 4px; max-width: 100%; overflow-x: auto; }
.rx-kit-lbl { color: #3f3f3f; font: 600 12px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; margin-top: 4px; }
.rx-kit-grid { display: grid; grid-template-columns: repeat(9, 44px); gap: 2px; }
.rx-kit-armor { display: flex; gap: 18px; align-items: flex-end; margin-bottom: 4px; }
.rx-kit-col { display: flex; flex-direction: column; gap: 3px; }
.rx-kit-col small { color: #3f3f3f; font: 600 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.rx-kit-armorcells { display: flex; gap: 2px; }
.rx-kit-cell { position: relative; }
.rx-kit-cell.sel { outline: 3px solid var(--accent); outline-offset: -1px; z-index: 1; }
.rx-kit-cell.over { outline: 3px dashed #4ADE80; outline-offset: -1px; }
.rx-kit-cell.ench .iv-ic { filter: drop-shadow(0 0 3px #c084fc) drop-shadow(0 0 1px #e9d5ff); }
.rx-kit-cell[draggable="true"] { cursor: grab; }
.rx-kit-n { position: absolute; right: 2px; bottom: 0; font: 700 13px/1 ui-monospace, monospace; color: #fff; text-shadow: 1px 1px 0 #3f3f3f; }
.rx-kit-ghost { width: 26px; height: 26px; opacity: .35; background: #555; -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; }
.rx-kit-ghost.helmet { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3 9a6 6 0 0 1 12 0v3h-3v-3H6v3H3z'/%3E%3C/svg%3E"); }
.rx-kit-ghost.chest { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 3h3l2 2 2-2h3l2 4-2 1v7H4V8L2 7z'/%3E%3C/svg%3E"); }
.rx-kit-ghost.legs { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 3h8v12h-3l-1-7-1 7H5z'/%3E%3C/svg%3E"); }
.rx-kit-ghost.boots { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3 9h4v4h2v2H3zM11 9h4v6H9v-2h2z'/%3E%3C/svg%3E"); }
.rx-kit-form { flex: 1; min-width: 260px; max-width: 460px; display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line, rgba(255,255,255,.1)); border-radius: 12px; background: var(--surface, #15161B); }
.rx-kit-form.empty { display: none; }
.rx-kit-fhead { display: flex; align-items: center; gap: 10px; }
.rx-kit-fhead > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.rx-kit-row { display: flex; gap: 10px; align-items: flex-end; }
.rx-kit-f { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.rx-kit-f > span { font-weight: 600; }
.rx-kit-row .rx-kit-f { width: 110px; }
.rx-kit-colors { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rx-col { width: 24px; height: 24px; border-radius: 6px; border: 2px solid rgba(255,255,255,.25); background: var(--c, #fff); cursor: pointer; padding: 0; color: #111; font-weight: 800; }
.rx-col.bold { background: #2a2c33; color: #fff; }
.rx-kit-prev { padding: 8px 10px; border-radius: 8px; background: #1b1b1f; border: 1px solid rgba(255,255,255,.08); font: 14px ui-monospace, Menlo, monospace; text-shadow: 1px 1px 0 #2b2b2b; min-height: 20px; }
.rx-kit-ench { display: flex; flex-direction: column; gap: 6px; }
.rx-kit-erow { display: flex; gap: 6px; align-items: center; }
.rx-kit-erow select { flex: 1; min-width: 0; }
.rx-kit-lv { width: 70px; }
.rx-kit-del { align-self: flex-start; }
.btn.danger { color: #FF8A80; }
.rx-kit-raw:not(.open) { display: none; }
.rx-kit-rawbtn { margin: 2px 0 8px; display: inline-block; grid-column: 1 / -1; justify-self: start; text-align: left; }
.rx-kit-slot { grid-column: 1 / -1; }
/* "Matnga qo'shish" tugmalari: tushunarli nom + kod */
.ph-chip.rx-chip-ph, .ph-chip.rx-chip-col { display: inline-flex; align-items: center; gap: 6px; }
.ph-chip code { font-size: 11px; opacity: .6; }
.ph-chip.rx-chip-ico { padding: 4px 8px; min-width: 32px; justify-content: center; }
.ph-chip .rx-ico { font-size: 15px; line-height: 1; }
.ph-chip .rx-fm { font: 700 13px/1 ui-monospace, monospace; color: var(--text, #e8e8f0); }
.ph-chip .rx-sw { width: 18px; height: 18px; }
.ph-chip.rx-chip-hex { position: relative; gap: 4px; display: inline-flex; align-items: center; background: linear-gradient(90deg,#f55,#fa0,#5f5,#5af,#a5f); cursor: pointer; }
.ph-chip .rx-hexl { font: 800 13px/1 ui-monospace, monospace; color: #fff; text-shadow: 0 0 3px #000; pointer-events: none; }
.ph-chip .rx-hexpick { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ph-chip .rx-sw { width: 12px; height: 12px; border-radius: 3px; background: var(--c); box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
/* matn maydoni: o'yindagi ko'rinishi */
.rx-tp { position: fixed; z-index: 70; max-width: 380px; padding: 8px 10px; border-radius: 10px; background: #111216; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 10px 30px rgba(0,0,0,.45); pointer-events: none; display: flex; flex-direction: column; gap: 4px; }
.rx-tp small { color: #9296A2; font-size: 11.5px; }
.rx-tp-line { font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; text-shadow: 1px 1px 0 #2b2b2b; overflow-wrap: anywhere; }
@media (max-width: 640px) { .rx-kit-grid { grid-template-columns: repeat(9, 34px); } .rx-kit-grid .iv-cell, .rx-kit-armor .iv-cell { width: 34px; height: 34px; } .rx-kit-form { max-width: none; } }
/* Chat: guruhga takliflar */
.mx-invites:empty { display: none; }
.mx-invites { display: grid; gap: 6px; margin: 4px 0 8px; }
.mx-invite { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; padding: 10px; border: 1px solid var(--accent, var(--accent)); border-radius: 10px; background: color-mix(in srgb, var(--accent, var(--accent)) 8%, transparent); }
.mx-invite-t { display: grid; gap: 2px; font-size: 13px; line-height: 1.35; }
.mx-invite .rx-btns { grid-column: 1 / -1; justify-content: flex-end; }
/* ===== Rasmli GUI dizayner ===== */
.rx-gd-box { margin: 10px 0 14px; padding: 14px; border: 1px solid var(--line, #2a2d36); border-radius: 12px; background: color-mix(in srgb, var(--accent, var(--accent)) 5%, var(--sunk, #15161b)); display: grid; gap: 8px; }
.rx-gd-bh { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rx-gd-hint { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted, #9aa0ac); }
.rx-gd-hint.on { color: #ffde59; }
.rx-gd-mrow { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 10px; background: rgba(255,255,255,.03); }
.rx-gd-mt { display: grid; gap: 2px; min-width: 0; flex: 1; }
.rx-gd-thumb { width: 88px; height: 44px; align-self: center; object-fit: contain; image-rendering: pixelated; border-radius: 6px; background: #0e0f13; flex: none; }
.rx-gd-thumb.wide { width: 128px; height: 32px; }
.rx-gd-thumb.empty { display: grid; place-items: center; color: var(--muted, #888); font-size: 12px; border: 1px dashed var(--line, #333); }
.rx-gd-sp { flex: 1; }
.rx-gd { position: fixed; inset: 0; z-index: 9600; display: grid; grid-template-rows: auto auto 1fr; background: #0d0e12; color: #eef0f4; }
.rx-gd-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid #23252d; background: #121318; }
.rx-gd-title { font-size: 15px; margin-right: 6px; }
.rx-gd-inl { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #c8ccd6; }
.rx-gd-inl .pt-in { width: auto; padding: 4px 8px; }
.rx-gd-seg { display: inline-flex; border: 1px solid #2c2f39; border-radius: 9px; overflow: hidden; }
.rx-gd-seg button { padding: 6px 12px; background: transparent; color: #c8ccd6; border: 0; font: inherit; font-size: 13px; cursor: pointer; }
.rx-gd-seg button[aria-checked="true"] { background: var(--accent, var(--accent)); color: #fff; }
.rx-gd-warn { margin: 0; padding: 9px 16px; background: #3a2a08; color: #ffd98a; font-size: 13px; border-bottom: 1px solid #5a4210; }
.rx-gd-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; min-height: 0; }
.rx-gd-left { display: grid; grid-template-rows: 1fr auto auto; min-height: 0; overflow: auto; padding: 16px; gap: 8px; }
.rx-gd-stage { display: grid; place-items: start center; min-width: 0; }
.rx-gd-stage.off .rx-gd-cv { opacity: .55; }
.rx-gd-cv { image-rendering: pixelated; max-width: 100%; height: auto; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,.55); cursor: crosshair; outline: none; touch-action: none; }
.rx-gd-cv:focus-visible { box-shadow: 0 0 0 2px var(--accent, var(--accent)), 0 10px 40px rgba(0,0,0,.55); }
.rx-gd-help { margin: 0; font-size: 12px; color: #8a90a0; text-align: center; }
.rx-gd-plain { padding: 10px 12px; border-radius: 10px; background: #1a1c23; color: #c8ccd6; font-size: 13px; }
.rx-gd-side { display: grid; grid-template-rows: auto 1fr; min-height: 0; border-left: 1px solid #23252d; background: #111217; }
.rx-gd-tabs { display: flex; gap: 2px; padding: 8px 8px 0; border-bottom: 1px solid #23252d; }
.rx-gd-tabs button { flex: 1; padding: 8px 6px; border: 0; border-bottom: 2px solid transparent; background: none; color: #a8aebb; font: inherit; font-size: 13px; cursor: pointer; }
.rx-gd-tabs button[aria-selected="true"] { color: #fff; border-bottom-color: var(--accent, var(--accent)); }
.rx-gd-pane { overflow: auto; padding: 12px; display: grid; gap: 10px; align-content: start; }
.rx-gd-pane h4 { margin: 4px 0 0; font-size: 13px; color: #fff; }
.rx-gd-themes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.rx-gd-theme { display: flex; align-items: center; gap: 8px; padding: 6px; border: 1px solid #262933; border-radius: 9px; background: #16171d; color: #dde1ea; font: inherit; font-size: 12.5px; cursor: pointer; text-align: left; }
.rx-gd-theme.on, .rx-gd-theme:hover { border-color: var(--accent, var(--accent)); }
.rx-gd-sw { width: 34px; height: 26px; border-radius: 6px; border: 2px solid; display: flex; align-items: flex-end; gap: 2px; padding: 3px; flex: none; }
.rx-gd-sw i { flex: 1; height: 8px; border-radius: 2px; }
.rx-gd-lays { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.rx-gd-lay { display: grid; gap: 4px; padding: 6px; border: 1px solid #262933; border-radius: 9px; background: #16171d; color: #dde1ea; font: inherit; font-size: 11.5px; line-height: 1.3; cursor: pointer; text-align: left; }
.rx-gd-lay.on, .rx-gd-lay:hover { border-color: var(--accent, var(--accent)); }
.rx-gd-pv { width: 100%; height: auto; image-rendering: pixelated; border-radius: 4px; }
.rx-gd-adds { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rx-gd-list { display: grid; gap: 3px; max-height: 210px; overflow: auto; padding-right: 2px; }
.rx-gd-li { display: flex; align-items: center; gap: 2px; border-radius: 7px; background: #17181e; }
.rx-gd-li.on { background: #26324a; outline: 1px solid #3ac8ff; }
.rx-gd-li.off .rx-gd-lin { opacity: .45; }
.rx-gd-lin { flex: 1; min-width: 0; padding: 6px 8px; background: none; border: 0; color: #e6e9f0; font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-gd-ib { width: 26px; height: 26px; flex: none; border: 0; border-radius: 6px; background: none; color: #b8beca; cursor: pointer; font-size: 13px; }
.rx-gd-ib:hover { background: #2a2d38; color: #fff; }
.rx-gd-ib.danger:hover { background: #5a1a20; }
.rx-gd-ib:disabled { opacity: .3; cursor: default; }
.rx-gd-props { display: grid; gap: 8px; padding-top: 8px; border-top: 1px solid #23252d; }
.rx-gd-f { display: grid; gap: 4px; font-size: 12px; color: #a8aebb; min-width: 0; }
.rx-gd-f .pt-in { width: 100%; }
.rx-gd-r2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; align-items: end; }
.rx-gd-ck { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #d4d8e2; }
.rx-gd-col { width: 100%; height: 32px; padding: 2px; border: 1px solid #2c2f39; border-radius: 7px; background: #16171d; cursor: pointer; }
.rx-gd-itbtn { display: inline-flex; align-items: center; gap: 6px; }
.rx-gd-mc { padding: 6px 8px; border-radius: 6px; background: #1b1b1b; font-family: var(--f-mono, monospace); font-size: 13px; min-height: 28px; }
.rx-gd-acts { display: grid; gap: 6px; }
.rx-gd-act { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px; border-radius: 8px; background: #17181e; }
.rx-gd-act select.pt-in { width: auto; flex: 1 1 140px; }
.rx-gd-act .pt-in.sm { width: 72px; }
.rx-gd-act > .pt-in:not(select):not(.sm) { flex: 1 1 140px; }
@media (max-width: 900px) {
  .rx-gd-body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow: auto; }
  .rx-gd-side { border-left: 0; border-top: 1px solid #23252d; }
  .rx-gd-left { overflow: visible; }
  .rx-gd-top { padding: 8px 12px; }
}

/* RTP dunyo oynasi */
.rx-rtp { justify-self: start; }
.rx-rtp-grid { grid-template-columns: repeat(9, 40px); }
.rx-rtp-grid .iv-cell { width: 40px; height: 40px; }
.rx-rtp-form { max-width: 520px; }
@media (max-width: 640px) { .rx-rtp-grid { grid-template-columns: repeat(9, 32px); } .rx-rtp-grid .iv-cell { width: 32px; height: 32px; } }
/* Sinov (beta) yozuvi */
.rx-beta { display: grid; grid-template-columns: auto 1fr auto; gap: 12px 14px; align-items: center; margin: 10px 16px 6px; padding: 12px 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, #f5b830 45%, transparent); background: linear-gradient(100deg, color-mix(in srgb, #f5b830 14%, var(--sunk, #15161b)), color-mix(in srgb, var(--accent, var(--accent)) 10%, var(--sunk, #15161b))); color: var(--fg, #eef0f4); }
.rx-beta.builder { margin: 8px 16px; }
.rx-beta.landing { margin: 10px auto; max-width: 1180px; width: calc(100% - 32px); }
.rx-beta-b { align-self: start; padding: 4px 8px; border-radius: 7px; background: #f5b830; color: #1a1406; font: 800 11px/1 var(--f-mono, monospace); letter-spacing: .08em; }
.rx-beta-t { display: grid; gap: 3px; font-size: 13.5px; line-height: 1.45; min-width: 0; }
.rx-beta-t b { font-size: 14.5px; }
.rx-beta-t span { color: var(--muted, #b8bdc8); }
.rx-beta-a { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.rx-beta-x { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--muted, #aaa); font-size: 18px; cursor: pointer; }
.rx-beta-x:hover { background: rgba(255,255,255,.08); color: var(--fg, #fff); }
.rx-beta-chip { position: fixed; right: 14px; bottom: 14px; z-index: 9000; padding: 7px 12px; border-radius: 999px; border: 1px solid #f5b830; background: #1a1406; color: #ffe2a0; font: 600 12px/1 inherit; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.rx-beta-chip b { color: #f5b830; letter-spacing: .06em; }
.rx-beta-chip:hover { background: #2a200a; }
@media (max-width: 760px) {
  .rx-beta { grid-template-columns: auto 1fr; }
  .rx-beta-a { grid-column: 1 / -1; justify-content: flex-start; }
  .rx-beta-chip span { display: none; }
  /* telefonda pastdagi tugmalarni yopmasin: o'ng chetda, o'rtada kichik yorliq */
  .rx-beta-chip { right: 0; bottom: auto; top: 45%; padding: 10px 6px; writing-mode: vertical-rl; transform: rotate(180deg); border-radius: 0 10px 10px 0; border-left: 0; border-right: 1px solid #f5b830; font-size: 11px; }
}
@media print { .rx-beta, .rx-beta-chip { display: none !important; } }
.rx-gd-beta { margin-left: 6px; padding: 2px 6px; border-radius: 5px; background: #f5b830; color: #1a1406; font: 800 10px/1.3 var(--f-mono, monospace); letter-spacing: .06em; vertical-align: middle; }

/* Admin: yangi foydalanuvchilar */
.rx-su { display: grid; gap: 16px; margin-bottom: 16px; }
.rx-su h3 { margin: 0; font-size: 17px; }
.rx-su-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.rx-su-tile { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line, rgba(255,255,255,.08)); background: var(--sunk, rgba(255,255,255,.02)); }
.rx-su-tile small { color: var(--muted, #9aa0ad); font-size: 12.5px; }
.rx-su-tile b { font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rx-su-d { font-size: 11.5px; color: var(--muted, #9aa0ad); }
.rx-su-d.up { color: #3fb97a; } .rx-su-d.down { color: #e5734d; }
.rx-su-ch { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.rx-su-ch small { color: var(--muted, #9aa0ad); }
.rx-su-plot { position: relative; }
.rx-su-bars { display: grid; grid-template-columns: repeat(30, 1fr); gap: 2px; height: 120px; align-items: end; border-bottom: 1px solid var(--line, rgba(255,255,255,.12)); }
.rx-su-col { height: 100%; display: flex; align-items: flex-end; cursor: pointer; }
.rx-su-col i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--accent, var(--accent)) 70%, transparent); }
.rx-su-col.today i, .rx-su-col:hover i { background: var(--accent, var(--accent)); }
.rx-su-tip { position: absolute; top: -6px; transform: translate(-50%, -100%); padding: 5px 9px; border-radius: 8px; background: var(--fg, #eef0f4); color: var(--bg, #111); font-size: 12px; white-space: nowrap; pointer-events: none; z-index: 2; }
.rx-su-axis { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11.5px; color: var(--muted, #9aa0ad); }
.rx-su-rt { display: block; margin-bottom: 8px; }
.rx-su-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 14px; }
.rx-su-list li > :first-child { flex: none; }
.rx-su-list li { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13.5px; }
.rx-su-list li .rx-su-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rx-su-list li small { color: var(--muted, #9aa0ad); white-space: nowrap; }

/* Kit nomlari tugmalari ("random" va rank ro'yxatlari) */
.rx-kitnames { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -4px 0 12px; }
.rx-kitnames .hint { width: 100%; }
.rx-kn { font: 600 12.5px/1 var(--f-mono, monospace); padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line, rgba(255,255,255,.14)); background: transparent; color: var(--muted, #b8bdc8); cursor: pointer; }
.rx-kn:hover { color: var(--fg, #fff); border-color: var(--fg, #fff); }
.rx-kn.on { background: color-mix(in srgb, var(--accent, var(--accent)) 22%, transparent); border-color: var(--accent, var(--accent)); color: var(--fg, #fff); }
.rx-kn.on::before { content: '✓ '; }

/* Kit muharriri: sehrlar */
.rx-kit-erow { flex-wrap: wrap; }
.rx-kit-max { font-size: 11px; white-space: nowrap; }
.rx-kit-ewarn { flex-basis: 100%; color: #f5b830; font-size: 12px; }
.rx-kit-erow.bad select { border-color: #f5b830; }

/* Admin: to'lov rejimi */
.rx-pa { display: grid; gap: 14px; margin-bottom: 16px; }
.rx-pa h3 { margin: 4px 0 0; font-size: 17px; }
.rx-pa-free { align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line, rgba(255,255,255,.1)); }
.rx-pa-free.on { border-color: #3fb97a; background: color-mix(in srgb, #3fb97a 10%, transparent); }
.rx-pa-free span { display: grid; gap: 4px; }
.rx-pa-free small { color: var(--muted, #9aa0ad); font-weight: 400; line-height: 1.45; }
.rx-pa-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rx-pa-ai { margin: 0; font-size: 12.5px; }
.rx-pa-tw { overflow-x: auto; }
.rx-pa-t { border-collapse: collapse; min-width: 480px; width: 100%; }
.rx-pa-t th, .rx-pa-t td { padding: 6px 8px; text-align: left; border-bottom: 1px solid var(--line, rgba(255,255,255,.07)); font-size: 13.5px; }
.rx-pa-t thead th { color: var(--muted, #9aa0ad); font-weight: 600; }
.rx-pa-t tbody th { font-weight: 500; }
.rx-pa-t td .pt-in { width: 110px; }
.rx-pa-t td.chg .pt-in { border-color: #f5b830; }
.rx-pa-mh { display: block; margin: 2px 0 8px; }
.rx-pa-mods { display: flex; flex-wrap: wrap; gap: 6px; }
.rx-pa-mods .rx-kn { font-family: inherit; }
.rx-pa-act { display: flex; gap: 8px; flex-wrap: wrap; }

/* Bepul rejim */
.rx-beta-free { font-style: normal; color: #5fd49a; font-weight: 600; }
.rx-free-note { display: flex; gap: 14px; align-items: center; padding: 16px 18px; margin-bottom: 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, #3fb97a 55%, transparent); background: color-mix(in srgb, #3fb97a 12%, var(--sunk, #15161b)); }
.rx-free-i { font-size: 28px; line-height: 1; }
.rx-free-note div { display: grid; gap: 4px; }
.rx-free-note b { font-size: 16px; color: #7be0ad; }
.rx-free-note span { color: var(--muted, #b8bdc8); font-size: 13.5px; line-height: 1.45; }
body.rx-free .pr-card > .pt-btn.primary { display: none; }

.rx-mcn { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, #4aa8ff 50%, transparent); background: color-mix(in srgb, #4aa8ff 10%, var(--sunk, #15161b)); }
.rx-mcn div { display: grid; gap: 4px; flex: 1; min-width: 240px; }
.rx-mcn span { color: var(--muted, #b8bdc8); font-size: 13.5px; line-height: 1.45; }

/* O'z Claude kaliti */
.rx-aik { display: grid; gap: 8px; padding: 12px 14px; margin-bottom: 14px; border-radius: 12px; border: 1px solid var(--line, rgba(255,255,255,.1)); background: var(--sunk, rgba(255,255,255,.02)); }
.rx-aik.on { border-color: color-mix(in srgb, #3fb97a 55%, transparent); background: color-mix(in srgb, #3fb97a 9%, transparent); }
.rx-aik-h { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rx-aik-h code { font-size: 12.5px; padding: 2px 8px; border-radius: 6px; background: rgba(255,255,255,.06); }
.rx-aik small { color: var(--muted, #9aa0ad); line-height: 1.45; }
.rx-aik-row { display: flex; gap: 8px; flex-wrap: wrap; }
.rx-aik-row .pt-in { flex: 1; min-width: 220px; font-family: var(--f-mono, monospace); }
.rx-aik-how summary { cursor: pointer; font-size: 13px; color: var(--accent, var(--accent)); }
.rx-aik-how p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; }

/* Chat: @username va shaxsiy ID */
.rx-handle, .mx-handle { color: var(--accent, var(--accent)); font-size: 12px; font-weight: 600; }
.mx-item-main .mx-handle { display: block; }
.mx-me { margin: 0 0 8px; }
.mx-me-card { display: flex; gap: 10px; align-items: center; width: 100%; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line, rgba(255,255,255,.08)); background: transparent; color: inherit; text-align: left; cursor: pointer; }
.mx-me-card:hover { background: rgba(255,255,255,.04); }
.mx-me-pick { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--accent, var(--accent)) 60%, transparent); }
.mx-me-pick small { color: var(--muted, #9aa0ad); line-height: 1.4; }
.mx-me-pick .pt-btn { justify-self: start; }
.mx-hform { display: grid; gap: 6px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line, rgba(255,255,255,.08)); }
.mx-hrow { display: flex; gap: 6px; align-items: center; }
.mx-hrow .pt-in { flex: 1; min-width: 0; font-family: var(--f-mono, monospace); }
.mx-at { font-weight: 700; color: var(--muted, #9aa0ad); }
.mx-hst.ok { color: #3fb97a; } .mx-hst.no { color: #e5734d; }
.mx-idrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.mx-id { font-size: 13px; padding: 2px 8px; border-radius: 6px; background: rgba(255,255,255,.06); letter-spacing: .08em; }

/* ===== Ko'nikmalar ===== */
.rx-sk { display: flex; flex-direction: column; gap: 14px; }
.rx-sk-cur { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rx-sk-n { margin-left: 10px; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: rgba(46, 204, 113, .15); color: #2ecc71; }
.rx-sk-safe { font-size: 13px; opacity: .8; margin: 0; }
.rx-sk-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.rx-sk-cat { border: 1px solid var(--line); background: transparent; color: inherit; border-radius: 99px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.rx-sk-cat.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.rx-sk-h { margin: 8px 0 0; font-size: 16px; }
.rx-sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.rx-sk-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.rx-sk-card.on { border-color: #2ecc71; box-shadow: 0 0 0 1px rgba(46,204,113,.35) inset; }
.rx-sk-card p { margin: 0; font-size: 13px; line-height: 1.45; opacity: .9; flex: 1; }
.rx-sk-top { display: flex; align-items: flex-start; gap: 10px; }
.rx-sk-top > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rx-sk-top small { font-size: 12px; }
.rx-sk-i { font-size: 26px; line-height: 1; }
.rx-sk-on { font-size: 11px; color: #2ecc71; white-space: nowrap; }
.rx-sk-st { font-size: 11px; padding: 2px 7px; border-radius: 99px; white-space: nowrap; background: rgba(241,196,15,.18); color: #d4a40b; }
.rx-sk-st.rejected { background: rgba(231,76,60,.15); color: #e74c3c; }
.rx-sk-btns { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.rx-sk-det h4 { margin: 12px 0 4px; font-size: 14px; }
.rx-sk-det ul { margin: 0; padding-left: 18px; font-size: 13px; }
.rx-sk-icons { display: flex; flex-wrap: wrap; gap: 4px; }
.rx-sk-ic { width: 36px; height: 36px; font-size: 20px; border-radius: 8px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.rx-sk-ic.on { border-color: var(--accent); background: var(--accent-soft); }

/* ===== GUI dizayner: galereya, yozuv uslublari, shablonlar ===== */
.rx-gd-sec { border: 1px solid #262933; border-radius: 10px; margin: 0 0 8px; background: #121318; }
.rx-gd-sec > summary { cursor: pointer; padding: 9px 11px; font-weight: 600; font-size: 13px; color: #e8ebf2; list-style: none; display: flex; align-items: center; gap: 6px; }
.rx-gd-sec > summary::-webkit-details-marker { display: none; }
.rx-gd-sec > summary::before { content: '▸'; color: #8a90a0; transition: transform .15s; }
.rx-gd-sec[open] > summary::before { transform: rotate(90deg); }
.rx-gd-sec > :not(summary) { padding: 0 10px 10px; display: grid; gap: 8px; }
.rx-gd-tsg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.rx-gd-ts { display: grid; gap: 3px; padding: 5px; border: 1px solid #262933; border-radius: 8px; background: #16171d; color: #c8ccd6; font: inherit; font-size: 11px; cursor: pointer; text-align: center; }
.rx-gd-ts:hover, .rx-gd-ts:focus-visible { border-color: var(--accent, var(--accent)); outline: none; }
.rx-gd-tspv { width: 100%; height: auto; border-radius: 4px; }
.rx-gd-mytpl { display: grid; gap: 4px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.rx-gd-tc { border: 1px solid #262933; border-radius: 9px; padding: 8px 10px; display: grid; gap: 6px; background: #14151b; }
.rx-gd-tc.on { border-color: #3fae4a; box-shadow: inset 3px 0 0 #3fae4a; }
.rx-gd-tch { display: grid; gap: 2px; }
.rx-gd-tch b { font-size: 13px; color: #e8ebf2; }
.rx-gd-tch small { font-size: 11.5px; }
.rx-gd-sum { display: grid; gap: 6px; }
.rx-gd-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.rx-gd-chip { font-size: 11.5px; padding: 2px 8px; border-radius: 99px; background: rgba(63,174,74,.15); color: #6ad07a; }
.rx-gd-uses { margin: 0; padding-left: 18px; font-size: 12.5px; color: #c8ccd6; display: grid; gap: 3px; }
/* Tepadagi panel (til + profil) aylantirganda ham ko'rinib tursin */
.pt-shell .pt-topbar { position: sticky; top: 0; z-index: 25; }
.pt-shell.is-build .top { top: var(--rx-tbh, 0px); }
.pt-shell.is-build .list { top: calc(var(--rx-tbh, 0px) + 112px); }
/* API kalit kabi maxfiy maydonlar: yulduzcha, lekin brauzer parol deb o'ylamaydi */
.rx-secret { -webkit-text-security: disc; text-security: disc; }
input[type="search"]::-webkit-search-cancel-button { filter: grayscale(1); }
.rx-gd-cb { width: 16px; height: 16px; accent-color: var(--accent, var(--accent)); flex: none; }
.rx-gd-modal { position: absolute; inset: 0; z-index: 50; background: rgba(5,6,10,.72); display: grid; place-items: center; padding: 20px; }
.rx-gd-modal-in { width: min(860px, 100%); max-height: 86vh; overflow: auto; background: #121318; border: 1px solid #262933; border-radius: 14px; padding: 14px; display: grid; gap: 12px; }
.rx-gd-pick { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
/* Rexi xarakterlari */
.rexi-chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; height: 240px; min-height: 240px; align-content: start; overflow-y: auto; padding-right: 4px; }
.rexi-char { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--fg); font: inherit; font-size: 12.5px; cursor: pointer; text-align: left; }
.rexi-char:hover, .rexi-char:focus-visible { border-color: var(--accent); outline: none; }
.rexi-char.on { border-color: var(--accent); background: var(--accent-soft); }
.rexi-ce { font-size: 18px; line-height: 1; }
.rexi-chint { font-size: 12.5px; margin: -4px 0 8px; }
/* Qayta yuklashda: sessiya tekshirilguncha */
.rx-boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg, #0b0c10); }
.rx-boot span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--accent, var(--accent)); animation: rx-boot-spin .8s linear infinite; }
@keyframes rx-boot-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rx-boot span { animation: none; } }
/* Captcha */
.rx-cap { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line, #2a2d36); border-radius: 12px; background: var(--sunk, #15161b); }
.rx-cap b { font-size: 13.5px; }
.rx-cap-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rx-cap-row img { width: 180px; height: 64px; border-radius: 8px; image-rendering: pixelated; border: 1px solid var(--line, #2a2d36); background: #111; }
.rx-cap-in { letter-spacing: 3px; text-transform: uppercase; font-family: var(--f-mono, monospace); max-width: 220px; }
.rx-cap small { font-size: 12px; }
.rx-cap-in::placeholder { letter-spacing: normal; text-transform: none; }

/* ---- sehr tanlagich ---- */
.rx-en-btn { margin-top: 6px; align-self: flex-start; }
.rx-en-extras { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; margin: 10px 0; padding: 10px 12px; border: 1px dashed var(--line, rgba(255,255,255,.18)); border-radius: 12px; }
.rx-en-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.rx-en-in { background: var(--panel, #1b1b26); color: var(--text, #eee); border: 1px solid var(--line, rgba(255,255,255,.18)); border-radius: 16px; padding: 16px; width: min(640px, 100%); max-height: 88vh; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.rx-en-list { display: flex; flex-direction: column; gap: 12px; }
.rx-en-item { border: 1px solid var(--line, rgba(255,255,255,.14)); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.rx-en-top { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.rx-en-n, .rx-en-nm { display: flex; flex-direction: column; gap: 2px; }
.rx-en-nm { flex: 1; min-width: 140px; }
.rx-en-foot { display: flex; justify-content: flex-end; }

/* ================= Rexi 3D (Minecraft kubi) ================= */
.rexi { --rx-side: var(--rx-shade); --yaw: -18deg; --pit: 0deg; --hyaw: 0deg; --hpit: 0deg; }
.rexi.d3 .rx3d { position: absolute; inset: 0; perspective: 560px; perspective-origin: 50% 38%; pointer-events: none; }
.rexi.d3 .rx3d-rot { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 50% 80%; animation: rx-sway 7s ease-in-out infinite; }
.rexi.d3 .rx3d-yaw { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 50% 80%; transform: rotateY(var(--yaw)) rotateX(var(--pit)); transition: transform .16s ease-out; }
.rexi.d3 .rx-stack { position: absolute; inset: 0; transform-style: preserve-3d; }
.rexi.d3 .rx-stack.head { transform-origin: 50% 67%; transform: rotateY(var(--hyaw)) rotateX(var(--hpit)); transition: transform .12s ease-out; }
.rexi.d3 .rx-lay { position: absolute; inset: 0; transform: translateZ(var(--z)); }
.rexi.d3 .rx-lay > svg { width: 100%; height: 100%; overflow: visible; display: block; }
.rexi.d3 .rx-stack.head .rx-body, .rexi.d3 .rx-stack.head .rx-tail, .rexi.d3 .rx-stack.head .rx-shadow { display: none; }
.rexi.d3 .rx-stack.body .rx-head { display: none; }
.rexi.d3.flip .rx3d { transform: scaleX(-1); }
.rexi.d3.flip .rexi-svg, .rexi.d3.flip .rexi-sl { transform: none; }
.rexi.d3 { filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .42)); }
.rexi.d3.a-spin .rexi-svg { animation: none; }
.rexi.d3.a-spin .rx3d-yaw { animation: rx-spin3 1.2s ease-in-out; }
@keyframes rx-sway { 0%, 100% { transform: rotateY(-4deg); } 50% { transform: rotateY(4deg); } }
@keyframes rx-spin3 { from { transform: rotateY(-18deg); } to { transform: rotateY(342deg); } }
/* kesimlar: faqat siluet, yon devor rangi (sochning to'qroq tusi) */
.rexi-sl * { filter: none !important; stroke: none !important; }
.rexi-sl rect, .rexi-sl path, .rexi-sl circle { fill: var(--rx-side) !important; opacity: 1 !important; }
.rexi-sl .rx-face, .rexi-sl .rx-eyes, .rexi-sl .rx-blush, .rexi-sl .rx-mouth, .rexi-sl .rx-emblem, .rexi-sl .rx-fluff, .rexi-sl .rx-cyberlines,
.rexi-sl .rx-shadow, .rexi-sl .rx-cover, .rexi-sl .rx-ear-in, .rexi-sl .rx-shades, .rexi-sl .rx-pupils { display: none !important; }
.rexi-sl .rx-feet rect { fill: var(--rx-paw) !important; }
.rexi-sl .rx-pears rect { fill: #0b0b0b !important; }
.rexi-sl .rx-crown rect, .rexi-sl .rx-crown path { fill: #B8860B !important; }
.rexi-sl .rx-helmet rect { fill: #B88400 !important; }
.rexi-sl .rx-wizhat rect { fill: #22174A !important; }
.rexi-sl .rx-pirate rect { fill: #7F1414 !important; }
.rexi-sl .rx-beanie rect { fill: #B9C6D6 !important; }
.rexi-sl .rx-scarf rect { fill: #9C1F1C !important; }
.rexi-sl .rx-antenna rect { fill: #5A6678 !important; }
.rexi-sl .rx-phones rect { fill: #101014 !important; }
.rexi-sl .rx-flames rect { fill: #C74E00 !important; }
.rexi-sl .rx-leaf rect { fill: #2E7D32 !important; }
/* kichik rasm (tanlash oynasi): doimiy burilish, sway yo'q */
.rexi.mini.d3 { --yaw: -24deg; }
.rexi.mini.d3 .rx3d-rot { animation: none; }
@media (prefers-reduced-motion: reduce) { .rexi.d3 .rx3d-rot { animation: none; } .rexi.d3 .rx3d-yaw, .rexi.d3 .rx-stack.head { transition: none; } }

/* orqa tomon (aylanganda): yuz va yozuvsiz, old yuz faqat oldindan ko'rinadi */
.rexi.d3 .rx-lay.fr, .rexi.d3 .rx-lay.bk { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.rexi.d3 .rx-lay.bk { transform: translateZ(var(--z)) rotateY(180deg); }
.rx-lay.bk .rx-face, .rx-lay.bk .rx-emblem, .rx-lay.bk .rx-eyes, .rx-lay.bk .rx-blush, .rx-lay.bk .rx-mouth, .rx-lay.bk .rx-cover, .rx-lay.bk .rx-shades, .rx-lay.bk .rx-ear-in { display: none !important; }
.rx-lay.bk rect[fill="var(--rx-face)"] { fill: var(--rx-hood) !important; }

@supports (color: color-mix(in srgb, red, blue)) {
  .rexi { --rx-side: color-mix(in srgb, var(--rx-hood) 68%, #000); }
  .rexi-sl .rx-feet rect { fill: color-mix(in srgb, var(--rx-paw) 70%, #000) !important; }
}

.rx-gd-pkrow { display: flex; gap: 10px; align-items: center; margin: 8px 0 14px; flex-wrap: wrap; }
.rx-gd-pkicon { width: 64px; height: 64px; image-rendering: pixelated; border: 2px solid var(--line, rgba(255,255,255,.2)); border-radius: 6px; background: #111; object-fit: cover; }

/* ===== Tekstura pack konstruktori ===== */
.rx-tp-meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px;margin:12px 0}
.rx-tp-cats{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
.rx-tp-cat{border:1px solid var(--line,#8884);background:transparent;color:inherit;border-radius:999px;padding:6px 12px;cursor:pointer;font:inherit}
.rx-tp-cat[aria-selected=true]{background:var(--accent,#4f8cff);color:#fff;border-color:transparent}
.rx-tp-n{margin-left:6px;font-size:11px;background:#0003;border-radius:8px;padding:0 6px}
.rx-tp-main{display:grid;grid-template-columns:minmax(240px,320px) 1fr;gap:14px}
@media(max-width:800px){.rx-tp-main{grid-template-columns:1fr}}
.rx-tp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:6px;max-height:480px;overflow:auto;margin-top:8px}
.rx-tp-cell{display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px 2px;border:1px solid var(--line,#8884);border-radius:8px;background:transparent;color:inherit;cursor:pointer;font:inherit}
.rx-tp-cell.on{outline:2px solid var(--accent,#4f8cff)}.rx-tp-cell.ed{background:#4f8cff22}
.rx-tp-nm{font-size:10px;line-height:1.1;text-align:center;word-break:break-word}
.rx-tp-th{width:32px;height:32px;display:grid;place-items:center;image-rendering:pixelated}
.rx-tp-th.ph{background:#8883;border-radius:4px;font-size:11px}
.rx-tp-th.face{width:auto;height:36px;max-width:40px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 1px 2px #0008)}
.rx-tp-ed{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-start}
.rx-tp-stage{display:flex;gap:12px;align-items:flex-start;flex-wrap:wrap}
.rx-tp-cvw{position:relative;line-height:0;background:repeating-conic-gradient(#8883 0 25%,transparent 0 50%) 0 0/16px 16px;border:1px solid var(--line,#8886)}
.rx-tp-cv{image-rendering:pixelated;cursor:crosshair;touch-action:none;display:block}
.rx-tp-ov{position:absolute;inset:0;pointer-events:none}
.rx-tp-pv{image-rendering:pixelated;background:#8882;border-radius:6px}
.rx-tp-prev{display:flex;gap:8px}
.rx-tp-tools{display:flex;flex-direction:column;gap:8px;min-width:220px;max-width:300px}
.rx-tp-row{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.rx-tp-tb.on{background:var(--accent,#4f8cff);color:#fff}
.rx-tp-col{width:40px;height:32px;padding:0;border:none;background:none}
.rx-tp-pal{display:grid;grid-template-columns:repeat(14,1fr);gap:3px}
.rx-tp-sw{aspect-ratio:1;border:1px solid #0005;border-radius:3px;cursor:pointer;padding:0}
.rx-tp-ico{width:48px;height:48px;image-rendering:pixelated;border-radius:6px}
.rx-tp-saved{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:6px 0}
.rx-tp-sv{display:inline-flex;gap:2px}.rx-tp-sv.on button:first-child{outline:2px solid var(--accent,#4f8cff)}
.rx-tp-warn{background:#ffb30022;border:1px solid #ffb30088;border-radius:8px;padding:8px 10px;margin:8px 0;font-size:13px}
.rx-tp-mv.off{opacity:.45;pointer-events:none}
.rx-tp-mob{border:1px solid var(--line,#8884);border-radius:8px;padding:8px 10px;margin:6px 0}
.rx-tp-mob summary{display:flex;justify-content:space-between;gap:8px;cursor:pointer}
.rx-tp-sl{display:grid;grid-template-columns:140px 1fr 40px;gap:8px;align-items:center;margin:6px 0}
.rx-tp-status{font-size:12px}
.rx-tpk{display:flex;flex-direction:column;gap:12px;width:100%;min-width:0}.rx-tp-left,.rx-tp-edhost{min-width:0}.rx-tp-status-row{margin:2px 0}
/* --- tekstura pack: ekranga sig'adigan joylashuv va yangi elementlar --- */
.rx-tpk .rx-tp-main{height:calc(100vh - 300px);min-height:520px;align-items:stretch}
.rx-tpk .rx-tp-left{display:flex;flex-direction:column;min-height:0}
.rx-tpk .rx-tp-grid{flex:1;max-height:none;min-height:0;overflow:auto;align-content:start}
.rx-tpk .rx-tp-edhost{overflow:auto;min-height:0;padding-right:4px}
.rx-tp-movehost{grid-column:1/-1;overflow:auto;min-height:0}
.rx-tp-help{margin:0;padding:8px 12px;border-radius:8px;background:#4f8cff18;border:1px solid #4f8cff44;font-size:13px}
.rx-tp-ed-head{display:flex;align-items:center;gap:8px;margin-bottom:8px;flex-wrap:wrap}
.rx-tp-part{margin-left:auto;min-width:90px}
.rx-tp-box{border:1px solid var(--line,#8884);border-radius:8px;padding:8px;display:flex;flex-direction:column;gap:6px}
.rx-tp-box summary{cursor:pointer;font-weight:600}
.rx-tp-sl.sm{grid-template-columns:90px 1fr 36px}
.rx-tp-mob summary b{margin:0 8px}.rx-tp-mob summary{align-items:center;justify-content:flex-start}.rx-tp-mob summary label{margin-left:auto}
.rx-tp-lab{font-size:12px;opacity:.8}
.rx-tp-cell .rx-it,.rx-tp-cell .iv-ic{flex:0 0 auto}
@media(max-width:800px){.rx-tpk .rx-tp-main{height:auto}.rx-tpk .rx-tp-grid{max-height:300px}}

/* texpack 6.41: keng ro'yxat, yangi bo'limlar */
.rx-tpk .rx-tp-main{grid-template-columns:minmax(300px,42%) 1fr}
.rx-tpk .rx-tp-grid{grid-template-columns:repeat(auto-fill,minmax(92px,1fr))}
.rx-tpk .rx-tp-cv,.rx-tp-modal .rx-tp-cv{max-width:100%;height:auto}
.rx-tpk .rx-tp-cvw,.rx-tp-modal .rx-tp-cvw{max-width:100%}
.rx-tpk [role=tablist],.rx-tpk .rx-tp-tabs,.rx-tp-modal .rx-tp-tabs,.rx-tpk .rx-tp-cats{flex-wrap:wrap}
.rx-tp-th.mini{width:36px;height:36px;object-fit:contain;image-rendering:pixelated}
.rx-tp-status-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.rx-tp-status-row .over{color:var(--accent);font-weight:600}
.rx-tp-snd{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.rx-tp-sndrow{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:8px 10px;border:1px solid var(--line,#8884);border-radius:10px}
.rx-tp-sndrow.on{border-color:var(--accent,#4a8)}.rx-tp-sndrow.star{background:#fc02}
.rx-tp-sndn{display:flex;flex-direction:column;flex:1 1 200px;min-width:0}
.rx-tp-badge{font-size:12px;padding:2px 8px;border-radius:99px;background:#4a83}

/* item ro'yxatlari (kit uslubi) */
.rx-il{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start;padding:10px;border:1px solid var(--line,#8884);border-radius:12px;margin:4px 0 6px}
.rx-il-t{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;width:78px}
.rx-il-t .rx-kit-cell{width:52px;height:52px}
.rx-il-t.ench .rx-kit-cell{box-shadow:0 0 0 2px #b36bff inset}
.rx-il-nm{font-size:11px;line-height:1.15;text-align:center;max-width:78px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.rx-il-x{position:absolute;top:-4px;right:2px;width:18px;height:18px;border-radius:50%;border:0;background:var(--accent);color:#fff;font-size:12px;line-height:1;cursor:pointer;opacity:.0;transition:opacity .15s}
.rx-il-t:hover .rx-il-x,.rx-il-x:focus-visible{opacity:1}
@media(hover:none){.rx-il-x{opacity:1}}
.rx-il-add{align-self:center}
.rx-il-one{margin-top:6px}
.rx-il-cap{flex:0 0 100%;font-weight:600;font-size:13px}

/* ===== Qo'ng'iroqcha (bildirishnomalar) ===== */
.rx-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin: 0 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; flex: none; transition: border-color .15s, box-shadow .15s; }
.rx-bell:hover, .rx-bell[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.rx-bell-count { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #f5b82e; color: #1b1500; font: 700 11px/18px var(--f-body); text-align: center; box-shadow: 0 0 0 2px var(--surface); }
.rx-bell-count[hidden] { display: none; }
.rx-np { position: fixed; z-index: 9700; max-height: min(78vh, 640px); display: flex; flex-direction: column; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 22px 60px rgba(0, 0, 0, .5); animation: rx-pop .14s ease-out; overflow: hidden; }
.rx-np-head, .rx-np-foot, .rx-np-undo { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; }
.rx-np-head { border-bottom: 1px solid var(--line); }
.rx-np-foot { border-top: 1px solid var(--line); }
.rx-np-undo { background: var(--accent-soft); font-size: 13px; padding: 8px 14px; }
.rx-np-link { background: none; border: 0; padding: 2px 4px; color: var(--accent-strong, var(--accent)); font: 600 12.5px/1.4 var(--f-body); cursor: pointer; border-radius: 6px; }
.rx-np-link:hover { text-decoration: underline; }
.rx-np-link.danger { color: #ff7a7a; }
.rx-np-link:disabled { opacity: .4; cursor: default; text-decoration: none; }
.rx-np-list { padding: 10px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 90px; }
.rx-np-empty { margin: 24px 0; text-align: center; color: var(--muted, #8a8f98); font-size: 14px; }
.rx-nt { position: relative; display: flex; gap: 8px; padding: 10px 12px 10px 14px; border-radius: 10px; border: 1px solid var(--line); border-left: 4px solid #4aa3ff; background: color-mix(in srgb, var(--surface) 88%, #fff 12%); cursor: default; }
.rx-nt-success { border-left-color: #35c26b; }
.rx-nt-warning { border-left-color: #f5b82e; }
.rx-nt-info { border-left-color: #4aa3ff; }
.rx-nt.unread { background: color-mix(in srgb, var(--surface) 80%, #fff 20%); }
.rx-nt.unread .rx-nt-title::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-radius: 50%; background: #f5b82e; vertical-align: middle; }
.rx-nt-body { flex: 1; min-width: 0; }
.rx-nt-title { font: 700 14px/1.35 var(--f-body); overflow-wrap: anywhere; }
.rx-nt-text { margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--muted, #aab0ba); overflow-wrap: anywhere; }
.rx-nt-time { margin-top: 4px; font-size: 11.5px; color: var(--muted, #8a8f98); }
.rx-nt-x { align-self: flex-start; background: none; border: 0; color: var(--muted, #8a8f98); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 2px; border-radius: 6px; }
.rx-nt-x:hover { color: var(--fg); }
@media (max-width: 560px) { .rx-bell { width: 34px; height: 34px; margin: 0 2px; } }

/* ===== Yangiliklar rasmlari ===== */
.nw-ed { display: grid; gap: 8px; }
.nw-ed-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.nw-ed-row .pt-in { flex: 1; min-width: 200px; }
.nw-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.nw-thumb { position: relative; width: 96px; height: 72px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.nw-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.nw-thumb-x { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .7); color: #fff; cursor: pointer; line-height: 1; }
.pt-desc { max-width: 260px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }

/* ===== Yangiliklar animatsiyasi: rasmlar o'rnida (majburiy, doim aylanadi) ===== */
.rx-wn { --wn-dur: 5200ms; position: absolute; top: 0; right: 0; bottom: 0; width: 64%; z-index: 0; overflow: hidden; pointer-events: none; isolation: isolate;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%); mask-image: linear-gradient(90deg, transparent 0%, #000 34%); }
.rx-wn-s { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.rx-wn-s.on { opacity: 1; }
.rx-wn-s img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; transform-origin: 50% 0; }
.rx-wn-s.on img { animation: rx-wn-pan var(--wn-dur) linear both; }
.rx-wn-s::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 9, 12, .9) 0%, rgba(8, 9, 12, .35) 38%, rgba(8, 9, 12, 0) 66%); }
.rx-wn-cap { all: unset; box-sizing: border-box; position: absolute; right: clamp(14px, 2.4vw, 28px); bottom: clamp(14px, 2.4vw, 26px); z-index: 2; display: grid; gap: 3px; max-width: min(440px, 80%); padding: 12px 14px; border-radius: 12px; background: rgba(8, 9, 12, .62); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(6px); color: #fff; cursor: pointer; pointer-events: auto; text-align: left; }
.rx-wn-cap:hover, .rx-wn-cap:focus-visible { border-color: var(--accent); outline: none; }
.rx-wn-s.on .rx-wn-cap { animation: rx-wn-up .65s .15s cubic-bezier(.2, .7, .2, 1) both; }
.rx-wn-s:not(.on) .rx-wn-cap { pointer-events: none; }
.rx-wn-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #B9BCC6; }
.rx-wn-new { padding: 1px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; letter-spacing: .03em; }
.rx-wn-t { font: 700 15px/1.25 var(--f-display, inherit); text-wrap: balance; }
.rx-wn-more { font-size: 12px; font-weight: 600; color: #FF6B78; }
.rx-wn-dots { position: absolute; right: clamp(14px, 2.4vw, 28px); top: 14px; z-index: 2; display: flex; gap: 6px; }
.rx-wn-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .35); transition: background .3s, transform .3s; }
.rx-wn-dots i.on { background: #fff; transform: scale(1.35); }
.rx-wn-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 2; background: rgba(255, 255, 255, .08); }
.rx-wn-bar i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; animation: rx-wn-prog var(--wn-dur) linear both; }
/* qayerga qo'yilgani */
.rx-sc-banner.rx-wn-on { background-image: none !important; }
.rx-sc-banner.rx-wn-on::before { z-index: 1; }
.rx-sc-banner.rx-wn-on > .rx-sc-banner-in { z-index: 2; }
.pt-hero.rx-sc-hero.rx-wn-on { background-image: none; }
.pt-hero.rx-wn-on { position: relative; overflow: hidden; }
.pt-hero.rx-wn-on > :not(.rx-wn) { position: relative; z-index: 2; }
.pt-hero.rx-wn-on > .rx-sc-restore { z-index: 3; }
.au-side.rx-sc-auth.rx-wn-on { background-image: none; }
.au-side.rx-sc-auth.rx-wn-on::before { z-index: 1; background: linear-gradient(90deg, #0B0C10 28%, rgba(11,12,16,.5) 46%, rgba(11,12,16,0) 70%); }
.pt-hero.rx-wn-on > .rx-wn { width: 58%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 46%); mask-image: linear-gradient(90deg, transparent 0%, #000 46%); }
.au-side.rx-sc-auth.rx-wn-on > .rx-wn { -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%); mask-image: linear-gradient(90deg, transparent 0%, #000 42%); }
.rx-wn-s img { filter: brightness(1.18) saturate(1.08); }
.au-side.rx-sc-auth.rx-wn-on > :not(.rx-wn) { position: relative; z-index: 2; }
.au-side.rx-sc-auth.rx-wn-on > .rx-wn { position: absolute; width: 74%; }
@keyframes rx-wn-pan { from { object-position: 50% 0%; transform: scale(1); } to { object-position: 50% 38%; transform: scale(1.07); } }
@keyframes rx-wn-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rx-wn-prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 860px) { .rx-wn { width: 100%; opacity: .55; -webkit-mask-image: none; mask-image: none; } .rx-wn-cap { max-width: calc(100% - 28px); } .au-side.rx-sc-auth.rx-wn-on > .rx-wn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .rx-wn-s.on img, .rx-wn-s.on .rx-wn-cap, .rx-wn-bar i { animation: none !important; } .rx-wn-s { transition-duration: .4s; } }

/* ---- Launcher: kartalar va bo'lim ---- */
.rx-lc { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px 14px; max-width: 460px; border: 1px solid rgba(229, 57, 53, .45); border-radius: 12px; background: rgba(229, 57, 53, .08); }
.rx-lc-ic { font-size: 24px; }
.rx-lc-t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.rx-lc-t small { opacity: .7; }
.au-side .rx-lc { position: relative; z-index: 2; }
.rx-ln { max-width: 760px; }
.rx-ln-hero { padding: 22px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; background: rgba(255, 255, 255, .03); }
.rx-ln-f { list-style: none; padding: 0; margin: 12px 0 16px; display: grid; gap: 6px; }
.rx-ln-admin { margin-top: 22px; padding: 18px; border: 1px dashed rgba(255, 210, 74, .5); border-radius: 12px; display: grid; gap: 8px; }
.rx-ln-ad { display: grid; gap: 6px; padding: 10px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; margin-bottom: 8px; }

/* ---- Yuklanish spineri (umumiy) va launcher fon rasmi ---- */
.rx-spin { display: inline-block; width: 1em; height: 1em; vertical-align: -.15em; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff; border-radius: 50%; animation: rx-spin .7s linear infinite; }
.rx-spin.lg { width: 28px; height: 28px; border-width: 3px; }
.rx-busy { opacity: .85; cursor: progress; }
.rx-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 28px; opacity: .8; }
@keyframes rx-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rx-spin { animation-duration: 2.4s; } }
.rx-ln-hero { position: relative; overflow: hidden; background: linear-gradient(90deg, rgba(11, 11, 16, .94) 0%, rgba(11, 11, 16, .78) 55%, rgba(11, 11, 16, .35) 100%), url(/ext/img/launcher-bg.webp?v=3) center / cover no-repeat; border-color: rgba(229, 57, 53, .35); }
.rx-ln-hero > * { position: relative; z-index: 1; }
.rx-ln-hero h2, .rx-ln-hero p, .rx-ln-hero li { text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.rx-lc { background: linear-gradient(90deg, rgba(11, 11, 16, .9), rgba(11, 11, 16, .6)), url(/ext/img/launcher-bg.webp?v=3) center / cover no-repeat; }

/* ---- Skinlar va 3D ko'rinish ---- */
.v3-wrap { position: relative; width: 100%; height: 340px; perspective: 900px; touch-action: none; cursor: grab; border-radius: 14px; background: radial-gradient(ellipse at 50% 80%, rgba(229, 57, 53, .18), rgba(11, 11, 16, .9)); overflow: hidden; }
.v3-wrap.sm { height: 190px; }
.v3-wrap:active { cursor: grabbing; }
.v3-scene { position: absolute; inset: 0; transform-style: preserve-3d; }
.v3-stage { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.v3-box { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; }
.v3-f { position: absolute; left: 0; top: 0; image-rendering: pixelated; backface-visibility: hidden; }
.v3-wrap.sm .v3-stage { scale: .55; }
.sk { display: grid; gap: 14px; max-width: 1200px; }
.sk-nick { display: grid; gap: 6px; padding: 14px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; background: rgba(255, 255, 255, .03); }
.sk-nick-row { display: flex; gap: 8px; max-width: 420px; }
.sk-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.sk-mine { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; }
.sk-list { display: grid; gap: 8px; }
.sk-it { display: flex; align-items: center; gap: 4px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; padding: 4px; }
.sk-it.on { border-color: #e53935; }
.sk-it-b { display: flex; align-items: center; gap: 8px; flex: 1; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; min-width: 0; }
.sk-it-t { display: flex; flex-direction: column; min-width: 0; }
.sk-th { width: 40px; height: 40px; image-rendering: pixelated; border-radius: 6px; background: #1b1b22; }
.sk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.sk-left, .sk-right { display: grid; gap: 10px; }
.sk-row { display: grid; grid-template-columns: 1fr 180px; gap: 8px; }
.sk-tools, .sk-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.sk-tools .on, .sk-actions .on { outline: 2px solid #e53935; }
.sk-edwrap { overflow: auto; max-width: 100%; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1); }
.sk-ed { width: 512px; max-width: 100%; height: auto; image-rendering: pixelated; touch-action: none; cursor: crosshair; display: block; }
.sk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.sk-card { display: grid; gap: 6px; padding: 10px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; background: rgba(255, 255, 255, .03); }
@media (max-width: 900px) { .sk-mine, .sk-grid { grid-template-columns: 1fr; } .v3-wrap { height: 280px; } }

/* ---- Skin: harakat, qatlam va qism tanlash ---- */
.v3-piv { will-change: transform; }
.v3-dim .v3-f { opacity: .18; transition: opacity .2s; }
.v3-hide-outer .v3-over { display: none; }
.sk-hint { line-height: 1.4; transition: color .2s; }
.sk-hint.warn { color: #ffb74d; }
.v3-wrap [data-part] .v3-f { cursor: pointer; }
.rx-tp-bgprev{max-width:100%;width:420px;aspect-ratio:16/9;object-fit:cover;border:1px solid var(--line,#8884);border-radius:8px}
.rx-tp-logocv{max-width:100%;width:480px;background:repeating-conic-gradient(#8883 0 25%,transparent 0 50%) 0 0/16px 16px;border-radius:8px}
.rx-tp-3d{width:300px;max-width:100%;height:auto;touch-action:none;cursor:grab;background:#0001;border-radius:8px}
.rx3d{position:relative;width:100%;height:100%;min-height:220px;border-radius:10px;background:radial-gradient(circle at 50% 35%,#2a2f3d,#0e1017 75%);overflow:hidden}
.rx3d-cv{display:block;width:100%;height:100%;cursor:grab;touch-action:none;outline:none}
.rx3d-tip{position:absolute;left:8px;bottom:6px;font:11px/1.2 ui-monospace,monospace;color:#cfd3dc;opacity:.8;pointer-events:none}
.rx-tp-3d{width:310px;max-width:100%;display:flex;flex-direction:column;gap:6px;align-self:flex-start}
.rx-tp-3dv{height:340px}
.sk-3d{display:flex;flex-direction:column;gap:6px}
.sk-3dv{height:420px;width:100%;min-width:260px}
.sk-flat{display:flex;gap:6px;justify-content:center;min-height:96px}
.sk-flat canvas{image-rendering:pixelated;width:48px;height:96px}
.sk-posebox[hidden]{display:none}
.rx-tp-skyrow{display:flex;flex-direction:column;gap:6px;padding:6px 0;border-top:1px solid var(--line,#8884)}
.rx-tp-skyprev{width:300px;max-width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:6px;border:1px solid var(--line,#8884)}
/* builder-plus: server turi ustasi, filtr, jadval, koordinata, jonli ko'rinish */
.bp-wiz{max-width:860px}
.bp-h{font-size:20px}
.bp-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px;margin:12px 0}
.bp-card{display:flex;flex-direction:column;gap:4px;align-items:flex-start;text-align:left;padding:14px;border-radius:12px;border:1px solid var(--line,#8884);background:var(--panel,#151821);color:inherit;cursor:pointer;font:inherit}
.bp-card:hover,.bp-card:focus-visible{border-color:var(--red,var(--accent));outline:none;box-shadow:0 0 0 2px #e11d2e33}
.bp-ic{font-size:28px;line-height:1}
.bp-n{color:var(--red,var(--accent));font-weight:600}
.bp-bar{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0 0 14px;padding:10px;border:1px solid var(--line,#8884);border-radius:12px;position:sticky;top:64px;z-index:3;background:var(--bg,#0b0c10)}
.bp-bar input[type=search]{flex:1 1 220px;min-width:160px}
.mod[hidden],.mod-group[hidden]{display:none!important}
.bp-ed{display:flex;flex-direction:column;gap:6px;margin:4px 0;grid-column:1/-1}
.bp-tbl{display:flex;flex-direction:column;gap:6px}
.bp-tr{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr)) 32px;gap:6px;align-items:center}
.bp-th small{font-weight:600;color:var(--muted,#9aa1ad)}
.bp-num{max-width:140px}
.bp-xyz{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end}
.bp-c{display:flex;flex-direction:column;gap:2px}
.bp-c input{width:96px}
.bp-w input{width:150px}
.bp-hint{flex-basis:100%}
.bp-pv{margin:8px 0 10px;padding:10px;border-radius:10px;border:1px dashed var(--line,#8884);display:flex;flex-direction:column;gap:6px}
.bp-pv .bp-l,.bp-sb,.bp-tab,.bp-chat,.bp-motd,.bp-title{font-family:'Minecraft',ui-monospace,monospace;font-size:14px;text-shadow:2px 2px 0 #3f3f3f}
.bp-sb{align-self:flex-start;min-width:200px;background:rgba(0,0,0,.45);padding:4px 6px 6px}
.bp-sbt{text-align:center;background:rgba(0,0,0,.25);margin:-4px -6px 4px;padding:3px}
.bp-sbl{display:flex;justify-content:space-between;gap:16px;min-height:18px}
.bp-sbn{color:#FF5555}
.bp-tab{background:rgba(0,0,0,.55);padding:8px;text-align:center;max-width:520px}
.bp-tg{display:grid;grid-template-columns:1fr 1fr;gap:2px;margin:6px 0;text-align:left}
.bp-tp{background:rgba(255,255,255,.08);padding:1px 6px}
.bp-chat{background:rgba(0,0,0,.4);padding:6px 8px;max-width:620px}
.bp-motd{display:flex;gap:10px;align-items:center;background:rgba(0,0,0,.45);padding:8px;max-width:520px}
.bp-motdi{width:40px;height:40px;display:grid;place-items:center;background:var(--accent);color:#fff;font-weight:800;border-radius:4px;text-shadow:none}
.bp-title{text-align:center;padding:10px;background:linear-gradient(#0000,#0006)}
.bp-tt{font-size:26px}
.bp-ts{font-size:14px}
.bp-x{width:30px;height:30px;border-radius:8px;border:1px solid var(--line,#8884);background:transparent;color:#ff6b78;font-size:18px;line-height:1;cursor:pointer}
.bp-x:hover{background:#e11d2e22}
.bp-hide{display:none!important}
.bp-field-wide{grid-column:1/-1}
.bp-field-wide .bp-xyz{margin-top:2px}
.bp-rdrow{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;margin:6px 0}
.bp-stars{display:flex;align-items:center;gap:2px}
.bp-star{background:none;border:0;padding:0 1px;font-size:18px;line-height:1;color:#5a5f6b;cursor:pointer}
.bp-star.on{color:#f5a524}.bp-star.mine{text-shadow:0 0 6px #f5a52499}
.bp-rdbar{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.bp-rdbar input{flex:1 1 240px}
.rd-card[hidden]{display:none!important}
.bp-prev{display:flex;flex-direction:column;gap:8px;max-height:70vh;overflow:auto}
.bp-menus{display:flex;flex-wrap:wrap;gap:14px}
.bp-menu{display:flex;flex-direction:column;gap:4px}
.bp-mt{font-family:'Minecraft',ui-monospace,monospace}
.bp-inv{display:grid;grid-template-columns:repeat(9,34px);gap:2px;background:#c6c6c6;padding:6px;border-radius:4px}
.bp-cell{width:34px;height:34px;display:grid;place-items:center;background:#8b8b8b;box-shadow:inset 2px 2px #373737,inset -2px -2px #fff;position:relative}
.bp-crate{display:flex;flex-direction:column;gap:4px}
.bp-rdbar select.pt-in{width:auto;flex:0 0 auto;min-width:180px}
.bp-smoke{margin-bottom:14px}
.bp-smlist{display:flex;flex-direction:column;gap:6px;margin:6px 0}
.bp-smrow{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.bp-smres.ok b{color:#3DDC84}.bp-smres.fail b{color:#FF6B78}.bp-smres.skipped b,.bp-smres.error b{color:#F5A524}
.bp-smpre{white-space:pre-wrap;max-height:300px;overflow:auto;background:#0d0f14;border:1px solid var(--line,#8884);border-radius:8px;padding:8px;font-size:12px}

/* yangilik rasmlari: vertikal (1080×1920) va oddiy rasmlar qatori + to'liq ekran ko'ruvchi */
.nw-imgs { position: relative; margin: 10px 0 14px; }
.nw-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px; }
.nw-strip::-webkit-scrollbar { display: none; }
.nw-img { flex: none; height: 300px; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; cursor: zoom-in; scroll-snap-align: start; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.nw-imgs.full .nw-img { height: min(460px, 62vh); }
.nw-img:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 14px 36px rgba(0, 0, 0, .35); }
.nw-img:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nw-img img { display: block; height: 100%; width: auto; max-width: 78vw; object-fit: cover; }
.nw-imgs:not(.multi) .nw-img img { max-width: min(100%, 640px); }
.nw-arr { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); background: rgba(10, 11, 16, .78); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; backdrop-filter: blur(6px); z-index: 2; }
.nw-arr.l { left: 8px; } .nw-arr.r { right: 8px; }
.nw-arr:hover { background: var(--accent); border-color: var(--accent); }
.nw-count { position: absolute; right: 10px; top: 10px; font: 600 12px/1 var(--f-mono, monospace); padding: 6px 9px; border-radius: 999px; background: rgba(10, 11, 16, .72); color: #fff; pointer-events: none; }
.nw-zoom { position: fixed; inset: 0; z-index: 9800; display: grid; grid-template-rows: auto 1fr auto; background: rgba(5, 6, 10, .94); backdrop-filter: blur(6px); }
.nw-v-top { display: flex; align-items: center; gap: 14px; padding: 14px 18px; color: #fff; }
.nw-v-top b { font: 600 16px/1.3 var(--f-display, sans-serif); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-v-cnt { font: 600 13px/1 var(--f-mono, monospace); color: #c8ccd6; }
.nw-v-x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #fff; font-size: 24px; cursor: pointer; }
.nw-v-x:hover { background: var(--accent); border-color: var(--accent); }
.nw-v-stage { display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 70px; touch-action: pan-y; }
.nw-v-stage img { max-width: 100%; max-height: 100%; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); user-select: none; -webkit-user-drag: none; }
.nw-v-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(20, 22, 30, .8); color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }
.nw-v-nav.prev { left: 14px; } .nw-v-nav.next { right: 14px; }
.nw-v-nav:hover { background: var(--accent); border-color: var(--accent); }
.nw-v-th { display: flex; justify-content: center; gap: 8px; padding: 12px; overflow-x: auto; }
.nw-v-t { flex: none; width: 46px; height: 64px; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: #111; cursor: pointer; opacity: .55; }
.nw-v-t.on { border-color: var(--accent); opacity: 1; }
.nw-v-t img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .nw-img { height: 240px; } .nw-imgs.full .nw-img { height: 380px; } .nw-v-stage { padding: 0 8px; } .nw-v-nav { display: none; } }
@media (prefers-reduced-motion: reduce) { .nw-img { transition: none; } }

/* skin galereyasi: yengil kartalar + katta 3D ko'ruvchi */
.sk-gal { display: grid; gap: 14px; }
.sk-gal-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sk-gal-bar .pt-in[type=search] { flex: 1; min-width: 200px; }
.sk-gal-bar select { width: auto; min-width: 150px; }
.sk-total { font-family: var(--f-mono, monospace); }
.sk-cards { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 14px; }
.sk-card { gap: 8px; padding: 10px; border-radius: 16px; transition: border-color .15s, transform .15s; }
.sk-card:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); transform: translateY(-2px); }
.sk-card-open { position: relative; padding: 14px 6px; border: 0; border-radius: 12px; background: radial-gradient(120px 90px at 50% 40%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), rgba(255, 255, 255, .03); cursor: zoom-in; }
.sk-card-open .sk-flat { min-height: 128px; }
.sk-card-open .sk-flat canvas { width: 64px; height: 128px; }
.sk-card-rx { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 6px; background: var(--accent, var(--accent)); color: #fff; font: 700 11px/20px var(--f-display, sans-serif); text-align: center; }
.sk-card b { font-size: 14px; }
.sk-more { display: flex; justify-content: center; }
.skx { position: fixed; inset: 0; z-index: 9700; display: grid; place-items: center; padding: 16px; background: rgba(5, 6, 10, .78); backdrop-filter: blur(6px); }
.skx-box { width: min(560px, 100%); max-height: 94vh; overflow: auto; display: grid; gap: 12px; padding: 16px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface, #13161f); box-shadow: 0 30px 90px rgba(0, 0, 0, .6); }
.skx-h { display: flex; align-items: center; gap: 10px; }
.skx-h > div { flex: 1; min-width: 0; display: grid; }
.skx-h b { font: 600 18px/1.25 var(--f-display, sans-serif); }
.skx-chip { font: 600 11px/1 var(--f-mono, monospace); letter-spacing: .1em; padding: 6px 9px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: #ff7b85; }
.skx-x { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: inherit; font-size: 22px; cursor: pointer; }
.skx-x:hover { background: var(--accent, var(--accent)); color: #fff; }
.skx-3d { height: min(440px, 52vh); border-radius: 16px; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 18px; }
.skx-3d .rx3d { min-height: 0; height: 100%; }
.skx-3d > canvas { image-rendering: pixelated; }
.skx-bar { display: grid; gap: 10px; }
.skx-seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; border: 1px solid var(--line); }
.skx-seg button { flex: 1; padding: 8px; border: 0; border-radius: 9px; background: transparent; color: inherit; font-weight: 600; cursor: pointer; }
.skx-seg button.on { background: var(--accent, var(--accent)); color: #fff; }
.skx-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.skx-act { display: flex; gap: 8px; flex-wrap: wrap; }
.skx-act .primary { flex: 1; }

/* boss: launcher yangilanishi */
.rx-ln-up textarea { margin-bottom: 8px; resize: vertical; }
.rx-ln-vers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 10px 0 12px; }
.rx-ln-vers > div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 2px; }
.rx-ln-vers b { font-family: var(--f-mono, monospace); font-size: 13px; }

/* tekstura muharriri: ramka (ko'rinish oynasi) — rasm ichida qoladi, g'ildirak bilan kattalashtirish, surish */
.rx-tp-vpw { display: grid; gap: 6px; }
.rx-tp-vp { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--line, #8886); background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.035), transparent 70%), #0d0f15; touch-action: none; }
.rx-tp-vp .rx-tp-cvw { position: absolute; left: 0; top: 0; transform-origin: 0 0; border: 0; max-width: none; width: max-content; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 10px 40px rgba(0,0,0,.45); }
.rx-tp-vp .rx-tp-cv { max-width: none !important; height: auto; }
.rx-tp-vp .rx-tp-ov { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rx-tp-vp.hand, .rx-tp-vp.hand .rx-tp-cv { cursor: grab; }
.rx-tp-vp.pan, .rx-tp-vp.pan .rx-tp-cv { cursor: grabbing; }
.rx-tp-zbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rx-tp-zl { min-width: 54px; text-align: center; font: 600 12px/1 var(--f-mono, monospace); opacity: .85; }
.rx-tp-zbar small { margin-left: 4px; }
.rx-tp-worn { display: grid; gap: 8px; }
.rx-tp-worn3d { height: 220px; border-radius: 10px; overflow: hidden; }
.rx-tp-worn3d .rx3d { min-height: 0; height: 100%; }
.rx-tp-worn-flat { width: 100%; image-rendering: pixelated; border-radius: 8px; background: #0d0f15; }
/* blok yoqlari: xoch shaklidagi yoyilma */
.rx-tp-net { display: grid; grid-template-columns: repeat(4, 64px); grid-template-rows: repeat(3, auto); gap: 4px; justify-content: start; }
.rx-tp-net-f { display: grid; gap: 2px; justify-items: center; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.rx-tp-net-f canvas { width: 64px; height: 64px; image-rendering: pixelated; border-radius: 4px; outline: 1px solid rgba(255,255,255,.12); }
.rx-tp-net-f.on canvas { outline: 2px solid var(--accent, var(--accent)); }
.rx-tp-net-f small { font-size: 10.5px; opacity: .75; }
.rx-tp-net-f:nth-child(1) { grid-column: 2; grid-row: 1; }
.rx-tp-net-f:nth-child(2) { grid-column: 1; grid-row: 2; } .rx-tp-net-f:nth-child(3) { grid-column: 2; grid-row: 2; }
.rx-tp-net-f:nth-child(4) { grid-column: 3; grid-row: 2; } .rx-tp-net-f:nth-child(5) { grid-column: 4; grid-row: 2; }
.rx-tp-net-f:nth-child(6) { grid-column: 2; grid-row: 3; }
.rx-tp-fx { width: 100%; max-width: 360px; aspect-ratio: 3 / 2; image-rendering: pixelated; border-radius: 10px; background: #060814; }
.rx-tp-stage > .rx-tp-box { width: 310px; max-width: 100%; }

/* ---------- Mening loyihalarim: bo'limlar markazi ---------- */
.rx-ph { display: grid; gap: 14px; }
.rx-ph-tabs { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface, var(--bg)); overflow-x: auto; scrollbar-width: none; }
.rx-ph-tab { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: 600 14px/1 var(--f-body); cursor: pointer; transition: background .15s, color .15s; }
.rx-ph-tab:hover { color: var(--fg); background: var(--accent-soft); }
.rx-ph-tab[aria-selected="true"] { background: var(--accent); color: var(--on-accent, #fff); box-shadow: 0 2px 10px -4px var(--accent); }
.rx-ph-tab:focus-visible, .rx-ph-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rx-ph-ic { font-size: 16px; }
.rx-ph-n { min-width: 22px; padding: 2px 7px; border-radius: 999px; background: rgba(127,127,127,.16); font: 700 12px/1.3 var(--f-mono, monospace); }
.rx-ph-n:empty { display: none; }
.rx-ph-tab[aria-selected="true"] .rx-ph-n { background: rgba(255,255,255,.22); }
.rx-ph-sub { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rx-ph-sub:empty { display: none; }
.rx-ph-chips { display: inline-flex; gap: 4px; }
.rx-ph-chip { padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font: 600 13px/1 var(--f-body); cursor: pointer; }
.rx-ph-chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong, var(--accent)); }
.rx-ph-team { flex: 1 1 260px; }
.rx-ph-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.rx-ph-acts:not(:has(:not([hidden]))) { display: none; }
.rx-ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.rx-ph-card { display: grid; gap: 10px; align-content: start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface, var(--bg)); transition: border-color .15s, transform .15s; }
.rx-ph-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.rx-ph-card.team { border-left: 3px solid var(--accent); }
.rx-ph-top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.rx-ph-cico { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: var(--accent-soft); font-size: 21px; }
.rx-ph-tt { display: grid; min-width: 0; }
.rx-ph-tt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.rx-ph-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.rx-ph-tags:empty { display: none; }
.rx-ph-tag { padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong, var(--accent)); font: 600 12px/1.6 var(--f-body); }
.rx-ph-tag.own { background: rgba(127,127,127,.14); color: var(--muted); }
.rx-ph-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.rx-ph-empty { padding: 28px 18px; border: 1px dashed var(--line); border-radius: 14px; text-align: center; color: var(--muted); grid-column: 1 / -1; }
.rx-ph-mods { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(135deg, var(--accent-soft), transparent 70%); }
.rx-ph-mods-ic { flex: none; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); font-size: 28px; }
.rx-ph-mods h3 { margin: 0 0 6px; }
.rx-ph-mods p { margin: 0 0 12px; max-width: 62ch; }
@media (max-width: 560px) { .rx-ph-tab { padding: 0 11px; font-size: 13px; } .rx-ph-mods { flex-direction: column; } }
@media (max-width: 560px) { .rx-ph-tabs { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; } .rx-ph-tab { justify-content: flex-start; } }
.rx-tp-chk{display:flex;align-items:center;gap:6px;font-size:13px;cursor:pointer;margin:2px 0}.rx-tp-chk input{width:16px;height:16px;accent-color:#7c5cff}
/* yuklanish spinneri (.rx-spin yuqorida): tekstura muharriri va ro'yxatlar */
.rx-loadline { display: flex; align-items: center; gap: 10px; }
.rx-loadline .rx-spin { width: 18px; height: 18px; border-top-color: #ff4d3d; }
.rx-loadov { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10,12,18,.35); z-index: 5; pointer-events: none; }
.rx-loadov .rx-spin { width: 34px; height: 34px; border-width: 4px; border-top-color: #ff4d3d; }

/* ===== Tariflar (yangi ko'rinish): qizil asosiy, Max — oltin; yorug' va qorong'i mavzuga mos ===== */
.pr2 { --pr-red: var(--accent); --pr-red2: var(--accent-2); --pr-gold: var(--gold); --pr-gold2: var(--gold-2); --pr-ok: #2BB673; position: relative; }
.pr2::before { content: ""; position: absolute; inset: -40px -20px auto; height: 360px; pointer-events: none; z-index: 0; background: radial-gradient(60% 100% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); }
.pr2 > * { position: relative; z-index: 1; }
.pr2 .pr-toggle button[aria-checked="true"] { background: var(--pr-red); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 40%, transparent); }
.pr2 .pr-toggle em { color: #2a1b00; background: var(--pr-gold); font-weight: 700; }
.pr2 .pr-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; margin-top: 18px; }
.pr2 .pr-card { gap: 0; padding: 28px 24px 24px; border-radius: 22px; }
.pr2 .pr-card.pro { border: 1.5px solid rgba(255,59,78,.8); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--accent) 3%, transparent) 45%, transparent), var(--surface, #15171D); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 7%, transparent), 0 28px 70px color-mix(in srgb, var(--accent) 24%, transparent); transform: translateY(-12px); }
.pr2 .pr-card.max { border: 1.5px solid rgba(255,176,32,.6); background: linear-gradient(180deg, rgba(255,176,32,.14), rgba(255,176,32,.03) 45%, transparent), var(--surface, #15171D); box-shadow: 0 22px 60px rgba(255,176,32,.12); }
.pr2 .pr-badge { top: -13px; padding: 7px 13px; font-weight: 700; letter-spacing: .3px; background: linear-gradient(90deg, var(--pr-red), var(--pr-red2)); box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 45%, transparent); }
.pr2 .pr-badge.gold { background: linear-gradient(90deg, var(--pr-gold), var(--pr-gold2)); color: #2a1b00; box-shadow: 0 6px 16px rgba(255,176,32,.35); }
.pr2-nm { display: flex; align-items: center; gap: 10px; font-size: 22px !important; }
.pr2-nm i { font-style: normal; font-size: 24px; }
.pr2-who { color: var(--muted, #9AA0AD); font-size: 14px; line-height: 1.45; margin: 8px 0 16px; min-height: 40px; }
.pr2 .pr-price b { font-size: 34px; }
.pr2 .pr-card.pro .pr-price b { color: var(--pr-red2); }
.pr2-day { min-height: 20px; margin: 4px 0 14px; font-size: 13.5px; color: var(--gold); }
[data-theme="dark"] .pr2-day { color: var(--pr-gold2); }
.pr2 .pr-card .block { padding: 14px; border-radius: 13px; font-size: 15.5px; font-weight: 600; }
.pr2 .pr-card.pro .block { background: linear-gradient(90deg, var(--pr-red), var(--pr-red2)); border-color: transparent; box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 40%, transparent); }
.pr2 .pr-card.max .block { background: linear-gradient(90deg, var(--pr-gold), var(--pr-gold2)); border-color: transparent; color: #2a1b00; box-shadow: 0 10px 24px rgba(255,176,32,.3); }
.pr2-note { text-align: center; font-size: 12.5px; color: var(--muted, #9AA0AD); margin: 8px 0 16px; min-height: 16px; }
.pr2-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pr2-st { padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line, #2A2D36); background: var(--sunk, rgba(255,255,255,.03)); }
.pr2-st b { display: block; font: 600 20px/1.2 var(--f-display); }
.pr2-st span { font-size: 12.5px; color: var(--muted, #9AA0AD); }
.pr2 .pro .pr2-st b { color: var(--pr-red2); }
.pr2 .max .pr2-st b { color: var(--gold); }
[data-theme="dark"] .pr2 .max .pr2-st b { color: var(--pr-gold2); }
.pr2-grp { margin: 18px 0 4px; font-size: 11.5px; letter-spacing: 1.3px; font-weight: 600; text-transform: uppercase; color: var(--muted, #9AA0AD); }
.pr2-ul { list-style: none; margin: 0; padding: 0; }
.pr2-ul li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 14.5px; line-height: 1.4; }
.pr2-ul li::before { content: "✓"; flex: 0 0 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: rgba(43,182,115,.16); color: var(--pr-ok); }
.pr2-ul li.no { opacity: .45; }
.pr2-ul li.no::before { content: "✕"; background: rgba(127,127,127,.12); color: inherit; }
.pr2-ul li em { margin-left: auto; font-style: normal; font-size: 11px; padding: 2px 7px; border-radius: 6px; white-space: nowrap; background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }
[data-theme="dark"] .pr2-ul li em { color: var(--pr-gold2); }
.pr2-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.pr2-tr { padding: 16px; border-radius: 16px; border: 1px solid var(--line, #2A2D36); background: var(--surface, #15171D); font-size: 13.5px; line-height: 1.45; }
.pr2-tr i { display: block; font-style: normal; font-size: 22px; margin-bottom: 6px; }
.pr2-tr b { display: block; margin-bottom: 3px; font-size: 14.5px; }
.pr2-tr span { color: var(--muted, #9AA0AD); }
@media (max-width: 900px) {
  .pr2 .pr-cards { grid-template-columns: 1fr; gap: 26px; }
  .pr2 .pr-card.pro { transform: none; }
  .pr2-trust { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .pr2-trust { grid-template-columns: 1fr; } .pr2 .pr-price b { font-size: 30px; } }

/* ---------- Admin → Xatolar (admin-reports.js) ---------- */
.adm-rep-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.adm-rep-chk { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; font-size: 14px; }
.adm-rep-n { margin: 0 6px; font-size: 14px; }
.adm-rep-card { display: flex; gap: 12px; align-items: flex-start; }
.adm-rep-card.on { box-shadow: 0 0 0 2px var(--accent); }
.adm-rep-card.done { opacity: .6; }
.adm-rep-pick { padding-top: 2px; cursor: pointer; }
.adm-rep-pick input, .adm-rep-chk input { width: 18px; height: 18px; accent-color: var(--accent); }
.adm-rep-body { min-width: 0; flex: 1; }
.adm-rep-kind { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.adm-rep-kind.user { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }
.adm-rep-ok { color: #2fbf71; font-weight: 600; }
.adm-rep-ctx { margin: 8px 0 0; white-space: pre-wrap; word-break: break-word; font-size: 12px; max-height: 220px; overflow: auto; background: color-mix(in srgb, var(--accent) 4%, transparent); border-radius: 8px; padding: 8px; }

/* ---------- Telefonda birinchi ekran: tanishtiruv (tour) ochiq paytda Rexi va BETA tugmasi uni to'smasin ---------- */
body:has(.rx-tour) .rexi-wrap, body:has(.rx-tour) #rx-beta-chip { display: none !important; }
@media (max-width: 520px) {
  .rx-top { gap: 8px; }
  .rx-top b { font-size: 15px; }
  .rx-skip { padding: 6px 10px; font-size: 12px; line-height: 1.25; border-radius: 12px; max-width: 120px; }
}

/* ---------- Admin → Statistika: AI xarajati, zaxira, pullik rejim (admin-ops.js) ---------- */
.adm-ops-wrap { display: grid; gap: 14px; margin-top: 16px; }
.adm-ops h3 { margin: 0 0 10px; }
.adm-ops-tiles { margin: 8px 0; }
.adm-ops-bar { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 12%, transparent); overflow: hidden; margin: 6px 0 10px; }
.adm-ops-bar i { display: block; height: 100%; background: #2fbf71; }
.adm-ops-bar.warn i { background: var(--gold); }
.adm-ops-bar.over i { background: var(--accent); }
.adm-ops-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 8px 0; }
.adm-ops-cols ul, .adm-ops-list { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
.adm-ops-list { list-style: none; padding: 0; display: grid; gap: 6px; }
.adm-ops-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.adm-ops-form { display: grid; gap: 8px; max-width: 520px; margin: 10px 0; }
.adm-ops-form label { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.adm-ops-form input, .adm-ops-form select { max-width: 160px; }
.adm-ops-pair { display: inline-flex; gap: 6px; }
.adm-ops-pair input { max-width: 90px; }
.adm-ops-row { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-ops details summary { cursor: pointer; margin-top: 8px; font-weight: 600; }
.rx-free-paid { display: block; margin-top: 6px; font-style: normal; font-weight: 600; color: var(--gold); }
.adm-ops-tiles dd { font-size: 18px !important; line-height: 1.25; }

/* ---------- Tekstura pack → o'z resurspagini joylash (rphost-ui.js) ---------- */
.rx-rph { margin: 12px 0; }
.rx-rph > summary { cursor: pointer; font-weight: 600; }
.rx-rph-body { display: grid; gap: 10px; margin-top: 8px; }
.rx-rph-up { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rx-rph-bar { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 12%, transparent); overflow: hidden; }
.rx-rph-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.rx-rph-list { display: grid; gap: 10px; }
.rx-rph-card { border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); border-radius: 12px; padding: 12px; display: grid; gap: 6px; }
.rx-rph-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.rx-rph-props { margin: 0; padding: 8px 10px; border-radius: 8px; font-size: 12px; white-space: pre-wrap; word-break: break-all; background: color-mix(in srgb, var(--accent) 5%, transparent); }
.rx-rph-trash summary { cursor: pointer; font-size: 14px; }
.pr2-norefund { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--muted, #9aa0b2); }

/* ---------- bir nechta itemni birdan tanlash (item-multi.js) ---------- */
.iv-multi .iv-pick-i { position: relative; }
.iv-multi .iv-pick-i.on { outline: 2px solid var(--accent); outline-offset: -2px; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.iv-multi-badge { position: absolute; top: 4px; right: 4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: #fff; font: 700 12px/20px system-ui, sans-serif; font-style: normal; text-align: center; }
.iv-multi-foot { align-items: center; }
.iv-multi-n { margin-right: auto; }

/* ---------- yon menyu guruhlari (rexium-ext.js → groupNav) ---------- */
.pt-nav-h { margin: 14px 12px 4px; font: 600 11px/1.2 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #8a90a2); opacity: .8; }
.pt-nav-h:first-child { margin-top: 4px; }

/* ---------- tungi/kungi rejim tugmasi ---------- */
.rx-theme { width: 34px; height: 34px; flex: none; display: inline-grid; place-items: center; margin-left: 6px; border-radius: 10px; border: 1px solid var(--line, rgba(127,127,127,.25)); background: transparent; font-size: 16px; line-height: 1; cursor: pointer; }
.rx-theme:hover { border-color: var(--accent); }

/* ---------- Ctrl+K tezkor qidiruv (quick-search.js) ---------- */
.rx-qs { position: fixed; inset: 0; z-index: 9500; background: rgba(0,0,0,.45); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.rx-qs-box { width: min(620px, 100%); background: var(--bg-elev, var(--panel, #15171e)); color: inherit; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 16px; box-shadow: 0 24px 80px rgba(0,0,0,.45); overflow: hidden; }
.rx-qs-in { width: 100%; box-sizing: border-box; border: 0; border-bottom: 1px solid rgba(127,127,127,.2); background: transparent; color: inherit; font: inherit; font-size: 17px; padding: 16px 18px; outline: none; }
.rx-qs-list { max-height: 50vh; overflow: auto; padding: 6px; }
.rx-qs-i { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.rx-qs-i.on, .rx-qs-i:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.rx-qs-i em { font-style: normal; font-size: 12px; opacity: .65; }
.rx-qs-none { margin: 12px; opacity: .7; }
.rx-qs-foot { display: block; padding: 8px 14px; opacity: .6; border-top: 1px solid rgba(127,127,127,.15); }
.mod.rx-qs-flash { box-shadow: 0 0 0 3px var(--accent); transition: box-shadow .3s; }

/* ===== Tugma bosilish animatsiyasi (butun sayt) ===== */
.pt-btn, .rx-btn, .tab, .pt-nav-i, .rx-menu-i, .pt-chip, .chip, button.tp-cat, .tp-cat, .rx-mod-card, button {
  transition: transform .12s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, filter .18s ease;
}
.pt-btn:hover:not(:disabled), .rx-btn:hover:not(:disabled) { filter: brightness(1.08); }
.pt-btn:active:not(:disabled), .rx-btn:active:not(:disabled), .tab:active, .pt-nav-i:active, .rx-menu-i:active,
.pt-chip:active, .chip:active, .tp-cat:active, button:active:not(:disabled) { transform: scale(.95); }
.pt-btn.primary:active:not(:disabled), .rx-btn.primary:active:not(:disabled) { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 28%, transparent); }
.rx-press { animation: rx-press-ripple .45s ease-out; }
@keyframes rx-press-ripple { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
@media (prefers-reduced-motion: reduce) {
  .pt-btn, .rx-btn, .tab, .pt-nav-i, .rx-menu-i, .pt-chip, .chip, .tp-cat, button { transition: none; }
  button:active, .pt-btn:active, .rx-btn:active, .tab:active, .pt-nav-i:active { transform: none; }
  .rx-press { animation: none; }
}

/* ===== Modullar: ixcham to'r + alohida sozlash oynasi ===== */
#main .mod-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; align-items: stretch; }
#main .mod-group > h3 { grid-column: 1 / -1; }
#main .mod { display: flex; flex-direction: column; border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
#main .mod:hover { box-shadow: 0 8px 24px rgba(0,0,0,.25); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
#main .mod .mod-head { padding: 14px; gap: 12px; flex-wrap: nowrap; align-items: flex-start; flex: 1; }
#main .mod .mod-head > .btn { margin-left: 0; align-self: flex-start; }
#main .mod .mod-title p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.45; margin: 4px 0 8px; }
#main .mod .mod-title h4 { font-size: 15px; }
#main .mod .mod-title .chips { max-height: 52px; overflow: hidden; }
#main .mod .mod-title.clickable { cursor: pointer; }
#main .mod .mod-title.clickable:hover h4 { color: var(--accent); }
#main .mod > .bp-pv, #main .mod > .rx-gd-box { display: none; }
.mod-modal { position: fixed; inset: 0; z-index: 9000; background: rgba(5, 5, 8, .72); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 24px; animation: rx-fade .16s ease-out; }
.mod-modal-box { width: min(960px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.55); animation: rx-pop .18s ease-out; }
.mod-modal-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.mod-modal-head h3 { margin: 0 0 4px; font: 600 20px/1.2 var(--f-display); }
.mod-modal-head p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; max-width: 70ch; }
.mod-modal-x { flex: none; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.mod-modal-box > .mod-body { overflow: auto; border-top: 0; border-radius: 0; flex: 1; padding: 20px 22px; }
.mod-modal-box > .mod-body > .bp-pv { order: -1; }
.mod-modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--line); }
.mod-modal-foot .btn { min-width: 130px; justify-content: center; }
body:has(.mod-modal) { overflow: hidden; }
@keyframes rx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rx-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .mod-modal { padding: 0; align-items: stretch; }
  .mod-modal-box { max-height: 100vh; border-radius: 0; }
  .mod-modal-foot .btn { flex: 1; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .mod-modal, .mod-modal-box { animation: none; } }

/* ===== Tekstura pak: ro'yxat to'liq kenglikda, muharrir — alohida oynada ===== */
.rx-tpk .rx-tp-main.solo { grid-template-columns: 1fr; height: auto; min-height: 0; }
.rx-tpk .rx-tp-main.solo .rx-tp-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); max-height: none; overflow: visible; }
.rx-tpk .rx-tp-main.solo .rx-tp-cell { min-height: 92px; }
.rx-tpk .rx-tp-main.solo .rx-tp-cell:hover { border-color: var(--accent); }
.rx-tp-modal .rx-tp-modalbox { width: min(1280px, 100%); }
.rx-tp-modal .rx-tp-edhost { overflow: auto; min-height: 0; }
/* osmon: 3×2 kub tomonlari nomi bilan */
.rx-tp-skymap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; width: min(100%, 720px); aspect-ratio: 3 / 2; margin: 8px 0; }
.rx-tp-skyface { position: relative; border-radius: 6px; border: 1px dashed var(--line); background-color: var(--bg); display: flex; align-items: flex-end; overflow: hidden; }
.rx-tp-skymap.has .rx-tp-skyface { border-style: solid; }
.rx-tp-skyface span { margin: 6px; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.62); color: #fff; font-size: 12px; font-weight: 600; }
.rx-tp-skymore { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.rx-tp-skymore > summary { cursor: pointer; font-weight: 600; }

/* ===== Launcher sahifasi (yangi dizayn) ===== */
.rx-ln2 { display: flex; flex-direction: column; gap: 18px; max-width: 1400px; }
.rx-ln-hero2 { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line)); min-height: 440px; display: flex; align-items: center; background: #0a0a0d; box-shadow: 0 0 60px color-mix(in srgb, var(--accent) 18%, transparent); }
.rx-ln-art { position: absolute; top: 0; bottom: 0; right: 0; left: 34%; background: url(/ext/img/launcher-hero.webp) left center / cover no-repeat; }
.rx-ln-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #0a0a0d 0%, rgba(10,10,13,.55) 22%, rgba(10,10,13,0) 45%); }
.rx-ln-copy { position: relative; z-index: 1; padding: 44px 48px; max-width: 640px; display: flex; flex-direction: column; gap: 22px; color: #fff; }
.rx-ln-logo { display: flex; align-items: center; gap: 18px; }
.rx-ln-logo img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 55%, transparent); }
.rx-ln-logo b { display: block; font: 600 54px/1 var(--f-display); letter-spacing: -1px; color: #f2f2f4; }
.rx-ln-logo span { display: block; font: 600 40px/1.05 var(--f-display); letter-spacing: 1px; color: var(--accent); text-shadow: 0 0 24px color-mix(in srgb, var(--accent) 60%, transparent); }
.rx-ln-lead { margin: 0; font-size: 17px; line-height: 1.6; color: #d6d6dc; }
.rx-ln-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.rx-ln-cta .pt-btn.lg { min-height: 58px; padding: 0 28px; font-size: 17px; border-radius: 14px; }
.rx-ln-dl { box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 40%, transparent); }
.rx-ln-guide { background: rgba(0,0,0,.45); border-color: rgba(255,255,255,.22); color: #fff; gap: 10px; }
.rx-ln-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: #e8e8ec; font-size: 14px; font-weight: 600; min-height: 22px; }
.rx-ln-meta > span { display: inline-flex; align-items: center; gap: 8px; }
.rx-ln-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; flex: none; color: var(--accent); }
.rx-ln-ic svg { width: 100%; height: 100%; }
.rx-ln-ic.sm { width: 18px; height: 18px; color: #c9c9d0; }
.rx-ln-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.rx-ln-card { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface)); transition: border-color .15s, box-shadow .15s; }
.rx-ln-card:hover { border-color: var(--accent); box-shadow: 0 8px 26px color-mix(in srgb, var(--accent) 18%, transparent); }
.rx-ln-card b { display: block; font-size: 17px; margin-bottom: 4px; }
.rx-ln-card small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.rx-ln-steps { border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; background: var(--surface); }
.rx-ln-steps > summary { cursor: pointer; font-weight: 600; }
.rx-ln-steps p { margin: 10px 0 6px; line-height: 1.6; }
@media (max-width: 760px) {
  .rx-ln-hero2 { min-height: 0; }
  .rx-ln-art { left: 0; background-position: 20% center; opacity: .55; }
  .rx-ln-art::after { background: linear-gradient(180deg, rgba(10,10,13,.5), #0a0a0d 85%); }
  .rx-ln-copy { padding: 28px 20px; }
  .rx-ln-logo img { width: 64px; height: 64px; }
  .rx-ln-logo b { font-size: 36px; } .rx-ln-logo span { font-size: 26px; }
  .rx-ln-cta .pt-btn.lg { flex: 1; }
}

/* ===== Kirish sahifasi: katta rasm, kunduzgi/tungi rejimga qarab ===== */
.au-side.rx-sc-auth { background: #0B0C10 var(--rx-sc-auth) 68% center / cover no-repeat; }
.au-side.rx-sc-auth::before { background: linear-gradient(90deg, #0B0C10 0%, rgba(11,12,16,.86) 30%, rgba(11,12,16,.25) 62%, rgba(11,12,16,0) 85%); }
:root[data-theme="light"] .au-side.rx-sc-auth { background-image: var(--rx-sc-auth-day); } /* matn oq — qorong'i chap qism ikkala rejimda ham qoladi */
/* zip 103 — bosh sahifa hero foni (Rexium qasri) */
.lp .lp-hero { position: relative; isolation: isolate; }
.lp .lp-hero::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: -40px; left: 50%; width: 100vw; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(90deg, #0B0C10 0%, rgba(11,12,16,.9) 32%, rgba(11,12,16,.45) 62%, rgba(11,12,16,.7) 100%), linear-gradient(0deg, #0B0C10 0%, rgba(11,12,16,0) 35%), linear-gradient(180deg, #0B0C10 0%, rgba(11,12,16,0) 22%), url(/ext/img/banner.webp?v=4) 75% 35% / cover no-repeat; }
.au-side.rx-sc-auth { background-position: 40% center; }
@media (max-width: 860px) { .lp .lp-hero::before { background-position: 0 0, 0 0, 0 0, 80% center; opacity: .7; } }
/* zip 103 — kirish/ro'yxatdan o'tish: forma o'rtada, rasm butun ekranda */
.au.rx-au-center { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; min-height: 100vh; padding: 28px 16px 40px; background: #0B0C10 var(--rx-sc-auth) center / cover no-repeat; }
:root[data-theme="light"] .au.rx-au-center { background-image: var(--rx-sc-auth-day); }
.au.rx-au-center::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, rgba(11,12,16,.15) 0%, rgba(11,12,16,.55) 70%, rgba(11,12,16,.8) 100%); }
.au.rx-au-center > * { position: relative; z-index: 1; }
.au.rx-au-center .au-side { background: none !important; padding: 0 !important; align-items: center; text-align: center; gap: 10px; }
.au.rx-au-center .au-side::before { display: none; }
.au.rx-au-center .au-side .back { position: absolute; left: 0; top: -6px; }
.au.rx-au-center .au-side { width: min(460px, 100%); padding-top: 28px !important; }
.au.rx-au-center .au-logo { width: 56px; height: 56px; border-radius: 14px; }
.au.rx-au-center .au-side h1 { font-size: clamp(22px, 2.6vw, 30px); max-width: none; text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.au.rx-au-center .au-points, .au.rx-au-center .au-side > :not(.back):not(.au-logo):not(h1) { display: none; }
.au.rx-au-center .au-main { width: min(460px, 100%); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 28px 26px; background: rgba(14,16,21,.66); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.au.rx-au-center .au-side .back { text-shadow: 0 1px 8px rgba(0,0,0,.8); color: #fff; }

/* ============================================================
   zip 104 — SHISHA (glass) ko'rinish: ilova ichi (.pt-shell)
   Hamma qiymatlar shu yerda — bitta o'zgaruvchi hamma panelni o'zgartiradi.
   ============================================================ */
:root {
  --glass-img: url(/ext/img/auth-night.webp?v=5);
  --glass-shade: linear-gradient(180deg, rgba(8,9,13,.55), rgba(8,9,13,.72));
  --glass-bg: rgba(18, 20, 27, .58);
  --glass-bg-2: rgba(28, 31, 40, .55);
  --glass-line: rgba(255, 255, 255, .10);
  --glass-blur: blur(16px) saturate(140%);
  --glass-glow: 0 18px 50px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .06);
}
:root[data-theme="light"] {
  --glass-img: url(/ext/img/auth-day.webp?v=5);
  --glass-shade: linear-gradient(180deg, rgba(236,238,232,.35), rgba(236,238,232,.55));
  --glass-bg: rgba(255, 255, 255, .72);
  --glass-bg-2: rgba(255, 255, 255, .6);
  --glass-line: rgba(20, 24, 18, .12);
  --glass-glow: 0 18px 50px rgba(20, 30, 20, .18), inset 0 1px 0 rgba(255, 255, 255, .6);
}
/* 1) panel ranglari shishaga almashadi (hamma bo'limlar shu o'zgaruvchilardan foydalanadi) */
.pt-shell { --surface: var(--glass-bg); --sunk: var(--glass-bg-2); --bg: transparent; --line: var(--glass-line); background: transparent !important; }
/* 2) orqa fon — qimirlamaydi (fixed), skroll qilinsa ham joyida turadi */
/* qotirilgan fon — ilova ichi va bosh sahifa uchun bitta umumiy qoida */
.pt-shell::before, .lp::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--rx-fixed-shade), #0B0C10 var(--rx-fixed-img) var(--rx-fixed-pos, center) / cover no-repeat; }
.pt-shell { --rx-fixed-img: var(--glass-img); --rx-fixed-shade: var(--glass-shade); }
.lp { --rx-fixed-img: url(/ext/img/lp-bg.webp?v=1); --rx-fixed-pos: 70% center; --rx-fixed-shade: linear-gradient(90deg, rgba(11,12,16,.9) 0%, rgba(11,12,16,.74) 45%, rgba(11,12,16,.62) 100%); }
.lp .lp-hero::before { display: none; }
.lp { position: relative; isolation: isolate; }
/* 3) shisha effekti — bitta qoida, kerakli hamma panelga */
.pt-shell .pt-side, .pt-shell .pt-topbar, .pt-shell .pt-panel, .pt-shell .panel, .pt-shell .mod, .pt-dialog, .mod-modal .mod-body, .rx-tp-modal {
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-glow);
}
.pt-shell .pt-side { border-right: 1px solid var(--glass-line); }
.pt-shell .panel, .pt-shell .pt-panel, .pt-shell .mod { border-radius: 14px; }
/* bosh panel banneri — slayder bilan, faqat chegarasi shisha */
.pt-shell .pt-hero { border: 1px solid var(--glass-line); box-shadow: var(--glass-glow); }
/* BETA xabari ham shisha — rasm ustida matn o'qiladi */
.pt-shell .rx-beta { background: var(--glass-bg) !important; -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
:root[data-theme="light"] .pt-shell .rx-beta-free { color: #13703a !important; }
/* faol menyu — qizil nur */
.pt-shell .pt-nav-i[aria-current="page"] { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), 0 8px 26px color-mix(in srgb, var(--accent) 28%, transparent); }

/* bo'lim kartochkalari — rasmlar to'liq ko'rinsin (16:9) */
.rx-sc-img { aspect-ratio: 16 / 9; }

/* ---------- to'lov usullari (pay-ui.js) — shisha, umumiy --glass-* o'zgaruvchilaridan ---------- */
.rx-pay { margin-top: 12px; padding: 16px; border: 1px solid var(--glass-line, var(--line)); border-radius: 14px; background: var(--glass-bg, var(--sunk)); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-glow); display: grid; gap: 12px; }
.rx-pay-h { font-weight: 700; font-size: 15px; }
.rx-pay-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.rx-pay-btn { position: relative; display: grid; place-items: center; gap: 6px; min-height: 76px; padding: 14px 12px 10px; border-radius: 12px; text-decoration: none; color: #E8EAF0;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)), rgba(10,12,18,.72); border: 1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 22px rgba(0,0,0,.25); transition: transform .12s, border-color .15s, box-shadow .15s; }
.rx-pay-btn img { height: 30px; width: auto; max-width: 130px; object-fit: contain; display: block; }
.rx-pay-btn-t { font-size: 12px; font-weight: 600; opacity: .8; }
.rx-pay-btn:hover { transform: translateY(-2px); border-color: var(--rx-pay-c, var(--accent)); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 10px 28px color-mix(in srgb, var(--rx-pay-c, var(--accent)) 35%, transparent); }
.rx-pay-btn:active { transform: scale(.97); }
.rx-pay-btn.payme { --rx-pay-c: #25E8FF; } .rx-pay-btn.click { --rx-pay-c: #0065FF; } .rx-pay-btn.paynet { --rx-pay-c: #22CC6E; }
.rx-pay-card { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--glass-line, var(--line)); background: rgba(255,255,255,.03); }
.rx-pay-card-l { grid-column: 1; font-size: 12px; opacity: .7; }
.rx-pay-card-n { grid-column: 1; font: 700 18px/1.3 ui-monospace, monospace; letter-spacing: .06em; }
.rx-pay-card-o { grid-column: 1; font-size: 13px; opacity: .8; }
.rx-pay-copy { grid-column: 2; grid-row: 1 / span 3; }
.rx-pay-note { font-size: 12.5px; opacity: .75; }
.rx-pay-admin { margin-top: 16px; padding: 16px; } .rx-pay-admin .pt-field { display: grid; gap: 4px; margin-top: 8px; }
.rx-pay-chk { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; }
.rx-pay-ok { color: #22c55e; font-size: 12px; font-weight: 600; } .rx-pay-no { color: #f59e0b; font-size: 12px; font-weight: 600; }
.rx-pay-tx { font-size: 12.5px; opacity: .85; padding: 4px 0; border-bottom: 1px solid var(--line); }
/* tariflar, buyurtmalar va to'lov bo'limlari ham shisha */
.pt-shell .pr-card, .pt-shell .pt-plan, .pt-shell .rx-pay-admin, .pt-shell .rx-notes { -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-glow); }

/* ---------- admin eslatmalari (notes-ui.js) ---------- */
.rx-notes { padding: 18px; display: grid; gap: 14px; }
.rx-notes-head h3 { margin: 0; } .rx-notes-sub { font-size: 13px; opacity: .7; margin-top: 4px; }
.rx-notes-form { display: grid; gap: 8px; } .rx-notes-form .pt-btn { justify-self: start; }
.rx-notes-list { display: grid; gap: 10px; }
.rx-note { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--sunk); display: grid; gap: 8px; }
.rx-note.pinned { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.rx-note-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.rx-note-t { font-weight: 700; } .rx-note-d { font-size: 12px; opacity: .6; white-space: nowrap; }
.rx-note-b { white-space: pre-wrap; line-height: 1.55; font-size: 14px; }
.rx-note-act { display: flex; flex-wrap: wrap; gap: 6px; } .rx-note-act .pt-btn { padding: 6px 10px; font-size: 13px; }
.rx-notes-trash summary { cursor: pointer; opacity: .75; margin-bottom: 8px; } .rx-notes-trash .rx-note { opacity: .7; margin-top: 8px; }
.pt-shell .pr-pending { -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.lp .pr-card { background: rgba(18,20,27,.62); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 18px 50px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06); }

/* ---------- bosh panel vidjetlari (dashboard.js) — shisha ---------- */
.rx-dash { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; }
.rx-dash-restore { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 1000px) { .rx-dash { grid-template-columns: 1fr; } }
.rx-dash > .pt-panel { padding: 18px; display: grid; gap: 14px; align-content: start; -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-glow); }
.rx-dash h2 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.rx-dash h2::before { content: ""; width: 4px; height: 20px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 60%, transparent); }
.rx-dash-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.rx-dash-hb { display: flex; gap: 6px; }
.rx-dash-recent { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.rx-dash-proj { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px; border-radius: 12px; border: 1px solid var(--glass-line, var(--line)); background: rgba(255,255,255,.04); color: inherit; cursor: pointer; transition: transform .12s, border-color .15s, box-shadow .15s; }
.rx-dash-proj:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 22%, transparent); }
.rx-dash-proj .ic, .rx-dash-num .ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px; color: #fff; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000)); box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 35%, transparent); }
.rx-dash-proj .tx { display: grid; gap: 2px; min-width: 0; } .rx-dash-proj b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rx-dash-proj small { opacity: .7; font-size: 12px; }
.rx-dash-empty { display: grid; gap: 10px; justify-items: start; opacity: .9; }
.rx-dash-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .rx-dash-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rx-dash-q { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid var(--glass-line, var(--line)); background: rgba(255,255,255,.04); color: inherit; font-weight: 700; cursor: pointer; transition: transform .12s, background .15s; }
.rx-dash-q svg { color: var(--accent); } .rx-dash-q:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); transform: translateY(-1px); } .rx-dash-q:active { transform: scale(.97); }
.rx-dash-ring { position: relative; width: 170px; height: 170px; justify-self: center; }
.rx-dash-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rx-dash-ring circle { fill: none; stroke-width: 9; } .rx-dash-ring .bg { stroke: rgba(255,255,255,.08); }
.rx-dash-ring .fg { stroke: var(--accent); stroke-linecap: round; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 70%, transparent)); transition: stroke-dashoffset .8s ease; }
.rx-dash-ring-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.rx-dash-ring-l { font-size: 13px; opacity: .75; } .rx-dash-ring-n { font: 800 40px/1 var(--f-display, inherit); }
.rx-dash-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rx-dash-num { display: grid; justify-items: center; gap: 4px; padding: 8px 4px; border: 0; border-radius: 10px; background: none; color: inherit; cursor: pointer; }
.rx-dash-num:hover { background: rgba(255,255,255,.05); }
.rx-dash-num .ic { width: 38px; height: 38px; } .rx-dash-num small { font-size: 11.5px; opacity: .75; } .rx-dash-num b { font-size: 18px; }
.rx-dash-num.datapack .ic { background: linear-gradient(135deg, #7c3aed, #4c1d95); box-shadow: 0 6px 16px rgba(124,58,237,.35); }
.rx-dash-num.texpack .ic { background: linear-gradient(135deg, #2563eb, #1e3a8a); box-shadow: 0 6px 16px rgba(37,99,235,.35); }
.rx-dash-num.skins .ic { background: linear-gradient(135deg, #16a34a, #14532d); box-shadow: 0 6px 16px rgba(22,163,74,.35); }
:root[data-theme="light"] .rx-dash-ring .bg { stroke: rgba(0,0,0,.08); }
:root[data-theme="light"] .rx-dash-proj, :root[data-theme="light"] .rx-dash-q { background: rgba(255,255,255,.55); }

/* ---------- kun/tun tugmasi bosh sahifa va kirish sahifasida ---------- */
.rx-theme-lp { margin-right: 6px; }
.au > .rx-theme-au { position: fixed !important; top: 18px; right: 18px; left: auto !important; margin: 0 !important; z-index: 50; }
.au { position: relative; }
/* bosh sahifa kunduzi: fon yorqinroq, matn o'qilishi uchun chap tomon qorong'i qoladi */
:root[data-theme="light"] .lp { --rx-fixed-shade: linear-gradient(90deg, rgba(11,12,16,.78) 0%, rgba(11,12,16,.5) 45%, rgba(11,12,16,.18) 100%); }
/* ---------- kunduzgi rejim: oq shisha ustida yozuvlar qora/to'q qizil ---------- */
:root[data-theme="light"] .pt-shell .rx-sc-card { color: #15171c; }
:root[data-theme="light"] .pt-shell .rx-sc-t { color: #15171c; }
:root[data-theme="light"] .pt-shell .rx-sc-card:hover .rx-sc-t { color: #b3121f; }
:root[data-theme="light"] .pt-shell .rx-sc-d { color: #3b3f4a; }

/* ---------- loyiha versiyalari (versions-ui.js) ---------- */
.rx-ver-btn { margin-left: auto; }
.rx-ver { display: grid; gap: 12px; }
.rx-ver-now { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--glass-line, var(--line)); background: var(--glass-bg-2, var(--sunk)); }
.rx-ver-items { display: grid; gap: 8px; max-height: 52vh; overflow: auto; padding-right: 4px; }
.rx-ver-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); }
.rx-ver-row.manual { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.rx-ver-meta { display: grid; gap: 2px; min-width: 0; }
.rx-ver-meta b { overflow-wrap: anywhere; }
.rx-ver-act { display: flex; gap: 6px; flex-wrap: wrap; }
.rx-ver-all { justify-self: start; }
