/* =====================================================================
   OpenVPN Panel — täze dizaýn (v5)
   Garaňky + açyk tema · telefon üçin aşaky menýu · kompýuter üçin gapdal menýu
   ===================================================================== */

:root {
    --bg: #0b0d11;
    --bg-2: #0f1217;
    --surface: #14171d;
    --surface-2: #1a1e25;
    --surface-3: #232831;
    --line: #242933;
    --line-2: #2f3541;
    --text: #eef0f4;
    --text-2: #c3c8d2;
    --muted: #868e9e;
    --accent: #ff7a1a;
    --accent-2: #ff9a4d;
    --accent-ink: #1b0c00;
    --accent-soft: rgba(255, 122, 26, .12);
    --accent-line: rgba(255, 122, 26, .38);
    --ok: #2fd37c;
    --ok-soft: rgba(47, 211, 124, .12);
    --err: #ff5d61;
    --err-soft: rgba(255, 93, 97, .12);
    --warn: #f5c542;
    --warn-soft: rgba(245, 197, 66, .13);
    --info: #5aa9ff;
    --info-soft: rgba(90, 169, 255, .12);
    --tg: #2aa3e6;
    --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 10px 30px -12px rgba(0,0,0,.6);
    --r-lg: 18px;
    --r: 14px;
    --r-sm: 10px;
    --nav-h: 66px;
    --side-w: 252px;
    --safe-b: env(safe-area-inset-bottom, 0px);
    --safe-t: env(safe-area-inset-top, 0px);
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    color-scheme: dark;
}

:root[data-theme="light"] {
    --bg: #f3f4f7;
    --bg-2: #eceef2;
    --surface: #ffffff;
    --surface-2: #f5f6f8;
    --surface-3: #e9ebf0;
    --line: #e3e6ec;
    --line-2: #d4d8e0;
    --text: #12151b;
    --text-2: #39404d;
    --muted: #6a7282;
    --accent: #ea6a0c;
    --accent-2: #ff8a33;
    --accent-ink: #ffffff;
    --accent-soft: rgba(234, 106, 12, .10);
    --accent-line: rgba(234, 106, 12, .35);
    --ok: #13a35a;
    --ok-soft: rgba(19, 163, 90, .10);
    --err: #e0353b;
    --err-soft: rgba(224, 53, 59, .09);
    --warn: #b98500;
    --warn-soft: rgba(214, 160, 0, .13);
    --info: #1f6fd6;
    --info-soft: rgba(31, 111, 214, .09);
    --shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px -14px rgba(16,24,40,.18);
    color-scheme: light;
}

