/* CafeControl Web — member cabinet (shell uslubi)
   Windows RunPad shell bilan bir xil visual til */

:root {
  --bg: #05080f;
  --bg-elev: #0a101c;
  --card: rgba(12, 16, 28, 0.88);
  --card-solid: #121a2b;
  --line: rgba(148, 163, 184, 0.22);
  --line-strong: rgba(56, 189, 248, 0.4);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #e8c547;
  --ok: #4ade80;
  --danger: #f87171;
  --font: "Outfit", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-display: "Orbitron", "Bahnschrift", "Trebuchet MS", sans-serif;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --blur: blur(16px);
  --ease: 160ms ease;
  --side-w: 112px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  background: var(--bg);
}
.hidden { display: none !important; }

/* ——— Auth ——— */
.screen {
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(16px + var(--safe-t)) 16px calc(32px + var(--safe-b));
  max-width: 520px;
  margin: 0 auto;
  background:
    radial-gradient(ellipse 80% 50% at 15% -5%, rgba(56, 189, 248, 0.2), transparent 55%),
    radial-gradient(ellipse 60% 40% at 95% 10%, rgba(232, 197, 71, 0.1), transparent 50%),
    linear-gradient(165deg, var(--bg), var(--bg-elev) 50%, #070b14);
}
@media (min-width: 900px) {
  .screen { max-width: 720px; padding-top: calc(28px + var(--safe-t)); }
}

#auth.screen {
  max-width: none;
  display: grid;
  place-items: center;
  padding: calc(20px + var(--safe-t)) 16px calc(28px + var(--safe-b));
  position: relative;
  overflow: hidden;
}
#auth.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 20% 30%, rgba(56, 189, 248, 0.18), transparent 60%),
    radial-gradient(ellipse 45% 40% at 80% 20%, rgba(232, 197, 71, 0.12), transparent 55%);
  pointer-events: none;
  animation: authGlow 10s ease-in-out infinite alternate;
}
@keyframes authGlow {
  from { opacity: 0.85; }
  to { opacity: 1; }
}

.auth-layout {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
@media (min-width: 960px) {
  .auth-layout {
    width: min(980px, 94vw);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
  }
}

.hero { padding: 12px 4px 0; }
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #f1f5f9;
}
.brand-mark {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  flex: 0 0 auto;
  display: block;
  box-shadow: 0 8px 24px rgba(45, 212, 239, 0.22);
}
.brand-text {
  background: linear-gradient(120deg, #e8c547 10%, #38bdf8 55%, #7dd3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-transform: none;
  letter-spacing: -0.03em;
  filter: drop-shadow(0 0 28px rgba(56, 189, 248, 0.25));
  font-size: inherit;
}
.tagline {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 500;
  max-width: 28rem;
  line-height: 1.45;
}
.hero-points {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 960px) {
  .hero-points { display: flex; }
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
  font-size: 0.92rem;
  font-weight: 600;
}
.hero-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.7);
  flex: 0 0 auto;
}

.auth-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 16px 16px;
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
}

/* ——— Yuz skani: to‘liq ekran + zamonaviy egg oval (CSS %). JS siljitmasin ——— */
#face-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #0a1220;
  aspect-ratio: 3 / 4;
  max-height: 360px;
  margin: 8px 0;
  min-height: 220px;
}
#face-wrap.cam-pending::before {
  content: '🤖';
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(64px, 22vw, 110px);
  line-height: 1;
  pointer-events: none;
  background: rgba(8, 12, 24, 0.72);
}
#face-wrap.cam-pending::after {
  content: 'Kamera ochilmoqda…';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14%;
  z-index: 3;
  text-align: center;
  color: #94a3b8;
  font-weight: 700;
  font-size: 14px;
  pointer-events: none;
}
#face-wrap video {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: scaleX(-1);
  background: #111827;
}
#face-wrap video::-webkit-media-controls,
#face-wrap video::-webkit-media-controls-enclosure,
#face-wrap video::-webkit-media-controls-start-playback-button,
.client-scan-video::-webkit-media-controls,
.client-scan-video::-webkit-media-controls-enclosure,
.client-scan-video::-webkit-media-controls-start-playback-button,
#cashout-video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
}
#face-oval {
  --ring: #38bdf8;
  --ring-glow: rgba(56, 189, 248, 0.45);
  --vignette: rgba(2, 6, 14, 0.55);
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: 92%;
  aspect-ratio: 3 / 4;
  height: auto;
  border: none;
  /* Kattaroq oval — yuzni yaqinlashtirib «tiqish» shart emas */
  border-radius: 50% / 45%;
  box-sizing: border-box;
  pointer-events: none;
  overflow: hidden;
  background: transparent;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.55),
    0 0 0 3px var(--ring),
    0 0 0 8px var(--ring-glow),
    0 0 36px 2px var(--ring-glow),
    0 0 0 9999px var(--vignette);
  transition:
    box-shadow 0.25s ease,
    width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.45s ease;
}
#face-oval::before {
  content: none;
  display: none;
  animation: none;
}
#face-oval::after {
  content: '';
  position: absolute;
  left: -8%;
  right: -8%;
  height: 28%;
  top: -40%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(56, 189, 248, 0.06) 35%,
    rgba(56, 189, 248, 0.22) 50%,
    rgba(56, 189, 248, 0.06) 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: 94%;
  aspect-ratio: 3 / 4;
  height: auto;
  --ring: #38bdf8;
  --ring-glow: rgba(56, 189, 248, 0.48);
}
#face-oval.near {
  width: 78%;
  aspect-ratio: 3 / 4;
  height: auto;
  --ring: #22d3ee;
  --ring-glow: rgba(34, 211, 238, 0.5);
}
#face-oval.wait {
  --ring: #38bdf8;
  --ring-glow: rgba(56, 189, 248, 0.5);
}
#face-oval.ok {
  --ring: #22c55e;
  --ring-glow: rgba(34, 197, 94, 0.5);
  --vignette: rgba(2, 6, 14, 0.48);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.55),
    0 0 0 3px #22c55e,
    0 0 0 8px rgba(34, 197, 94, 0.28),
    0 0 40px 4px rgba(34, 197, 94, 0.35),
    0 0 0 9999px var(--vignette);
}
#face-oval.ok::after {
  animation: none;
  opacity: 0;
}

#face-wrap.is-fs-scan {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10050;
  width: 100vw !important;
  height: 100dvh !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: #000;
}
/* Skan fullscreen — X yopish (web + mobil bir xil) */
.scan-fs-close {
  display: none;
  position: absolute;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: calc(12px + env(safe-area-inset-right, 0px));
  width: 44px;
  height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.92);
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  z-index: 10070;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
#face-wrap.is-fs-scan > .scan-fs-close,
body.face-scan-open .scan-fs-close,
.client-scan-dlg.is-fs-scan .scan-fs-close,
.cab-qr-overlay .scan-fs-close {
  display: inline-flex;
}
.scan-fs-close:active {
  transform: scale(0.96);
  background: rgba(30, 41, 59, 0.95);
}
#face-wrap.is-fs-scan #face-oval.far {
  width: min(96vw, 88vh);
  height: auto;
  aspect-ratio: 3 / 4;
  max-width: 98vw;
  max-height: 90vh;
}
#face-wrap.is-fs-scan #face-oval.near {
  width: min(82vw, 72vh);
  height: auto;
  aspect-ratio: 3 / 4;
  max-width: 90vw;
  max-height: 80vh;
}
body.face-scan-open {
  overflow: hidden;
}
body.face-scan-open .hero,
body.face-scan-open .auth-layout > .hero,
body.face-scan-open .auth-box > label,
body.face-scan-open .auth-box > input,
body.face-scan-open .auth-box > .hint,
body.face-scan-open .auth-box > .face-steps,
body.face-scan-open #btn-face-login,
body.face-scan-open #login-form,
body.face-scan-open #reg-form {
  display: none !important;
}
body.face-scan-open .auth-box {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
body.face-scan-open .auth-layout {
  display: block;
  padding: 0;
  margin: 0;
  max-width: none;
}
/* 1/2/3 qadamlar — kerak emas */
#face-steps,
.face-steps,
body.face-scan-open #face-steps {
  display: none !important;
}
body.face-scan-open #face-status {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  left: 16px;
  right: 16px;
  z-index: 10060;
  text-align: center;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(8, 12, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-weight: 700;
  backdrop-filter: blur(10px);
  display: block !important;
}

