/* ==========================================================================
   Dizayn tizimi
   Qorong'i asos, shaffof oq chegaralar, yirik tipografika.
   Ranglar kam va aniq joyda ishlatiladi.
   ========================================================================== */

:root {
    color-scheme: dark;

    --bg:        #131315;
    --bg-2:      #0e0e10;
    --card:      #18181a;
    --card-2:    #1a1a1d;
    --raised:    #202024;

    --line:      #ffffff14;
    --line-2:    #ffffff24;
    --fill:      #ffffff0a;
    --fill-2:    #ffffff12;

    --fg:        #ececee;
    --fg-2:      #a1a1a8;
    --fg-3:      #88888e;

    --brand:     #625fff;
    --brand-2:   #7d87ff;
    --brand-3:   #a4b3ff;
    --brand-dim: #625fff26;

    --ok:        #00d294;
    --ok-dim:    #00d29420;
    --warn:      #fcbb00;
    --warn-dim:  #fcbb0020;
    --err:       #ff6b62;
    --err-dim:   #dc262626;

    --btn-fg:    #131315;
    --btn-bg:    #fafafa;

    --r-sm: 6px;
    --r:    8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 24px;

    --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

    --nav-h: 64px;
    --ring: 0 0 0 3px #625fff40;
}

/* Yorug' rejim — foydalanuvchi o'zi tanlaganda */
:root[data-theme="light"] {
    color-scheme: light;

    --bg:        #ffffff;
    --bg-2:      #fafafa;
    --card:      #ffffff;
    --card-2:    #fafafa;
    --raised:    #f4f4f5;

    --line:      #00000014;
    --line-2:    #00000024;
    --fill:      #00000006;
    --fill-2:    #0000000f;

    --fg:        #131315;
    --fg-2:      #52525b;
    --fg-3:      #71717a;

    --brand:     #4f46e5;
    --brand-2:   #4f46e5;
    --brand-3:   #4338ca;
    --brand-dim: #625fff1a;

    --ok:        #00875a;
    --ok-dim:    #00875a14;
    --warn:      #92600b;
    --warn-dim:  #fcbb0022;
    --err:       #d0342c;
    --err-dim:   #dc262614;

    --btn-fg:    #ffffff;
    --btn-bg:    #131315;
}

/* ------------------------------------------------------------------- Base */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: -.006em;
    color: var(--fg);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    margin: 0 0 .4em;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.028em;
    color: var(--fg);
    text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.25rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.5rem, 1.3rem + .9vw, 2rem); letter-spacing: -.032em; }
h3 { font-size: 1.0625rem; }
h4 { font-size: .9375rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-2); text-decoration: none; transition: color .14s ease; }
a:hover { color: var(--brand-3); }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }

::selection { background: var(--brand); color: #fff; }

img, svg { max-width: 100%; height: auto; display: block; }

hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

.num, table.data td, .price, .stat .value, .fact .n { font-variant-numeric: tabular-nums; }

/* ----------------------------------------------------------------- Layout */

.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 22px; }

/* Tor telefonda chekka 44px joy yeydi — matnga o'rin qolmaydi */
@media (max-width: 480px) {
    .container { padding-inline: 16px; }
}
.container-narrow { max-width: 720px; }
.container-form   { max-width: 420px; }

.page { padding-block: 40px 80px; }
.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem); margin-bottom: 8px; }
.page-head .lede { color: var(--fg-2); margin: 0; max-width: 62ch; font-size: 1rem; }

.section { padding-block: clamp(48px, 7vw, 88px); }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }

.cluster { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.between { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }

.eyebrow {
    display: block;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--fg-3);
    margin-bottom: 12px;
}

/* ------------------------------------------------------------------ Pill */

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--fill);
    font-size: .8125rem;
    color: var(--fg-2);
}

.pill .tag {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .01em;
}

.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-left: 6px; }

/* ----------------------------------------------------------------- Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    /* Standart holat — fonli va hairline chegarali. JS ishlamasa ham
       matn shapka ostidan o'qilib turmaydi.
       saturate() olib tashlandi: u brend rangini siljitib, fotosuratsiz
       sahifada g'alati tovlanish berardi. */
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transition: background .2s ease, border-color .2s ease;
}

/* Sahifaning eng tepasida chegara ham, fon ham kerak emas — shapka
   sahifaga qo'shilib ketadi. Bu sinfni JS qo'yadi. */
.site-header.is-top {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
}

.site-header .bar { display: flex; align-items: center; gap: 10px; min-height: var(--nav-h); }

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -.028em;
    color: var(--fg);
    margin-right: 28px;
}
.logo:hover { color: var(--fg); }

.logo-mark {
    width: 25px; height: 25px;
    border-radius: 7px;
    /* Brend rangi — oq emas. Oq faqat asosiy tugmada qoladi, shunda ko'z
       shapkaning o'ng chekkasiga, ya'ni amalga tushadi. */
    background: var(--brand);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: 0;
    flex: none;
}

.nav { display: flex; align-items: center; gap: 1px; margin-right: auto; }

.nav a {
    padding: 7px 13px;
    border-radius: var(--r-sm);
    font-size: .875rem;
    font-weight: 450;
    letter-spacing: -.005em;
    color: var(--fg-3);
    transition: color .14s ease;
}
.nav a:hover { color: var(--fg); }

/* Joriy sahifa — to'q rang bilan belgilanadi. To'ldirilgan tugmacha
   shapkada ortiqcha og'irlik berardi va tugmaga o'xshab ko'rinardi. */
.nav a.active { color: var(--fg); font-weight: 500; }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.link-btn {
    background: none; border: 0; padding: 6px 8px;
    font: inherit; font-size: .875rem;
    color: var(--fg-2); cursor: pointer; border-radius: var(--r-sm);
    transition: color .14s ease, background .14s ease;
}
.link-btn:hover { color: var(--fg); background: var(--fill); }

/* Og'irligi ataylab yuqori: pastdagi .link-btn qoidasi buni bosib ketmasin */
.site-header .nav-toggle { display: none; }

/* --------------------------------------------------------------- Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 17px;
    border: 1px solid transparent;
    border-radius: var(--r);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font: inherit;
    font-size: .875rem;
    font-weight: 550;
    line-height: 1.35;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .14s ease, background .14s ease, border-color .14s ease, transform .14s ease;
}

.btn:hover { opacity: .9; color: var(--btn-fg); }
.btn:active { transform: translateY(.5px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.btn-secondary { background: var(--fill); color: var(--fg); border-color: var(--line-2); }
.btn-secondary:hover { background: var(--fill-2); color: var(--fg); opacity: 1; }

.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-2); color: #fff; opacity: 1; }

.btn-ghost { background: none; color: var(--fg-2); }
.btn-ghost:hover { background: var(--fill); color: var(--fg); opacity: 1; }

.btn-danger { background: var(--err-dim); color: var(--err); border-color: var(--err); }

.btn-sm { padding: 6px 12px; font-size: .8125rem; }
.btn-lg { padding: 12px 22px; font-size: .9375rem; border-radius: var(--r-md); }
.btn-block { width: 100%; }

/* ------------------------------------------------------------------- Hero */

.hero { position: relative; padding-block: clamp(60px, 9vw, 118px) clamp(44px, 6vw, 76px); overflow: hidden; }

