/* ─────────────────────────────────────────────
   Mijoz kabineti — kirish va admin sahifalari.
   Realizator ilovasidan ataylab mustaqil: uning CSS'iga tayanmaydi.
   Ranglar KPI sahifasi bilan bir xil (to'q sariq urg'u).
   ───────────────────────────────────────────── */

:root {
    --bg: #F6F4F2;
    --surface: #FFFFFF;
    --ink: #1A1B1F;
    --muted: #66625E;
    --line: #E2DCD6;
    --accent: #E8531F;
    --accent-soft: #FFE6DA;
    --good: #0E9F6E;
    --bad: #C23B30;
    --brand: #16171C;
    --f-display: "Unbounded", "Golos Text", system-ui, sans-serif;
    --f-body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 15px/1.5 var(--f-body);
}

.hidden { display: none !important; }

/* ── yuqori panel ── */
.top {
    background: var(--brand);
    color: #fff;
    border-bottom: 4px solid #FF6B15;
}
.top-in {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
}
.logo { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.logo img { width: 38px; height: 38px; border-radius: 50%; }
.logo b { font-family: var(--f-display); font-weight: 600; font-size: 16px; }
.logo small { display: block; font-size: 12px; opacity: .7; }
.top .who { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.top .who a { color: #FFB05C; }
.top-in > .lang-sw { margin-left: auto; }
.lang-sw { display: inline-flex; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 2px; gap: 2px; }
.lang-sw button { font: inherit; font-size: 12px; font-weight: 600; border: 0; background: transparent; color: inherit; opacity: .7; padding: 4px 9px; border-radius: 999px; cursor: pointer; }
.lang-sw button[aria-pressed="true"] { background: #FF6B15; color: #fff; opacity: 1; }

/* ── umumiy ── */
.wrap { max-width: 1100px; margin: 0 auto; padding: 32px 16px 64px; }
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 18px 40px -30px rgba(0, 0, 0, .35);
}
h1, h2 { font-family: var(--f-display); font-weight: 600; letter-spacing: -.02em; margin: 0 0 6px; }
h1 { font-size: 22px; }
.lead { color: var(--muted); margin: 0 0 18px; }

.btn {
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
}
.btn:disabled { opacity: .55; cursor: wait; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.good { background: var(--good); border-color: var(--good); color: #fff; }
.btn.sm { padding: 6px 11px; font-size: 13px; }

.msg { padding: 10px 12px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; }
.msg.err { background: #F8DCD9; color: var(--bad); }
.msg.ok { background: #DDF3EA; color: #0B6B4B; }

/* ── kirish/ro'yxat ── */
.authbox { max-width: 440px; margin: 0 auto; }
.tabs { display: flex; gap: 4px; background: var(--bg); padding: 4px; border-radius: 12px; margin-bottom: 18px; }
.tabs button {
    flex: 1;
    font: inherit;
    font-weight: 600;
    font-size: 14px;
    padding: 9px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.field input {
    font: inherit;
    font-size: 15px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    width: 100%;
}
.field input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
form .btn.primary { width: 100%; margin-top: 4px; }

/* Telefon: +998 qotirilgan, foydalanuvchi faqat 9 ta raqamni yozadi */
.phone {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    overflow: hidden;
}
.phone:focus-within { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.phone__cc {
    display: flex;
    align-items: center;
    padding: 0 10px 0 12px;
    background: var(--bg);
    border-right: 1px solid var(--line);
    color: var(--ink);
    font-weight: 600;
    font-size: 15px;
}
.phone input { border: 0; border-radius: 0; outline: none; letter-spacing: .02em; }
.phone input:focus { outline: none; }
.phone.is-text .phone__cc { display: none; }

/* ── admin jadvali ── */
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
td.num, th.num { text-align: right; }
td.right { text-align: right; white-space: nowrap; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill.pending { background: #FFF1D6; color: #8A5A00; }
.pill.active { background: #DDF3EA; color: #0B6B4B; }
.pill.blocked { background: #F8DCD9; color: var(--bad); }
.sub { color: var(--muted); font-size: 13px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

/* ── admin: statistika va mijoz varaqalari ── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stat b { display: block; font-family: var(--f-display); font-size: 24px; }
.stat span { font-size: 12.5px; color: var(--muted); }
.stat.hot b { color: var(--accent); }
.sheets-box { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.sheets-box ul { margin: 8px 0 0; padding-left: 18px; }
.sheets-box a { color: var(--accent); }
.temp-pass { font-family: ui-monospace, monospace; font-size: 18px; font-weight: 700; letter-spacing: .06em; user-select: all; }