/* Native / mobil: webdagidek to‘liq viewport (F11) */
html.cc-immersive,
html.cc-immersive body {
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  overflow: hidden;
}
html.cc-immersive body {
  overflow: auto;
  overscroll-behavior: none;
}
html.cc-immersive .cab-shell {
  min-height: 100dvh;
  height: 100dvh;
}

.tabs, .subtabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar, .subtabs::-webkit-scrollbar { display: none; }
.tab, .sub {
  flex: 1 1 auto;
  min-width: max-content;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  padding: 11px 12px;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 0.86rem;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.tab.on, .sub.on {
  background: linear-gradient(160deg, rgba(56, 189, 248, 0.2), rgba(14, 165, 233, 0.08));
  color: var(--text);
  border-color: var(--line-strong);
}

.form { display: flex; flex-direction: column; gap: 6px; }
label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}
input, select {
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.9);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}
input:focus, select:focus {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.btn {
  margin-top: 10px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(30, 41, 59, 0.85);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn.primary {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8 45%, #67e8f9);
  color: #041018;
  border: 0;
  box-shadow: 0 10px 28px rgba(14, 165, 233, 0.35);
}
.btn.ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.28);
}
.err { color: var(--danger); min-height: 1.2em; font-size: 0.85rem; font-weight: 600; }
.hint { color: var(--muted); font-size: 0.82rem; margin: 0 0 14px; line-height: 1.4; }
.muted { color: var(--muted); }

/* ——— Shell-style cabinet ——— */
.cab-shell {
  height: 100vh;
  height: 100dvh;
  display: flex;
  overflow: hidden;
  background: var(--bg-elev) center / cover no-repeat;
  isolation: isolate;
  animation: fadeIn 0.3s ease;
}
.cab-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 50% 40% at 10% 0%, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 35% at 90% 10%, rgba(232, 197, 71, 0.08), transparent 50%);
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cab-sidebar {
  position: relative;
  z-index: 5;
  width: var(--side-w);
  flex: 0 0 var(--side-w);
  background: linear-gradient(180deg, rgba(8, 11, 20, 0.96), rgba(4, 6, 12, 0.98));
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  backdrop-filter: var(--blur);
  padding-top: var(--safe-t);
  padding-bottom: var(--safe-b);
}
.cab-side-brand {
  text-align: center;
  padding: 14px 8px 12px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
}
.cab-side-brand img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  display: block;
  box-shadow: 0 4px 14px rgba(45, 212, 239, 0.25);
}
.cab-side-list {
  flex: 1 1 auto;
  overflow: auto;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  scrollbar-width: thin;
}
.cab-side-foot {
  padding: 8px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.cab-side-item {
  position: relative;
  width: 76px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border-radius: 16px;
  padding: 10px 4px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font: inherit;
  transition: background var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.cab-side-item::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 22%;
  bottom: 22%;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: transparent;
  transition: background var(--ease);
}
.cab-side-item:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.22);
  transform: translateY(-1px) scale(1.03);
}
.cab-side-item.active {
  background: linear-gradient(160deg, rgba(56, 189, 248, 0.2), rgba(14, 165, 233, 0.08));
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35), 0 0 20px rgba(56, 189, 248, 0.12);
}
.cab-side-item.active::before { background: var(--accent); }
.cab-side-item.accent:not(.hidden) {
  border-color: rgba(232, 197, 71, 0.45);
  background: linear-gradient(160deg, rgba(232, 197, 71, 0.18), rgba(232, 197, 71, 0.05));
  color: var(--accent-2);
}
.cab-side-item.ghost { color: var(--muted); }
.cab-side-ico {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 18px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #94a3b8;
}
.cab-side-ico svg {
  width: 22px;
  height: 22px;
  display: block;
}
.cab-side-logo { padding: 3px; overflow: hidden; }
.cab-side-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; }

/* PC QR — sudraladigan zamonaviy floating action button */
.cab-scan-fab {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 9000;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(125, 211, 252, 0.72);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #06111b;
  background: linear-gradient(145deg, #67e8f9 0%, #38bdf8 48%, #22d3ee 100%);
  box-shadow: 0 16px 36px rgba(2, 132, 199, 0.42), 0 0 0 6px rgba(56, 189, 248, 0.10);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: box-shadow .2s ease, scale .2s ease;
}
.cab-scan-fab svg { width: 31px; height: 31px; position: relative; z-index: 2; }
.cab-scan-fab:active, .cab-scan-fab.is-dragging { cursor: grabbing; scale: .96; }
.cab-scan-fab.is-dragging { box-shadow: 0 20px 46px rgba(2,132,199,.58), 0 0 0 8px rgba(56,189,248,.14); }
.cab-scan-fab-ring { position: absolute; inset: -5px; border: 2px solid rgba(103,232,249,.5); border-radius: 50%; animation: scanFabPulse 2.2s ease-out infinite; }
.cab-scan-fab-dot { position: absolute; right: 7px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: #f8fafc; box-shadow: 0 0 12px #fff; }
@keyframes scanFabPulse { 0%,100% { opacity:.25; transform:scale(.96) } 55% { opacity:.8; transform:scale(1.08) } }
.cab-side-item.active .cab-side-ico {
  color: #67e8f9;
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(14, 116, 144, 0.22);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.12);
}
.cab-side-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.15;
  color: inherit;
  opacity: 0.9;
}