.hero::before {
    content: "";
    position: absolute;
    inset: -40% 20% auto -10%;
    height: 520px;
    background: radial-gradient(50% 50% at 50% 50%, var(--brand-dim), transparent 70%);
    pointer-events: none;
}

.hero-inner { position: relative; max-width: 780px; }
.hero h1 { max-width: 15ch; margin-bottom: 20px; }
.hero .lede { font-size: clamp(1rem, .95rem + .35vw, 1.1875rem); color: var(--fg-2); max-width: 50ch; margin-bottom: 28px; }
.hero .pill { margin-bottom: 26px; }

/* --------------------------------------------------------------- Panellar */

.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    overflow: hidden;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
    background: var(--fill);
}
.panel-head h2, .panel-head h3 { margin: 0; font-size: 1rem; }
.panel-body { padding: 22px; }
.panel-body.flush { padding: 0; }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 22px;
}
.card + .card { margin-top: 16px; }

.card-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap; margin-bottom: 18px;
}
.card-head > h2, .card-head > h3 { margin: 0; }

/* --------------------------------------------------------------- Faktlar */

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--card);
}

.facts .fact { padding: 20px 22px; border-right: 1px solid var(--line); }
.facts .fact:last-child { border-right: 0; }
.facts .n { font-size: 1.625rem; font-weight: 600; letter-spacing: -.032em; line-height: 1.1; }
.facts .l { font-size: .8125rem; color: var(--fg-3); margin-top: 4px; }

@media (max-width: 680px) {
    .facts .fact { border-right: 0; border-bottom: 1px solid var(--line); }
    .facts .fact:last-child { border-bottom: 0; }
}

/* ------------------------------------------------------------- Bosqichlar */

.stepped { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stepped > * { background: var(--card); padding: 24px; }

.stepped .n {
    font-family: var(--mono);
    font-size: .75rem;
    color: var(--fg-3);
    letter-spacing: .06em;
    margin-bottom: 12px;
}
.stepped h3 { margin-bottom: 6px; }
.stepped p { color: var(--fg-2); font-size: .875rem; margin: 0; }

@media (min-width: 760px) { .stepped { grid-template-columns: repeat(4, 1fr); } }

/* ------------------------------------------------------------ Narx jadval */

.price-table { width: 100%; border-collapse: collapse; }

.price-table th {
    padding: 13px 18px;
    text-align: left;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--fg-3);
    background: var(--fill);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.price-table td { padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr { transition: background .12s ease; }
.price-table tbody tr:hover { background: var(--fill); }

.price-table th:last-child, .price-table td:last-child { text-align: right; }
.price-table .name { font-weight: 550; }
.price-table .sub { color: var(--fg-3); font-size: .8125rem; }
.price-table .price { font-weight: 600; font-size: 1.0625rem; white-space: nowrap; letter-spacing: -.02em; }
.price-table .price small { font-weight: 400; font-size: .8125rem; color: var(--fg-3); }
.price-table .usd { color: var(--fg-3); font-size: .8125rem; white-space: nowrap; }

/* ---------------------------------------------------------------- Filtrlar */

.filter-row { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-bottom: 22px; }
.filter-row .label { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--fg-3); }

.segmented {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 3px;
    background: var(--fill);
    border: 1px solid var(--line);
    border-radius: var(--r);
}

.segmented a {
    padding: 6px 12px;
    border-radius: var(--r-sm);
    font-size: .8125rem;
    color: var(--fg-2);
    transition: background .14s ease, color .14s ease;
}
.segmented a:hover { color: var(--fg); background: var(--fill); }
.segmented a.on { background: var(--raised); color: var(--fg); font-weight: 520; }

/* ---------------------------------------------------------------- Formalar */

.field { margin-bottom: 16px; }

label { display: block; font-size: .8125rem; font-weight: 500; margin-bottom: 6px; color: var(--fg); }

input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=number], input[type=search], input[type=url], select, textarea {
    width: 100%;
    padding: 10px 13px;
    font: inherit;
    font-size: .9375rem;
    color: var(--fg);
    background: var(--fill);
    border: 1px solid var(--line-2);
    border-radius: var(--r);
    transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
    appearance: none;
}

textarea { min-height: 90px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--fg-3); }
input:hover:not(:disabled), select:hover:not(:disabled), textarea:hover { border-color: var(--fg-3); }

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: var(--ring);
    background: var(--card);
}

input:disabled, select:disabled { opacity: .55; cursor: not-allowed; }

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' fill='none'%3E%3Cpath d='M1 1.3 5.5 5.8 10 1.3' stroke='%2388888e' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    padding-right: 34px;
}

.hint { font-size: .8125rem; color: var(--fg-3); margin-top: 6px; }
.hint.ok  { color: var(--ok); }
.hint.bad { color: var(--err); }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: .8125rem; }
.check input { width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--brand); flex: none; }
.check label { margin: 0; font-weight: 400; color: var(--fg-2); }

/* -------------------------------------------------------------- Xabarlar */

.alert {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--card);
    margin-bottom: 18px;
    font-size: .875rem;
    line-height: 1.55;
}

.alert-icon { display: none; }

.alert-success { border-color: color-mix(in srgb, var(--ok) 35%, transparent);   background: var(--ok-dim);   color: var(--ok); }
.alert-error   { border-color: color-mix(in srgb, var(--err) 35%, transparent);  background: var(--err-dim);  color: var(--err); }
.alert-warning { border-color: color-mix(in srgb, var(--warn) 35%, transparent); background: var(--warn-dim); color: var(--warn); }
.alert-info    { color: var(--fg-2); }

.alert a { color: currentColor; text-decoration: underline; text-underline-offset: 2px; }

/* --------------------------------------------------------------- Badgelar */

.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--fill-2);
    font-size: .75rem;
    font-weight: 500;
    color: var(--fg-2);
    white-space: nowrap;
}

.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge-plain::before { display: none; }

.badge-success { background: var(--ok-dim);   color: var(--ok); }
.badge-warning { background: var(--warn-dim); color: var(--warn); }
.badge-danger  { background: var(--err-dim);  color: var(--err); }
.badge-info    { background: var(--brand-dim); color: var(--brand-2); }

/* -------------------------------------------------------------- Jadvallar */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.panel .table-wrap, .panel-body.flush .table-wrap { border: 0; border-radius: 0; }

table.data { width: 100%; border-collapse: collapse; font-size: .875rem; }

table.data th {
    padding: 12px 16px;
    text-align: left;
    background: var(--fill);
    border-bottom: 1px solid var(--line);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--fg-3);
    white-space: nowrap;
}

table.data td { padding: 13px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background .12s ease; }
table.data tbody tr:hover { background: var(--fill); }
table.data td.wrap { white-space: normal; }
table.data th:last-child, table.data td:last-child { text-align: right; }

/* --------------------------------------------------------------- Sidebar */

.shell { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 32px; align-items: start; }

.sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 20px);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 12px;
}

.sidebar-user { padding: 6px 10px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.sidebar-user .role { font-size: .6875rem; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-3); }
.sidebar-user .name { font-size: .875rem; font-weight: 500; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sidebar nav { display: grid; gap: 2px; }

.sidebar nav a {
    padding: 8px 11px;
    border-radius: var(--r-sm);
    color: var(--fg-2);
    font-size: .875rem;
    transition: background .14s ease, color .14s ease;
}
.sidebar nav a:hover { background: var(--fill); color: var(--fg); }
.sidebar nav a.active { background: var(--fill-2); color: var(--fg); font-weight: 520; }
.sidebar nav a .ico { display: none; }

/* ---------------------------------------------------------------- Statlar */

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--card);
    margin-bottom: 24px;
}

