/* DezoCloud — Figma «DezoCloud — server platformasi» (wanYzAQ0olZKiskLMMTNNp) bo'yicha */
:root {
  --bg: #090C14; --side: #0D111C; --s1: #121826; --s2: #171F31; --line: #222B3D; --text: #E8EDF7; --muted: #8A94A8;
  --acc: #38BDF8; --acc2: #6366F1; --ok: #22C55E; --warn: #F59E0B; --err: #F04438;
  --grad: linear-gradient(135deg, var(--acc), var(--acc2));
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 14px/1.45 Inter, "Segoe UI", Roboto, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--acc); text-decoration: none; }
[hidden] { display: none !important; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }

/* ---------- tuzilma ---------- */
.shell { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2px; padding: 22px 16px 18px; background: var(--side); border-right: 1px solid var(--line); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 6px 22px; }
.logo { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; color: #fff; flex: none; }
.logo svg.i { width: 19px; height: 19px; }
.brand b { display: block; font-size: 18px; }
.brand small { color: var(--muted); font-size: 11px; font-weight: 500; }
.nav { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; }
.nav:hover { background: rgba(255, 255, 255, .03); color: var(--text); }
.nav.on { background: rgba(56, 189, 248, .12); color: var(--text); }
.nav.on svg.i { color: var(--acc); }
.side .grow { flex: 1; }
.srv { background: var(--s1); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.srv b { color: var(--text); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.srv a { font-weight: 500; }
.main { padding: 28px 32px 40px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.head .t { flex: 1; min-width: 220px; }
.head h1 { margin: 0; font-size: 26px; }
.head p { margin: 4px 0 0; color: var(--muted); }
.crumb { color: var(--muted); font-size: 13px; margin-bottom: 4px; }

/* ---------- tugmalar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 12px; font-weight: 600; white-space: nowrap; }
.btn.p { background: var(--grad); color: #fff; }
.btn.s { background: var(--s1); border: 1px solid var(--line); }
.btn.s:hover { border-color: #33405a; }
.btn.d { background: var(--s1); border: 1px solid var(--line); color: var(--err); }
.btn.sm { padding: 7px 12px; border-radius: 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }
.lang-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--s1); border: 1px solid var(--line); font-weight: 500; position: relative; }
.lang-btn svg.i { color: var(--acc); width: 16px; height: 16px; }
.menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; min-width: 230px; background: var(--s1); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); text-align: left; }
.menu button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 12px; border-radius: 10px; }
.menu button:hover { background: rgba(255, 255, 255, .04); }
.menu button.on { background: rgba(56, 189, 248, .12); font-weight: 600; }
.menu small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }

/* ---------- kartalar ---------- */
.card { background: var(--s1); border: 1px solid var(--line); border-radius: 16px; padding: 18px; min-width: 0; }
.card h3 { margin: 0 0 12px; font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 380px; gap: 16px; }
.kpi .l { color: var(--muted); font-weight: 500; font-size: 13px; }
.kpi .v { font-size: 22px; font-weight: 700; margin: 6px 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .s { color: var(--muted); font-size: 12px; margin-top: 8px; }
.bar { height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: var(--acc); transition: width .4s; }
.stack { display: flex; gap: 2px; height: 14px; border-radius: 6px; overflow: hidden; }
.stack i { display: block; height: 100%; min-width: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; color: var(--muted); margin: 10px 0 4px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend b { color: var(--text); font-weight: 600; }

/* grafik */
.chart { display: flex; align-items: flex-end; gap: 5px; height: 150px; }
.chart div { flex: 1; display: flex; align-items: flex-end; height: 100%; position: relative; }
.chart i { display: block; width: 100%; border-radius: 4px 4px 2px 2px; background: rgba(56, 189, 248, .3); min-height: 2px; }
.chart i.top { background: var(--grad); }
.chart div:hover i { background: rgba(56, 189, 248, .55); }
.chart div:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); background: #000; color: #fff; font-size: 11px; padding: 3px 6px; border-radius: 6px; white-space: nowrap; z-index: 5; }
.chart.sm { height: 90px; gap: 3px; }
.axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-top: 8px; }
.seg { display: inline-flex; gap: 4px; }
.seg button { padding: 5px 10px; border-radius: 8px; color: var(--muted); font-size: 12px; font-weight: 500; }
.seg button.on { background: rgba(56, 189, 248, .14); color: var(--acc); font-weight: 600; }

/* voqealar */
.ev { display: flex; gap: 12px; padding: 11px 0; }
.ev + .ev { border-top: 1px solid var(--line); }
.ev .d { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; }
.ev b { display: block; font-size: 13px; }
.ev small { color: var(--muted); font-size: 12px; }
.ev .w { margin-left: auto; color: var(--muted); font-size: 11px; white-space: nowrap; }
.lv-ok { background: var(--ok); } .lv-info { background: var(--acc); } .lv-warn { background: var(--warn); } .lv-err { background: var(--err); }

/* jadval */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .05em; padding: 10px 10px; }
.tbl td { padding: 11px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: rgba(255, 255, 255, .02); }
.app-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.app-cell b { display: block; }
.app-cell small { color: var(--muted); font-size: 12px; }
.ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; }
.ic svg.i { width: 19px; height: 19px; }
.ic.lg { width: 48px; height: 48px; border-radius: 14px; }
.ic.lg svg.i { width: 26px; height: 26px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); background: rgba(34, 197, 94, .14); }
.pill.warn { color: var(--warn); background: rgba(245, 158, 11, .14); }
.pill.err { color: var(--err); background: rgba(240, 68, 56, .14); }
.pill.off { color: #9CA3AF; background: rgba(156, 163, 175, .14); }
.chips { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chip { padding: 7px 14px; border-radius: 99px; background: var(--s1); border: 1px solid var(--line); color: var(--muted); font-weight: 500; font-size: 13px; }
.chip.on { background: rgba(56, 189, 248, .14); border-color: transparent; color: var(--acc); font-weight: 600; }
.search { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; background: var(--s1); border: 1px solid var(--line); margin-left: auto; width: 260px; color: var(--muted); }
.search input { background: none; border: 0; outline: none; flex: 1; min-width: 0; color: var(--text); }

/* tafsilot */
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button { padding: 0 0 10px; color: var(--muted); font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; }
.tabs button.on { color: var(--text); font-weight: 600; border-color: var(--acc); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { text-align: right; overflow-wrap: anywhere; }
.logbox { background: #05070D; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font: 12px/1.6 ui-monospace, Consolas, monospace; max-height: 560px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.logbox .t { color: var(--muted); margin-right: 10px; }
.logbox .lw { color: var(--warn); } .logbox .le { color: var(--err); }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { color: var(--muted); font-size: 13px; font-weight: 500; }
.inp { width: 100%; padding: 11px 13px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); outline: none; }
.inp:focus { border-color: var(--acc); }
.env-row { display: grid; grid-template-columns: 240px 1fr auto auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.env-row .inp { padding: 9px 11px; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.note { color: var(--muted); font-size: 12px; }

/* loyihalar */
.proj .top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.proj .top b { font-size: 16px; display: block; }
.proj .row { display: flex; justify-content: space-between; font-size: 13px; margin: 6px 0; }
.proj .srvrow { display: flex; align-items: center; gap: 8px; padding-top: 8px; margin-top: 8px; border-top: 1px solid var(--line); font-size: 13px; }
.proj .srvrow .n { flex: 1; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }

/* tariflar */
.plan { display: flex; flex-direction: column; gap: 10px; padding: 22px; }
.plan.pop { border: 2px solid var(--acc); background: rgba(56, 189, 248, .05); }
.plan .price { font-size: 26px; font-weight: 700; }
.plan .price small { font-size: 13px; color: var(--muted); font-weight: 400; }
.plan .f { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.plan .f svg.i { color: var(--ok); width: 16px; height: 16px; }
.badge { padding: 3px 10px; border-radius: 99px; background: var(--grad); color: #fff; font-size: 11px; font-weight: 600; }

/* yaratish */
.steps { display: grid; gap: 22px; }
.step h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 16px; }
.step h4 span { width: 24px; height: 24px; border-radius: 50%; background: rgba(56, 189, 248, .16); color: var(--acc); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.opts { display: flex; flex-wrap: wrap; gap: 12px; }
.opt { padding: 14px; border-radius: 14px; background: var(--s1); border: 1px solid var(--line); min-width: 150px; text-align: left; display: grid; gap: 3px; }
.opt b { font-size: 14px; } .opt small { color: var(--muted); font-size: 12px; }
.opt.on { border: 2px solid var(--acc); background: rgba(56, 189, 248, .08); padding: 13px; }
.opt:disabled { opacity: .45; cursor: default; }

/* Google bilan kirish: o'z dizaynimiz + ustida ko'rinmas haqiqiy Google tugmasi */
.gwrap { position: relative; height: 50px; border-radius: 14px; }
.gbtn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; border-radius: 14px;
  background: linear-gradient(180deg, #1A2134, #141A29); border: 1px solid #2C3650; color: var(--text); font-weight: 600; font-size: 15px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 6px 18px rgba(0, 0, 0, .25); transition: border-color .2s, transform .1s, box-shadow .2s; pointer-events: none; }
.gbtn .g { width: 22px; height: 22px; padding: 4px; box-sizing: content-box; background: #fff; border-radius: 50%; flex: none; }
.gwrap:hover .gbtn { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(56, 189, 248, .15), 0 6px 18px rgba(0, 0, 0, .25); }
.gwrap:active .gbtn { transform: scale(.985); }
.gwrap:not(.ready) .gbtn { opacity: .6; }
.gsi { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: .001; overflow: hidden; border-radius: 14px; }
.gsi > div, .gsi iframe { transform: scale(1.15); transform-origin: center; }

/* kirish */
.authcard { width: 100%; max-width: 420px; padding: 32px 28px; }
.authcard h2 { margin: 0 0 6px; font-size: 22px; text-align: center; }
.pwlogin { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.pwlogin summary { cursor: pointer; color: var(--muted); font-size: 13px; text-align: center; list-style: none; }
.pwlogin summary::-webkit-details-marker { display: none; }
.pwlogin[open] summary { color: var(--text); }
.srv.me { display: flex; align-items: center; gap: 10px; }
.srv.me img, .srv.me .ava { width: 36px; height: 36px; border-radius: 50%; flex: none; object-fit: cover; }
.srv.me .ava { display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; }
.srv.me b { display: block; font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.srv.me small { display: block; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.empty-hero { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 36px 20px; }
.empty-hero h2 { margin: 6px 0 0; font-size: 20px; }
.empty-hero p { margin: 0 0 8px; max-width: 460px; }

.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth form { width: 100%; max-width: 400px; }
.auth .brand { justify-content: center; padding-bottom: 26px; }
.err { color: var(--err); font-size: 13px; min-height: 18px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--text); color: #0B0D12; padding: 10px 16px; border-radius: 12px; font-weight: 500; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.toast.bad { background: var(--err); color: #fff; }
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--s2); border: 1px solid rgba(56, 189, 248, .4); }
.banner .x { flex: 1; } .banner b { display: block; font-size: 13px; } .banner small { color: var(--muted); font-size: 12px; }
.mockbar { background: rgba(245, 158, 11, .15); color: var(--warn); text-align: center; font-size: 12px; padding: 6px; }
.skel { color: var(--muted); padding: 30px 0; text-align: center; }

/* ---------- telefon ---------- */
.mnav { display: none; }
@media (max-width: 1100px) {
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .row2 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .main { padding: 18px 16px 96px; }
  .head h1 { font-size: 22px; }
  .mnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--side); border-top: 1px solid var(--line); justify-content: space-around; padding: 8px 4px calc(env(safe-area-inset-bottom, 0px) + 8px); }
  .mnav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 500; color: var(--muted); min-width: 60px; }
  .mnav a.on { color: var(--acc); }
  .tbl .hide-m { display: none; }
  .search { width: 100%; margin-left: 0; }
  .env-row { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr; }
  .grid4 { gap: 10px; }
  .kpi { padding: 14px; }
  .kpi .v { font-size: 16px; white-space: normal; }
  .head .btn { padding: 9px 12px; }
}