.cab-main {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cab-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  padding-top: calc(12px + var(--safe-t));
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 20, 0.72);
  backdrop-filter: var(--blur);
  flex-wrap: wrap;
}
.cab-top-left { min-width: 0; }
.cab-club {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
button.cab-brand-hit {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  max-width: 100%;
}
button.cab-brand-hit:active {
  opacity: 0.88;
}
.cab-brand-text {
  min-width: 0;
}
.cab-club-logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #050608;
  border: 1px solid rgba(45, 212, 239, 0.35);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.2);
  flex: 0 0 auto;
}
.cab-club-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cab-club-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cab-greeting {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cab-top-actions {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: nowrap;
  flex: 0 1 auto;
  min-width: 0;
}
.cab-top-right-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: min(46vw, 220px);
  max-width: min(58vw, 280px);
}
.cab-quit-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.55);
  background: linear-gradient(160deg, rgba(239, 68, 68, 0.92), rgba(185, 28, 28, 0.88));
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.28);
  -webkit-tap-highlight-color: transparent;
}
.cab-quit-btn:active { transform: scale(0.97); }
.balance-chip {
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: linear-gradient(160deg, rgba(56, 189, 248, 0.18), rgba(14, 165, 233, 0.06));
  color: #7dd3fc;
  font: inherit;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.12);
  transition: filter var(--ease), transform var(--ease);
}
.balance-chip-wide {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.balance-chip:hover { filter: brightness(1.08); }
.promo-chip {
  border-color: rgba(232, 197, 71, 0.45);
  background: linear-gradient(160deg, rgba(232, 197, 71, 0.2), rgba(232, 197, 71, 0.06));
  color: #f5d76e;
  box-shadow: 0 0 20px rgba(232, 197, 71, 0.12);
}
.aff-code-row,
.aff-code-edit {
  display: flex;
  gap: 8px;
  align-items: stretch;
  flex-wrap: wrap;
}
.aff-code-btn {
  flex: 1 1 160px;
  min-width: 0;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: linear-gradient(160deg, rgba(56, 189, 248, 0.22), rgba(14, 165, 233, 0.08));
  color: #e0f2fe;
  font: inherit;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
  padding: 0 16px;
}
.aff-code-btn:hover { filter: brightness(1.08); }
.aff-code-edit.hidden,
.aff-code-row.hidden { display: none !important; }
.aff-pay-form {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.28s ease, opacity 0.22s ease, margin 0.22s ease;
  margin: 0;
}
.aff-pay-form.is-open {
  max-height: 420px;
  opacity: 1;
  margin-bottom: 4px;
}
.aff-pay-form.hidden { display: none !important; }
.aff-bal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 14px;
}
.aff-bal {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.aff-bal strong { font-size: 1.15rem; }
.aff-bal-blue strong,
.aff-c-blue { color: #22d3ee; }
.aff-bal-red strong,
.aff-c-red { color: #f87171; }
.aff-sale-amt-blue { color: #22d3ee; font-weight: 700; }
.aff-sale-amt-red { color: #f87171; font-weight: 700; }
.aff-notice {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 0 8px;
}
.aff-notice img {
  display: block;
  max-width: 100%;
  margin-top: 8px;
  border-radius: 8px;
}
@media (max-width: 520px) {
  .aff-bal-row { grid-template-columns: 1fr; }
}
.btn-shell-top {
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(232, 197, 71, 0.5);
  background: linear-gradient(135deg, rgba(232, 197, 71, 0.2), rgba(232, 197, 71, 0.05));
  color: var(--accent-2);
  font: inherit;
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
}

.cab-content {
  flex: 1 1 auto;
  overflow: auto;
  padding: 18px 18px 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.cab-view { display: none; animation: viewIn 0.28s ease; }
.cab-view.active { display: block; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.view-head { margin-bottom: 18px; }
.view-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.view-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  max-width: 36rem;
  line-height: 1.4;
}

.home-greet { margin-bottom: 14px; }
.home-greet-hi {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.home-greet-sub { margin: 4px 0 0; color: var(--muted); font-size: 0.88rem; }

.home-balance-card {
  border-radius: 26px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(8, 12, 22, 0.95);
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.home-bal-main {
  width: 100%;
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 14px;
  align-items: center;
  text-align: left;
  padding: 0;
  border: 0;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.18), transparent 50%),
    rgba(10, 14, 24, 0.4);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.home-bal-main:hover { filter: brightness(1.05); }
.home-bal-media {
  width: 92px;
  height: 100px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.45), transparent 55%),
    linear-gradient(160deg, #0b1220, #071018);
  background-size: cover;
  background-position: center;
}
.home-bal-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: #e0f2fe;
  background: rgba(8, 12, 22, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.35);
  overflow: hidden;
}
.home-bal-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-bal-info { padding: 14px 0; min-width: 0; }
.home-bal-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.home-bal-sum {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.home-bal-sum strong { font-size: clamp(1.45rem, 4.5vw, 1.85rem); }
.home-bal-sum span { font-size: 0.85rem; color: var(--muted); font-weight: 700; }
.home-bal-club {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-bal-chevron {
  padding-right: 16px;
  font-size: 1.1rem;
  color: var(--accent);
  transition: transform 0.25s ease;
}
.home-balance-card.open .home-bal-chevron { transform: rotate(180deg); }
.home-bal-panel {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 12px 14px 14px;
  background: rgba(5, 8, 15, 0.55);
  animation: homeBalOpen 0.28s ease-out;
}
.home-bal-panel.hidden { display: none !important; }
@keyframes homeBalOpen {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.home-bal-clubs { display: flex; flex-direction: column; gap: 10px; }
.home-club-acc {
  border-radius: 18px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  background: rgba(12, 16, 28, 0.88);
  padding: 12px 14px;
}
.home-club-acc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.home-club-acc-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.7rem;
  background: #0b1220;
  border: 1px solid rgba(148, 163, 184, 0.3);
  flex-shrink: 0;
}
.home-club-acc-logo img { width: 100%; height: 100%; object-fit: cover; }
.home-club-acc-meta { min-width: 0; flex: 1; }
.home-club-acc-meta strong {
  display: block;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-club-acc-meta span { color: var(--muted); font-size: 0.75rem; }
.home-club-acc-total {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--accent);
  white-space: nowrap;
}
.home-club-acc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.home-club-acc-grid div {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.12);
}
.home-club-acc-grid span {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.home-club-acc-grid strong { font-size: 0.92rem; }
.home-club-acc-grid .cb strong { color: var(--ok); }
.home-club-acc-grid .ref strong { color: var(--accent-2); }

.home-quick {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.home-quick-book, .home-quick-club {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(12, 16, 28, 0.88);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: transform var(--ease), border-color var(--ease);
}
.home-quick-book {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.95), rgba(2, 132, 199, 0.88));
  border-color: transparent;
  color: #041018;
}
.home-quick-book small { color: rgba(4, 16, 24, 0.72); }
.home-quick-club small { color: var(--muted); }
.home-quick-book:hover, .home-quick-club:hover { transform: translateY(-2px); }

.wallet-hero {
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 20px;
  padding: 22px 20px;
  margin-bottom: 14px;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(14, 165, 233, 0.04)),
    rgba(8, 12, 22, 0.85);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), inset 0 0 40px rgba(56, 189, 248, 0.06);
  position: relative;
  overflow: hidden;
}
.wallet-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2), transparent 70%);
  pointer-events: none;
}
.wallet-hero-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.wallet-hero-sum {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.wallet-hero-sum strong {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #7dd3fc;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 24px rgba(56, 189, 248, 0.35);
}
.wallet-hero-sum span {
  color: var(--muted);
  font-weight: 600;
  font-size: 1rem;
}
.wallet-hero .hint { margin: 10px 0 0; max-width: 40rem; }

.promo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
@media (min-width: 640px) {
  .promo-grid { grid-template-columns: 1fr 1fr; }
}
.promo-card {
  text-align: left;
  border-radius: 18px;
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  background: rgba(12, 16, 28, 0.85);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.promo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}
.promo-cb {
  border-color: rgba(74, 222, 128, 0.4);
  background:
    linear-gradient(145deg, rgba(74, 222, 128, 0.14), rgba(14, 165, 233, 0.04)),
    rgba(12, 16, 28, 0.85);
}
.promo-ref {
  border-color: rgba(232, 197, 71, 0.45);
  background:
    linear-gradient(145deg, rgba(232, 197, 71, 0.14), rgba(56, 189, 248, 0.04)),
    rgba(12, 16, 28, 0.85);
}
.promo-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 4px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.06);
}
.promo-cb .promo-badge { color: var(--ok); }
.promo-ref .promo-badge { color: var(--accent-2); }
.promo-title {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 4px;
}
.promo-pct {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  margin: 4px 0 8px;
}
.promo-cb .promo-pct { color: var(--ok); }
.promo-ref .promo-pct { color: var(--accent-2); }
.promo-pct strong { font-size: 1.7rem; }
.promo-desc {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.balances {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
@media (min-width: 720px) {
  .balances { grid-template-columns: repeat(4, 1fr); }
}
.bal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  backdrop-filter: var(--blur);
  transition: border-color var(--ease), transform var(--ease);
}
.bal:hover { border-color: rgba(56, 189, 248, 0.3); transform: translateY(-1px); }
.bal span {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.bal strong {
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}
.bal em {
  font-style: normal;
  font-size: 0.7rem;
  color: rgba(148, 163, 184, 0.75);
  margin-top: 2px;
}
.bal.accent { border-color: rgba(74, 222, 128, 0.4); }
.bal.accent strong { color: var(--ok); }
.bal.referral { border-color: rgba(232, 197, 71, 0.4); }
.bal.referral strong { color: var(--accent-2); }

/* ——— Mening klubim ——— */
.myclub-teaser {
  width: 100%;
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 14px;
  align-items: center;
  text-align: left;
  padding: 0;
  margin: 0 0 18px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.16), transparent 55%),
    rgba(10, 14, 24, 0.95);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.myclub-teaser:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 20px 48px rgba(14, 165, 233, 0.18);
}
.myclub-teaser-media {
  width: 88px;
  height: 88px;
  background:
    radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.45), transparent 55%),
    linear-gradient(160deg, #0b1220, #071018);
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
}
.myclub-teaser-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: #e0f2fe;
  background: rgba(8, 12, 22, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.35);
  overflow: hidden;
}
.myclub-teaser-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.myclub-teaser-body { padding: 12px 0; min-width: 0; }
.myclub-teaser-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.myclub-teaser-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.myclub-teaser-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.myclub-teaser-addr {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.myclub-teaser-go {
  padding-right: 16px;
  font-size: 1.35rem;
  color: var(--accent);
  font-weight: 700;
}
.myclub-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(148, 163, 184, 0.14);
  color: var(--muted);
}
.myclub-pill.ok {
  background: rgba(74, 222, 128, 0.14);
  color: #86efac;
}
.myclub-pill.warn {
  background: rgba(248, 113, 113, 0.14);
  color: #fca5a5;
}