.stat { padding: 18px 20px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .label { font-size: .6875rem; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-3); }
.stat .value { font-size: 1.5rem; font-weight: 600; letter-spacing: -.032em; margin-top: 5px; line-height: 1.15; }
.stat .sub { font-size: .8125rem; color: var(--fg-3); margin-top: 2px; }

@media (max-width: 680px) {
    .stat { border-right: 0; border-bottom: 1px solid var(--line); }
    .stat:last-child { border-bottom: 0; }
}

/* -------------------------------------------------------------------- Dl */

.dl { display: grid; grid-template-columns: minmax(120px, 180px) minmax(0, 1fr); font-size: .875rem; }
.dl dt { color: var(--fg-3); padding: 11px 18px 11px 0; border-bottom: 1px solid var(--line); }
.dl dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); }
.dl dt:last-of-type, .dl dd:last-of-type { border-bottom: 0; }

@media (max-width: 540px) {
    .dl { grid-template-columns: 1fr; }
    .dl dt { padding-bottom: 0; border-bottom: 0; }
}

/* ---------------------------------------------------------- Buyurtma yo'li */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.steps .step { background: var(--card); padding: 14px 16px; font-size: .8125rem; color: var(--fg-3); }
.steps .step .n { font-family: var(--mono); font-size: .6875rem; letter-spacing: .06em; }
.steps .step .t { margin-top: 3px; }
.steps .step.done { color: var(--fg); }
.steps .step.done .n { color: var(--ok); }
.steps .step.done .t { font-weight: 520; }

/* ------------------------------------------------------------------- FAQ */

.faq { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--card); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }

.faq summary {
    padding: 17px 22px;
    cursor: pointer;
    font-weight: 500;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    transition: background .14s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--fill); }
.faq summary::after { content: "+"; font-size: 18px; color: var(--fg-3); font-weight: 400; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 20px; color: var(--fg-2); font-size: .875rem; }

/* ------------------------------------------------------------------ Empty */

.empty { padding: 48px 22px; text-align: center; color: var(--fg-2); }
.empty .art { display: none; }
.empty p { margin-bottom: 16px; }

/* ------------------------------------------------------------- Pagination */

.pagination { display: flex; gap: 4px; margin-top: 20px; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 34px; height: 34px;
    padding-inline: 11px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    font-size: .8125rem;
    color: var(--fg-2);
    background: var(--fill);
}
.pagination a:hover { background: var(--fill-2); color: var(--fg); }
.pagination .current { background: var(--btn-bg); border-color: transparent; color: var(--btn-fg); font-weight: 550; }

/* ----------------------------------------------------------------- Footer */

.site-footer { border-top: 1px solid var(--line); margin-top: 88px; padding-block: 40px 30px; font-size: .875rem; }

.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 32px; }
.footer-grid h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-3); margin-bottom: 12px; font-weight: 500; }
.footer-grid nav { display: grid; gap: 8px; }
.footer-grid nav a, .footer-grid nav span { color: var(--fg-2); font-size: .875rem; }
.footer-grid nav a:hover { color: var(--fg); }

.footer-bottom {
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding-top: 22px; border-top: 1px solid var(--line);
    color: var(--fg-3); font-size: .8125rem;
}

/* ----------------------------------------------------------------- Yordam */

.muted { color: var(--fg-2); }
.dim   { color: var(--fg-3); }
.small { font-size: .8125rem; }
.tiny  { font-size: .75rem; }
.mono  { font-family: var(--mono); font-size: .875em; }
.strong { font-weight: 600; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:36px}
.mb-0{margin-bottom:0}.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}.mb-4{margin-bottom:36px}

/* ------------------------------------------------------------------ Mobil */

@media (max-width: 900px) {
    .shell { grid-template-columns: 1fr; gap: 22px; }
    .sidebar { position: static; }
    .sidebar-user { display: none; }

    /* Gorizontal lentada guruh sarlavhalari ("Moliya", "Hisob") bo'limlar
       orasida qalqib qolardi va ro'yxatni o'qishni qiyinlashtirardi */
    .sidebar .nav-group { display: none; }

    .sidebar nav {
        display: flex;
        overflow-x: auto;
        gap: 4px;
        scrollbar-width: none;
    }
    .sidebar nav::-webkit-scrollbar { display: none; }
    .sidebar nav a { white-space: nowrap; flex: none; }
}

/* Menyu ichidagi qo'shimcha havolalar — faqat tor ekranda ko'rinadi */
.nav-extra { display: none; }

@media (max-width: 760px) {
    .site-header .nav-toggle { display: inline-flex; }

    /* Shapkada faqat logotip, asosiy amal va "Menyu" qoladi.
       360px ekranda beshta element sig'masdi va satr buzilardi. */
    .site-header .wide-only { display: none; }

    .nav-extra {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid var(--line);
    }

    .nav-extra a,
    .nav-extra button {
        display: block;
        width: 100%;
        text-align: left;
        padding: 11px 12px;
        border: 0;
        border-radius: var(--r-sm);
        background: none;
        font: inherit;
        font-size: .9375rem;
        color: var(--fg-3);
        cursor: pointer;
    }

    .nav-extra a:hover,
    .nav-extra button:hover { background: var(--fill); color: var(--fg); }
    .nav-extra form { margin: 0; }

    .nav {
        display: none;
        position: absolute;
        inset: var(--nav-h) 0 auto;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px 22px 18px;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
    }
    .nav.open { display: flex; }
    /* Keng qatorlarda bosish sezilib tursin — desktopda bu fon ortiqcha edi */
    .nav a { padding: 11px 12px; font-size: .9375rem; }
    .nav a:hover, .nav a.active { background: var(--fill); }

    .steps { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
    /* Logotip yonidagi 28px bo'shliq tor ekranda tugmani siqib qo'yardi */
    .logo { margin-right: 10px; font-size: .9375rem; }
    .logo-mark { width: 22px; height: 22px; border-radius: 6px; font-size: .75rem; }
    .nav-actions { gap: 6px; }
}

/* Karta ichidagi jadval o'z chegarasini takrorlamasin */
.card > .table-wrap {
    border: 0;
    border-radius: 0;
    background: transparent;
    margin-inline: -22px;
}
.card > .table-wrap table.data th { background: transparent; }
.card > .table-wrap table.data th:first-child,
.card > .table-wrap table.data td:first-child { padding-left: 22px; }
.card > .table-wrap table.data th:last-child,
.card > .table-wrap table.data td:last-child { padding-right: 22px; }
.card > .table-wrap:last-child { margin-bottom: -22px; }

/* Panel menyusidagi guruh sarlavhasi */
.sidebar .nav-group {
    display: block;
    padding: 14px 11px 5px;
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--fg-3);
}
.sidebar .nav-group:first-child { padding-top: 4px; }

/* Panelda ustunlar orasidagi ingichka ajratgich */
.split { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }

