/* ============================================================
   SMM Panel — asosiy uslub. Tinch, ko'zni charchatmaydigan
   "glass" dizayn. Desktop: yon panel; mobil: pastki menyu.
   ============================================================ */
:root {
  --bg1: #E9EEF9; --bg2: #D8E6F3;
  --blob1: rgba(25, 184, 154, .22); --blob2: rgba(120, 140, 255, .22);
  --glass: rgba(255, 255, 255, .62); --glass-2: rgba(255, 255, 255, .82); --glass-3: rgba(255, 255, 255, .42);
  --line: rgba(27, 36, 55, .08); --line-2: rgba(27, 36, 55, .14);
  --ink: #1B2437; --ink-2: #4B5670; --ink-3: #7C8699;
  --accent: #2F6BFF; --accent-2: #5B8CFF; --accent-soft: rgba(47, 107, 255, .12); --accent-ink: #1F4FD1;
  --mint: #19B89A; --mint-soft: rgba(25, 184, 154, .14);
  --amber: #E39A2B; --amber-soft: rgba(242, 169, 59, .16);
  --red: #E5484D; --red-soft: rgba(229, 72, 77, .12);
  --radius: 18px; --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(27, 36, 55, .08); --shadow-2: 0 18px 50px rgba(27, 36, 55, .14);
  --side: 264px; --top: 68px; --bottom-nav: 66px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: linear-gradient(160deg, var(--bg1) 0%, var(--bg2) 100%) fixed;
  min-height: 100vh; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.25; font-weight: 700; }
h1 { font-size: 1.55rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .75rem; }
::selection { background: var(--accent-soft); }
.bg-blob { position: fixed; z-index: -1; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.bg-blob-1 { width: 520px; height: 520px; left: -160px; top: -140px; background: var(--blob1); }
.bg-blob-2 { width: 560px; height: 560px; right: -200px; bottom: -220px; background: var(--blob2); }

/* ---------------- icons */
.ic { display: inline-block; vertical-align: -.22em; flex: none; }
.ic .ic-a { stroke: var(--accent); }
.btn-primary .ic .ic-a, .nav a.active .ic .ic-a, .bnav a.active .ic .ic-a { stroke: currentColor; opacity: .85; }

/* ---------------- layout */
.shell { display: flex; min-height: 100vh; }
.side {
  width: var(--side); position: fixed; inset: 0 auto 0 0; z-index: 30; padding: 20px 16px; display: flex; flex-direction: column; gap: 10px;
  background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-right: 1px solid var(--glass-2);
  overflow-y: auto; overscroll-behavior: contain; transition: transform .28s ease;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--mint)); display: grid; place-items: center; color: #fff; box-shadow: 0 6px 16px rgba(47, 107, 255, .3); flex: none; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 13px; color: var(--ink-2); font-weight: 600; font-size: .94rem; transition: background .18s, color .18s; }
.nav a:hover { background: var(--glass-2); color: var(--ink); text-decoration: none; }
.nav a.active { background: var(--accent); color: #fff; box-shadow: 0 8px 18px rgba(47, 107, 255, .28); }
.nav a .cnt { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.nav-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); padding: 12px 12px 4px; font-weight: 700; }
.side-foot { margin-top: auto; padding-top: 10px; font-size: .8rem; color: var(--ink-3); }
.main { flex: 1; margin-left: var(--side); min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: var(--top); display: flex; align-items: center; gap: 12px; padding: 0 22px; position: sticky; top: 0; z-index: 25;
  background: var(--glass-3); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--glass-2);
}
.topbar .grow { flex: 1; min-width: 0; }
.page-title { font-weight: 800; font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.content { padding: 22px; max-width: 1180px; width: 100%; margin: 0 auto; flex: 1; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--glass-2); background: var(--glass); display: grid; place-items: center; color: var(--ink-2); cursor: pointer; position: relative; flex: none; }
.icon-btn:hover { background: var(--glass-2); color: var(--ink); text-decoration: none; }
.icon-btn .dot { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff; font-size: .62rem; font-weight: 800; display: grid; place-items: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--glass); border: 1px solid var(--glass-2); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.chip small { font-weight: 600; color: var(--ink-3); font-size: .74rem; }
.chip.balance { background: linear-gradient(135deg, rgba(47,107,255,.14), rgba(25,184,154,.14)); }
.pill-select { appearance: none; -webkit-appearance: none; border: 1px solid var(--glass-2); background: var(--glass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234B5670' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; padding: 8px 28px 8px 12px; border-radius: 12px; font: inherit; font-weight: 700; font-size: .84rem; color: var(--ink-2); cursor: pointer; }
.bnav { display: none; }
.drawer-backdrop { display: none; }

/* ---------------- cards & sections */
.card { background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--glass-2); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card + .card { margin-top: 16px; }
.grid > .card + .card, .grid > .card { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 16px 18px; border-radius: var(--radius-sm); background: var(--glass-2); border: 1px solid #fff; display: flex; gap: 12px; align-items: center; }
.stat .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); flex: none; }
.stat .ico.mint { background: var(--mint-soft); color: var(--mint); } .stat .ico.amber { background: var(--amber-soft); color: var(--amber); } .stat .ico.red { background: var(--red-soft); color: var(--red); }
.stat b { display: block; font-size: 1.15rem; line-height: 1.2; } .stat span { color: var(--ink-3); font-size: .8rem; font-weight: 600; }
.muted { color: var(--ink-3); } .small { font-size: .84rem; } .tiny { font-size: .76rem; } .bold { font-weight: 700; } .center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .row.between { justify-content: space-between; } .row.end { justify-content: flex-end; }
.mt { margin-top: 16px; } .mt-s { margin-top: 8px; } .mb { margin-bottom: 16px; } .mb-s { margin-bottom: 8px; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.empty { text-align: center; padding: 34px 16px; color: var(--ink-3); }
.empty .ic { width: 44px; height: 44px; margin-bottom: 10px; opacity: .7; }

/* ---------------- forms */
.field { margin-bottom: 14px; }
.field label, .label { display: block; font-weight: 700; font-size: .84rem; color: var(--ink-2); margin-bottom: 6px; }
.field .hint { font-size: .78rem; color: var(--ink-3); margin-top: 5px; }
.field .err { font-size: .8rem; color: var(--red); margin-top: 5px; font-weight: 600; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line-2); background: rgba(255,255,255,.75); border-radius: 13px; padding: 12px 14px; font: inherit; font-size: .95rem; color: var(--ink);
  outline: none; transition: border-color .18s, box-shadow .18s; min-height: 46px;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent-2); box-shadow: 0 0 0 4px var(--accent-soft); background: #fff; }
.input.is-invalid { border-color: var(--red); }
.textarea { min-height: 110px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234B5670' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input-wrap { position: relative; } .input-wrap .input { padding-right: 44px; }
.input-wrap .eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--ink-3); cursor: pointer; padding: 6px; border-radius: 8px; }
.check, .field label.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.switch, .field label.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: .9rem; margin: 0; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 44px; height: 26px; border-radius: 13px; background: rgba(27,36,55,.18); position: relative; transition: background .2s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + .track { background: var(--mint); } .switch input:checked + .track::after { transform: translateX(18px); }
.file-drop { border: 2px dashed var(--line-2); border-radius: var(--radius-sm); padding: 26px 16px; text-align: center; cursor: pointer; background: rgba(255,255,255,.4); transition: border-color .2s, background .2s; }
.file-drop:hover, .file-drop.drag { border-color: var(--accent-2); background: var(--accent-soft); }
.file-drop input { display: none; }
.file-drop .big { display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 700; color: var(--accent-ink); }
.file-drop .big .ic { width: 42px; height: 42px; }
.file-drop .chosen { display: none; align-items: center; justify-content: center; gap: 8px; font-weight: 700; color: var(--mint); }
.file-drop.has-file .big { display: none; } .file-drop.has-file .chosen { display: flex; }
.file-drop img.preview { max-height: 140px; margin: 10px auto 0; border-radius: 10px; }

