/* ============================================================
   NOC — Server Markazi · professional dark design system
   ============================================================ */
:root {
    /* Sirtlar (layered) */
    --bg:        #0a0c11;
    --bg-grad:   radial-gradient(1200px 600px at 80% -10%, #131a2a 0%, transparent 60%),
                 radial-gradient(900px 500px at -10% 0%, #101722 0%, transparent 55%);
    --surface:   #10131b;
    --surface-2: #161b26;
    --surface-3: #1c2331;
    --border:    #222a38;
    --border-strong: #313c4f;

    /* Matn */
    --text:      #e8ecf3;
    --muted:     #93a0b4;
    --faint:     #63708a;

    /* Aksent + semantik */
    --accent:    #5b96f7;
    --accent-2:  #7c5cff;
    --ok:        #35d0a5;
    --warn:      #f7b955;
    --bad:       #f76d6d;
    --info:      #62a8ff;

    --ok-bg:   rgba(53, 208, 165, .12);
    --warn-bg: rgba(247, 185, 85, .12);
    --bad-bg:  rgba(247, 109, 109, .13);
    --info-bg: rgba(98, 168, 255, .12);

    /* O'lchov */
    --r-sm: 8px;
    --r:    12px;
    --r-lg: 16px;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 12px 40px -12px rgba(0,0,0,.7);
    --ring: 0 0 0 3px rgba(91, 150, 247, .18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    background: var(--bg);
    background-image: var(--bg-grad);
    background-attachment: fixed;
    color: var(--text);
    font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
}

.mono { font-family: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace; font-size: .92em; }
.muted { color: var(--muted); }
.tnum { font-variant-numeric: tabular-nums; }
::selection { background: rgba(91,150,247,.28); }

/* ---------- Topbar ---------- */
.topbar {
    display: flex; align-items: center; gap: 22px;
    padding: 0 22px; height: 56px;
    background: rgba(10, 12, 17, .72);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 50;
}
.brand { font-weight: 700; font-size: 15px; letter-spacing: .3px; display: flex; align-items: center; gap: 9px; }
.brand-dot {
    width: 9px; height: 9px; border-radius: 50%; background: var(--ok);
    box-shadow: 0 0 0 3px rgba(53,208,165,.16), 0 0 10px var(--ok);
    transition: background .3s, box-shadow .3s;
}
.brand-sub { color: var(--faint); font-weight: 500; font-size: 12px; letter-spacing: .2px; }
.nav { display: flex; gap: 2px; flex: 1; }
.nav a {
    color: var(--muted); text-decoration: none; padding: 7px 14px; border-radius: 9px; font-weight: 500;
    font-size: 13.5px; transition: color .15s, background .15s; position: relative;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: #fff; background: linear-gradient(180deg, rgba(91,150,247,.18), rgba(91,150,247,.09)); box-shadow: inset 0 0 0 1px rgba(91,150,247,.25); }
.top-right { display: flex; align-items: center; gap: 14px; }
.clock { color: var(--faint); font-variant-numeric: tabular-nums; font-size: 13px; letter-spacing: .4px; }

.main { max-width: 1320px; margin: 0 auto; padding: 24px 22px 48px; }

/* ---------- Umumiy summary bar ---------- */
.summary {
    display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px;
}
.sum-hero {
    flex: 1; min-width: 260px;
    display: flex; align-items: center; gap: 16px;
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: 16px 20px; box-shadow: var(--shadow);
}
.sum-hero .hero-ic {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    font-size: 22px; flex: none;
}
.sum-hero.ok .hero-ic  { background: var(--ok-bg);  box-shadow: inset 0 0 0 1px rgba(53,208,165,.3); }
.sum-hero.bad .hero-ic { background: var(--bad-bg); box-shadow: inset 0 0 0 1px rgba(247,109,109,.3); }
.sum-hero .hero-txt b { font-size: 16px; display: block; }
.sum-hero .hero-txt span { color: var(--muted); font-size: 12.5px; }
.sum-stat {
    min-width: 110px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: 14px 18px; box-shadow: var(--shadow);
}
.sum-stat b { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.sum-stat span { display: block; color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: .7px; margin-top: 2px; }
.sum-stat.warn b { color: var(--warn); }
.sum-stat.bad b  { color: var(--bad); }

/* ---------- Kartalar ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.card-title { font-size: 13px; font-weight: 650; letter-spacing: .2px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; color: var(--text); }
.card-title .ic { opacity: .9; }
.grid { display: grid; gap: 20px; }
.two-col { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Server kartalari ---------- */
.servers-grid { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); margin-bottom: 20px; }
.server-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: 20px; text-decoration: none; color: var(--text); display: block;
    transition: border-color .18s, transform .18s, box-shadow .18s; position: relative; overflow: hidden;
    box-shadow: var(--shadow);
}
.server-card::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
    background: linear-gradient(90deg, var(--ok), #4bd6c0); opacity: .8;
}
.server-card.offline::before { background: linear-gradient(90deg, var(--bad), #ff8a6a); }
.server-card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.server-card.offline { box-shadow: var(--shadow), 0 0 0 1px rgba(247,109,109,.25); }
.sc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 3px; }
.sc-name { font-size: 16px; font-weight: 700; letter-spacing: -.2px; }
.sc-host { color: var(--faint); font-size: 11.5px; margin-left: auto; }
.sc-sub { color: var(--muted); font-size: 12px; margin-bottom: 16px; }
.sc-sub b { color: var(--text); font-weight: 600; }

.sc-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.metric-tile {
    background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r);
    padding: 11px 12px 8px;
}
.metric-tile .mt-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.metric-tile .mt-val { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.metric-tile .mt-label { color: var(--faint); font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; }
.metric-tile.warn .mt-val { color: var(--warn); }
.metric-tile.bad  .mt-val { color: var(--bad); }
.spark { width: 100%; height: 26px; display: block; }

.sc-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); padding: 9px 12px; }
.stat b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; font-weight: 650; }
.stat span { color: var(--faint); font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; }
.stat.warn b { color: var(--warn); }
.stat.bad b { color: var(--bad); }
.sc-badges { display: flex; flex-wrap: wrap; gap: 6px; }

.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot.ok  { background: var(--ok);  box-shadow: 0 0 0 3px rgba(53,208,165,.15), 0 0 8px var(--ok); }
.dot.bad { background: var(--bad); box-shadow: 0 0 0 3px rgba(247,109,109,.15), 0 0 8px var(--bad); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* ---------- Progress barlar ---------- */
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; font-size: 12px; }
.bar-label { min-width: 96px; color: var(--muted); }
.bar { flex: 1; height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #3aa0ff, var(--ok)); transition: width .4s ease; }
.bar i.warn { background: linear-gradient(90deg, #f7b955, #ffcf7a); }
.bar i.bad  { background: linear-gradient(90deg, #f76d6d, #ff9a7a); }
.bar-val { min-width: 42px; text-align: right; font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 600; }

/* ---------- Badge / pill / severity ---------- */
.pill { background: var(--surface-3); border-radius: 20px; padding: 2px 9px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sev { border-radius: 6px; padding: 3px 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .4px; display: inline-flex; align-items: center; gap: 5px; }
.sev::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.sev-crit { background: var(--bad-bg);  color: var(--bad); }
.sev-warn { background: var(--warn-bg); color: var(--warn); }
.sev-info { background: var(--info-bg); color: var(--info); }
.sev-ok   { background: var(--ok-bg);   color: var(--ok); }
.sev.no-dot::before { display: none; }

/* ---------- Saytlar ---------- */
.sites-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.site-item {
    display: flex; align-items: center; gap: 11px;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); padding: 11px 13px;
    transition: border-color .15s;
}
.site-item:hover { border-color: var(--border-strong); }
.site-name { font-weight: 600; font-size: 13px; }
.site-meta { color: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; margin-top: 1px; }
.site-item .grow { flex: 1; min-width: 0; }
.site-code { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Stack (alert/amal ro'yxatlari) ---------- */
.stack { display: flex; flex-direction: column; gap: 8px; }
.stack-item {
    display: flex; align-items: center; gap: 11px;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); padding: 10px 13px; font-size: 13px;
}
.stack-item .grow { flex: 1; min-width: 0; }
.stack-item b { font-weight: 650; }
.stack-empty { color: var(--faint); padding: 18px 2px; text-align: center; font-size: 13px; }

/* ---------- Jadval ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
    text-align: left; color: var(--faint); font-weight: 600; font-size: 10.5px;
    text-transform: uppercase; letter-spacing: .7px;
    padding: 9px 12px; border-bottom: 1px solid var(--border);
}
.table td { padding: 10px 12px; border-bottom: 1px solid rgba(34,42,56,.55); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: rgba(255,255,255,.018); }

/* ---------- Tugmalar ---------- */
.btn {
    background: var(--surface-2); color: var(--text);
    border: 1px solid var(--border); border-radius: 10px;
    padding: 8px 15px; font-size: 13px; font-weight: 550; cursor: pointer;
    transition: background .15s, border-color .15s, transform .08s; letter-spacing: .1px;
}
.btn:hover { border-color: var(--border-strong); background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 6px 11px; font-size: 12px; border-radius: 8px; }
.btn-primary { background: linear-gradient(180deg, #5b96f7, #4a86ee); color: #071018; border-color: transparent; font-weight: 700; box-shadow: 0 4px 14px -6px rgba(91,150,247,.6); }
.btn-primary:hover { filter: brightness(1.07); background: linear-gradient(180deg, #6aa1fa, #4f8bf2); }
.btn-ghost { background: transparent; }
.btn-danger { border-color: rgba(247,109,109,.35); color: var(--bad); background: rgba(247,109,109,.06); }
.btn-danger:hover { border-color: var(--bad); background: rgba(247,109,109,.12); }
.btn-block { width: 100%; }
.btn.active { border-color: rgba(91,150,247,.5); color: var(--accent); background: rgba(91,150,247,.08); }
.btn:disabled { opacity: .5; cursor: wait; }

/* ---------- Login ---------- */
.login-wrap { display: flex; justify-content: center; padding-top: 11vh; }
.login-card { width: 372px; padding: 30px 28px; box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.login-brand { text-align: center; margin-bottom: 24px; }
.login-brand .lb-ic { font-size: 30px; }
.login-title { font-size: 17px; font-weight: 700; margin-top: 8px; letter-spacing: -.2px; }
.login-note { color: var(--faint); font-size: 12px; margin-top: 3px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; font-weight: 500; }
.field input, .select {
    width: 100%; background: var(--surface-2); color: var(--text);
    border: 1px solid var(--border); border-radius: 10px; padding: 10px 13px; font-size: 14px;
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.field input::placeholder { color: var(--faint); }
.form-error { color: var(--bad); font-size: 13px; margin-bottom: 12px; background: var(--bad-bg); padding: 8px 11px; border-radius: 9px; }

/* ---------- Server sahifasi ---------- */
.server-head { margin-bottom: 20px; }
.back { color: var(--muted); text-decoration: none; font-size: 13px; transition: color .15s; display: inline-flex; align-items: center; gap: 5px; }
.back:hover { color: var(--accent); }
.server-title { font-size: 22px; font-weight: 750; display: flex; align-items: center; gap: 11px; margin: 8px 0 3px; letter-spacing: -.4px; }
.chips { display: flex; flex-wrap: wrap; gap: 11px; margin-bottom: 20px; }
.chip {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 11px 16px;
    box-shadow: var(--shadow); min-width: 92px;
}
.chip b { font-size: 17px; font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: -.3px; }
.chip span { color: var(--faint); font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; display: block; margin-top: 1px; }
.chip.warn { border-color: rgba(247,185,85,.4); }
.chip.warn b { color: var(--warn); }
.chip.bad { border-color: rgba(247,109,109,.4); }
.chip.bad b { color: var(--bad); }

.chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.range-btns { display: flex; gap: 6px; background: var(--surface-2); padding: 3px; border-radius: 10px; border: 1px solid var(--border); }
.range-btns .btn { border: none; background: transparent; }
.range-btns .btn.active { background: var(--surface-3); box-shadow: inset 0 0 0 1px rgba(91,150,247,.3); }
.charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .charts-grid { grid-template-columns: 1fr; } }
.chart-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); padding: 12px; height: 224px; position: relative; }

.actions-panel { display: flex; flex-wrap: wrap; gap: 8px; }
.action-output { margin-top: 14px; background: #0a0e15; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.action-output-head { display: flex; justify-content: space-between; align-items: center; padding: 9px 13px; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.action-output pre { padding: 13px; font-size: 12px; overflow: auto; max-height: 260px; white-space: pre-wrap; line-height: 1.5; }

.log-controls { display: flex; gap: 8px; align-items: center; }
.log-controls .select { width: auto; padding: 7px 11px; font-size: 12.5px; }
.log-view {
    background: #080b11; border: 1px solid var(--border); border-radius: var(--r);
    padding: 15px; font-size: 12px; overflow: auto; max-height: 480px; white-space: pre-wrap; line-height: 1.55; color: #c8d2e0;
}

/* ---------- Stale banner ---------- */
.stale-banner {
    background: var(--warn-bg); border: 1px solid rgba(247,185,85,.4);
    color: var(--warn); border-radius: var(--r); padding: 11px 15px; margin-bottom: 18px; font-weight: 550; font-size: 13px;
}

/* ---------- Paginatsiya ---------- */
nav[role="navigation"] { margin-top: 16px; font-size: 13px; }
nav[role="navigation"] a, nav[role="navigation"] span[aria-current] > span {
    display: inline-block; padding: 5px 11px; margin: 0 2px;
    border: 1px solid var(--border); border-radius: 8px; color: var(--muted); text-decoration: none;
}
nav[role="navigation"] span[aria-current] > span { color: var(--accent); border-color: rgba(91,150,247,.5); background: rgba(91,150,247,.08); }
nav[role="navigation"] a:hover { color: var(--text); border-color: var(--border-strong); }
nav[role="navigation"] p { display: none; }
nav[role="navigation"] > div:first-child { display: none; }
nav[role="navigation"] svg { width: 16px; height: 16px; }

/* ---------- AI Yordamchi ---------- */
.btn-ai {
    background: linear-gradient(135deg, rgba(124,92,255,.18), rgba(91,150,247,.14));
    border-color: rgba(124,92,255,.4); color: #cdbcff; font-weight: 600;
}
.btn-ai:hover { border-color: rgba(124,92,255,.7); background: linear-gradient(135deg, rgba(124,92,255,.26), rgba(91,150,247,.2)); }

.ai-overlay {
    position: fixed; inset: 0; background: rgba(4,6,10,.5); z-index: 90;
    opacity: 0; transition: opacity .22s; backdrop-filter: blur(2px);
}
.ai-overlay.show { opacity: 1; }

.ai-drawer {
    position: fixed; top: 0; right: 0; height: 100vh; width: 420px; max-width: 92vw; z-index: 100;
    background: var(--surface); border-left: 1px solid var(--border-strong);
    display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform .24s cubic-bezier(.4,0,.2,1);
    box-shadow: -20px 0 60px -20px rgba(0,0,0,.7);
}
.ai-drawer.show { transform: none; }
.ai-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; border-bottom: 1px solid var(--border); flex: none;
}
.ai-title { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 9px; }
.ai-badge {
    width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 14px;
    background: linear-gradient(135deg, #7c5cff, #5b96f7);
}
.ai-model { font-size: 11px; font-weight: 500; }

.ai-body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; }
.ai-welcome { text-align: center; margin: auto 0; color: var(--text); }
.ai-welcome-ic {
    width: 52px; height: 52px; border-radius: 15px; margin: 0 auto 14px; display: grid; place-items: center; font-size: 26px;
    background: linear-gradient(135deg, rgba(124,92,255,.2), rgba(91,150,247,.16)); box-shadow: inset 0 0 0 1px rgba(124,92,255,.3);
}
.ai-welcome p { margin-bottom: 6px; font-size: 13.5px; }
.ai-suggest { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.ai-suggest button {
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
    border-radius: 10px; padding: 10px 13px; font-size: 12.5px; cursor: pointer; text-align: left;
    transition: border-color .15s, background .15s;
}
.ai-suggest button:hover { border-color: rgba(124,92,255,.5); background: var(--surface-3); }

.ai-msg { display: flex; gap: 9px; align-items: flex-start; }
.ai-user { justify-content: flex-end; }
.ai-av {
    width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center; font-size: 13px;
    background: linear-gradient(135deg, #7c5cff, #5b96f7);
}
.ai-bubble { border-radius: 12px; padding: 10px 13px; font-size: 13.5px; line-height: 1.6; max-width: 85%; }
.ai-user .ai-bubble { background: linear-gradient(135deg, #4a86ee, #5b96f7); color: #07121e; font-weight: 500; border-bottom-right-radius: 4px; }
.ai-assistant .ai-bubble { background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.ai-md p { margin-bottom: 8px; } .ai-md p:last-child { margin-bottom: 0; }
.ai-md b { color: #fff; }
.ai-ul { margin: 6px 0 6px 2px; list-style: none; } .ai-ul li { padding-left: 16px; position: relative; margin-bottom: 4px; }
.ai-ul li::before { content: '▸'; position: absolute; left: 0; color: var(--accent); }
.ai-code { background: var(--surface-3); border-radius: 5px; padding: 1px 6px; font-size: 12px; color: #a9c7ff; }
.ai-pre { background: #080b11; border: 1px solid var(--border); border-radius: 9px; padding: 11px; margin: 8px 0; overflow-x: auto; font-size: 12px; color: #c8d2e0; white-space: pre; }

.ai-typing { display: inline-flex; gap: 4px; padding: 2px 0; }
.ai-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: aidot 1.2s infinite; }
.ai-typing i:nth-child(2) { animation-delay: .2s; } .ai-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes aidot { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.ai-input { display: flex; gap: 8px; align-items: flex-end; padding: 12px 14px; border-top: 1px solid var(--border); flex: none; }
.ai-input textarea {
    flex: 1; resize: none; background: var(--surface-2); color: var(--text);
    border: 1px solid var(--border); border-radius: 12px; padding: 10px 13px; font: inherit; font-size: 13.5px; line-height: 1.4;
    max-height: 140px; transition: border-color .15s, box-shadow .15s;
}
.ai-input textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.ai-input .btn-primary { width: 38px; height: 38px; padding: 0; font-size: 16px; border-radius: 11px; flex: none; }
@media (max-width: 560px) { .ai-drawer { width: 100vw; } }

/* ---------- Kirish animatsiyasi ---------- */
.card, .server-card, .sum-hero, .sum-stat { animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