/* Kichik ko'rsatkich chizig'i (moliya jadvalida) */
.bar { height: 6px; border-radius: 3px; background: var(--fill-2); overflow: hidden; min-width: 60px; }
.bar > span { display: block; height: 100%; background: var(--brand); border-radius: 3px; }

/* JSON ko'rinishi */
.code {
    font-family: var(--mono);
    font-size: .75rem;
    line-height: 1.5;
    color: var(--fg-2);
    background: var(--fill);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 12px 14px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}

/* Menyudagi o'qilmagan bildirishnoma sanog'i */
.sidebar nav a .count {
    display: inline-block;
    min-width: 18px;
    padding: 0 5px;
    margin-left: 5px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: .6875rem;
    font-weight: 600;
    text-align: center;
    line-height: 18px;
}

/* Bildirishnoma qatori */
.notif { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.notif:last-child { border-bottom: 0; }
.notif .mark { width: 7px; height: 7px; border-radius: 50%; margin-top: 7px; flex: none; background: var(--fg-3); }
.notif.is-new { background: var(--fill); }
.notif.k-success .mark { background: var(--ok); }
.notif.k-warning .mark { background: var(--warn); }
.notif.k-error   .mark { background: var(--err); }
.notif.k-info    .mark { background: var(--brand); }
.notif .t { font-weight: 500; font-size: .9375rem; }
.notif .b { color: var(--fg-2); font-size: .8125rem; margin-top: 2px; }
.notif .d { color: var(--fg-3); font-size: .75rem; margin-top: 4px; }

/* Panelga kirish bloki */
.panel-access { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Panel bo'limlari */
.panel-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    /* overflow-x: auto QO'YMASLIK kerak: ichkarida ochiladigan ro'yxat bor,
       aylanadigan konteyner uni KESIB tashlaydi va yon tomonda chizg'ich chiqadi */
    padding: 3px;
    margin-bottom: 22px;
    background: var(--fill);
    border: 1px solid var(--line);
    border-radius: var(--r);
}

.panel-tabs a {
    padding: 8px 14px;
    border-radius: var(--r-sm);
    font-size: .8125rem;
    color: var(--fg-2);
    white-space: nowrap;
    transition: background .14s ease, color .14s ease;
}
.panel-tabs a:hover { background: var(--fill); color: var(--fg); text-decoration: none; }
.panel-tabs a.on { background: var(--raised); color: var(--fg); font-weight: 520; }

/* To'ldirilganlik ko'rsatkichi */
.meter { height: 8px; border-radius: 4px; background: var(--fill-2); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 4px; background: var(--brand); transition: width .3s ease; }
.meter.warn > span { background: var(--warn); }
.meter.crit > span { background: var(--err); }

.usage-card { display: grid; gap: 6px; }
.usage-card .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.usage-card .n { font-size: 1.375rem; font-weight: 600; letter-spacing: -.03em; }
.usage-card .l { font-size: .8125rem; color: var(--fg-3); }

/* Fayl menejeri: yo'l ko'rsatkichi */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .875rem; font-family: var(--mono); }
.crumbs a { color: var(--fg-2); }
.crumbs a:hover { color: var(--fg); }
.crumbs .sep { color: var(--fg-3); }
.crumbs .here { color: var(--fg); font-weight: 500; }


/* ------------------------------------------------------------------ Modal */

.modal[hidden] { display: none; }

.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 20px;
    background: color-mix(in srgb, #000 55%, transparent);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: modal-in .16s ease;
}

@keyframes modal-in { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
    width: 100%;
    max-width: 460px;
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .45);
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}

.modal-head h3 { margin: 0; font-size: 1rem; }
.modal-head .sub { font-family: var(--mono); font-size: .75rem; color: var(--fg-3); margin-top: 2px; word-break: break-all; }

.modal-close {
    background: none;
    border: 0;
    color: var(--fg-3);
    font-size: 22px;
    line-height: 1;
    padding: 0 4px;
    cursor: pointer;
    flex: none;
}
.modal-close:hover { color: var(--fg); }

.modal-body { padding: 20px; }
.modal-body > * + * { margin-top: 20px; }

.modal-section { padding-top: 18px; border-top: 1px solid var(--line); }
.modal-section:first-child { padding-top: 0; border-top: 0; }
.modal-section h4 { margin: 0 0 10px; font-size: .8125rem; color: var(--fg-2); font-weight: 500; }

body.modal-open { overflow: hidden; }

/* ==========================================================================
   "Hatto maymun ham tushunadi" — UI qoidalari
   Har ekranda BITTA asosiy amal, tegish zonasi 44px, rang yolg'iz ma'no
   tashimaydi, har holat (bo'sh/yuklanmoqda/xato) ko'rinadi.
   ========================================================================== */

/* --- Tegish zonasi: barmoq uchun kamida 44px --- */
.btn { min-height: 44px; }
.btn-sm { min-height: 38px; padding-inline: 14px; }
.btn-lg { min-height: 52px; font-size: 1rem; }

.link-btn,
.table-wrap a,
.panel-tabs a,
.sidebar nav a,
.crumbs a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

/* Jadval ichidagi havolalar zich turadi — vertikal joyni kompensatsiya qilamiz */
table.data td { padding-block: 8px; }
table.data td .link-btn { padding-inline: 8px; }

input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=number], input[type=search], input[type=url], select, textarea {
    min-height: 46px;
}
textarea { min-height: 120px; }

/* --- Asosiy amal: ekranda bitta va ko'zga tashlanadigan --- */
.btn-primary {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    font-weight: 600;
    box-shadow: 0 1px 0 rgba(0,0,0,.2), 0 6px 18px color-mix(in srgb, var(--brand) 35%, transparent);
}
.btn-primary:hover { background: var(--brand-2); color: #fff; opacity: 1; }

/* Asosiy amalni ajratib turuvchi blok */
.action-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand);
    border-radius: var(--r-lg);
    padding: 20px 22px;
}
.action-card h3 { margin: 0 0 6px; font-size: 1.0625rem; }
.action-card p { color: var(--fg-2); font-size: .875rem; margin: 0 0 16px; }

/* --- Holat belgisi: rang + belgi, faqat rang emas --- */
.state { display: inline-flex; align-items: center; gap: 7px; font-size: .875rem; }
.state .mark {
    width: 20px; height: 20px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 11px; font-weight: 700; flex: none;
}
.state-ok   .mark { background: var(--ok-dim);   color: var(--ok); }
.state-warn .mark { background: var(--warn-dim); color: var(--warn); }
.state-err  .mark { background: var(--err-dim);  color: var(--err); }
.state-off  .mark { background: var(--fill-2);   color: var(--fg-3); }

/* --- Bo'sh holat: har doim keyingi qadam bilan --- */
.empty { padding: 44px 22px; text-align: center; }
.empty .art { display: block; font-size: 30px; margin-bottom: 12px; opacity: .35; }
.empty h3 { margin-bottom: 6px; font-size: 1rem; }
.empty p { color: var(--fg-2); margin-bottom: 18px; max-width: 42ch; margin-inline: auto; }

/* --- Yuklanmoqda --- */
.btn[disabled] { position: relative; }