/* ---------- Esasy ---------- */
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.5 var(--font);
    font-feature-settings: "cv11", "ss01";
    -webkit-font-smoothing: antialiased;
    padding-bottom: calc(var(--nav-h) + var(--safe-b) + 20px);
}
body.no-nav { padding-bottom: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1 { font-size: 1.45rem; line-height: 1.2; margin: 0; letter-spacing: -.022em; font-weight: 750; }
h2 { font-size: .78rem; margin: 30px 0 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 10px; }
h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
h3 { font-size: 1rem; margin: 0 0 8px; letter-spacing: -.01em; }
p { margin: 0 0 10px; }
code { font-family: var(--mono); font-size: .85em; background: var(--surface-3); padding: 2px 6px; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.muted { color: var(--muted); }
.small { font-size: .8rem; }
.mono { font-family: var(--mono); font-size: .86em; }
.num { font-variant-numeric: tabular-nums; }
.text-danger { color: var(--err); }
.text-warn { color: var(--warn); }
.text-ok { color: var(--ok); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.i-sm { width: 15px; height: 15px; }
.i-lg { width: 22px; height: 22px; }

/* ---------- Karkas ---------- */
.shell { min-height: 100vh; }
.main { min-width: 0; }
.container { max-width: 1180px; margin: 0 auto; padding: 18px 16px 8px; }

/* Ýokarky zolak (telefon) */
.topbar {
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: calc(10px + var(--safe-t)) 16px 10px;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 760; letter-spacing: -.02em; font-size: 1.02rem; }
.brand:hover { text-decoration: none; }
.brand-mark {
    width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none;
    background: var(--accent); color: var(--accent-ink);
    box-shadow: 0 6px 18px -6px var(--accent);
}
.brand-mark .i { width: 18px; height: 18px; stroke-width: 2.2; }
.brand small { display: block; font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; margin-top: -2px; }
.top-actions { display: flex; gap: 6px; align-items: center; }

.icon-btn {
    width: 38px; height: 38px; border-radius: 11px; display: inline-grid; place-items: center; flex: none;
    background: var(--surface); border: 1px solid var(--line); color: var(--text-2); cursor: pointer;
    font: 700 .72rem/1 var(--font); letter-spacing: .04em; transition: background .15s, color .15s, border-color .15s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-2); text-decoration: none; }
.icon-btn:active { transform: scale(.95); }
.theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }

/* Gapdal menýu (kompýuter) */
.sidebar { display: none; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; padding: 18px 12px 6px; }
.side-nav a {
    display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px;
    color: var(--text-2); font-weight: 560; font-size: .92rem; position: relative;
}
.side-nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.side-nav a.active { background: var(--surface-2); color: var(--text); }
.side-nav a.active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.side-nav a.active .i { color: var(--accent); }
.side-cta { margin: 16px 0 4px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.me-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.me-card:hover { text-decoration: none; border-color: var(--line-2); }
.avatar { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-3); display: grid; place-items: center; color: var(--text); font-weight: 750; text-transform: uppercase; flex: none; }
.me-card .who { min-width: 0; flex: 1; }
.me-card .who b { display: block; color: var(--text); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-card .who span { display: block; color: var(--muted); font-size: .74rem; }
.side-tools { display: flex; gap: 6px; }
.side-tools .icon-btn { flex: 1; width: auto; }

/* Aşaky menýu (telefon) */
.bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: flex; justify-content: space-around; align-items: stretch;
    height: calc(var(--nav-h) + var(--safe-b)); padding: 0 6px var(--safe-b);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-top: 1px solid var(--line);
}
.bottom-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    color: var(--muted); font-size: .68rem; font-weight: 650; letter-spacing: .01em;
}
.bottom-nav a:hover { text-decoration: none; }
.bottom-nav a .i { width: 22px; height: 22px; }
.bottom-nav a.active { color: var(--text); }
.bottom-nav a.active .i { color: var(--accent); }
.bottom-nav a.fab { justify-content: flex-start; padding-top: 0; }
.bottom-nav a.fab span {
    width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center; margin-top: -16px;
    background: var(--accent); color: var(--accent-ink);
    box-shadow: 0 10px 24px -8px var(--accent), 0 0 0 5px var(--bg);
}
.bottom-nav a.fab .i { width: 26px; height: 26px; stroke-width: 2.3; }

/* ---------- Sahypa başy ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin: 4px 0 18px; }
.page-head .sub { color: var(--muted); font-size: .88rem; margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.page-head .sub .i { width: 15px; height: 15px; }
.page-head .head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.eyebrow { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 6px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .85rem; font-weight: 600; margin-bottom: 12px; }
.back-link:hover { color: var(--text); text-decoration: none; }
.title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Düwmeler ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 42px; padding: 9px 16px; border-radius: var(--r-sm);
    border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
    font: 650 .9rem/1.2 var(--font); cursor: pointer; white-space: nowrap;
    transition: transform .1s, background .15s, border-color .15s, color .15s, box-shadow .15s;
    touch-action: manipulation; user-select: none;
}
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn:focus-visible, .icon-btn:focus-visible, .chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px -10px var(--accent); }
.btn-accent:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-primary { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line); }
.btn-ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 40%, transparent); color: var(--ok); }
.btn-danger { background: var(--err-soft); border-color: color-mix(in srgb, var(--err) 40%, transparent); color: var(--err); }
.btn-danger:hover { border-color: var(--err); }
.btn-warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 40%, transparent); color: var(--warn); }
.btn-tg { background: var(--tg); border-color: var(--tg); color: #fff; }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: .82rem; border-radius: 9px; }
.btn-sm .i { width: 16px; height: 16px; }
.btn-block { width: 100%; }
.btn-icon { padding: 6px; min-width: 34px; }
.btn-lg { min-height: 50px; font-size: 1rem; border-radius: 13px; }

.actions-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.actions-row form, .actions-grid form, .card-actions form, .head-actions form { margin: 0; display: contents; }
.actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.actions-grid .btn { width: 100%; }

/* ---------- Kartlar ---------- */
.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 16px; display: block; color: inherit; box-shadow: var(--shadow);
}
a.card { transition: border-color .15s, transform .15s; }
a.card:hover { text-decoration: none; border-color: var(--line-2); }
a.card:active { transform: scale(.99); }
.card + .card { margin-top: 12px; }
.card-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card-title { font-weight: 720; font-size: 1rem; letter-spacing: -.01em; color: var(--text); word-break: break-word; }
.grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.grid > .card + .card { margin-top: 0; }