/* ---------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 13px; padding: 11px 18px; font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; transition: transform .12s, box-shadow .18s, background .18s, opacity .18s; white-space: nowrap; min-height: 44px; text-decoration: none !important; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.is-loading { opacity: .6; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 8px 20px rgba(47,107,255,.28); }
.btn-primary:hover { box-shadow: 0 12px 26px rgba(47,107,255,.36); }
.btn-mint { background: linear-gradient(135deg, var(--mint), #27CDAD); color: #fff; box-shadow: 0 8px 20px rgba(25,184,154,.28); }
.btn-ghost { background: var(--glass-2); color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-soft { background: var(--accent-soft); color: var(--accent-ink); }
.btn-sm { padding: 7px 12px; min-height: 36px; font-size: .82rem; border-radius: 10px; }
.btn-lg { padding: 14px 24px; font-size: 1rem; min-height: 52px; border-radius: 15px; }
.btn-block { width: 100%; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; display: none; }
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- badges & alerts */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; letter-spacing: .01em; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok { background: var(--mint-soft); color: #128C75; }
.badge-wait { background: var(--amber-soft); color: #B4731A; }
.badge-info { background: var(--accent-soft); color: var(--accent-ink); }
.badge-warn { background: rgba(244,140,80,.16); color: #C2591C; }
.badge-bad { background: var(--red-soft); color: #C0393E; }
.badge-muted { background: rgba(27,36,55,.08); color: var(--ink-2); }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 14px; border: 1px solid transparent; }
.alert .ic { flex: none; margin-top: 1px; }
.alert-info { background: var(--accent-soft); color: var(--accent-ink); }
.alert-ok { background: var(--mint-soft); color: #128C75; }
.alert-warn { background: var(--amber-soft); color: #9A6112; }
.alert-bad { background: var(--red-soft); color: #C0393E; }

/* ---------------- tabs / filters */
.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: rgba(27,36,55,.06); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { flex: none; padding: 9px 14px; border-radius: 10px; font-weight: 700; font-size: .86rem; color: var(--ink-2); border: 0; background: transparent; cursor: pointer; font-family: inherit; }
.tabs a.active, .tabs button.active { background: #fff; color: var(--ink); box-shadow: 0 4px 12px rgba(27,36,55,.1); }
.tabs a:hover { text-decoration: none; }
.search { display: flex; gap: 8px; }
.search .input { min-height: 44px; }

/* ---------------- tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-sm); }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: rgba(255,255,255,.35); }
.table .r { text-align: right; }
.kv { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 8px 14px; font-size: .9rem; }
.kv dt { color: var(--ink-3); font-weight: 600; margin: 0; } .kv dd { margin: 0; font-weight: 600; word-break: break-word; white-space: pre-wrap; }

/* ---------------- list cards (orders etc.) */
.item { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--glass-2); border: 1px solid #fff; margin-bottom: 10px; }
.item-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.item-title { font-weight: 800; display: flex; align-items: center; gap: 8px; min-width: 0; }
.item-title .id { color: var(--accent-ink); }
.item-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--ink-3); margin-top: 6px; }
.item-meta b { color: var(--ink-2); }
.item-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.link-text { word-break: break-all; color: var(--ink-2); font-size: .85rem; }

/* ---------------- pagination */
.pager { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; height: 38px; padding: 0 10px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .86rem; background: var(--glass-2); color: var(--ink-2); border: 1px solid var(--line); }
.pager a:hover { text-decoration: none; background: #fff; }
.pager .cur { background: var(--accent); color: #fff; border-color: transparent; }

/* ---------------- toasts */
.toasts { position: fixed; top: 14px; right: 14px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: min(92vw, 380px); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(27,36,55,.92); color: #fff; box-shadow: var(--shadow-2); font-size: .9rem; font-weight: 600; animation: toast-in .25s ease; backdrop-filter: blur(10px); }
.toast.ok { background: rgba(18,140,117,.95); } .toast.bad { background: rgba(192,57,62,.95); } .toast.info { background: rgba(31,79,209,.95); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------------- sheet & modal */
.sheet-backdrop, .modal-backdrop { position: fixed; inset: 0; background: rgba(27,36,55,.45); backdrop-filter: blur(4px); z-index: 150; opacity: 0; pointer-events: none; transition: opacity .25s; }
.sheet-backdrop.open, .modal-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; left: 50%; bottom: 0; transform: translate(-50%, 110%); width: min(100%, 560px); z-index: 160; background: var(--glass-2); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-radius: 24px 24px 0 0; padding: 14px 20px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(27,36,55,.2); transition: transform .32s cubic-bezier(.2,.8,.2,1); max-height: 88vh; overflow-y: auto; }
.sheet.open { transform: translate(-50%, 0); visibility: visible; }
.sheet { visibility: hidden; transition: transform .32s cubic-bezier(.2,.8,.2,1), visibility 0s linear .32s; }
.sheet.open { transition: transform .32s cubic-bezier(.2,.8,.2,1), visibility 0s; }
.sheet .grip { width: 44px; height: 5px; border-radius: 3px; background: rgba(27,36,55,.18); margin: 0 auto 14px; }
.modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -46%); width: min(94vw, 560px); max-height: 88vh; overflow-y: auto; z-index: 160; background: var(--glass-2); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-radius: 22px; padding: 20px; box-shadow: var(--shadow-2); opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s; }
.modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.modal-head h3 { margin: 0; }

/* ---------------- hourglass (buyurtma qabul qilinmoqda) */
.hourglass-wrap { display: grid; place-items: center; margin: 10px auto 18px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), rgba(255,255,255,.4)); box-shadow: 0 16px 40px rgba(47,107,255,.18), inset 0 0 0 1px #fff; }
.hourglass { width: 54px; height: 54px; color: var(--accent-ink); animation: hg-flip 2.2s cubic-bezier(.65,0,.35,1) infinite; transform-origin: center; }
.hourglass .ic-a { stroke: var(--mint); }
@keyframes hg-flip { 0%, 72% { transform: rotate(0); } 100% { transform: rotate(180deg); } }
.steps { display: flex; flex-direction: column; gap: 8px; max-width: 360px; margin: 0 auto; text-align: left; }
.step { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 11px; background: rgba(255,255,255,.55); color: var(--ink-3); font-weight: 600; font-size: .88rem; transition: color .3s, background .3s; }
.step .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; flex: none; }
.step.doing { color: var(--ink); background: #fff; } .step.doing .dot { border-color: var(--accent); border-top-color: transparent; animation: spin 1s linear infinite; }
.step.done { color: var(--ink); } .step.done .dot { background: var(--mint); border-color: var(--mint); color: #fff; }
.result-icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 6px auto 14px; }
.result-icon.ok { background: var(--mint-soft); color: var(--mint); } .result-icon.bad { background: var(--red-soft); color: var(--red); }
.result-icon .ic { width: 44px; height: 44px; }
.pop { animation: pop .45s cubic-bezier(.2,.9,.3,1.4); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------------- service cards */
.svc { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--radius-sm); background: var(--glass-2); border: 1px solid #fff; margin-bottom: 10px; }
.svc .thumb { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); display: grid; place-items: center; overflow: hidden; flex: none; color: var(--accent-ink); }
.svc .thumb img { width: 100%; height: 100%; object-fit: cover; }
.svc .body { flex: 1; min-width: 0; }
.svc .name { font-weight: 800; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.svc .name .id { color: var(--accent-ink); font-weight: 800; }
.svc .facts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; font-size: .8rem; color: var(--ink-3); }
.svc .price { font-weight: 800; color: var(--ink); font-size: .95rem; }
.svc-desc { font-size: .84rem; color: var(--ink-2); margin-top: 6px; white-space: pre-line; display: none; }
.svc.open .svc-desc { display: block; }
.cat-title { display: flex; align-items: center; gap: 10px; margin: 20px 0 10px; font-size: 1.05rem; }
.cat-title .thumb { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; overflow: hidden; color: var(--accent-ink); }
.cat-title .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- captcha */
.captcha { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 13px; border: 1px solid var(--line-2); background: rgba(255,255,255,.75); cursor: pointer; user-select: none; transition: border-color .2s, background .2s; }
.captcha .box { width: 26px; height: 26px; border-radius: 7px; border: 2px solid var(--line-2); background: #fff; display: grid; place-items: center; flex: none; position: relative; }
.captcha .box .sp { width: 18px; height: 18px; border: 2px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; display: none; }
.captcha .box .ok { display: none; color: var(--mint); }
.captcha.checking .box .sp { display: block; }
.captcha.passed { border-color: var(--mint); background: var(--mint-soft); }
.captcha.passed .box { border-color: var(--mint); } .captcha.passed .box .ok { display: block; }
.captcha.failed { border-color: var(--red); }
.captcha .txt { font-weight: 700; color: var(--ink-2); flex: 1; }
.captcha .logo { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .58rem; color: var(--ink-3); font-weight: 700; letter-spacing: .04em; }

/* ---------------- auth */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 26px 16px calc(26px + env(safe-area-inset-bottom)); }
.auth-card { width: min(100%, 440px); padding: 28px 26px; }
.auth-card .brand { justify-content: center; padding-bottom: 10px; }
.auth-title { text-align: center; margin-bottom: 18px; }
.auth-title p { color: var(--ink-3); font-size: .9rem; }
.auth-foot { text-align: center; margin-top: 16px; font-size: .9rem; color: var(--ink-2); }
.lang-row { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.lang-row a { padding: 6px 12px; border-radius: 10px; background: var(--glass-2); font-weight: 700; font-size: .8rem; color: var(--ink-2); }
.lang-row a.active { background: var(--accent); color: #fff; }
.lang-row a:hover { text-decoration: none; }
.tg-btn { background: linear-gradient(135deg, #2AABEE, #229ED9); color: #fff; box-shadow: 0 8px 20px rgba(42,171,238,.32); }

/* ---------------- landing */
.hero { text-align: center; padding: 30px 10px 10px; }
.hero h1 { font-size: 2rem; letter-spacing: -.02em; }
.hero p { color: var(--ink-2); max-width: 560px; margin: 0 auto 18px; }
.hero .row { justify-content: center; }
.features { margin-top: 24px; }
.feature { padding: 18px; border-radius: var(--radius-sm); background: var(--glass-2); border: 1px solid #fff; }
.feature .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 10px; }
.feature b { display: block; margin-bottom: 4px; } .feature span { font-size: .86rem; color: var(--ink-2); }

/* ---------------- misc */
.progress { height: 10px; border-radius: 5px; background: rgba(27,36,55,.1); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--accent), var(--mint)); transition: width .6s; }
.tier { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--glass-2); border: 1px solid #fff; margin-bottom: 8px; }
.tier.reached { border-color: var(--mint); background: var(--mint-soft); }
.tier .pct { margin-left: auto; font-weight: 800; font-size: 1.1rem; color: var(--accent-ink); }
.tier.reached .pct { color: #128C75; }
.chat { display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: min(78%, 560px); width: fit-content; padding: 8px 12px; border-radius: 14px; font-size: .9rem; line-height: 1.4; background: var(--glass-2); border: 1px solid #fff; word-break: break-word; }
.msg .txt { white-space: pre-wrap; }
.msg.me { margin-left: auto; background: var(--accent-soft); border-color: transparent; border-bottom-right-radius: 5px; }
.msg.admin { margin-right: auto; border-bottom-left-radius: 5px; }
.msg .who { font-size: .68rem; font-weight: 800; color: var(--ink-3); margin-bottom: 2px; display: flex; justify-content: space-between; gap: 14px; }
.msg .file { display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; font-weight: 700; font-size: .82rem; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .84rem; background: rgba(27,36,55,.06); border-radius: 10px; padding: 12px 14px; overflow-x: auto; white-space: pre; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.copy-field { display: flex; gap: 8px; }
.copy-field .input { font-family: ui-monospace, monospace; font-size: .86rem; }
.notice { font-size: .84rem; color: var(--ink-2); background: var(--glass-2); padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid #fff; }
.upd-table .arrow { color: var(--ink-3); }
.upd-table .old { text-decoration: line-through; color: var(--ink-3); } .upd-table .new { font-weight: 800; color: var(--accent-ink); }
.notif { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--glass-2); border: 1px solid #fff; margin-bottom: 8px; }
.notif.unread { border-color: var(--accent-2); }
.notif .ico { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.terms-sec { margin-bottom: 16px; } .terms-sec h3 { display: flex; gap: 8px; align-items: center; } .terms-sec p { color: var(--ink-2); font-size: .92rem; }
.err-page { text-align: center; padding: 60px 16px; } .err-page h1 { font-size: 4rem; color: var(--accent-ink); margin: 0; }
.tg-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.num { font-variant-numeric: tabular-nums; }

/* ---------------- responsive */
@media (max-width: 1023px) {
  .side { transform: translateX(-105%); width: min(86vw, 320px); box-shadow: var(--shadow-2); }
  body.drawer-open .side { transform: none; }
  .drawer-backdrop { display: block; position: fixed; inset: 0; background: rgba(27,36,55,.4); z-index: 29; opacity: 0; pointer-events: none; transition: opacity .25s; }
  body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
  .main { margin-left: 0; padding-bottom: calc(var(--bottom-nav) + env(safe-area-inset-bottom)); }
  .topbar { padding: 0 14px; height: 60px; }
  .content { padding: 16px 14px 24px; }
  .bnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--bottom-nav) + env(safe-area-inset-bottom)); padding: 6px 4px env(safe-area-inset-bottom); background: var(--glass-2); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid #fff; }
  .bnav a { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink-3); font-size: .64rem; font-weight: 700; border-radius: 12px; position: relative; padding: 0 2px; }
  .bnav a span:not(.cnt) { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.1; }
  .bnav a .ic { width: 22px; height: 22px; flex: none; }
  .bnav a.active { color: var(--accent-ink); } .bnav a:hover { text-decoration: none; }
  .bnav a .cnt { position: absolute; top: 2px; right: calc(50% - 20px); min-width: 16px; height: 16px; border-radius: 8px; background: var(--red); color: #fff; font-size: .6rem; display: grid; place-items: center; padding: 0 4px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hide-m { display: none !important; }
  .card { padding: 16px; }
  .chip.balance small { display: none; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .grid[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; }
  .stat-grid.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .stat-grid .card { padding: 10px 8px; }
  .stat-grid .stat { flex-direction: column; align-items: flex-start; gap: 6px; padding: 0; background: transparent; border: 0; }
  .stat-grid .stat .ico { width: 30px; height: 30px; border-radius: 9px; } .stat-grid .stat .ico .ic { width: 16px; height: 16px; }
  .stat-grid .stat b { font-size: .92rem; } .stat-grid .stat span { font-size: .66rem; line-height: 1.2; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dd { margin-bottom: 8px; }
  .hero h1 { font-size: 1.6rem; }
  .topbar .page-title { font-size: 1rem; }
  .table-cards .table thead { display: none; }
  .table-cards .table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .table-cards .table td { display: flex; justify-content: space-between; gap: 10px; padding: 5px 4px; border: 0; text-align: right; }
  .table-cards .table td::before { content: attr(data-l); color: var(--ink-3); font-weight: 700; font-size: .76rem; text-align: left; }
  .btn-lg { padding: 13px 18px; }
  .search { flex-direction: column; }
}
@media (min-width: 1024px) { .hide-d { display: none !important; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }


/* ============================================================
   v2.1 — ochiq sahifa qolipi, bosh sahifa, ixcham ro'yxatlar, fab
   ============================================================ */
/* ---------- public shell */
body.public { display: flex; flex-direction: column; min-height: 100vh; }
.pub-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.pub-header { position: sticky; top: 0; z-index: 25; background: var(--glass-3); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--glass-2); }
.pub-header .pub-wrap { height: var(--top); display: flex; align-items: center; gap: 14px; }
.pub-header .brand { padding: 0; font-size: 1.1rem; margin-right: 6px; }
.pub-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.pub-nav { display: flex; gap: 2px; margin-right: 6px; }
.pub-lang { flex: none; }
.pub-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 11px; color: var(--ink-2); font-weight: 700; font-size: .9rem; }
.pub-nav a:hover { background: var(--glass-2); color: var(--ink); text-decoration: none; }
.pub-nav a.active { background: var(--accent-soft); color: var(--accent-ink); }
.pub-main { flex: 1; }
.pub-page { padding: 22px 22px 30px; }
.pub-drawer { display: none; }
.pub-footer { background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--glass-2); padding: 12px 0; margin-top: 24px; }
.pub-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pub-foot .brand { padding: 0; font-size: .95rem; gap: 8px; }
.pub-foot .brand-mark { width: 28px; height: 28px; border-radius: 9px; }
.pub-foot-links { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; }
.pub-foot-links a { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); font-weight: 600; font-size: .8rem; }
.pub-foot-right { margin-left: auto; display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: .76rem; font-weight: 600; }
.pub-foot-right .btn-sm { min-height: 28px; padding: 4px 8px; font-size: .72rem; }
.drawer-langs { display: none; }

/* ---------- auth on public shell */
.auth-wrap { min-height: auto; padding: 40px 16px 50px; }
.auth-card { width: min(100%, 520px); padding: 30px 32px; }
.auth-card.auth-wide { width: min(100%, 640px); }

/* ---------- landing */
.hero-x { padding: 64px 0 40px; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--glass-2); border: 1px solid #fff; font-weight: 700; font-size: .8rem; color: var(--accent-ink); margin-bottom: 18px; }
.hero-x h1 { font-size: 2.7rem; letter-spacing: -.02em; max-width: 760px; margin: 0 auto .6rem; line-height: 1.12; }
.hero-x .lead { color: var(--ink-2); font-size: 1.08rem; max-width: 620px; margin: 0 auto 22px; }
.hero-cta { justify-content: center; }
.trust-row { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.trust-row span { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: .84rem; font-weight: 600; }
.stats-x { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 900px; margin: 34px auto 0; }
.stat-x { padding: 18px 12px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-2); box-shadow: var(--shadow); }
.stat-x b { display: block; font-size: 1.6rem; letter-spacing: -.02em; color: var(--accent-ink); }
.stat-x span { color: var(--ink-3); font-size: .82rem; font-weight: 600; }
.sec { padding: 34px 0; }
.sec-alt { background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0)); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 26px; }
.sec-head h2 { font-size: 1.7rem; letter-spacing: -.02em; }
.sec-head p { color: var(--ink-2); }
.feat-grid .feature { background: var(--glass); backdrop-filter: blur(18px); box-shadow: var(--shadow); border-color: var(--glass-2); }
.feature .ico.mint { background: var(--mint-soft); color: var(--mint); } .feature .ico.amber { background: var(--amber-soft); color: var(--amber); }
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-x { position: relative; padding: 24px 20px 20px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-2); box-shadow: var(--shadow); }
.step-x .num { position: absolute; top: 14px; right: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .85rem; }
.step-x .ico { width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 12px; }
.step-x b { display: block; margin-bottom: 4px; font-size: 1rem; } .step-x span { color: var(--ink-2); font-size: .88rem; }
.plat { position: relative; }
.plat-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 4px 10px; }
.plat-track::-webkit-scrollbar { display: none; }
.plat-card { flex: 0 0 132px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 10px 14px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-2); box-shadow: var(--shadow); font-weight: 700; font-size: .84rem; color: var(--ink-2); text-align: center; }
.plat-card .pl { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: #fff; box-shadow: 0 8px 18px rgba(27,36,55,.14); }
.plat-card .pl svg { width: 28px; height: 28px; display: block; }
.plat-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 6px; }
.testi { position: relative; }
.testi-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px; }
.testi-track::-webkit-scrollbar { display: none; }
.testi-card { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; padding: 22px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-2); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.testi-quote { color: var(--accent); opacity: .6; margin-bottom: 6px; }
.testi-stars { display: flex; gap: 2px; color: var(--amber); margin-bottom: 10px; }
.testi-card p { color: var(--ink-2); font-size: .92rem; flex: 1; }
.testi-who { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.testi-who .avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--mint)); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .85rem; flex: none; }
.testi-who b { display: block; font-size: .9rem; } .testi-who small { color: var(--ink-3); font-size: .76rem; }
.testi-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; }
.testi-dots { display: flex; gap: 6px; }
.testi-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(27,36,55,.18); transition: background .2s, width .2s; }
.testi-dots i.on { background: var(--accent); width: 20px; border-radius: 4px; }
.review-cta { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-2); box-shadow: var(--shadow); flex-wrap: wrap; }
.review-cta-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.review-cta > div:not(.review-cta-ico) { flex: 1; min-width: 200px; }
.review-cta b { display: block; font-size: 1rem; } .review-cta span { color: var(--ink-2); font-size: .88rem; }
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border-radius: var(--radius-sm); background: var(--glass); border: 1px solid var(--glass-2); margin-bottom: 8px; padding: 0 16px; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0; font-weight: 700; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ic { color: var(--ink-3); transition: transform .2s; flex: none; }
.faq-item[open] .faq-ic { transform: rotate(180deg); }
.faq-body { color: var(--ink-2); font-size: .92rem; padding: 0 0 14px; }
.cta-x { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 30px 32px; border-radius: 24px; background: linear-gradient(135deg, rgba(47,107,255,.16), rgba(25,184,154,.16)); border: 1px solid #fff; box-shadow: var(--shadow); flex-wrap: wrap; }
.cta-x h2 { font-size: 1.5rem; margin-bottom: 4px; } .cta-x p { margin: 0; color: var(--ink-2); }

/* ---------- services: compact rows + collapsible categories */
.cat-block { margin-top: 14px; }
.cat-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #fff; border-radius: 13px; background: var(--glass-2); cursor: pointer; font: inherit; font-weight: 800; color: var(--ink); text-align: left; }
.cat-head .thumb { width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); display: grid; place-items: center; overflow: hidden; color: var(--accent-ink); flex: none; }
.cat-head .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-head .cat-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-head .cat-chev { color: var(--ink-3); transition: transform .2s; }
.cat-block.collapsed .cat-chev { transform: rotate(-90deg); }
.cat-block.collapsed .cat-body { display: none; }
.cat-body { padding: 6px 0 0; }
.svc-head { display: grid; grid-template-columns: 56px minmax(0, 1fr) 150px 150px 190px; gap: 10px; padding: 6px 12px 4px; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 800; }
.svc-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 150px 150px 190px; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 11px; border: 1px solid transparent; }
.svc-row:hover { background: rgba(255,255,255,.55); border-color: #fff; }
.svc-row + .svc-row { border-top-color: var(--line); border-radius: 0; }
.svc-row:hover + .svc-row { border-top-color: transparent; }
.svc-main { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.svc-id { color: var(--accent-ink); font-weight: 800; white-space: nowrap; }
.svc-main .svc-name { font-weight: 700; min-width: 0; }
.svc-type { font-size: .66rem; padding: 3px 8px; }
.svc-price { font-weight: 800; text-align: right; white-space: nowrap; }
.svc-lim { text-align: right; font-size: .86rem; color: var(--ink-2); white-space: nowrap; }
.svc-act { display: flex; justify-content: flex-end; gap: 6px; }
.svc-desc-modal { white-space: pre-line; font-size: .9rem; color: var(--ink-2); background: var(--glass-2); border-radius: 10px; padding: 10px 12px; }
@media (min-width: 1024px) and (max-width: 1279px) {
  /* kichik noutbuk: ustunlar ixcham, xizmat nomi bir qatorda; tur/refill belgilari «Ma'lumot» oynasida */
  .svc-head, .svc-row { grid-template-columns: 44px minmax(0, 1fr) 120px 120px 170px; gap: 8px; }
  .svc-main { flex-wrap: nowrap; } .svc-main .svc-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .svc-main .svc-type { display: none; }
}
.r { text-align: right; }

/* ---------- orders: jadval (ID | Xizmat nomi | Holati | Ma'lumoti); telefonda gorizontal suriladi */
.ord-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; border-radius: var(--radius-sm); }
.ord-table { width: 100%; min-width: 560px; border-collapse: collapse; table-layout: auto; font-size: .84rem; }
.ord-table th { text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 800; padding: 6px 10px 6px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.ord-table td { padding: 6px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ord-table tbody tr:last-child td { border-bottom: 0; }
.ord-table tbody tr:hover td { background: rgba(255,255,255,.55); }
.ord-table .c-id { width: 1%; white-space: nowrap; color: var(--accent-ink); font-weight: 800; }
.ord-table .c-name { min-width: 220px; }
.ord-table .c-name .nm { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 520px; }
.ord-table .c-status { width: 1%; white-space: nowrap; text-align: right; }
.ord-table .c-status .badge { display: inline-flex; }
.ord-table .c-act { width: 1%; white-space: nowrap; text-align: right; }
.ord-table th.c-status, .ord-table th.c-act { text-align: right; }
.ord-act { display: inline-flex; gap: 6px; }
.ord-act .btn-sm { min-height: 32px; padding: 5px 10px; font-size: .78rem; white-space: nowrap; }
.upd-table .c-chg, .upd-table .c-val, .upd-table .c-date { width: 1%; white-space: nowrap; }
.upd-table .c-chg .badge { display: inline-flex; }
.upd-table .c-date { color: var(--ink-3); font-size: .78rem; }
.upd-table .c-name .nm { max-width: 420px; }
.upd-table th.c-chg, .upd-table th.c-val, .upd-table th.c-date { text-align: left; }

/* ---------- order page */
.order-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.charge-box { padding: 14px 16px; border-radius: 14px; background: var(--glass-2); border: 1px solid #fff; }
#charge { font-size: 1.2rem; color: var(--accent-ink); }
/* kategoriya tanlagich (icon bilan) */
.cat-picker { position: relative; }
.cat-btn { width: 100%; display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 13px; background: rgba(255,255,255,.75); font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; text-align: left; transition: border-color .18s, box-shadow .18s; }
.cat-btn:focus, .cat-picker.open .cat-btn { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 4px var(--accent-soft); background: #fff; }
.cat-btn .thumb, .cat-opt .thumb { width: 22px; height: 22px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; overflow: hidden; flex: none; }
.cat-btn .thumb .ic, .cat-opt .thumb .ic { width: 13px; height: 13px; }
.cat-btn .thumb img, .cat-opt .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-btn .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cat-btn .chev { color: var(--ink-3); transition: transform .2s; display: flex; }
.cat-picker.open .cat-btn .chev { transform: rotate(180deg); }
.cat-menu { position: absolute; left: 0; right: 0; top: 100%; z-index: 45; margin-top: 4px; background: #fff; border: 1px solid var(--line-2); border-radius: 13px; box-shadow: var(--shadow-2); max-height: 300px; overflow-y: auto; padding: 4px; }
.cat-opt { width: 100%; display: flex; align-items: center; gap: 9px; padding: 7px 10px; border: 0; background: transparent; border-radius: 9px; cursor: pointer; font: inherit; font-size: .88rem; font-weight: 600; color: var(--ink); text-align: left; }
.cat-opt:hover { background: var(--accent-soft); }
.cat-opt .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-opt .ok { color: var(--mint); display: none; } .cat-opt.selected .ok { display: flex; } .cat-opt.selected { background: var(--mint-soft); }
.svc-search { position: relative; }
.svc-search .search-ic { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search-drop { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; margin-top: 4px; background: #fff; border: 1px solid var(--line-2); border-radius: 13px; box-shadow: var(--shadow-2); max-height: 300px; overflow-y: auto; padding: 4px; }
.search-item { width: 100%; display: grid; grid-template-columns: 52px 1fr auto; gap: 8px; align-items: center; padding: 9px 10px; border: 0; background: transparent; border-radius: 9px; cursor: pointer; font: inherit; text-align: left; }
.search-item:hover { background: var(--accent-soft); }
.search-item .id { color: var(--accent-ink); font-weight: 800; font-size: .82rem; } .search-item .nm { font-weight: 600; font-size: .88rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .search-item .pr { font-weight: 700; font-size: .8rem; color: var(--ink-2); white-space: nowrap; }
.search-empty { padding: 10px 12px; color: var(--ink-3); font-size: .86rem; }
.svc-facts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.svc-facts-grid div { padding: 8px 10px; border-radius: 10px; background: var(--glass-2); border: 1px solid #fff; }
.svc-facts-grid small { display: block; color: var(--ink-3); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.svc-facts-grid b { font-size: .9rem; }

/* ---------- earn: bonus rows */
.bonus-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.bonus-row:last-child { border-bottom: 0; }
.bonus-row .who { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bonus-row .amt { font-weight: 800; color: #128C75; white-space: nowrap; }
.bonus-row .pct { color: var(--ink-3); font-weight: 700; white-space: nowrap; }
.bonus-row .when { grid-column: 1 / -1; color: var(--ink-3); font-size: .74rem; }

/* ---------- profile */
.grid-side { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.kv-wide { grid-template-columns: 150px 1fr; }
.login-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .84rem; }
.login-row:last-child { border-bottom: 0; }
.login-row .dev { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .login-row { grid-template-columns: 1fr auto; } .login-row .muted { grid-column: 1 / -1; font-size: .76rem; } }
.switch-list { display: flex; flex-direction: column; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); cursor: pointer; font-weight: 600; font-size: .92rem; }
.switch-row:last-child { border-bottom: 0; }
.switch-row .switch { flex: none; }
.prof-tabs { display: inline-flex; }

/* ---------- updates */

/* ---------- announcements */
.ann { display: flex; gap: 14px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--glass-2); border: 1px solid #fff; margin-bottom: 10px; border-left: 4px solid var(--accent); }
.ann-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent-ink); overflow: hidden; }
.ann-ico img { width: 100%; height: 100%; object-fit: cover; }
.ann-ok { border-left-color: var(--mint); } .ann-ok .ann-ico { background: var(--mint-soft); color: #128C75; }
.ann-warn { border-left-color: var(--amber); } .ann-warn .ann-ico { background: var(--amber-soft); color: #9A6112; }
.ann-bad { border-left-color: var(--red); } .ann-bad .ann-ico { background: var(--red-soft); color: #C0393E; }
.ann-new { box-shadow: 0 0 0 2px var(--accent-soft); }
.ann-body { flex: 1; min-width: 0; }
.ann-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 1rem; }
.ann-text { white-space: pre-line; color: var(--ink-2); font-size: .92rem; margin-top: 4px; }
.ann-date { color: var(--ink-3); font-size: .76rem; margin-top: 6px; display: flex; align-items: center; gap: 4px; }

/* ---------- API docs */
.api-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.api-toc { position: sticky; top: calc(var(--top) + 16px); padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.api-toc a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 9px; font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.api-toc a:hover { background: var(--glass-2); text-decoration: none; color: var(--ink); }
.api-sec { scroll-margin-top: calc(var(--top) + 12px); }
.api-main { min-width: 0; }
.api-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.api-two > div { min-width: 0; }
.api-table td { padding: 8px 10px; font-size: .88rem; } .api-table td.mono { width: 130px; color: var(--accent-ink); font-weight: 700; }
.api-notes div { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; color: var(--ink-2); padding: 4px 0; }
.api-notes .ic { color: var(--mint); margin-top: 3px; }
.err-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.err-list div { padding: 10px 12px; border-radius: 10px; background: var(--red-soft); font-size: .84rem; color: #C0393E; font-family: ui-monospace, monospace; }
.code { line-height: 1.5; max-width: 100%; }
.copy-field { min-width: 0; } .copy-field .input { min-width: 0; }

/* ---------- floating support button */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 120; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab-btn { width: 52px; height: 52px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--accent), var(--mint)); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px rgba(47,107,255,.35); transition: transform .15s; }
.fab-btn:hover { transform: translateY(-2px); }
.fab-btn .ic .ic-a { stroke: #fff; opacity: .8; }
.fab-menu { display: none; flex-direction: column; gap: 4px; width: 230px; padding: 10px; border-radius: 16px; background: var(--glass-2); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid #fff; box-shadow: var(--shadow-2); animation: pop .25s ease; }
.fab.open .fab-menu { display: flex; }
.fab-title { display: flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: 4px 6px 6px; }
.fab-menu a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 11px; color: var(--ink); font-weight: 700; font-size: .9rem; }
.fab-menu a:hover { background: #fff; text-decoration: none; }
.fab-menu a small { display: block; font-weight: 600; color: var(--ink-3); font-size: .74rem; }
.fab-ic { width: 36px; height: 36px; border-radius: 10px; background: rgba(42,171,238,.16); color: #229ED9; display: grid; place-items: center; flex: none; }
.fab-ic.admin { background: var(--mint-soft); color: #128C75; }

/* ---------- responsive (v2.1) */
@media (max-width: 1023px) {
  body.public .pub-drawer { display: flex; }
  .pub-footer { display: none; }
  .pub-lang { display: none; }
  .drawer-langs { display: flex; align-items: center; gap: 6px; padding: 4px 8px 10px; }
  .drawer-langs .lbl { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); font-weight: 800; margin-right: 4px; }
  .pub-header .pub-right .btn { flex: none; }
  .pub-wrap { padding: 0 14px; }
  .pub-page { padding: 16px 14px 24px; }
  .pub-header .pub-wrap { height: 60px; gap: 8px; }
  .pub-header .brand { white-space: nowrap; font-size: 1rem; gap: 8px; }
  .pub-header .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
  .pub-header .pill-select { padding: 6px 24px 6px 10px; font-size: .78rem; background-position: right 8px center; }
  .pub-main { padding-bottom: calc(var(--bottom-nav) + env(safe-area-inset-bottom)); }
  .pub-footer { margin-bottom: 0; }
  .pub-foot-grid { grid-template-columns: 1fr; gap: 18px; }
  .hero-x { padding: 36px 0 20px; } .hero-x h1 { font-size: 1.8rem; }
  .stats-x { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .steps-row { grid-template-columns: 1fr; }
  .testi-card { flex-basis: calc(100% - 8px); }
  .cta-x { padding: 22px 18px; }
  .order-grid, .grid-side, .api-two { grid-template-columns: 1fr; }
  .api-layout { grid-template-columns: minmax(0, 1fr); } .api-toc { display: none; }
  .api-main { min-width: 0; } .api-two > div { min-width: 0; } .api-table td.mono { width: 96px; word-break: break-all; }
  .api-table { table-layout: fixed; } .api-table td { word-break: break-word; }
  /* xizmatlar jadvali telefonda ham kompyuterdagidek bir qator: chapdan o'ngga suriladi (kategoriya sarlavhasi joyida qoladi) */
  .cat-body { position: relative; }
  .cat-body::before, .cat-body::after { content: ""; position: absolute; top: 0; bottom: 0; width: 26px; pointer-events: none; z-index: 1; transition: opacity .2s; }
  .cat-body::before { left: -16px; background: linear-gradient(to right, rgba(120,140,190,.16), rgba(120,140,190,0)); }
  .cat-body::after { right: -16px; background: linear-gradient(to left, rgba(120,140,190,.16), rgba(120,140,190,0)); }
  .cat-body.at-start::before, .cat-body.at-end::after { opacity: 0; }
  .svc-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; margin: 0 -16px; padding: 0 16px; }
  .svc-head, .svc-row { min-width: 940px; grid-template-columns: 48px minmax(0, 1fr) 110px 130px 190px; }
  .svc-row { padding: 8px 10px; }
  .svc-main { flex-wrap: nowrap; }
  .svc-main .svc-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .svc-main .svc-type { flex: none; }
  /* buyurtmalar jadvali telefonda ham kompyuterdagidek bir qator: chapdan o'ngga surib ko'riladi */
  .ord-wrap { position: relative; }
  .ord-wrap::before, .ord-wrap::after { content: ""; position: absolute; top: 0; bottom: 0; width: 26px; pointer-events: none; z-index: 1; transition: opacity .2s; }
  .ord-wrap::before { left: -16px; background: linear-gradient(to right, rgba(120,140,190,.16), rgba(120,140,190,0)); }
  .ord-wrap::after { right: -16px; background: linear-gradient(to left, rgba(120,140,190,.16), rgba(120,140,190,0)); }
  .ord-wrap.at-start::before, .ord-wrap.at-end::after { opacity: 0; }
  .ord-scroll { margin: 0 -16px; padding: 0 16px; border-radius: 0; }
  .ord-table { min-width: 620px; }
  .upd-table { min-width: 800px; }
  .upd-table .c-name .nm { max-width: 260px; }
  .ord-table .c-name .nm { max-width: 280px; }
  .fab { right: 12px; bottom: calc(var(--bottom-nav) + env(safe-area-inset-bottom) + 12px); }
  .fab-btn { width: 46px; height: 46px; }
  .err-list { grid-template-columns: 1fr; }
  .kv-wide { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .auth-card, .auth-card.auth-wide { padding: 22px 18px; }
  .stats-x { gap: 8px; } .stat-x b { font-size: 1.25rem; }
  .svc-facts-grid { grid-template-columns: 1fr 1fr; }
  .prof-tabs { display: flex; } .prof-tabs a { flex: 1; text-align: center; padding: 9px 6px; font-size: .8rem; }
}