.spinner {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin .6s linear infinite;
    vertical-align: -2px;
    margin-right: 7px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Xavfli amal: tez-tez bosiladiganlardan ajratilgan --- */
.danger-zone {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px dashed color-mix(in srgb, var(--err) 40%, var(--line));
}
.danger-zone h4 { color: var(--err); font-size: .8125rem; margin: 0 0 8px; font-weight: 600; }
.danger-zone p { color: var(--fg-3); font-size: .8125rem; margin: 0 0 12px; }

/* --- Ko'rsatkichlar: mobil uchun ham o'qiladi --- */
@media (max-width: 560px) {
    .panel-head { flex-direction: column; align-items: flex-start; gap: 8px; }

    /* Tugma butun kenglikka faqat o'z qatorida turganda cho'ziladi: formada,
       bo'sh holat bloklarida, xavfli zonada. Shapkadagi va jadval ichidagi
       tugmalar tegishli emas — ular satr ichida yashaydi. */
    form > .btn,
    .field + .btn,
    .empty > .btn,
    .danger-zone form > .btn,
    .action-card > .btn,
    .plan .btn,
    .btn-block { width: 100%; justify-content: center; }

    .cluster > .btn { flex: 1 1 auto; }
    .modal-box { max-width: 100%; }
}

/* Parolni ko'rsatish tugmasi */
.password-field { position: relative; }
.password-field input { padding-right: 92px; }
.password-field .reveal {
    position: absolute;
    right: 6px; top: 50%;
    transform: translateY(-50%);
    background: none; border: 0;
    color: var(--fg-2);
    font: inherit; font-size: .8125rem;
    cursor: pointer;
    padding: 8px 10px;
    min-height: 36px;
    border-radius: var(--r-sm);
}
.password-field .reveal:hover { color: var(--fg); background: var(--fill); }

/* Faqat skrinriderlar uchun */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Yig'iladigan panel (progressive disclosure) */
details.panel > summary { list-style: none; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary::after {
    content: "+";
    font-size: 20px;
    color: var(--fg-3);
    line-height: 1;
    transition: transform .2s ease;
}
details.panel[open] > summary::after { transform: rotate(45deg); }
details.panel > summary:hover { background: var(--fill); }

/* Panel vkladkalari: "Ko'proq" ro'yxati */
.tabs-more > summary {
    list-style: none;
    padding: 8px 14px;
    border-radius: var(--r-sm);
    font-size: .8125rem;
    color: var(--fg-2);
    cursor: pointer;
    white-space: nowrap;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.tabs-more > summary::-webkit-details-marker { display: none; }
.tabs-more > summary::after { content: "▾"; font-size: 10px; }
.tabs-more > summary:hover { background: var(--fill); color: var(--fg); }
.tabs-more > summary.on { background: var(--raised); color: var(--fg); font-weight: 520; }

/* Ochilganda butun kenglikni egallaydi va vkladkalar ostiga ikkinchi qator
   bo'lib tushadi — hech narsa kesilmaydi, mobil telefonda ham ko'rinadi */
.tabs-more[open] { flex-basis: 100%; }

.tabs-more-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 6px 0 2px;
    margin-top: 4px;
    border-top: 1px solid var(--line);
}
.tabs-more-list a {
    padding: 9px 12px;
    border-radius: var(--r-sm);
    font-size: .875rem;
    color: var(--fg-2);
    min-height: 44px;
    display: flex;
    align-items: center;
}
.tabs-more-list a:hover { background: var(--fill); color: var(--fg); text-decoration: none; }
.tabs-more-list a.on { background: var(--fill-2); color: var(--fg); font-weight: 520; }


/* ==========================================================================
   Fayl menejeri
   Jadval emas, ro'yxat: har qator — bitta obyekt, nomi yirik, tafsilot mayda.
   ========================================================================== */

.fm-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--fill);
}

.fm-up {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 12px;
    margin: 8px 0 0 8px;
    border-radius: var(--r-sm);
    color: var(--fg-2);
    font-size: .875rem;
}
.fm-up:hover { background: var(--fill); color: var(--fg); text-decoration: none; }

.fm-list { display: grid; }

.fm-row {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-bottom: 1px solid var(--line);
    transition: background .12s ease;
}
.fm-row:last-child { border-bottom: 0; }
.fm-row:hover { background: var(--fill); }

.fm-icon {
    width: 26px; height: 26px;
    display: grid; place-items: center;
    border-radius: var(--r-sm);
    background: var(--fill-2);
    color: var(--fg-3);
    font-size: 13px;
}
.fm-row.is-dir .fm-icon { background: var(--brand-dim); color: var(--brand-2); }

.fm-name {
    font-family: var(--mono);
    font-size: .9375rem;
    color: var(--fg);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fm-name:hover { color: var(--brand-2); }
.fm-meta { font-size: .75rem; color: var(--fg-3); margin-top: 2px; }

.fm-actions { display: flex; align-items: center; gap: 4px; }

.fm-btn {
    min-width: 44px; min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px;
    padding: 0 12px;
    border: 0; background: none;
    border-radius: var(--r-sm);
    color: var(--fg-2);
    font: inherit; font-size: .8125rem;
    cursor: pointer;
    white-space: nowrap;
}
.fm-btn:hover { background: var(--fill-2); color: var(--fg); text-decoration: none; }
.fm-btn.is-danger:hover { background: var(--err-dim); color: var(--err); }

@media (max-width: 560px) {
    .fm-row { grid-template-columns: 26px minmax(0, 1fr); }
    .fm-actions { grid-column: 1 / -1; justify-content: flex-start; padding-left: 38px; }
}

/* Fayl menejeri asboblar paneli */
.fm-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.fm-tool {
    display: inline-flex; align-items: center; gap: 7px;
    min-height: 44px; padding: 0 15px;
    border: 1px solid var(--line-2);
    border-radius: var(--r);
    background: var(--card);
    color: var(--fg);
    font: inherit; font-size: .875rem; font-weight: 450;
    cursor: pointer; white-space: nowrap;
}
.fm-tool:hover { background: var(--fill-2); text-decoration: none; color: var(--fg); }
.fm-tool .ico { font-size: 15px; line-height: 1; color: var(--fg-3); }
.fm-tool:hover .ico { color: var(--brand-2); }

/* Tanlov: fayl yoki papka */
.pick-kind { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.pick-kind label {
    margin: 0;
    display: flex; align-items: center; gap: 10px;
    padding: 14px;
    border: 1px solid var(--line-2);
    border-radius: var(--r);
    cursor: pointer;
    font-weight: 400;
}
.pick-kind input { position: absolute; opacity: 0; width: 0; height: 0; }
.pick-kind label:hover { background: var(--fill); }
.pick-kind input:checked + span { color: var(--fg); }
.pick-kind label:has(input:checked) {
    border-color: var(--brand);
    background: var(--brand-dim);
}
.pick-kind label:has(input:focus-visible) { box-shadow: var(--ring); }
.pick-kind .glyph {
    width: 32px; height: 32px; flex: none;
    display: grid; place-items: center;
    border-radius: var(--r-sm);
    background: var(--fill-2);
    color: var(--fg-2);
}
.pick-kind label:has(input:checked) .glyph { background: var(--brand); color: #fff; }
.pick-kind .t { font-size: .9375rem; }
.pick-kind .d { font-size: .75rem; color: var(--fg-3); margin-top: 1px; }

/* Modal ichidagi fayl ma'lumoti */
.fm-info {
    display: grid; gap: 4px;
    padding: 12px 14px;
    background: var(--fill);
    border-radius: var(--r);
    font-size: .8125rem;
    color: var(--fg-2);
}
.fm-info .path { font-family: var(--mono); font-size: .75rem; word-break: break-all; color: var(--fg-3); }

/* Ko'rinmaydi, lekin DOM va klaviatura uchun mavjud.
   display:none QO'YMAYMIZ: unda ba'zi brauzerlarda <label> orqali bosish ishlamaydi. */
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.visually-hidden:focus-visible + .fm-tool,
.visually-hidden:focus + label { box-shadow: var(--ring); }

/* ==========================================================================
   Qator menyusi
   Sahifa oxirida BITTA element bo'lib turadi va JS uni tugma yoniga qo'yadi.
   Panel ichiga joylashtirilsa, .panel { overflow: hidden } uni kesib tashlardi.
   ========================================================================== */

.row-menu[hidden] { display: none; }

.row-menu {
    position: absolute;
    z-index: 150;
    min-width: min(232px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    padding: 6px;
    background: var(--card);
    border: 1px solid var(--line-2);
    border-radius: var(--r-md);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .5);
}

.row-menu a,
.row-menu button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: var(--r-sm);
    background: none;
    color: var(--fg);
    font: inherit;
    font-size: .875rem;
    text-align: left;
    cursor: pointer;
}
.row-menu a:hover,
.row-menu button:hover { background: var(--fill-2); text-decoration: none; color: var(--fg); }

.row-menu .ico {
    width: 18px;
    flex: none;
    text-align: center;
    color: var(--fg-3);
    font-size: 14px;
}
.row-menu a:hover .ico,
.row-menu button:hover .ico { color: var(--brand-2); }

.row-menu hr { margin: 6px 4px; border: 0; border-top: 1px solid var(--line); }

.row-menu .is-danger { color: var(--err); }
.row-menu .is-danger .ico { color: var(--err); }
.row-menu .is-danger:hover { background: var(--err-dim); color: var(--err); }

.row-menu [hidden] { display: none; }

/* Menyuni chaqiruvchi tugma */
.fm-menu-btn {
    min-width: 44px; min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    background: none;
    color: var(--fg-2);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
.fm-menu-btn:hover,
.fm-menu-btn[aria-expanded="true"] { background: var(--fill-2); color: var(--fg); border-color: var(--line); }

/* ==========================================================================
   Hero'dagi mahsulot oynasi
   Kabinetning o'zi, CSS bilan chizilgan. Rasm emas: bir xil tokenlardan
   quriladi, shuning uchun mavzu almashsa u ham almashadi va hech qachon
   haqiqiy interfeysdan uzoqlashib qolmaydi.
   ========================================================================== */

.hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(28px, 5vw, 56px);
    align-items: center;
}

.hero-split .hero-inner { max-width: 100%; }

.shot {
    border: 1px solid var(--line-2);
    border-radius: var(--r-lg);
    background: var(--card);
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .45), 0 2px 8px rgba(0, 0, 0, .25);
}

.shot-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    background: var(--fill);
    border-bottom: 1px solid var(--line);
}