/* Serwer kartlary */
.server-card { display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.server-card .srv-top { display: flex; gap: 12px; align-items: center; }
.srv-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); flex: none; }
.srv-icon.on { background: var(--ok-soft); color: var(--ok); }
.srv-icon.bad { background: var(--err-soft); color: var(--err); }
.srv-name { min-width: 0; flex: 1; }
.srv-name .card-title { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srv-host { font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.srv-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding-top: 12px; }
.srv-stats div { display: flex; flex-direction: column; gap: 2px; }
.srv-stats div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.srv-stats b { font-size: 1.15rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.srv-stats span { font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.srv-arrow { position: absolute; right: 14px; bottom: 14px; color: var(--muted); }

/* ---------- Statistika ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 4px 0 6px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.stat { background: var(--surface); padding: 14px 16px 15px; color: inherit; display: flex; flex-direction: column; gap: 4px; position: relative; }
a.stat:hover { text-decoration: none; background: var(--surface-2); }
.stat .l { color: var(--muted); font-size: .74rem; font-weight: 650; display: flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: .06em; }
.stat .l .i { width: 14px; height: 14px; }
.stat .v { font-size: 1.7rem; font-weight: 760; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: .9rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.stat .v.sm { font-size: 1.25rem; padding-top: 5px; }
.stat.ok .v { color: var(--ok); } .stat.err .v { color: var(--err); } .stat.warn .v { color: var(--warn); }
.stat.ok .l .i { color: var(--ok); } .stat.err .l .i { color: var(--err); } .stat.warn .l .i { color: var(--warn); }

/* ---------- Belgiler ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; white-space: nowrap; line-height: 1.2; border: 1px solid transparent; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.no-dot::before { display: none; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-err { background: var(--err-soft); color: var(--err); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-accent { background: var(--accent-soft); color: var(--accent); }
.badge-muted { background: var(--surface-3); color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--line-2); flex: none; }
.dot-on { background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 50%, transparent); animation: ping 2.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }

/* ---------- Klentler (telefon: kart, kompýuter: jedwel setiri) ---------- */
.client-list { display: flex; flex-direction: column; gap: 10px; }
.client-head { display: none; }
.client-row {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
    padding: 14px; display: grid; gap: 12px; box-shadow: var(--shadow);
    grid-template-columns: 1fr auto; grid-template-areas: "who status" "use use" "act act";
}
.client-row .c-who { grid-area: who; min-width: 0; }
.client-row .c-status { grid-area: status; justify-self: end; align-self: start; }
.client-row .c-use { grid-area: use; display: grid; gap: 10px; }
.client-row .c-exp { display: none; }
.client-row .c-act { grid-area: act; }
.c-name { display: flex; align-items: center; gap: 9px; font-weight: 720; color: var(--text); font-size: .98rem; min-width: 0; }
.c-name span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-name:hover { text-decoration: none; color: var(--accent); }
.c-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: .78rem; margin-top: 4px; padding-left: 18px; }
.c-meta span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.c-meta .i { width: 13px; height: 13px; }
.c-meta .note { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.card-actions .btn-grow { flex: 1 1 auto; }

.usage { min-width: 0; }
.usage-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: .76rem; color: var(--muted); margin-bottom: 6px; }
.usage-top b { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; font-size: .8rem; }
.usage-top b .muted { font-weight: 500; }
.bar { height: 6px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; min-width: 3px; transition: width .4s; }
.bar > i.mid { background: var(--warn); }
.bar > i.hi { background: var(--err); }
.bar.inf { background: repeating-linear-gradient(90deg, var(--surface-3) 0 6px, transparent 6px 10px); }

/* ---------- Gözleg / filtr ---------- */
.toolbar {
    display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px;
    position: sticky; top: calc(58px + var(--safe-t)); z-index: 30;
    background: var(--bg); padding: 8px 0;
}
.search-box { position: relative; }
.search-box .i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-box input { padding-left: 40px !important; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 1px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
    font: 650 .8rem/1.2 var(--font); cursor: pointer; transition: .15s;
}
.chip:hover { border-color: var(--line-2); }
.chip .n { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 700; background: var(--surface-3); padding: 1px 7px; border-radius: 99px; font-size: .72rem; }
.chip.active { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip.active .n { background: color-mix(in srgb, var(--bg) 18%, transparent); color: var(--bg); }
.chip .cdot { width: 7px; height: 7px; border-radius: 50%; }
.empty-filter { display: none; text-align: center; padding: 30px; color: var(--muted); }

/* ---------- Formalar ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.form-narrow { max-width: 640px; }
.form-section { display: flex; flex-direction: column; gap: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.form-section-title { font-size: .74rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 8px; margin: 0; }
label { display: flex; flex-direction: column; gap: 7px; font-size: .86rem; font-weight: 640; color: var(--text-2); }
label .hint, .hint { font-weight: 450; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=search], input[type=tel], input[type=url], select, textarea {
    width: 100%; min-height: 46px; padding: 11px 14px;
    background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r-sm);
    font: 500 16px/1.3 var(--font);
    -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
:root[data-theme="light"] input:not([type=checkbox]):not([type=file]), :root[data-theme="light"] select, :root[data-theme="light"] textarea { background: var(--surface); }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23868e9e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px;
}
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
textarea { min-height: 110px; resize: vertical; }
.mono-textarea { font-family: var(--mono) !important; font-size: 12.5px !important; line-height: 1.5 !important; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkbox-label {
    flex-direction: row; align-items: center; gap: 12px; font-weight: 560; padding: 12px 14px; cursor: pointer;
    background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--text);
}
:root[data-theme="light"] .checkbox-label { background: var(--surface-2); }
.checkbox-label:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); }
.checkbox-label input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin: 0; }
.checkbox-grid { display: grid; gap: 8px; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick button {
    padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-2);
    font: 650 .78rem/1.2 var(--font); cursor: pointer; font-variant-numeric: tabular-nums; transition: .12s;
}
.quick button:hover { border-color: var(--accent-line); color: var(--accent); }
.quick button:active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; min-width: 0; }
.input-row .btn { min-height: 46px; flex: none; }

/* Açylýan bölümler */
details.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); margin: 12px 0; box-shadow: var(--shadow); overflow: hidden; }
details.panel > summary { padding: 15px 18px; cursor: pointer; font-weight: 680; list-style: none; display: flex; align-items: center; gap: 10px; }
details.panel > summary .i:first-child { color: var(--muted); }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
details.panel[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
details.panel > summary:hover { background: var(--surface-2); }
details.panel > .form-card, details.panel > .panel-body { border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.panel-body { padding: 16px 18px; }
details.plain > summary { cursor: pointer; color: var(--muted); font-size: .86rem; font-weight: 650; list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; }
details.plain > summary::-webkit-details-marker { display: none; }
details.plain > summary .i { transition: transform .2s; }
details.plain[open] > summary .i { transform: rotate(90deg); }
details.plain > summary:hover { color: var(--text); }
.danger-zone { border-top: 1px solid var(--line); padding: 16px 18px; background: color-mix(in srgb, var(--err) 4%, transparent); }
.danger-zone p { font-size: .8rem; color: var(--muted); margin-bottom: 10px; }

/* SSH açar saýlaýjy */
.key-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--bg-2); padding: 4px; border-radius: 12px; border: 1px solid var(--line-2); }
:root[data-theme="light"] .key-tabs { background: var(--surface-2); }
.key-tab { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 8px; border-radius: 9px; cursor: pointer; font-weight: 650; font-size: .84rem; color: var(--muted); }
.key-tab.active { background: var(--surface-3); color: var(--text); }
:root[data-theme="light"] .key-tab.active { background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.file-drop { border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 24px 14px; text-align: center; cursor: pointer; align-items: center; font-weight: 500; color: var(--muted); }
.file-drop .i { width: 28px; height: 28px; color: var(--accent); }
.file-drop:hover, .file-drop.dragover { border-color: var(--accent); background: var(--accent-soft); }
.file-drop input { display: none; }
.file-drop-name { color: var(--ok); font-weight: 700; }

/* ---------- Habarlar ---------- */
.flash {
    display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); margin-bottom: 12px;
    font-size: .9rem; border: 1px solid; word-break: break-word; animation: slide .25s ease; line-height: 1.45;
}
.flash .i { margin-top: 1px; }
@keyframes slide { from { opacity: 0; transform: translateY(-6px); } }
.flash-success { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 35%, transparent); color: var(--text); }
.flash-success .i { color: var(--ok); }
.flash-danger { background: var(--err-soft); border-color: color-mix(in srgb, var(--err) 35%, transparent); color: var(--text); }
.flash-danger .i { color: var(--err); }
.flash-warning { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 40%, transparent); color: var(--text); }
.flash-warning .i { color: var(--warn); }
.flash-info, .flash-message { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 35%, transparent); color: var(--text); }
.flash-info .i, .flash-message .i { color: var(--info); }
.callout { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); font-size: .84rem; color: var(--text-2); margin: 12px 0; }
.callout .i { color: var(--warn); margin-top: 1px; }