.club-mode-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
}
.club-mode-tabs, .club-view-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.club-view-toggle,
#club-view-list-btn,
#club-view-map-btn {
  display: none !important;
}
#club-view-head,
#club-view-head.club-view-head-hidden,
.club-view-head-hidden {
  display: none !important;
}
#club-view-head.club-view-head-on {
  display: block !important;
}
.club-mode-tab, .club-view-btn {
  border: none;
  background: transparent;
  color: var(--muted, #94a3b8);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.club-mode-tab.on, .club-view-btn.on {
  background: rgba(124, 58, 237, 0.28);
  color: #f5f3ff;
}
.club-map {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: min(72vh, 640px);
}
.club-map.hidden { display: none !important; }
.club-map-search-row {
  display: grid;
  grid-template-columns: 1fr minmax(120px, 160px) auto;
  gap: 8px;
  align-items: center;
}
.club-map-search, .club-map-region {
  width: 100%;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  color: inherit;
  font: inherit;
  font-size: 0.92rem;
}
.club-map-region { cursor: pointer; }
#club-map-locate {
  min-width: 44px;
  height: 44px;
  border-radius: 14px;
  padding: 0;
  font-size: 1.1rem;
}
.club-map-canvas {
  flex: 1;
  height: min(58vh, 520px);
  min-height: 280px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.18);
  background: #070b14;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.club-map-canvas .leaflet-container {
  width: 100%;
  height: 100%;
  background: #070b14;
  font: inherit;
}
.club-map-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: #94a3b8;
  padding: 0 4px;
}
.club-map-legend .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.club-map-legend .dot.live {
  background: #22d3ee;
  box-shadow: 0 0 10px #22d3ee;
}
.club-map-legend .dot.soon {
  background: #a78bfa;
  box-shadow: 0 0 10px #a78bfa;
}
.club-map-legend .dot.demo {
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
}
.club-map-icon-wrap {
  background: transparent !important;
  border: none !important;
  width: auto !important;
  height: auto !important;
}
.club-map-marker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(-6px);
  cursor: pointer;
  animation: clubMarkerPop 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.club-map-marker .pin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(145deg, #67e8f9, #2563eb);
  border: 2px solid #fff;
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55);
  animation: clubPinPulse 2.2s ease-out infinite;
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.club-map-marker .pin.has-logo {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  animation: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.club-map-marker .pin.has-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.club-map-marker.live .pin {
  background: linear-gradient(145deg, #4ade80, #16a34a);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  animation-name: clubPinPulseLive;
}
.club-map-marker.soon .pin {
  background: linear-gradient(145deg, #c4b5fd, #7c3aed);
  box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.5);
  animation-name: clubPinPulseSoon;
}
.club-map-marker.demo .pin {
  background: linear-gradient(145deg, #fcd34d, #d97706);
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5);
  animation-name: clubPinPulseSoon;
}
.club-map-marker .label {
  margin-top: 6px;
  max-width: 120px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(7, 11, 20, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #f8fafc;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.club-map-marker.live .label {
  border-color: rgba(74, 222, 128, 0.5);
  color: #bbf7d0;
}
.club-map-marker.soon .label {
  border-color: rgba(167, 139, 250, 0.45);
  color: #e9d5ff;
}
.club-map-marker.demo .label {
  border-color: rgba(245, 158, 11, 0.5);
  color: #fde68a;
}
.club-map-marker .badge {
  position: absolute;
  top: -10px;
  right: -18px;
  z-index: 3;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 999px;
  background: #64748b;
  color: #fff;
  box-shadow: 0 4px 12px rgba(100, 116, 139, 0.45);
}
.club-map-marker.live .badge {
  background: #16a34a;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.45);
}
.club-map-marker.soon .badge {
  background: #7c3aed;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.45);
}
.club-map-marker.demo .badge {
  background: #d97706;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.45);
}
@keyframes clubMarkerPop {
  from { opacity: 0; transform: translateY(8px) scale(0.72); }
  to { opacity: 1; transform: translateY(-6px) scale(1); }
}
@keyframes clubPinPulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}
@keyframes clubPinPulseLive {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
@keyframes clubPinPulseSoon {
  0% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.5); }
  70% { box-shadow: 0 0 0 14px rgba(167, 139, 250, 0); }
  100% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0); }
}
.club-map-sheet {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 500;
  padding: 14px;
  border-radius: 18px;
  background: rgba(10, 12, 22, 0.94);
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
}
.club-map-sheet.hidden { display: none !important; }
.club-map-sheet h3 { margin: 0 0 4px; font-size: 1.05rem; }
.club-map-sheet p { margin: 0 0 10px; color: var(--muted, #94a3b8); font-size: 0.86rem; }
.club-map-sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.club-map-sheet-actions .btn { flex: 1 1 auto; }
@media (max-width: 720px) {
  .club-map {
    min-height: min(90vh, 920px);
  }
  .club-map-search-row { grid-template-columns: 1fr auto; }
  .club-map-region { grid-column: 1 / -1; }
  .club-map-canvas {
    /* Mobil/ilova: eniga emas, uzuniga (portrait) */
    width: 100%;
    height: auto;
    min-height: min(68vh, 640px);
    aspect-ratio: 3 / 4;
    max-height: min(78vh, 760px);
  }
  .club-map-marker .label { max-width: 88px; font-size: 9px; }
  .club-map-marker .pin.has-logo { width: 24px; height: 24px; border-radius: 8px; }
}

.club-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.club-list-card {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(10, 14, 24, 0.92);
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  padding: 0;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  transition: transform var(--ease), border-color var(--ease);
}
.club-list-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.5);
}
.club-list-hero {
  position: relative;
  min-height: 140px;
  background:
    radial-gradient(ellipse 70% 80% at 20% 0%, rgba(56, 189, 248, 0.35), transparent 60%),
    radial-gradient(ellipse 50% 60% at 90% 30%, rgba(232, 197, 71, 0.18), transparent 55%),
    linear-gradient(165deg, #0c1524, #070b12);
  background-size: cover;
  background-position: center;
}
.club-list-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(5, 8, 15, 0.92));
}
.club-list-badges {
  position: absolute;
  z-index: 1;
  left: 12px;
  top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.club-list-body {
  position: relative;
  z-index: 1;
  margin-top: -42px;
  padding: 0 16px 16px;
}
.club-list-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: #0b1220;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}
.club-list-logo img { width: 100%; height: 100%; object-fit: cover; }
.club-list-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin: 0 0 4px;
}
.club-list-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.club-list-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.club-list-cta {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.club-detail { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.club-detail.hidden, .club-list.hidden { display: none !important; }
.club-suite {
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 30px;
  padding: 10px;
  background: rgba(6, 10, 18, 0.88);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.club-hero {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 220px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background:
    radial-gradient(ellipse 80% 70% at 15% 0%, rgba(56, 189, 248, 0.4), transparent 55%),
    radial-gradient(ellipse 55% 50% at 95% 20%, rgba(232, 197, 71, 0.2), transparent 50%),
    linear-gradient(165deg, #0d1628, #060a12 70%);
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: clubRise 0.4s ease-out;
}
@keyframes clubRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.club-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 15, 0.15) 20%, rgba(5, 8, 15, 0.92) 88%);
}
.club-hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
}
.club-back {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(8, 12, 22, 0.65);
  color: #e2e8f0;
  border-radius: 12px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.1rem;
}
.club-hero-content {
  position: relative;
  z-index: 1;
  padding: 8px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.club-hero-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.club-hero-brand {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.club-hero-vaqt {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(132px, 38vw);
  padding-top: 4px;
}
.club-vaqt-btn {
  appearance: none;
  border-radius: 14px;
  border: 1.5px solid rgba(52, 211, 153, 0.85);
  background: rgba(6, 78, 59, 0.55);
  color: #ecfdf5;
  font: 800 0.72rem/1.15 system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 10px;
  min-height: 48px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.club-vaqt-btn.yoqish {
  border-color: rgba(56, 189, 248, 0.9);
  background: linear-gradient(165deg, rgba(14, 116, 144, 0.85), rgba(8, 47, 73, 0.9));
  color: #f0f9ff;
}
.club-vaqt-btn.ochirish:disabled {
  opacity: 0.38;
  cursor: default;
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(30, 41, 59, 0.55);
  color: #94a3b8;
}
.club-vaqt-btn.ochirish:not(:disabled) {
  border-color: rgba(248, 113, 113, 0.9);
  background: linear-gradient(165deg, rgba(153, 27, 27, 0.75), rgba(69, 10, 10, 0.9));
  color: #fef2f2;
}
.club-vaqt-btn.shell,
.club-vaqt-btn.games {
  border-color: rgba(232, 197, 71, 0.85);
  background: linear-gradient(165deg, rgba(120, 90, 20, 0.85), rgba(40, 28, 8, 0.92));
  color: #fef9c3;
}
.club-catalog-panel {
  border: 1px solid rgba(232, 197, 71, 0.28);
  border-radius: 16px;
  background: rgba(12, 10, 6, 0.82);
  padding: 12px 12px 14px;
  margin-bottom: 2px;
}
.club-catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.club-catalog-head strong {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.club-catalog-close {
  appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.65);
  color: #e2e8f0;
  font: 700 0.9rem/1 system-ui, sans-serif;
  cursor: pointer;
}
.club-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
}
.club-game-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
}
.club-game-cover {
  width: 100%;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.7);
}
.club-game-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  font-size: 2rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.55);
}
.club-catalog-empty {
  color: var(--muted);
  font-size: 0.88rem;
  padding: 12px 4px;
  text-align: center;
  grid-column: 1 / -1;
}
.club-vaqt-btn:active:not(:disabled) {
  transform: scale(0.97);
}
.club-hero-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 12, 22, 0.8);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}
.club-hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.club-hero-name {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.15;
}
.club-hero-seats {
  font-size: 0.95rem;
  font-weight: 700;
}
.club-hero-seats.ok { color: #86efac; }
.club-hero-seats.busy { color: #fca5a5; }
.club-hero-addr, .club-hero-hours {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.88rem;
}
.club-hero-hours { color: #86efac; font-weight: 600; }

.club-wallet-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(12, 16, 28, 0.9));
}
.club-wallet-strip .label { color: var(--muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.club-wallet-strip .sum { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; margin-top: 4px; }
.club-wallet-plus {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(14, 165, 233, 0.18);
  color: #e0f2fe;
  font-size: 1.4rem;
  cursor: pointer;
}

.club-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.club-act {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(12, 16, 28, 0.85);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color var(--ease), transform var(--ease);
}
.club-act:hover { border-color: rgba(56, 189, 248, 0.45); transform: translateY(-1px); }
.club-act strong { font-size: 0.92rem; }
.club-act small { color: var(--muted); font-size: 0.75rem; }
.club-act.primary {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.95), rgba(2, 132, 199, 0.9));
  border-color: transparent;
  color: #041018;
}
.club-act.primary small { color: rgba(4, 16, 24, 0.75); }

.club-games-accordion {
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 16px;
  background: rgba(10, 14, 24, 0.72);
  overflow: hidden;
}
.club-games-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid rgba(56, 189, 248, 0.16);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.club-games-toggle[aria-expanded="false"] {
  border-bottom-color: transparent;
}
.club-games-chevron {
  color: var(--muted);
  font-size: 0.95rem;
}
.club-games-wrap {
  padding: 8px 10px 12px;
}
.club-games-wrap .panel {
  margin-bottom: 10px;
}
.club-games-wrap .panel:last-child {
  margin-bottom: 0;
}

.map-pick-actions { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 4px; }
.map-pick-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.map-pick-btn.google { border-color: rgba(66, 133, 244, 0.45); }
.map-pick-btn.yandex { border-color: rgba(252, 63, 29, 0.4); }
.map-pick-btn strong { font-size: 0.95rem; }
.map-pick-btn small { color: var(--muted); font-size: 0.78rem; }

/* ——— Bron wizard ——— */
.club-booking {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: clubRise 0.35s ease-out;
}
.club-booking.hidden { display: none !important; }
.bk-head {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 10px;
}
.bk-head-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
}
.bk-step {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 999px;
  padding: 6px 10px;
}
.bk-block { display: flex; flex-direction: column; gap: 8px; }
.bk-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.bk-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.bk-seat.busy {
  opacity: 0.45;
  cursor: not-allowed;
}
.bk-seat em.busy { color: #f87171; font-style: normal; }
.bk-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.bk-chip {
  flex: 0 0 auto;
  min-width: 58px;
  padding: 12px 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(12, 16, 28, 0.9);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.bk-chip.date strong { font-size: 1.15rem; font-weight: 800; }
.bk-chip.date span { font-size: 0.72rem; color: var(--muted); }
.bk-chip.time { min-width: 72px; font-weight: 700; }
.bk-chip.on, .bk-pill.on, .bk-pkg.on, .bk-seat.on {
  border-color: rgba(56, 189, 248, 0.65);
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.35), rgba(8, 47, 73, 0.85));
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25), 0 10px 28px rgba(14, 165, 233, 0.18);
}
.bk-pill {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(12, 16, 28, 0.9);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.bk-pill em { font-style: normal; color: var(--muted); font-weight: 600; margin-left: 4px; font-size: 0.78rem; }
.bk-pkgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.bk-pkg {
  position: relative;
  text-align: left;
  padding: 16px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(12, 16, 28, 0.92);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 88px;
}
.bk-pkg strong { font-size: 0.95rem; }
.bk-pkg span { color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.bk-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #052e16;
  background: #86efac;
  border-radius: 999px;
  padding: 3px 8px;
}
.bk-seats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.bk-seat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(12, 16, 28, 0.9);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.bk-seat-ico { font-size: 1.4rem; }
.bk-seat strong { font-size: 0.9rem; }
.bk-seat em { font-style: normal; font-size: 0.7rem; }
.bk-seat em.ok { color: #86efac; }
.bk-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: rgba(10, 14, 24, 0.95);
}
.bk-summary > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.bk-sum-price strong { color: var(--accent); font-size: 1.15rem; }
.bk-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  bottom: 0;
  padding-top: 8px;
  background: linear-gradient(180deg, transparent, var(--bg-elev) 30%);
}
.bk-next {
  width: 100%;
  padding: 14px 16px !important;
  border-radius: 16px !important;
  font-weight: 800 !important;
}
.bk-next:disabled { opacity: 0.45; cursor: not-allowed; }
.club-my-bookings { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.club-bookings-title {
  margin: 8px 0 0;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.club-booking-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(12, 16, 28, 0.85);
}
.club-booking-row-acts { display: flex; gap: 6px; flex-shrink: 0; }
.btn-sm { padding: 8px 10px !important; font-size: 0.78rem !important; border-radius: 12px !important; }

.wallet-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
#btn-cashout,
#btn-transfer,
.w-act.cashout,
.w-act.transfer {
  display: none !important;
}
.w-act {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(12, 16, 28, 0.75);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.w-act:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.w-act:active { transform: scale(0.98); }
.w-act-ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 800;
  flex: 0 0 auto;
}
.w-act-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.w-act-txt strong { font-size: 0.95rem; font-weight: 800; }
.w-act-txt small { color: var(--muted); font-size: 0.75rem; font-weight: 500; }
.w-act.deposit { border-color: rgba(56, 189, 248, 0.4); }
.w-act.deposit .w-act-ico {
  background: rgba(56, 189, 248, 0.18);
  color: var(--accent);
}
.w-act.cashout { border-color: rgba(232, 197, 71, 0.4); }
.w-act.cashout .w-act-ico {
  background: rgba(232, 197, 71, 0.15);
  color: var(--accent-2);
}
.w-act.transfer { border-color: rgba(74, 222, 128, 0.35); }
.w-act.transfer .w-act-ico {
  background: rgba(74, 222, 128, 0.12);
  color: var(--ok);
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  backdrop-filter: var(--blur);
}
.panel.bare {
  background: transparent;
  border: 0;
  padding: 0;
  backdrop-filter: none;
}
.panel.compact { padding: 14px; }
.panel h2 {
  margin: 0 0 12px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e2e8f0;
}
.list { display: flex; flex-direction: column; gap: 8px; }
.list:empty::after {
  content: "Hozircha yozuv yo‘q";
  display: block;
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: rgba(7, 11, 20, 0.4);
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(7, 11, 20, 0.75);
  border: 1px solid transparent;
  font-size: 0.88rem;
  transition: border-color var(--ease);
}
.row:hover { border-color: rgba(56, 189, 248, 0.25); }
.row .meta { color: var(--muted); font-size: 0.75rem; }
.row strong.hist-plus { color: #4ade80; }
.row strong.hist-minus { color: #fb7185; }
.hist-empty { justify-content: center; text-align: center; opacity: 0.85; }
.hist-club-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  appearance: none;
  font: inherit;
  color: inherit;
}
.hist-club-card:hover { border-color: rgba(56, 189, 248, 0.4); }
.hist-club-name { font-weight: 700; margin-bottom: 4px; }
.hist-club-right {
  text-align: right;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.hist-club-drill-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
  padding: 4px 2px 10px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.16);
}
.hist-link {
  color: #67e8f9;
  text-decoration: none;
  margin-right: 8px;
}
.hist-link:hover { text-decoration: underline; }

.client-scan-dlg {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0;
  background: #0b1220;
  color: var(--text);
  width: min(520px, calc(100vw - 24px));
}
.client-scan-dlg::backdrop { background: rgba(3, 7, 18, 0.72); }
/* Mobil/skan: to‘liq ekran (F11), X bilan yopish */
.client-scan-dlg.is-fs-scan {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #05080f;
}
.client-scan-dlg.is-fs-scan::backdrop {
  background: #000;
}
.client-scan-dlg.is-fs-scan .client-scan-card {
  min-height: 100dvh;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 14px calc(16px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}
.client-scan-dlg.is-fs-scan .client-scan-cam {
  flex: 1 1 auto;
  aspect-ratio: auto;
  min-height: min(58dvh, 520px);
  border-radius: 0;
  border: 0;
}
.client-scan-dlg.is-fs-scan .client-scan-head h3 {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
}
.client-scan-close {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.92);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.client-scan-close:hover {
  background: rgba(30, 41, 59, 0.98);
  border-color: rgba(148, 163, 184, 0.7);
}
.client-scan-close:active { transform: scale(0.96); }
.client-scan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.client-scan-dlg.is-fs-scan #client-scan-cancel,
.client-scan-dlg.is-fs-scan .client-scan-close {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.92);
  font-size: 18px;
}
.client-scan-card { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.client-scan-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.client-scan-head h3 { margin: 0; font-size: 1rem; }
.client-scan-video {
  width: 100%;
  border-radius: 14px;
  background: #0a1220;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--line);
}
.client-scan-video.hidden { display: none !important; }
.client-scan-cam {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #0a1220;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
}
.client-scan-cam.is-pending::before {
  content: '🤖';
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(56px, 20vw, 96px);
  background: rgba(8, 12, 24, 0.75);
  pointer-events: none;
}
.client-scan-cam .client-scan-video {
  border: 0;
  border-radius: 0;
  aspect-ratio: auto;
  height: 100%;
  width: 100%;
}
.client-scan-preview {
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 14px;
  padding: 10px;
  background: rgba(15, 23, 42, 0.7);
}
.client-scan-row { display: flex; gap: 10px; align-items: center; }
.client-scan-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.8);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.client-scan-logo img { width: 100%; height: 100%; object-fit: cover; }
.client-scan-title { font-weight: 800; }
.client-scan-sub { color: var(--muted); font-size: 0.8rem; }
.client-scan-metrics {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.client-scan-metrics > div {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: rgba(2, 6, 23, 0.6);
}
.client-scan-metrics span { color: var(--muted); font-size: 0.75rem; display: block; }
.client-scan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.client-scan-preview { margin-top: 4px; }

.referral-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.referral-card .ref-hero {
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 640px) {
  .referral-card .ref-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .referral-card .ref-meta { align-items: center; }
  .referral-card .ref-code-row { width: 100%; justify-content: center; gap: 12px; }
  .referral-card .ref-actions { width: 100%; }
}
.ref-qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.ref-id-hero {
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.05;
  color: var(--accent, #6d8bff);
  text-align: center;
  user-select: all;
  word-break: break-all;
}
.ref-id-label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.ref-qr-frame {
  width: 200px;
  height: 200px;
  border-radius: 20px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,0.96), rgba(241,245,249,0.92));
  border: 1px solid rgba(148,163,184,0.35);
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.28);
  display: grid;
  place-items: center;
}
.ref-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}
.ref-qr-lead {
  margin: 4px 0 0;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.ref-qr-sub { margin: 0; font-size: 0.78rem; line-height: 1.35; max-width: 220px; }
.ref-url-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  align-self: flex-start;
}
.ref-meta { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.ref-code-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ref-code {
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  letter-spacing: 0.14em;
  font-size: 1.2rem;
  color: var(--accent);
}
.ref-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.ref-stats > div {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ref-stats span {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
#ref-url {
  width: 100%;
  font-size: 0.75rem;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
}
.ref-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ref-actions .btn { margin: 0; }
.ref-actions #btn-ref-download { grid-column: 1 / -1; }
.ref-friends {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ref-friends-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.ref-friends-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}
.ref-friends-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(52vh, 420px);
  overflow: auto;
  padding-right: 2px;
}
.ref-friends-empty { margin: 0; padding: 12px 0; }
.ref-friend {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.45);
}
.ref-friend.rank-top {
  border-color: rgba(232, 197, 71, 0.45);
  background: linear-gradient(120deg, rgba(232, 197, 71, 0.12), rgba(2, 6, 23, 0.4));
}
.ref-friend-rank {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  background: rgba(148, 163, 184, 0.18);
  color: var(--text);
}
.ref-friend.rank-top .ref-friend-rank {
  background: rgba(232, 197, 71, 0.28);
  color: #fde68a;
}
.ref-friend-name {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
}
.ref-friend-meta {
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--muted);
}
.ref-friend-earn {
  text-align: right;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #86efac;
  font-size: 0.92rem;
}
.ref-friend-status {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  color: var(--muted);
}
.ref-friend-status.earning {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}
.ref-friend-status.accepted {
  background: rgba(96, 165, 250, 0.18);
  color: #93c5fd;
}