.shot-dots { display: flex; gap: 6px; flex: none; }
.shot-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }

.shot-addr {
    flex: 1;
    min-width: 0;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--line);
    font-family: var(--mono);
    font-size: .6875rem;
    color: var(--fg-3);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shot-tabs {
    display: flex;
    gap: 3px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.shot-tabs span {
    padding: 6px 11px;
    border-radius: var(--r-sm);
    font-size: .75rem;
    color: var(--fg-3);
    white-space: nowrap;
}
.shot-tabs span.on { background: var(--raised); color: var(--fg); }

.shot-body { padding: 16px 18px 18px; }

.shot-usage { margin-bottom: 18px; }
.shot-usage .top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}
.shot-usage .lbl { font-size: .8125rem; color: var(--fg-2); }
.shot-usage .val { font-size: 1.125rem; font-weight: 600; letter-spacing: -.02em; }
.shot-usage .max { font-size: .75rem; color: var(--fg-3); }

.shot-meter { height: 7px; border-radius: 4px; background: var(--fill-2); overflow: hidden; }
.shot-meter > i {
    display: block;
    height: 100%;
    width: 24%;
    border-radius: 4px;
    background: var(--brand);
}

.shot-file {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-top: 1px solid var(--line);
}
.shot-file:first-of-type { border-top: 0; }

.shot-file .ic {
    width: 22px; height: 22px;
    display: grid; place-items: center;
    border-radius: 5px;
    background: var(--fill-2);
    color: var(--fg-3);
    font-size: 11px;
}
.shot-file.dir .ic { background: var(--brand-dim); color: var(--brand-2); }
.shot-file .nm { font-family: var(--mono); font-size: .8125rem; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot-file .sz { font-size: .75rem; color: var(--fg-3); white-space: nowrap; }

.shot-caption {
    margin-top: 14px;
    font-size: .8125rem;
    color: var(--fg-3);
    text-align: center;
}

/* Ishonch nuqtalari */
.trust { display: grid; gap: 10px; margin-top: 28px; }
.trust div { display: flex; align-items: center; gap: 10px; font-size: .875rem; color: var(--fg-2); }
.trust .tick {
    width: 20px; height: 20px; flex: none;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--ok-dim);
    color: var(--ok);
    font-size: 11px; font-weight: 700;
}

@media (max-width: 900px) {
    /* Matn birinchi, oyna keyin — manba tartibi allaqachon shunday. */
    .hero-split { grid-template-columns: 1fr; }
    .shot-body { padding: 14px; }
    .shot-tabs { overflow-x: auto; }
}

/* ==========================================================================
   Tarif kartasi — bosh sahifadagi uchlik. Narx eng yirik element,
   har kartada bitta amal. Barcha ranglar tokenlardan, ikki temada ham to'g'ri.
   ========================================================================== */

.plan {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 24px 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--card);
}

.plan.is-featured {
    border-color: var(--brand);
    background: var(--card-2);
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 22px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: .75rem;
    font-weight: 550;
    letter-spacing: -.01em;
    white-space: nowrap;
}

.plan > h3 {
    margin: 0 0 14px;
    font-size: 1rem;
    font-weight: 550;
    color: var(--fg-2);
}

.plan-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.plan-price .amount {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -.03em;
    color: var(--fg);
}

.plan-price .per {
    font-size: .875rem;
    color: var(--fg-3);
}

.plan-specs {
    flex: 1;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 9px;
}

.plan-specs li {
    display: flex;
    gap: 9px;
    font-size: .875rem;
    color: var(--fg-2);
    line-height: 1.45;
}

.plan-specs li::before {
    content: "✓";
    flex: none;
    color: var(--ok);
    font-size: .8125rem;
    line-height: 1.5;
}

/* ==========================================================================
   Murojaatlar. Yozishmani chatga o'xshatib qo'ymaymiz: bu rasmiy yozishma,
   xabarlar bir xil kenglikda, faqat chap chekkasidagi rang kim yozganini
   ko'rsatadi. Shunda uzun matn ham o'qilishli qoladi.
   ========================================================================== */

.badge-muted { background: var(--fill-2); color: var(--fg-3); }

/* "Yangi murojaat" — yopiq turadi, chunki ro'yxat asosiy narsa */
.ticket-new > summary {
    list-style: none;
    cursor: pointer;
    display: inline-block;
}