/* ---------- Kod / link ---------- */
.code-block {
    background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; overflow: auto; max-height: 380px;
    font: 12px/1.55 var(--mono); white-space: pre; color: var(--text-2); margin: 0;
}
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; font-family: var(--mono) !important; font-size: 13px !important; }
.copy-row .btn { min-height: 46px; flex: none; }
.qr-box { background: #fff; border-radius: 16px; padding: 12px; width: 230px; max-width: 70vw; margin: 14px auto 4px; box-shadow: var(--shadow); }
.qr-box img { width: 100%; display: block; }

.share-card { background: linear-gradient(160deg, var(--accent-soft), transparent 60%), var(--surface); }
.share-card .label-row h3 { display: flex; align-items: center; gap: 8px; margin: 0; }

.info-list { display: grid; }
.info-list > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.info-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.info-list > div:first-child { padding-top: 0; }
.info-list > div > span:first-child { color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.info-list > div > span:first-child .i { width: 16px; height: 16px; }
.info-list > div > span:last-child { text-align: right; font-weight: 640; word-break: break-word; }

/* Klent sahypasy: iki sütün */
.detail-grid { display: grid; gap: 14px; }
.usage-big { display: grid; gap: 16px; }
.usage-big .usage-top { font-size: .8rem; }
.usage-big .usage-top b { font-size: .95rem; }
.usage-big .bar { height: 9px; }

/* ---------- Progress ---------- */
.progress-wrap { background: var(--surface); border: 1px solid var(--accent-line); border-radius: var(--r-lg); padding: 16px; margin: 14px 0; box-shadow: var(--shadow); }
.progress-top { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; margin-bottom: 10px; font-weight: 600; }
.progress-top b { font-variant-numeric: tabular-nums; color: var(--accent); }
.progress-outer { height: 10px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.progress-inner { height: 100%; width: 0; background: repeating-linear-gradient(-45deg, var(--accent) 0 10px, var(--accent-2) 10px 20px); background-size: 28px 28px; animation: stripes 1s linear infinite; transition: width .4s; border-radius: 99px; }
@keyframes stripes { to { background-position: 28px 0; } }
.install-log { margin-top: 12px; max-height: 240px; }

/* ---------- Boş ýagdaý ---------- */
.empty-state { text-align: center; padding: 42px 18px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--muted); }
.empty-state .empty-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 14px; background: var(--surface-3); color: var(--text-2); }
.empty-state .empty-icon .i { width: 26px; height: 26px; }
.empty-state h1 { margin-bottom: 6px; color: var(--text); }
.empty-state p { max-width: 420px; margin: 0 auto 16px; }

/* ---------- Giriş ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px calc(24px + var(--safe-b)); position: relative; overflow: hidden; }
.auth::before {
    content: ""; position: absolute; inset: -40% -20% auto; height: 80vh; z-index: -1;
    background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
}
.auth-grid { position: absolute; inset: 0; z-index: -1; opacity: .5;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 65%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 65%); }
.auth-box { width: 100%; max-width: 400px; }
.auth-head { text-align: center; margin-bottom: 22px; }
.auth-head .brand-mark { width: 58px; height: 58px; border-radius: 17px; margin: 0 auto 16px; }
.auth-head .brand-mark .i { width: 28px; height: 28px; }
.auth-head h1 { font-size: 1.6rem; }
.auth-head p { color: var(--muted); margin: 6px 0 0; }
.auth-foot { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 3px; }
.seg a { padding: 6px 12px; border-radius: 8px; color: var(--muted); font-weight: 650; font-size: .82rem; }
.seg a:hover { text-decoration: none; color: var(--text); }
.seg a.on { background: var(--surface-3); color: var(--text); }

/* ---------- Ýükleme örtügi, toast, modal ---------- */
.loading-overlay { position: fixed; inset: 0; background: color-mix(in srgb, var(--bg) 72%, transparent); z-index: 100; display: none; align-items: center; justify-content: center; flex-direction: column; gap: 16px; color: var(--text); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); font-weight: 600; }
.loading-overlay.show { display: flex; }
.spinner { width: 44px; height: 44px; border: 3.5px solid var(--surface-3); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
    position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 18px); transform: translateX(-50%) translateY(20px);
    background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: .86rem; font-weight: 700;
    opacity: 0; pointer-events: none; transition: .25s; z-index: 120; white-space: nowrap; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.modal { position: fixed; inset: 0; z-index: 110; display: none; align-items: flex-end; justify-content: center; padding: 16px 12px calc(16px + var(--safe-b)); background: rgba(0,0,0,.5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.modal.show { display: flex; animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; } }
.modal-box { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; padding: 20px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); animation: pop .22s cubic-bezier(.2,.9,.3,1.2); }
@keyframes pop { from { transform: translateY(16px) scale(.98); opacity: 0; } }
.modal-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--warn-soft); color: var(--warn); margin-bottom: 12px; }
.modal-icon.danger { background: var(--err-soft); color: var(--err); }
.modal-text { color: var(--text-2); font-size: .94rem; line-height: 1.5; white-space: pre-line; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }

.support-fab {
    position: fixed; right: 14px; bottom: calc(var(--nav-h) + var(--safe-b) + 14px); z-index: 44;
    width: 48px; height: 48px; border-radius: 15px; background: var(--tg); color: #fff; display: grid; place-items: center;
    box-shadow: 0 10px 24px -8px var(--tg);
}
.support-fab svg { width: 24px; height: 24px; }
body.no-nav .support-fab { bottom: calc(18px + var(--safe-b)); }

.footer { text-align: center; color: var(--muted); font-size: .74rem; padding: 28px 0 8px; letter-spacing: .02em; }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; font-size: .9rem; color: var(--text-2); }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 760; font-size: .82rem; }

.user-card { display: flex; flex-direction: column; gap: 12px; }
.user-card .u-top { display: flex; gap: 12px; align-items: center; }
.user-card .u-meta { display: grid; gap: 6px; font-size: .82rem; color: var(--muted); }
.user-card .u-meta span { display: flex; gap: 8px; align-items: flex-start; }
.user-card .u-meta .i { width: 15px; height: 15px; margin-top: 2px; }

.split { display: grid; gap: 14px; }


/* ---------- Saýlamak (checkbox) we köpçülikleýin amallar ---------- */
.cb { position: relative; display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; cursor: pointer; margin: 0; }
.cb input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.cb > span { width: 20px; height: 20px; border-radius: 6px; border: 1.6px solid var(--line-2); background: var(--bg-2); display: grid; place-items: center; transition: .12s; }
:root[data-theme="light"] .cb input:not(:checked):not(:indeterminate) + span { background: var(--surface); }
.cb:hover > span { border-color: var(--muted); }
.cb input:checked + span { background: var(--accent); border-color: var(--accent); }
.cb input:checked + span::after { content: ""; width: 5px; height: 10px; border: solid var(--accent-ink); border-width: 0 2.2px 2.2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.cb input:indeterminate + span { background: var(--accent); border-color: var(--accent); }
.cb input:indeterminate + span::after { content: ""; width: 10px; height: 2.2px; background: var(--accent-ink); border-radius: 2px; }
.cb input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.c-who-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.c-who .c-meta { padding-left: 32px; }
.client-row.selected { border-color: var(--accent-line); background: linear-gradient(0deg, var(--accent-soft), var(--accent-soft)), var(--surface); }
.chip-select { gap: 8px; flex-direction: row; align-items: center; font-size: .8rem; font-weight: 650; color: var(--text-2); }
.chip-select .cb { width: 18px; height: 18px; }
.chip-select .cb > span { width: 17px; height: 17px; border-radius: 5px; }
.owner-tag { color: var(--accent); font-weight: 650; }
.owner-tag.none { color: var(--warn); }
.owner-filter { flex-direction: row; align-items: center; gap: 0; position: relative; }
.owner-filter > .i { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.owner-filter select { min-height: 42px; padding: 8px 38px 8px 34px; font-size: .9rem; font-weight: 600; width: auto; max-width: 220px; }

.bulk-bar {
    position: fixed; z-index: 60; left: 10px; right: 10px; bottom: calc(var(--nav-h) + var(--safe-b) + 10px);
    background: var(--surface); border: 1px solid var(--accent-line); border-radius: 18px;
    box-shadow: 0 24px 50px -16px rgba(0,0,0,.55), 0 0 0 4px var(--accent-soft); padding: 10px;
    animation: pop .2s ease; max-width: 960px; margin: 0 auto;
}
.bulk-bar[hidden] { display: none; }
.bulk-main { display: flex; flex-direction: column; gap: 8px; }
.bulk-count { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: .88rem; }
.bulk-count .icon-btn { width: 32px; height: 32px; border-radius: 9px; }
.bulk-count b { color: var(--accent); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.bulk-actions { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 1px; }
.bulk-actions::-webkit-scrollbar { display: none; }
.bulk-actions .btn { flex: none; }
@media (max-width: 639px) {
    .bulk-actions { flex-wrap: wrap; overflow: visible; }
    .bulk-actions .btn { flex: 1 1 calc(25% - 6px); padding: 6px 4px; gap: 5px; font-size: .78rem; }
}
.bulk-actions .btn.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.bulk-panel { padding: 6px 4px 12px; margin-bottom: 10px; border-bottom: 1px dashed var(--line-2); }
.bulk-panel[hidden] { display: none; }
.bulk-panel-title { font-weight: 700; font-size: .86rem; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.bulk-panel .input-row select, .bulk-panel .input-row input { min-height: 44px; }
body.bulk-on { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 150px); }
.bulk-progress { width: min(320px, 80vw); }
.bulk-progress .progress-outer { height: 8px; }
.bulk-progress .progress-inner { animation: none; background: var(--accent); }
.modal.result .modal-actions { grid-template-columns: 1fr; }
.modal.result [data-modal-cancel] { display: none; }
.modal-text .res-list { margin-top: 10px; max-height: 40vh; overflow: auto; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; }

@media (min-width: 640px) {
    .bulk-main { flex-direction: row; align-items: center; justify-content: space-between; }
    .bulk-count { flex: none; }
}
@media (min-width: 980px) {
    .bulk-bar { left: calc(var(--side-w) + 24px); right: 24px; bottom: 20px; }
    body.bulk-on { padding-bottom: 130px; }
    .client-head .c-who-top { gap: 10px; }
}


/* Onlaýn enjam (telefon) sany */
.dev-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 6px; border-radius: 99px; font-size: .74rem; font-weight: 650; color: var(--muted); background: var(--surface-3); flex: none; font-variant-numeric: tabular-nums; line-height: 1.5; }
.dev-pill .i { width: 13px; height: 13px; }
.dev-pill b { font-weight: 760; }
.dev-pill.on { color: var(--ok); background: var(--ok-soft); }
.dev-pill.full { color: var(--warn); background: var(--warn-soft); }
.dev-pill .dev-word { font-weight: 600; }
.title-row .dev-pill { font-size: .78rem; padding: 4px 10px 4px 8px; }
.stat-sub { font-size: .76rem; color: var(--muted); display: flex; align-items: center; gap: 5px; font-weight: 600; }
.stat-sub .i { width: 13px; height: 13px; }
.stat-sub b { color: var(--text); font-variant-numeric: tabular-nums; }
.dev-mini { font-size: .75rem; color: var(--muted); font-weight: 650; display: inline-flex; align-items: center; gap: 2px; }
.dev-mini .i { width: 12px; height: 12px; }
.live-flash { animation: liveflash 1s ease; }
@keyframes liveflash { 0% { box-shadow: 0 0 0 0 var(--ok); } 100% { box-shadow: 0 0 0 6px transparent; } }


/* Programma banneri: redaktor + öňünden görkeziş */
.style-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.style-pick .sp { flex-direction: row; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-2); cursor: pointer; font-weight: 650; font-size: .82rem; }
.style-pick .sp input { accent-color: var(--accent); margin: 0; }
.style-pick .sp::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--bc); }
.style-pick .sp:has(input:checked) { border-color: var(--bc); background: color-mix(in srgb, var(--bc) 12%, transparent); }
.sp-info { --bc: #3d8bff; } .sp-promo { --bc: #ff7a1a; } .sp-ok { --bc: #2fd37c; } .sp-warn { --bc: #f5c542; }
.phone-mock { max-width: 300px; margin: 0 auto; background: var(--bg); border: 8px solid var(--surface-3); border-radius: 34px; padding: 18px 14px 26px; min-height: 420px; display: flex; flex-direction: column; gap: 14px; }
.pm-top { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.pm-logo { width: 22px; height: 22px; border-radius: 7px; background: var(--accent); }
.pm-power { width: 120px; height: 120px; border-radius: 50%; margin: 10px auto 0; display: grid; place-items: center; background: radial-gradient(circle, var(--surface-3) 55%, color-mix(in srgb, var(--muted) 20%, transparent) 56%); }
.pm-power span { width: 34px; height: 34px; border: 4px solid var(--muted); border-top-color: transparent; border-radius: 50%; }
.pm-state { text-align: center; font-weight: 700; color: var(--text-2); }
.pm-off { text-align: center; color: var(--muted); font-size: .8rem; border: 1px dashed var(--line-2); border-radius: 12px; padding: 10px; }
.app-banner { --bc: #3d8bff; border-radius: 16px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--bc) 40%, transparent);
    background: linear-gradient(135deg, color-mix(in srgb, var(--bc) 22%, transparent), color-mix(in srgb, var(--bc) 6%, transparent)); display: flex; flex-direction: column; gap: 4px; }
.app-banner[data-style="promo"] { --bc: #ff7a1a; } .app-banner[data-style="ok"] { --bc: #2fd37c; } .app-banner[data-style="warn"] { --bc: #f5c542; }
.app-banner .ab-title { font-weight: 760; font-size: .92rem; color: var(--text); }
.app-banner .ab-text { font-size: .8rem; color: var(--text-2); white-space: pre-line; word-break: break-word; }
.app-banner .ab-btn { align-self: flex-start; margin-top: 6px; font-size: .76rem; font-weight: 750; padding: 5px 11px; border-radius: 99px; background: var(--bc); color: #111; }
.app-banner[hidden], .app-banner [hidden], .pm-off[hidden] { display: none; }


/* Statistika */
.chart-legend { display: flex; gap: 16px; font-size: .78rem; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; height: 190px; align-items: end; }
.bar-col { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; min-width: 0; }
.bar-pair { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; border-bottom: 1px solid var(--line); }
.bar-pair span { width: 42%; max-width: 16px; min-height: 2px; border-radius: 4px 4px 0 0; position: relative; }
.bar-pair .b-dl { background: var(--accent); } .bar-pair .b-act { background: var(--ok); }
.bar-pair em { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: .62rem; color: var(--muted); font-weight: 700; }
.bar-col small { font-size: .6rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 639px) { .bar-col small { writing-mode: vertical-rl; transform: rotate(180deg); } .bars { height: 220px; } .bar-pair em { display: none; } }
.ver-list { display: flex; flex-wrap: wrap; gap: 8px; }
.dev-table { display: flex; flex-direction: column; }
.dev-row { display: grid; grid-template-columns: 12px minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: .86rem; }
.dev-row:last-child { border-bottom: 0; }
.dev-plat { display: flex; align-items: center; gap: 6px; font-weight: 650; min-width: 0; }
.dev-client { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev-time { font-size: .78rem; white-space: nowrap; }

/* ---------- Uly ekranlar ---------- */
@media (min-width: 640px) {
    .container { padding: 24px 22px 10px; }
    h1 { font-size: 1.7rem; }
    .stats { grid-template-columns: repeat(3, 1fr); }
    .form-row { grid-template-columns: repeat(2, 1fr); }
    .grid { grid-template-columns: repeat(2, 1fr); }
    .checkbox-grid { grid-template-columns: repeat(2, 1fr); }
    .actions-grid { grid-template-columns: repeat(3, 1fr); }
    .modal { align-items: center; }
}

@media (min-width: 980px) {
    body { padding-bottom: 0; }
    .shell { display: grid; grid-template-columns: var(--side-w) 1fr; background: linear-gradient(90deg, var(--bg-2) calc(var(--side-w) - 1px), var(--line) calc(var(--side-w) - 1px), var(--line) var(--side-w), transparent var(--side-w)); }
    :root[data-theme="light"] .shell { background: linear-gradient(90deg, var(--surface) calc(var(--side-w) - 1px), var(--line) calc(var(--side-w) - 1px), var(--line) var(--side-w), transparent var(--side-w)); }
    .topbar, .bottom-nav { display: none; }
    .sidebar {
        display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
        padding: 20px 14px 16px; border-right: 1px solid var(--line); background: var(--bg-2);
    }
    :root[data-theme="light"] .sidebar { background: var(--surface); }
    .sidebar .brand { padding: 2px 6px 6px; }
    .container { padding: 30px 34px 12px; }
    .stats { grid-template-columns: repeat(6, 1fr); }
    .grid { grid-template-columns: repeat(3, 1fr); }
    .form-row { grid-template-columns: repeat(2, 1fr); }
    .support-fab, body.no-nav .support-fab { bottom: 22px; right: 22px; }
    .toast { bottom: 30px; }
    .toolbar { flex-direction: row; align-items: center; top: 0; padding: 12px 0; }
    .toolbar .search-box { width: 320px; flex: none; }
    .actions-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
    .detail-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
    .split { grid-template-columns: 1fr 1fr; align-items: start; }

    /* Klentler jedwel görnüşinde */
    .client-list { gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
    .client-head, .client-row {
        display: grid; align-items: center; gap: 18px;
        grid-template-columns: minmax(180px, 1.5fr) minmax(170px, 1.3fr) 130px 120px auto;
        grid-template-areas: "who use exp status act";
    }
    .client-head { padding: 11px 18px; font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); }
    .client-row { border: 0; border-radius: 0; box-shadow: none; padding: 13px 18px; border-bottom: 1px solid var(--line); background: transparent; }
    .client-row:last-of-type { border-bottom: 0; }
    .client-row:hover { background: var(--surface-2); }
    .client-row .c-exp { display: block; grid-area: exp; font-size: .84rem; font-variant-numeric: tabular-nums; }
    .client-row .c-exp small { display: block; color: var(--muted); font-size: .74rem; }
    .client-row .c-status { justify-self: start; align-self: center; }
    .client-row .c-use { gap: 8px; }
    .client-row .c-meta .exp-m { display: none; }
    .client-row .card-actions { flex-wrap: nowrap; justify-content: flex-end; }
    .client-row .card-actions .btn-grow { flex: none; }
    .client-row .card-actions .btn-grow .lbl { display: none; }
    .client-row .card-actions .btn-grow { padding: 6px; min-width: 34px; }
}
@media (min-width: 1280px) {
    .client-row .card-actions .btn-grow .lbl { display: inline; }
    .client-row .card-actions .btn-grow { padding: 6px 12px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