.order-card {
  background: rgba(7, 11, 20, 0.8);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.order-card.done { opacity: 0.75; }
.order-card .oc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.order-card .oc-id { font-weight: 700; font-size: 0.92rem; }
.order-badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.order-badge.st-new { background: #2563eb; }
.order-badge.st-assigned { background: #7c3aed; }
.order-badge.st-delivering { background: #ea580c; }
.order-badge.st-delivered { background: #0891b2; }
.order-badge.st-paid { background: #16a34a; }
.order-badge.st-canceled { background: #64748b; }
.order-badge.st-returned { background: var(--danger); }
.order-card .oc-meta { color: var(--muted); font-size: 0.74rem; }
.order-card .oc-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  padding: 8px 0;
}
.order-card .oc-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
}
.order-card .oc-item span:last-child { color: var(--muted); white-space: nowrap; }
.order-card .oc-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.order-card .oc-total { font-size: 1rem; font-weight: 800; color: var(--accent-2); }
.order-card .oc-note {
  font-size: 0.74rem;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
  border-radius: 8px;
  padding: 6px 8px;
}
.order-card .oc-note.wait { color: #fbbf24; background: rgba(234, 179, 8, 0.12); }
.order-steps { display: flex; gap: 4px; }
.order-step {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.25);
}
.order-step.on { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.card-ad {
  background: rgba(7, 11, 20, 0.8);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  text-align: left;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.card-ad:hover {
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.12);
}
.card-ad.featured {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: inset 0 0 24px rgba(56, 189, 248, 0.08);
}
.card-ad .t { font-weight: 700; margin-bottom: 4px; }
.card-ad .m { color: var(--muted); font-size: 0.78rem; }
.card-ad .p { margin-top: 8px; color: var(--accent-2); font-weight: 800; font-size: 0.9rem; }

.cab-statusbar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 16px;
  padding-bottom: calc(8px + var(--safe-b));
  border-top: 1px solid var(--line);
  background: rgba(4, 6, 12, 0.9);
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.cab-qr-fab {
  /* Pastki Scan o‘rniga — dumaloq FAB yashirin */
  display: none !important;
  position: fixed;
  right: calc(16px + var(--safe-r, 0px));
  bottom: calc(48px + var(--safe-b, 0px));
  left: auto;
  top: auto;
  z-index: 9999;
  width: 64px;
  height: 64px;
  padding: 5px;
  border: 2px solid rgba(56, 189, 248, 0.55);
  border-radius: 50%;
  background: rgba(8, 12, 22, 0.94);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  cursor: grab;
  place-items: center;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.cab-qr-fab:active { cursor: grabbing; }
.cab-qr-fab.hidden { display: none !important; }
.cab-qr-fab.is-dragging {
  cursor: grabbing;
  opacity: 0.92;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55), 0 0 0 2px rgba(56, 189, 248, 0.45);
}
.cab-qr-fab img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  display: block;
  pointer-events: none;
}
.cab-qr-fab-label {
  display: none;
}
.cab-qr-fab-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(56, 189, 248, 0.5);
  animation: cab-qr-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes cab-qr-pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.06); }
}
.cab-qr-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: stretch;
  background: rgba(2, 6, 14, 0.82);
  backdrop-filter: blur(10px);
  padding: calc(12px + var(--safe-t, 0px)) 16px calc(16px + var(--safe-b, 0px));
}
.cab-qr-overlay.hidden { display: none !important; }
.cab-qr-panel {
  width: min(420px, 100%);
  max-height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  position: relative;
  animation: cab-qr-rise 0.35s ease-out;
}
@keyframes cab-qr-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.cab-qr-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.92);
  color: #e2e8f0;
  font-size: 18px;
  cursor: pointer;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.cab-qr-close:hover {
  background: rgba(30, 41, 59, 0.98);
  border-color: rgba(148, 163, 184, 0.7);
}
.cab-qr-download {
  width: min(78vw, 320px);
  margin-top: 4px;
}
.ref-qr-frame {
  cursor: zoom-in;
}
.ref-qr-dl {
  width: 100%;
  margin-top: 10px;
}
.cab-qr-overlay.is-fullscreen {
  background: #020617;
  backdrop-filter: none;
  padding: calc(10px + var(--safe-t, 0px)) 12px calc(14px + var(--safe-b, 0px));
}
.cab-qr-overlay.is-fullscreen .cab-qr-panel {
  width: 100%;
  max-width: none;
  min-height: 100%;
  justify-content: center;
}
.cab-qr-overlay.is-fullscreen .cab-qr-frame-fs {
  width: min(92vw, 420px);
  max-width: 100%;
}
.cab-qr-hint { margin: 0; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.cab-qr-hint-scan {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #67e8f9, #38bdf8, #a5f3fc, #67e8f9);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: cab-qr-shimmer 3.2s linear infinite;
}
.cab-qr-hint-here {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
  animation: cab-qr-soft 2.6s ease-in-out infinite;
}
@keyframes cab-qr-shimmer { from { background-position: 0 50%; } to { background-position: 200% 50%; } }
@keyframes cab-qr-soft { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
.cab-qr-frame {
  position: relative;
  width: min(78vw, 320px);
  aspect-ratio: 1;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.cab-qr-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cab-qr-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 3px solid #38bdf8;
}
.cab-qr-corner.c-tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.cab-qr-corner.c-tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.cab-qr-corner.c-bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.cab-qr-corner.c-br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.cab-qr-scanline {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #22d3ee, transparent);
  box-shadow: 0 0 12px #22d3ee;
  animation: cab-qr-scan 2.8s ease-in-out infinite;
}
@keyframes cab-qr-scan {
  0% { top: 10%; opacity: 0.2; }
  15% { opacity: 0.9; }
  85% { opacity: 0.9; }
  100% { top: 88%; opacity: 0.2; }
}
.cab-qr-id {
  margin: 4px 0 0;
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: clamp(2.1rem, 9vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.05;
  color: #fff;
  text-align: center;
  user-select: all;
  text-shadow: 0 2px 18px rgba(34, 211, 238, 0.35);
}
.cab-qr-id-label {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
  text-align: center;
}
.cab-qr-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card-solid);
  color: var(--text);
  padding: 0;
  width: min(400px, 92vw);
  box-shadow: var(--shadow);
}
dialog::backdrop {
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
}
.dlg-card { padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.dlg-card h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.dlg-help {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
  min-height: 0;
}
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.dlg-actions .btn { margin: 0; }

.role-pick-dlg {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(380px, 92vw);
  width: 100%;
}
.role-pick-dlg::backdrop {
  background: rgba(0, 0, 0, 0.55);
}
.role-pick-card { gap: 10px; }
.role-pick-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.role-pick-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.profile-qr-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
}
#profile-qr-img {
  width: 140px;
  height: 140px;
  border-radius: 14px;
  background: #fff;
  padding: 8px;
  border: 1px solid var(--line);
}