.ticket-new > summary::-webkit-details-marker { display: none; }
.ticket-new[open] > summary { display: none; }

.thread { display: grid; gap: 12px; }

.msg {
    border: 1px solid var(--line);
    border-left: 3px solid var(--line-2);
    border-radius: var(--r-md);
    background: var(--card);
    padding: 16px 18px;
}

.msg.from-staff {
    border-left-color: var(--brand);
    background: var(--card-2);
}

.msg-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.msg-body {
    color: var(--fg-2);
    font-size: .9375rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.thread-system {
    text-align: center;
    font-size: .8125rem;
    color: var(--fg-3);
    padding: 4px 0;
}

@media (max-width: 560px) {
    .msg-head { flex-direction: column; gap: 2px; }
}

/* Kabinetdagi tezkor havolalar — kam ishlatiladigan bo'limlarga yo'l */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.quick-links a {
    display: block;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--card);
    text-decoration: none;
    transition: border-color .12s ease, background .12s ease;
}

.quick-links a:hover { border-color: var(--line-2); background: var(--card-2); }
.quick-links strong { display: block; color: var(--fg); font-weight: 550; margin-bottom: 3px; }
.quick-links span { display: block; font-size: .8125rem; color: var(--fg-3); line-height: 1.5; }

/* ==========================================================================
   Jadval -> kartochka (telefonda)
   --------------------------------------------------------------------------
   Gorizontal aylantiriladigan jadval telefonda ishlaydi, lekin mijoz uni
   aylantirish kerakligini bilmaydi: o'ng tomondagi ustunlar shunchaki
   ko'rinmay qoladi. Shuning uchun mijozga ko'rinadigan jadvallar tor ekranda
   kartochkaga aylanadi — har bir satr o'z blokida, ustun nomi qiymat yonida.

   Sarlavha qatori yashiriladi, uning o'rnini td[data-label] bosadi.
   Birinchi katak — satrning nomi, u alohida qatorda yirikroq turadi.
   ========================================================================== */

@media (max-width: 640px) {
    table.data.stack,
    table.data.stack tbody,
    table.data.stack tr,
    table.data.stack td {
        display: block;
        width: 100%;
    }

    table.data.stack thead { display: none; }

    /* Aylantirish endi kerak emas — konteyner kesmasin */
    .table-wrap:has(table.data.stack) { overflow-x: visible; }

    table.data.stack tr {
        padding: 15px 16px;
        border-bottom: 1px solid var(--line);
    }
    table.data.stack tr:last-child { border-bottom: 0; }

    table.data.stack td {
        padding: 0;
        border: 0;
        white-space: normal;
        /* client_ref, UUID va domen kabi uzun uzluksiz satrlar kartochkadan
           chiqib ketmasin */
        overflow-wrap: anywhere;
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 14px;
        font-size: .875rem;
    }

    table.data.stack td + td { margin-top: 8px; }

    table.data.stack td::before {
        content: attr(data-label);
        flex: none;
        color: var(--fg-3);
        font-size: .8125rem;
    }

    /* Birinchi katak — satrning sarlavhasi: yorliqsiz va butun kenglikda */
    table.data.stack td:first-child {
        display: block;
        font-size: .9375rem;
        margin-bottom: 10px;
    }
    table.data.stack td:first-child::before { display: none; }

    /* Yorliqsiz katak (masalan tugma) — o'ng tomonga emas, butun kenglikka */
    table.data.stack td:not([data-label]) { display: block; }
    table.data.stack td:not([data-label])::before { display: none; }
}

/* Narxlar jadvali ham telefonda kartochkaga aylanadi — bu sotuv sahifasi,
   u yerda gorizontal aylantirish yo'l qo'yib bo'lmaydigan to'siq */
@media (max-width: 640px) {
    table.price-table.stack,
    table.price-table.stack tbody,
    table.price-table.stack tr,
    table.price-table.stack td {
        display: block;
        width: 100%;
    }

    table.price-table.stack thead { display: none; }
    .table-wrap:has(table.price-table.stack) { overflow-x: visible; }

    table.price-table.stack tr { padding: 16px; border-bottom: 1px solid var(--line); }
    table.price-table.stack tr:last-child { border-bottom: 0; }
    table.price-table.stack tbody tr:hover { background: transparent; }

    table.price-table.stack td {
        padding: 0;
        border: 0;
        text-align: left;
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 14px;
    }
    table.price-table.stack td + td { margin-top: 9px; }
    table.price-table.stack td:last-child { margin-top: 14px; }

    table.price-table.stack td::before {
        content: attr(data-label);
        flex: none;
        color: var(--fg-3);
        font-size: .8125rem;
    }

    /* Tarif nomi — kartochka sarlavhasi; oxirgi katakda tugma */
    table.price-table.stack td:first-child,
    table.price-table.stack td:last-child { display: block; }
    table.price-table.stack td:first-child::before,
    table.price-table.stack td:last-child::before { display: none; }
    table.price-table.stack td:last-child .btn { width: 100%; justify-content: center; }

    /* "Nimalar kiradi" uzun matn — yorliq tepada, matn pastda */
    table.price-table.stack td.wrap {
        display: block;
        max-width: none !important;
    }
    table.price-table.stack td.wrap::before { display: block; margin-bottom: 2px; }
}

/* ==========================================================================
   Huquqiy hujjat. Uzun matn — o'qish qulayligi hamma narsadan muhim:
   satr uzunligi cheklangan, sarlavhalar orasida havo bor.
   ========================================================================== */

.legal { max-width: 68ch; }

.legal h2 {
    margin: 36px 0 12px;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -.02em;
}
.legal h2:first-child { margin-top: 0; }

.legal p {
    margin: 0 0 14px;
    color: var(--fg-2);
    font-size: .9375rem;
    line-height: 1.7;
}

.legal ul {
    margin: 0 0 14px;
    padding-left: 20px;
    color: var(--fg-2);
    font-size: .9375rem;
    line-height: 1.7;
}
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--fg); font-weight: 550; }
.legal .dl { margin-top: 16px; }

/* Ikkinchi darajali ogohlantirishlar — asosiy amaldan keyingi ixcham qator */
.notice-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--card);
}

.notice-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--line);
    font-size: .875rem;
    color: var(--fg-2);
}
.notice-list li:last-child { border-bottom: 0; }

/* Asosiy amal xavfli holatga tegishli bo'lsa — chap chekkasi qizil */
.action-card.is-danger { border-left-color: var(--err); }

