    :root {
      /* Cafe Control cabinet — modern shell (Master admin bilan bir tilda) */
      --ink: #05070f;
      --panel: rgba(17, 24, 43, 0.78);
      --panel-solid: #11182b;
      --line: rgba(255, 255, 255, 0.1);
      --line-strong: rgba(255, 255, 255, 0.16);
      --text: #f2f7ff;
      --muted: #b7c5d8;
      --amber: #ffc25c;
      --teal: #22d3ee;
      --rose: #ff7a92;
      --ok: #34e0a1;
      --warn: #ffc25c;
      --blue: #0891b2;
      --blue-dark: #0e7490;
      --accent: #22d3ee;
      --gate-bg: #eef1f8;
      --gate-card: #ffffff;
      --gate-text: #121826;
      --gate-muted: #66748c;
      --radius: 16px;
      --r: 14px;
      --r-lg: 20px;
      --font: "Outfit", "Segoe UI Variable", "Segoe UI", sans-serif;
      --display: "Sora", "Outfit", sans-serif;
      --shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
      --glow: 0 0 0 1px rgba(34, 211, 238, 0.35), 0 12px 36px rgba(8, 145, 178, 0.22);
    }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      min-height: 100vh;
      font-family: var(--font);
      color: var(--text);
      background:
        radial-gradient(ellipse 80% 50% at 0% -10%, rgba(232, 165, 75, 0.18), transparent 55%),
        radial-gradient(ellipse 70% 45% at 100% 0%, rgba(62, 207, 190, 0.14), transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(80, 120, 200, 0.08), transparent 60%),
        linear-gradient(165deg, #05080f 0%, var(--ink) 45%, #0c1420 100%);
      background-attachment: fixed;
    }
    body.gate-mode {
      background: var(--gate-bg);
      color: var(--gate-text);
      background-attachment: scroll;
    }
    a { color: var(--teal); text-decoration: none; }
    body.gate-mode a { color: var(--blue); }
    a:hover { text-decoration: underline; }
    .hidden { display: none !important; }

    /* —— Gate (SmartShell-style / Cafe Control) —— */
    .gate {
      min-height: 100vh;
      display: grid;
      grid-template-columns: 1fr min(400px, 100%);
    }
    @media (max-width: 960px) {
      .gate { grid-template-columns: 1fr; }
      .gate-aside { order: -1; min-height: auto; position: relative; }
    }
    .gate-feed {
      padding: 28px 32px 40px;
      overflow: auto;
    }
    .gate-feed-top {
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 22px;
    }
    .gate-logo {
      display: flex; align-items: center; gap: 10px;
      font-family: var(--display); font-weight: 800; font-size: 1.35rem;
      letter-spacing: -0.03em; color: var(--gate-text);
    }
    .gate-mark {
      width: 36px; height: 36px; border-radius: 10px;
      background: #050608;
      display: grid; place-items: center;
      overflow: hidden;
      box-shadow: 0 8px 20px rgba(45, 212, 239, 0.28);
    }
    .gate-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }
    .gate-mark svg { width: 20px; height: 20px; }
    .promo-grid {
      display: grid;
      grid-template-columns: 1.15fr 1fr;
      gap: 16px;
    }
    @media (max-width: 1100px) {
      .promo-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 700px) {
      .promo-grid { grid-template-columns: 1fr; }
      .gate-feed { padding: 18px 16px 28px; }
    }
    .promo {
      background: var(--gate-card);
      border-radius: 20px;
      padding: 22px 22px 18px;
      box-shadow: 0 10px 30px rgba(30, 50, 90, 0.08);
      border: 1px solid rgba(20, 40, 80, 0.06);
      min-height: 200px;
      display: flex; flex-direction: column;
      position: relative; overflow: hidden;
    }
    .promo.hero {
      background: linear-gradient(145deg, #1b1f2a 0%, #2a1848 55%, #3a2060 100%);
      color: #fff;
      grid-row: span 1;
    }
    .promo.hero .promo-kicker { color: rgba(255,255,255,.65); }
    .promo.hero p { color: rgba(255,255,255,.78); }
    .promo-kicker {
      font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em;
      text-transform: uppercase; color: var(--blue); margin-bottom: 8px;
    }
    .promo h3 {
      font-family: var(--display); font-size: 1.2rem; margin: 0 0 8px;
      letter-spacing: -0.02em; line-height: 1.25;
    }
    .promo p {
      margin: 0; color: var(--gate-muted); font-size: 0.92rem; line-height: 1.45;
      flex: 1;
    }
    .promo-visual {
      margin-top: 16px; border-radius: 14px; min-height: 88px;
      background: linear-gradient(120deg, rgba(47,107,255,.12), rgba(62,207,190,.1));
      border: 1px solid rgba(47,107,255,.12);
      display: flex; align-items: flex-end; padding: 12px; gap: 8px;
    }
    .promo.hero .promo-visual {
      background: linear-gradient(120deg, rgba(255,255,255,.08), rgba(120,90,255,.2));
      border-color: rgba(255,255,255,.1);
    }
    .chip {
      background: rgba(255,255,255,.92); color: #1a2333;
      font-size: 0.72rem; font-weight: 800; padding: 6px 10px; border-radius: 8px;
    }
    .promo.hero .chip { background: rgba(255,255,255,.14); color: #fff; }
    .stat-bars { display:flex; align-items:flex-end; gap:5px; height:54px; margin-left:auto; }
    .stat-bars i {
      display:block; width:10px; border-radius:4px 4px 0 0;
      background: linear-gradient(180deg, #2f6bff, #6ea0ff);
    }

    .gate-aside {
      background: #fff;
      border-left: 1px solid rgba(20,40,80,.08);
      padding: 28px 28px 36px;
      display: flex; flex-direction: column;
      box-shadow: -12px 0 40px rgba(20, 40, 80, 0.06);
    }
    .gate-aside-brand {
      display: flex; align-items: center; gap: 10px;
      margin-bottom: 36px;
      font-family: var(--display); font-weight: 800; font-size: 1.15rem;
      letter-spacing: -0.02em;
    }
    .gate-aside h1 {
      font-family: var(--display); font-size: 1.55rem; margin: 0 0 22px;
      letter-spacing: -0.03em; line-height: 1.2;
    }
    .gate-aside label {
      display: block; margin-top: 14px; color: var(--gate-muted);
      font-size: 0.82rem; font-weight: 600;
    }
    .gate-aside input {
      width: 100%; margin-top: 6px; padding: 13px 14px; border-radius: 12px;
      border: 1px solid #d5dde8; background: #f7f9fc; color: var(--gate-text);
      font-family: var(--font); font-size: 1rem;
    }
    .gate-aside input:focus {
      outline: 2px solid rgba(47,107,255,.28); border-color: transparent; background: #fff;
    }
    .pass-wrap { position: relative; }
    .pass-wrap button.eye {
      position: absolute; right: 10px; top: 50%; transform: translateY(-35%);
      border: 0; background: transparent; cursor: pointer; color: var(--gate-muted);
      font-size: 0.85rem; font-weight: 700; padding: 6px;
    }
    .link-row {
      display: flex; justify-content: flex-end; margin-top: 8px;
      font-size: 0.85rem;
    }
    .btn-gate {
      width: 100%; margin-top: 18px; padding: 14px; border: 0; border-radius: 12px;
      background: var(--blue); color: #fff; font-weight: 800; font-size: 1rem;
      font-family: var(--font); cursor: pointer;
      box-shadow: 0 10px 24px rgba(47,107,255,.28);
    }
    .btn-gate:hover { background: var(--blue-dark); }
    .btn-gate:disabled { opacity: .5; cursor: not-allowed; }
    .btn-gate.secondary {
      background: #fff; color: var(--gate-text); border: 1px solid #d5dde8;
      box-shadow: none; margin-top: 10px;
    }
    .gate-foot {
      margin-top: auto; padding-top: 28px; text-align: center;
      color: var(--gate-muted); font-size: 0.9rem;
    }
    .gate-tabs {
      display: flex; align-items: stretch; gap: 3px; margin-bottom: 8px;
      min-height: 40px; height: 40px; box-sizing: border-box;
      background: #f0f3f8; padding: 3px; border-radius: 12px;
    }
    .gate-tabs button {
      flex: 1; border: 0; background: transparent; padding: 0 12px;
      border-radius: 10px; font-weight: 700; cursor: pointer; color: var(--gate-muted);
      font-family: var(--font); font-size: 0.88rem; line-height: 1;
      display: inline-flex; align-items: center; justify-content: center;
      box-shadow: inset 0 0 0 1px transparent;
      transition: background .2s, color .2s, box-shadow .2s;
    }
    .gate-tabs button.on {
      background: #fff; color: var(--blue);
      box-shadow: 0 2px 8px rgba(20,40,80,.08);
    }
    .gate-face {
      position: relative; margin: 10px auto 0; max-width: 220px;
      border-radius: 16px; overflow: hidden; background: #0b1220; aspect-ratio: 3/4;
      border: 1px solid #d5dde8;
    }
    .gate-face.is-fs-scan {
      position: fixed !important; inset: 0 !important; z-index: 10050;
      width: 100vw !important; height: 100dvh !important; max-width: none !important;
      aspect-ratio: auto !important; margin: 0 !important; border-radius: 0 !important; border: 0;
    }
    .gate-face video, .gate-face canvas { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; }
    .gate-face video { transform: scaleX(-1); }
    .gate-face canvas { position: absolute; inset: 0; pointer-events: none; }
    .gate-face .oval {
      position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
      width: 68%; height: 78%;
      border: 2.5px solid rgba(217,119,6,.95);
      border-radius: 50% 50% 46% 46% / 40% 40% 60% 60%;
      box-sizing: border-box; pointer-events: none;
      box-shadow: 0 0 0 9999px rgba(0,0,0,.55);
      transition: border-color .15s ease;
    }
    .gate-face .oval.far { width: 68%; height: 78%; border-color: rgba(217,119,6,.9); }
    .gate-face .oval.near { width: 86%; height: 90%; border-color: rgba(47,107,255,.95); }
    .gate-face.is-fs-scan .oval.far { width: min(72vw, 58vh); height: min(88vw, 70vh); }
    .gate-face.is-fs-scan .oval.near { width: min(90vw, 72vh); height: min(110vw, 86vh); }
    .gate-face .oval.wait { border-color: #16a34a; border-style: solid; }
    .gate-face .oval.ok { border-color: #16a34a; border-style: solid; box-shadow: 0 0 0 9999px rgba(0,0,0,.45), 0 0 0 3px rgba(22,163,74,.2); }
    .face-steps { display: flex; gap: 6px; margin: 8px 0 0; }
    .face-steps span {
      flex: 1; text-align: center; padding: 7px 4px; border-radius: 9px; font-size: 0.78rem; font-weight: 700;
      background: #f0f3f8; color: var(--gate-muted);
    }
    .face-steps span.on { background: var(--blue); color: #fff; }
    .face-steps span.done { background: #dcfce7; color: #166534; }
    .gate-err { color: #d64545; margin-top: 10px; font-size: 0.9rem; white-space: pre-wrap; }
    .gate-muted { color: var(--gate-muted); font-size: 0.88rem; }

    .app { max-width: 1100px; margin: 0 auto; padding: 20px 18px 64px; }
    body.gate-mode .app { display: none; }
    body.client-cabinet #owner-home { display: none !important; }
    body.owner-cabinet #client-home { display: none !important; }
    .client-panel .section-sub { margin-bottom: 16px; }
    #courier-panel, #supplier-panel { margin-top: 14px; }
    #courier-mem-list .stat, #supplier-mem-list .stat { margin-bottom: 8px; }
    body:not(.gate-mode) #view-auth-gate { display: none !important; }

    .top {
      display: flex; align-items: center; justify-content: space-between; gap: 16px;
      padding: 14px 4px 22px; flex-wrap: wrap;
    }
    .brand {
      font-family: var(--display);
      font-weight: 800;
      font-size: clamp(1.35rem, 3vw, 1.75rem);
      letter-spacing: -0.03em;
      line-height: 1.1;
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }
    .brand-inline-mark {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      display: block;
      flex: 0 0 auto;
    }
    .brand span {
      display: block;
      width: 100%;
      font-family: var(--font);
      font-weight: 500;
      font-size: 0.78rem;
      letter-spacing: 0.04em;
      color: var(--muted);
      margin-top: 4px;
      text-transform: uppercase;
    }
    .top-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

    .btn {
      appearance: none; border: 0; cursor: pointer;
      font-family: var(--font); font-weight: 700; font-size: 0.92rem;
      padding: 11px 16px; border-radius: 12px;
      background: linear-gradient(135deg, var(--amber), #d4893a);
      color: #1a1005; transition: transform .15s ease, filter .15s ease, opacity .15s;
    }
    .btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
    .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
    .btn.ghost {
      background: transparent; color: var(--text);
      border: 1px solid var(--line);
    }
    .btn.teal { background: linear-gradient(135deg, var(--teal), #2aafa0); color: #04221e; }
    .btn.danger { background: linear-gradient(135deg, #e85d66, #c43d48); color: #fff; }
    .btn.sm { padding: 8px 12px; font-size: 0.82rem; border-radius: 10px; }
    .btn.block { width: 100%; }

    .panel {
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      backdrop-filter: blur(14px);
      box-shadow: var(--shadow);
      padding: 22px;
    }

    .tabs {
      display: flex; align-items: stretch; gap: 3px; margin-bottom: 16px;
      min-height: 40px; height: 40px; box-sizing: border-box;
      background: rgba(0,0,0,.25); padding: 3px; border-radius: 12px;
      border: 1px solid var(--line);
    }
    .tab {
      flex: 1; border: 0; background: transparent; color: var(--muted);
      padding: 0 12px; border-radius: 10px; font-weight: 700; cursor: pointer;
      font-family: var(--font); font-size: 0.9rem; line-height: 1;
      display: inline-flex; align-items: center; justify-content: center;
      box-shadow: inset 0 0 0 1px transparent;
      transition: background .2s, color .2s, box-shadow .2s;
    }
    .tab.on {
      background: rgba(232,165,75,.16); color: var(--amber);
      box-shadow: inset 0 0 0 1px rgba(232,165,75,.28);
    }

    label { display: block; margin-top: 12px; color: var(--muted); font-size: 0.82rem; font-weight: 600; }
    input, select {
      width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 12px;
      border: 1px solid var(--line); background: rgba(7, 11, 18, 0.85); color: var(--text);
      font-family: var(--font); font-size: 1rem;
    }
    input:focus, select:focus { outline: 2px solid rgba(62,207,190,.35); border-color: transparent; }
    .err { color: var(--rose); margin-top: 10px; white-space: pre-wrap; font-size: 0.9rem; }
    .ok { color: var(--ok); margin-top: 10px; white-space: pre-wrap; font-size: 0.9rem; }
    .muted { color: var(--muted); }
    .mono { font-family: ui-monospace, Consolas, monospace; font-size: 0.8rem; word-break: break-all; }

    .face-wrap {
      position: relative; margin: 8px auto 0; max-width: 280px;
      border-radius: 20px; overflow: hidden; background: #020617; aspect-ratio: 3/4;
      border: 1px solid var(--line);
    }
    .face-wrap.is-fs-scan {
      position: fixed !important; inset: 0 !important; z-index: 10050;
      width: 100vw !important; height: 100dvh !important; max-width: none !important;
      aspect-ratio: auto !important; margin: 0 !important; border-radius: 0 !important; border: 0;
    }
    .face-wrap video, .face-wrap canvas { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; }
    .face-wrap video { transform: scaleX(-1); }
    .face-wrap canvas { position: absolute; inset: 0; pointer-events: none; }
    .face-tap {
      position: absolute; inset: 0; z-index: 4; display: none; cursor: pointer; background: transparent;
    }
    .face-hud {
      position: absolute; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom, 0px));
      z-index: 5; pointer-events: none;
    }
    .face-hud #face-status {
      margin: 0; text-align: center; padding: 12px 14px; border-radius: 14px;
      background: rgba(8,12,24,.72); border: 1px solid rgba(255,255,255,.12);
      color: #e2e8f0; font-weight: 700; font-size: .92rem;
    }
    body.face-scan-open { overflow: hidden; }
    body.face-scan-open .gate-aside > h1,
    body.face-scan-open .gate-aside > .gate-aside-brand,
    body.face-scan-open .gate-aside > .gate-muted,
    body.face-scan-open .face-steps,
    body.face-scan-open #auth-face > label,
    body.face-scan-open #auth-face > input,
    body.face-scan-open #btn-face,
    body.face-scan-open #gate-foot-login { display: none !important; }
    body.face-scan-open #auth-face { margin: 0; padding: 0; }
    body.face-scan-open .gate-aside {
      max-width: none; width: 100%; padding: 0; background: #000; border: 0; box-shadow: none;
    }
    .face-oval {
      --ring: #fbbf24;
      --ring-glow: rgba(251, 191, 36, 0.42);
      --vignette: rgba(2, 6, 14, 0.62);
      position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
      width: 74%; aspect-ratio: 5 / 6; height: auto;
      border: none; border-radius: 50%;
      box-sizing: border-box; pointer-events: none; overflow: hidden; background: transparent;
      box-shadow:
        inset 0 0 0 1.5px rgba(255,255,255,.55),
        inset 0 0 24px rgba(255,255,255,.06),
        0 0 0 1.5px color-mix(in srgb, var(--ring) 88%, white),
        0 0 0 5px var(--ring-glow),
        0 0 36px 2px var(--ring-glow),
        0 0 0 9999px var(--vignette);
      transition: box-shadow .2s ease;
    }
    .face-oval::before {
      content: none; display: none; animation: none;
    }
    .face-oval::after {
      content: ''; position: absolute; left: -8%; right: -8%; height: 32%; top: -40%;
      background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,.05) 35%, color-mix(in srgb, var(--ring) 28%, transparent) 50%, rgba(255,255,255,.05) 65%, transparent 100%);
      animation: face-oval-sweep 2.4s ease-in-out infinite; pointer-events: none;
    }
    @keyframes face-oval-sweep {
      0% { top: -42%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 110%; opacity: 0; }
    }
    .face-oval.far { width: 74%; aspect-ratio: 5 / 6; height: auto; --ring: #fbbf24; --ring-glow: rgba(251,191,36,.4); }
    .face-oval.near { width: 80%; aspect-ratio: 5 / 6; height: auto; --ring: #22d3ee; --ring-glow: rgba(34,211,238,.42); }
    .face-wrap.is-fs-scan .face-oval.far {
      width: min(70vw, 56vh); height: auto; aspect-ratio: 5 / 6; max-width: 86vw; max-height: 72vh;
    }
    .face-wrap.is-fs-scan .face-oval.near {
      width: min(78vw, 64vh); height: auto; aspect-ratio: 5 / 6; max-width: 90vw; max-height: 78vh;
    }
    .face-oval.wait { --ring: #4ade80; --ring-glow: rgba(74,222,128,.45); }
    .face-oval.ok {
      --ring: #22c55e; --ring-glow: rgba(34,197,94,.5); --vignette: rgba(2,6,14,.48);
      box-shadow:
        inset 0 0 0 1.5px rgba(255,255,255,.65),
        inset 0 0 28px rgba(34,197,94,.12),
        0 0 0 2px #22c55e,
        0 0 0 7px rgba(34,197,94,.28),
        0 0 44px 4px rgba(34,197,94,.35),
        0 0 0 9999px var(--vignette);
    }

    .dash-head {
      display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap;
      margin-bottom: 22px;
    }
    .who { display: flex; gap: 14px; align-items: center; }
    .avatar {
      width: 56px; height: 56px; border-radius: 16px;
      background: linear-gradient(145deg, rgba(232,165,75,.35), rgba(62,207,190,.25));
      display: grid; place-items: center;
      font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: #fff;
      border: 1px solid var(--line);
    }
    .who h2 { margin: 0; font-family: var(--display); font-size: 1.45rem; letter-spacing: -0.03em; }
    .who p { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }
    .dash-kicker {
      margin: 0 0 4px !important;
      color: #22d3ee !important;
      font-size: 0.72rem !important;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }
    .home-kpis {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin-bottom: 14px;
    }
    .stat.hero {
      background: #17243a;
      border-color: rgba(34, 211, 238, 0.18);
      min-height: 112px;
    }
    .quick-actions {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 18px;
    }
    .qa-btn {
      border: 1px solid var(--line);
      background: #17243a;
      color: var(--text);
      border-radius: 14px;
      min-height: 58px;
      font-weight: 700;
      font-family: var(--font);
      cursor: pointer;
    }
    .qa-btn:hover { border-color: rgba(34, 211, 238, 0.45); color: #22d3ee; }
    @media (max-width: 720px) {
      .home-kpis, .quick-actions { grid-template-columns: 1fr; }
    }

    .stats {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
      margin-bottom: 22px;
    }
    @media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } }
    .stat {
      padding: 16px; border-radius: 16px;
      background: rgba(255,255,255,0.03);
      border: 1px solid var(--line);
    }
    .stat b {
      display: block; font-family: var(--display); font-size: 1.55rem;
      letter-spacing: -0.03em; margin-top: 4px;
    }
    .stat span { font-size: 0.78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

    .nav {
      display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px;
      padding: 4px; background: rgba(0,0,0,.22); border-radius: 14px; width: fit-content; max-width: 100%;
    }
    .nav button {
      border: 0; background: transparent; color: var(--muted); cursor: pointer;
      padding: 10px 14px; border-radius: 10px; font-weight: 700; font-family: var(--font); font-size: 0.88rem;
    }
    .nav button.on { background: rgba(34, 211, 238, 0.14); color: var(--teal); }

    .section-title {
      font-family: var(--display); font-size: 1.15rem; margin: 0 0 6px; letter-spacing: -0.02em;
    }
    .section-sub { color: var(--muted); margin: 0 0 16px; font-size: 0.92rem; }

    .club {
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 16px;
      margin-bottom: 12px;
      background: rgba(7, 11, 18, 0.35);
      transition: border-color .2s;
    }
    .club:hover { border-color: rgba(232,165,75,.35); }
    .club-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
    .club-top h3 { margin: 0; font-size: 1.05rem; font-family: var(--display); }
    .badge {
      display: inline-flex; align-items: center; gap: 4px;
      padding: 4px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 800;
      text-transform: uppercase; letter-spacing: .03em;
    }
    .badge.ok { background: rgba(93,222,154,.15); color: var(--ok); }
    .badge.warn { background: rgba(240,193,74,.15); color: var(--warn); }
    .badge.bad { background: rgba(240,113,120,.15); color: var(--rose); }
    .badge.teal { background: rgba(62,207,190,.15); color: var(--teal); }
    .badge.amber { background: rgba(232,165,75,.15); color: var(--amber); }
    .meta { margin-top: 10px; display: grid; gap: 6px; color: var(--muted); font-size: 0.88rem; }
    .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
    .filial {
      margin-top: 10px; padding: 12px; border-radius: 12px;
      border: 1px dashed var(--line); background: rgba(255,255,255,0.02);
    }
    .filial strong { display: block; margin-bottom: 4px; }

    .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    @media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }

    .empty {
      text-align: center; padding: 36px 18px; color: var(--muted);
      border: 1px dashed var(--line); border-radius: 16px;
    }
    .empty h3 { color: var(--text); font-family: var(--display); margin: 0 0 8px; }

    .toast {
      position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px);
      background: var(--panel-solid); border: 1px solid var(--line); color: var(--text);
      padding: 12px 18px; border-radius: 12px; opacity: 0; pointer-events: none;
      transition: .25s ease; z-index: 50; max-width: min(90vw, 420px); text-align: center;
      box-shadow: var(--shadow);
    }
    .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

    .pay-row {
      display: flex; justify-content: space-between; gap: 12px; padding: 12px 0;
      border-bottom: 1px solid var(--line); font-size: 0.9rem;
    }
    .pay-row:last-child { border-bottom: 0; }

    .admin-bar { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-bottom:14px; }
    .admin-sub { display:flex; flex-wrap:wrap; gap:6px; margin: 0 0 14px; }
    .admin-sub button {
      border:1px solid var(--line); background:rgba(0,0,0,.2); color:var(--muted);
      padding:8px 12px; border-radius:10px; font-weight:700; cursor:pointer; font-family:var(--font); font-size:.82rem;
    }
    .admin-sub button.on { background:rgba(232,165,75,.16); color:var(--amber); border-color:transparent; }
    .pc-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:10px; }
    .pc-card {
      border:1px solid var(--line); border-radius:14px; padding:12px; background:rgba(7,11,18,.4);
    }
    .pc-card h4 { margin:0 0 6px; font-family:var(--display); font-size:1rem; }
    .pc-card .actions { margin-top:10px; }
    .live-dot { width:8px; height:8px; border-radius:50%; display:inline-block; margin-right:6px; background:#475569; }
    .live-dot.on { background:var(--ok); box-shadow:0 0 8px rgba(93,222,154,.6); }
    .kpi-row { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:14px; }
    @media (max-width:720px){ .kpi-row { grid-template-columns:1fr 1fr; } }
    .kpi { padding:12px; border-radius:12px; border:1px solid var(--line); background:rgba(255,255,255,.03); }
    .kpi b { display:block; font-family:var(--display); font-size:1.25rem; margin-top:2px; }
    .kpi span { font-size:.72rem; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; font-weight:700; }

/* —— modern polish —— */
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 10px;
  border-radius: var(--r-lg, 20px);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  box-shadow: var(--shadow);
}
.nav button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font);
  font-size: 0.86rem;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.nav button:hover { color: var(--text); transform: translateY(-1px); }
.nav button.on {
  color: var(--text);
  background: linear-gradient(160deg, rgba(109,139,255,0.28), rgba(47,216,208,0.12));
  border-color: rgba(109,139,255,0.4);
  box-shadow: var(--glow);
}
.panel {
  border-radius: var(--r-lg, 20px);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  padding: 20px 22px;
}
.promo-grid { grid-template-columns: 1.2fr 0.9fr !important; }
@media (max-width: 900px) {
  .promo-grid { grid-template-columns: 1fr !important; }
}
.badge.teal {
  background: rgba(47, 216, 208, 0.16);
  color: var(--teal);
}

/* Owner dashboard: clear, touch-friendly control surface */
.app { max-width: 1240px; padding: 20px 22px 72px; }
.top { padding-bottom: 24px; }
.dash-head { margin-bottom: 18px; }
.home-kpis { gap: 14px; margin-bottom: 14px; }
.stat.hero {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  padding: 21px 22px;
  background: linear-gradient(135deg, #1b3150, #111d34);
  border-color: rgba(148, 163, 184, .17);
}
.stat.hero + .stat.hero { background: linear-gradient(135deg, #173046, #101c31); }
.stat.hero::after {
  content: ''; position: absolute; right: -48px; bottom: -88px;
  width: 158px; height: 158px; border-radius: 50%;
  background: rgba(251, 191, 36, .14); filter: blur(2px);
}
.stat.hero + .stat.hero::after { background: rgba(34, 211, 238, .14); }
.stat.hero b, .stat.hero span { position: relative; z-index: 1; }
.stat.hero span { display: flex; align-items: center; gap: 8px; }
.stat.hero span::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 5px rgba(251,191,36,.13);
}
.stat.hero + .stat.hero span::before { background: var(--teal); box-shadow: 0 0 0 5px rgba(34,211,238,.13); }
.quick-actions { gap: 14px; margin-bottom: 22px; }
.qa-btn {
  position: relative; min-height: 76px; padding: 14px 16px 14px 62px;
  text-align: left; border-radius: 16px; background: rgba(17,29,49,.8);
  border-color: var(--line); transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.qa-btn::before {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
  background: var(--amber); color: #101826; font-size: 1.15rem; content: '+';
}
.qa-btn[data-qa="camera"]::before { content: '◉'; background: var(--teal); }
.qa-btn[data-qa="report"]::before { content: '↗'; background: #a5b4fc; }
.qa-btn::after { content: '→'; position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.2rem; font-weight: 500; }
.qa-btn:hover, .qa-btn:focus-visible { color: var(--text); border-color: rgba(34,211,238,.48); background: rgba(24,44,68,.96); box-shadow: 0 12px 30px rgba(0,0,0,.18); transform: translateY(-2px); outline: none; }
.nav { padding: 8px; }
.nav button { display: inline-flex; align-items: center; gap: 7px; padding: 10px 15px; }
.admin-sub { padding: 8px; gap: 7px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0,0,0,.16); }
.admin-sub button { padding: 9px 12px; transition: background .16s, color .16s, transform .16s; }
.admin-sub button:hover { color: var(--text); transform: translateY(-1px); }
@media (max-width: 720px) {
  .app { padding: 14px 14px 56px; }
  .stat.hero { min-height: 112px; }
}
@media (max-width: 640px) {
  .nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav button { flex: 0 0 auto; white-space: nowrap; }
  .dash-head { margin-bottom: 14px; }
  .who { gap: 11px; }
  .avatar { width: 48px; height: 48px; border-radius: 14px; }
}


/* Club card — inline location map */
.club-loc-block {
  margin-top: 14px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.1);
  background:
    linear-gradient(165deg, rgba(109,139,255,.08), transparent 55%),
    rgba(2, 8, 20, 0.45);
}
.club-loc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.club-loc-kicker {
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 4px;
}
.club-loc-addr {
  font-size: .92rem;
  line-height: 1.35;
  color: var(--text);
  font-weight: 600;
}
.club-loc-map {
  height: min(42vh, 280px);
  min-height: 200px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: #0b1220;
}
.club-loc-map.is-empty {
  display: grid;
  place-items: center;
}
.club-loc-empty {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
}
.club-loc-hint {
  margin: 10px 0 0;
  font-size: .78rem;
  line-height: 1.4;
  color: var(--muted);
}

/* Owner Location picker — large modern map */
.owner-loc-dlg {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(920px, 96vw);
  width: min(920px, 96vw);
}
.owner-loc-dlg::backdrop {
  background: rgba(2, 6, 16, .72);
  backdrop-filter: blur(6px);
}
.owner-loc-card {
  background:
    radial-gradient(ellipse 80% 50% at 10% -20%, rgba(47,216,208,.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(109,139,255,.12), transparent 50%),
    #0b1220;
  color: #e2e8f0;
  border-radius: 22px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(148,163,184,.22);
  box-shadow: 0 28px 80px rgba(0,0,0,.55);
}
.owner-loc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.owner-loc-kicker {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 4px;
}
.owner-loc-head h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -.03em;
}
.owner-loc-x {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  color: #94a3b8;
  font-size: 22px;
  cursor: pointer;
  flex: 0 0 auto;
}
.owner-loc-x:hover { background: rgba(255,255,255,.14); color: #fff; }
.owner-loc-help {
  margin: 0 0 12px;
  font-size: .88rem;
  line-height: 1.45;
  color: #94a3b8;
}
.owner-loc-map-wrap {
  position: relative;
  margin: 0 0 14px;
}
.owner-loc-map {
  height: min(62vh, 520px);
  min-height: 320px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.owner-loc-map-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 500;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(8, 14, 28, .82);
  border: 1px solid rgba(255,255,255,.12);
  color: #e2e8f0;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  backdrop-filter: blur(8px);
  pointer-events: none;
  max-width: calc(100% - 24px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.owner-loc-card label {
  display: block;
  font-size: .78rem;
  color: #94a3b8;
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.owner-loc-card input[type=text] {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,.3);
  background: rgba(2,6,16,.55);
  color: #f8fafc;
  margin-bottom: 8px;
  font: inherit;
  font-size: .95rem;
}
.owner-loc-card input[type=text]:focus {
  outline: none;
  border-color: rgba(47,216,208,.55);
  box-shadow: 0 0 0 3px rgba(47,216,208,.15);
}
.owner-loc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.owner-loc-actions .btn { flex: 1 1 auto; min-height: 44px; }
.owner-loc-card .err {
  color: #fca5a5;
  min-height: 1.2em;
  margin: 4px 0;
  font-size: .85rem;
}
.server-summary {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.cc-map-pin {
  background: transparent !important;
  border: none !important;
}
.cc-map-pin-dot {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0 auto;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: linear-gradient(145deg, #2fd8d0, #4f6ef0);
  box-shadow: 0 4px 14px rgba(47,216,208,.45), 0 0 0 3px rgba(255,255,255,.85);
}
@media (max-width: 640px) {
  .owner-loc-map { height: min(55vh, 420px); min-height: 260px; }
  .club-loc-map { height: min(36vh, 220px); min-height: 160px; }
}

/* Mobile owner cabinet: persistent bottom-tab navigation */
@media (max-width: 760px) {
  body.owner-cabinet { padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
  body.owner-cabinet .app { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
  body.owner-cabinet #dash-nav {
    position: fixed;
    z-index: 100;
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom, 0px));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    width: auto;
    max-width: 680px;
    margin: 0 auto;
    padding: 5px;
    overflow: visible;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 20px;
    background: rgba(8, 15, 30, .90);
    box-shadow: 0 16px 46px rgba(0, 0, 0, .48), 0 0 0 1px rgba(255,255,255,.04) inset;
    backdrop-filter: blur(18px);
  }
  body.owner-cabinet #dash-nav button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 53px;
    padding: 5px 2px;
    border-radius: 15px;
    font-size: .62rem;
    line-height: 1.05;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    color: #aebbd0;
  }
  body.owner-cabinet #dash-nav button::before {
    display: block;
    margin-bottom: 4px;
    color: currentColor;
    font-size: 1rem;
    line-height: 1;
  }
  body.owner-cabinet #dash-nav button[data-pane="clubs"]::before { content: '⌂'; }
  body.owner-cabinet #dash-nav button[data-pane="buy"]::before { content: '+'; }
  body.owner-cabinet #dash-nav button[data-pane="payments"]::before { content: '▣'; }
  body.owner-cabinet #dash-nav button[data-pane="admin"]::before { content: '⚙'; }
  body.owner-cabinet #dash-nav button[data-pane="profile"]::before { content: '◌'; }
  body.owner-cabinet #dash-nav button.on {
    color: #ecfaff;
    border-color: rgba(34, 211, 238, .20);
    background: linear-gradient(160deg, rgba(34,211,238,.23), rgba(79,110,240,.19));
    box-shadow: 0 5px 17px rgba(0,0,0,.22);
  }
}
@media (max-width: 390px) {
  body.owner-cabinet #dash-nav { left: 4px; right: 4px; gap: 1px; padding: 4px; }
  body.owner-cabinet #dash-nav button { min-height: 49px; font-size: .56rem; }
}