.cashout-card { max-width: 420px; }
.cashout-scan video {
  width: 100%;
  max-height: 260px;
  border-radius: 14px;
  background: #000;
  object-fit: cover;
  border: 1px solid var(--line);
}
.cashout-total-box {
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 16px;
  padding: 16px;
  margin: 10px 0 14px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(14, 165, 233, 0.04));
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cashout-total-box span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.cashout-total-box strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #7dd3fc;
  letter-spacing: 0.04em;
}
.cashout-total-box em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
}
.cashout-reserve-box {
  border: 1px solid rgba(232, 197, 71, 0.45);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 0 0 14px;
  background: linear-gradient(135deg, rgba(232, 197, 71, 0.12), rgba(232, 197, 71, 0.03));
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cashout-reserve-box span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.cashout-reserve-box strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent-2);
}
.cashout-reserve-box em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
}
.cashout-max-box strong { color: #4ade80; }

@media (max-width: 720px) {
  .cab-shell { flex-direction: column; }
  .cab-sidebar {
    order: 2;
    width: 100%;
    flex: 0 0 auto;
    flex-direction: row;
    align-items: stretch;
    border-right: 0;
    border-top: 1px solid var(--line);
    padding-top: 0;
    padding-bottom: var(--safe-b);
  }
  .cab-side-brand { display: none; }
  .cab-scan-fab { bottom: calc(104px + env(safe-area-inset-bottom)); right: 18px; }
  .cab-side-list {
    flex-direction: row;
    overflow-x: auto;
    padding: 8px 6px;
    gap: 4px;
    flex: 1 1 auto;
    justify-content: flex-start;
  }
  .cab-side-foot {
    flex-direction: row;
    border-top: 0;
    border-left: 1px solid var(--line);
    padding: 8px 6px;
    gap: 4px;
  }
  .cab-side-foot:empty,
  .cab-side-foot:not(:has(button:not(.hidden))) {
    display: none;
  }
  .cab-topbar {
    align-items: flex-start;
    gap: 10px;
  }
  .cab-top-right-stack {
    min-width: min(48vw, 200px);
    max-width: min(56vw, 240px);
  }
  .cab-quit-btn {
    height: 32px;
    font-size: 0.72rem;
  }
  .balance-chip-wide {
    height: 40px;
    font-size: 0.74rem;
  }
  .cab-greeting { font-size: 0.75rem; }
  /* Dumaloq FAB o‘rniga pastki Scan — doim yashirin */
  .cab-qr-fab {
    display: none !important;
  }
  .cab-side-item {
    width: 72px;
    flex: 1 1 0;
    min-width: 64px;
    max-width: 88px;
    padding: 10px 4px 8px;
  }
  .cab-side-item::before {
    left: 18%;
    right: 18%;
    top: auto;
    bottom: -8px;
    width: auto;
    height: 3px;
    border-radius: 4px 4px 0 0;
  }
  .cab-side-ico {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }
  .cab-side-ico svg {
    width: 24px;
    height: 24px;
  }
  .cab-side-label {
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.01em;
  }
  .cab-main { order: 1; min-height: 0; }
  .cab-statusbar { display: none; }
  .cab-content { padding: 14px 14px 18px; }
}

.terms-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(8, 12, 18, 0.72);
  backdrop-filter: blur(6px);
}
.terms-overlay.hidden { display: none !important; }
.terms-panel {
  width: min(560px, 100%);
  max-height: min(92vh, 820px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, #142033 0%, #0d1522 100%);
  color: #e8eef7;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
}
.terms-panel h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.terms-sub {
  margin: 0;
  color: #9db0c7;
  font-size: 0.9rem;
  line-height: 1.4;
}
.terms-lang {
  display: flex;
  gap: 8px;
}
.terms-lang button {
  flex: 1;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  border-radius: 12px;
  padding: 11px 8px;
  font: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.terms-lang button.on {
  border-color: rgba(56, 189, 248, 0.55);
  color: #e0f2fe;
  background: rgba(56, 189, 248, 0.16);
}
.terms-scroll {
  flex: 1 1 auto;
  min-height: 180px;
  max-height: 52vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 12px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.terms-body {
  white-space: pre-wrap;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #d5e0ee;
}
.terms-hint {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.8rem;
  color: #7f93ab;
  text-align: center;
}
#terms-agree[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
@media (min-width: 720px) {
  .terms-overlay { align-items: center; padding: 24px; }
  .terms-panel { border-radius: 18px; }
}
/* Member cabinet language selector */
.cab-lang-picker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  padding: 0 9px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  color: inherit;
}
.cab-lang-picker select {
  width: auto;
  min-width: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  outline: 0;
}
.cab-lang-picker option { color: #111827; background: #fff; }