@media (max-width: 560px) {
    .notice-list li { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ==========================================================================
   Ikki bosqichli tasdiqlash
   ========================================================================== */

/* Kod maydoni: raqamlar keng va aniq tersin, chalkashish bo'lmasin */
.code-input {
    font-family: var(--mono);
    font-size: 1.5rem;
    letter-spacing: .3em;
    text-align: center;
}

.qr-box {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 22px;
    align-items: center;
}

/* QR har doim oq fonda — qorong'i temada ham skaner o'qiy olishi uchun */
.qr {
    background: #fff;
    padding: 10px;
    border-radius: var(--r-md);
    line-height: 0;
    flex: none;
}
.qr svg { display: block; max-width: 180px; height: auto; }

.secret-key {
    display: inline-block;
    padding: 10px 14px;
    border: 1px solid var(--line-2);
    border-radius: var(--r);
    background: var(--fill);
    font-size: .9375rem;
    letter-spacing: .04em;
    overflow-wrap: anywhere;
}

.backup-codes {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.backup-codes li {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--fill);
    text-align: center;
    font-size: .9375rem;
    letter-spacing: .06em;
}

@media (max-width: 560px) {
    .qr-box { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

/* Qisqa ko'rsatma ro'yxati — nima qilish kerakligini uch qadamda aytadi */
.steps-inline {
    margin: 0 0 16px;
    padding-left: 20px;
    color: var(--fg-2);
    font-size: .875rem;
    line-height: 1.7;
}
.steps-inline li { margin-bottom: 4px; }

/* ==========================================================================
   Qurilmalar ro'yxati. Har qatorda bitta amal — "Yopish". Joriy qurilma
   ajratib ko'rsatiladi, aks holda mijoz o'zini o'zi chiqarib yuborishi mumkin.
   ========================================================================== */

.device-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
}

.device-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--card);
}
.device-list li:last-child { border-bottom: 0; }

/* Joriy qurilma — chap chekkasi yashil, shunda ro'yxatda darrov ko'zga tashlanadi */
.device-list li.is-current {
    background: var(--card-2);
    box-shadow: inset 3px 0 0 var(--ok);
}

.device-list .d-main { min-width: 0; }

.device-list .d-name {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-weight: 500;
    color: var(--fg);
    margin-bottom: 3px;
}

.device-list .d-meta {
    font-size: .8125rem;
    color: var(--fg-3);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.device-list form { flex: none; margin: 0; }

@media (max-width: 560px) {
    .device-list li { flex-direction: column; align-items: stretch; gap: 10px; }
    .device-list form .btn { width: 100%; justify-content: center; }
}

/* ================================================================= Balans */

.balance-hero {
    display: grid;
    grid-template-columns: minmax(180px, auto) 1fr;
    gap: 28px;
    align-items: center;
}

.balance-sum {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.2;
}

.topup-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.topup-row input {
    flex: 1 1 160px;
    min-width: 0;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.topup-row .suffix { color: var(--fg-3); font-size: .875rem; }

.preset-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* Tayyor summalar. Tugma balandligi barmoq uchun yetarli bo'lishi kerak. */
.chip {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--fill);
    color: var(--fg-2);
    font: inherit;
    font-size: .875rem;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
}
.chip:hover { border-color: var(--brand); color: var(--fg); }

/* Kirim yashil, chiqim qizil emas — kulrang: chiqim xato emas, oddiy hodisa */
.amount-in  { color: var(--ok); font-variant-numeric: tabular-nums; }
.amount-out { color: var(--fg-2); font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
    .balance-hero { grid-template-columns: 1fr; gap: 18px; }
}

/* ================================================== Taklif havolasi */

.copy-row { display: flex; gap: 8px; flex-wrap: wrap; }
.copy-row input { flex: 1 1 260px; min-width: 0; }

/* ============================================== Tarif qidiruvi va taqqoslash */

.search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
}

.search-row input[type="search"] { flex: 2 1 220px; min-width: 0; }
.search-row input[type="text"]   { flex: 1 1 140px; min-width: 0; }
.search-row select               { flex: 1 1 170px; min-width: 0; }
.search-row--wide input[type="search"] { flex: 1 1 380px; }

/* Taqqoslash uchun katakcha. Butun katak bosiladi — 44px maqsadga yetadi. */
.price-table td.pick { width: 44px; }

.pick-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
}
.pick-box input { width: 18px; height: 18px; accent-color: var(--brand); cursor: pointer; }
.pick-box input:disabled { cursor: not-allowed; opacity: .4; }

/* Pastdan chiquvchi panel. JS o'chiq bo'lsa umuman ko'rinmaydi. */
.compare-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    background: var(--card);
    border-top: 1px solid var(--line);
    padding: 12px 0;
    transform: translateY(110%);
    transition: transform .18s ease;
}
.compare-bar.is-open { transform: none; }
.compare-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}
.compare-table thead th { font-size: .9375rem; }
.compare-table thead th .name { font-weight: 600; }
.compare-table thead th .sub  { font-size: .8125rem; color: var(--fg-3); font-weight: 400; }
.compare-table tbody th {
    font-weight: 500;
    color: var(--fg-2);
    font-size: .875rem;
    white-space: nowrap;
}
.compare-table .row-price td { font-size: 1.0625rem; }
.compare-table td { font-variant-numeric: tabular-nums; }

/* ==================================================== Bilim bazasi */

.kb-list { list-style: none; margin: 0; padding: 0; }
.kb-list li + li { border-top: 1px solid var(--line); }

.kb-list a {
    display: block;
    padding: 16px 22px;
    color: var(--fg);
    text-decoration: none;
}
.kb-list a:hover { background: var(--fill); }
.kb-list strong { display: block; font-weight: 500; margin-bottom: 3px; }
.kb-list .small { display: block; }

/* ==================================================== Holat sahifasi */

.status-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    margin-bottom: 16px;
}
.status-hero h2 { margin: 0 0 4px; font-size: 1.125rem; }

/* Rang yagona belgi emas: yonida matn ham turadi — rang ko'rmaydiganlar uchun */
.status-hero .dot, .status-list .dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    flex: none;
    background: var(--fg-3);
}
.status-up   .dot { background: var(--ok); }
.status-slow .dot { background: var(--warn); }
.status-down .dot { background: var(--err); }

.status-list { list-style: none; margin: 0; padding: 0; }
.status-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px;
}
.status-list li + li { border-top: 1px solid var(--line); }
.status-list li > div { flex: 1; min-width: 0; }
.status-list .state { font-size: .875rem; color: var(--fg-2); white-space: nowrap; }

.incident-list { list-style: none; margin: 0; padding: 0; }
.incident-list li { padding: 18px 22px; border-left: 3px solid var(--line); }
.incident-list li + li { border-top: 1px solid var(--line); }
.incident-list .head {
    display: flex; align-items: center; gap: 10px;
    flex-wrap: wrap; margin-bottom: 4px;
}
.incident-list p { margin: 8px 0 0; color: var(--fg-2); font-size: .9375rem; }
.incident-list .sev-major, .incident-list li.sev-major { border-left-color: var(--err); }
.incident-list li.sev-minor { border-left-color: var(--warn); }
.incident-list li.sev-info  { border-left-color: var(--brand); }

@media (max-width: 560px) {
    .status-list li { flex-wrap: wrap; }
    .status-list .state { width: 100%; padding-left: 26px; }
    .compare-bar .container { justify-content: center; }
}

/* Chegirma kodi — asosiy tugmadan keyin, kichikroq va sokinroq */
.promo-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.promo-row input { flex: 1 1 180px; min-width: 0; text-transform: uppercase; }

/* Jurnal mazmuni. Uzun qatorlar o'ralmaydi — jurnal qatori bo'linsa
   o'qish qiyinlashadi; o'ngga surish tabiiyroq. */
.log-view {
    max-height: 520px;
    overflow: auto;
    border-top: 1px solid var(--line);
    background: #0d0d0f;
}
.log-view pre {
    margin: 0;
    padding: 16px 18px;
    border: 0;
    border-radius: 0;
    font-family: var(--mono);
    font-size: .8125rem;
    line-height: 1.6;
    color: #d4d4d8;
    white-space: pre;
}
