/* ============================================================
   База консоли — сброс, типографика, примитивы, стеклянные поверхности.

   Палитра и радиусы НЕ дублируются: они в /shared/styles/tokens.css, который
   подключается первым (в прототипе своя копия tokens.css была в каждом из трёх
   приложений и уже разъехалась). Здесь переопределяется только то, что
   действительно своё для Club OS — фон страницы с «операционным» teal-акцентом.
   ============================================================ */
:root {
  --page-bg:
    radial-gradient(1000px 640px at 12% -6%, rgba(45, 226, 197, .16), transparent 60%),
    radial-gradient(820px 620px at 98% 4%, rgba(108, 75, 255, .22), transparent 55%),
    radial-gradient(900px 760px at 60% 112%, rgba(177, 75, 255, .15), transparent 60%);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  background-image: var(--page-bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}
button { font-family: inherit; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font-family: inherit; }
img, video { max-width: 100%; display: block; }

.num { font-family: var(--num); font-weight: 700; letter-spacing: .2px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.gold { color: var(--gold); }
.teal { color: var(--teal); }
.red { color: var(--red); }
.green { color: var(--green); }
.pink { color: var(--pink); }
.amber { color: var(--amber); }
.blue { color: #8bb8ff; }
.purple { color: #cfc6ff; }
.hidden { display: none !important; }
code { font-family: var(--num); font-weight: 700; color: var(--teal); }

/* стеклянные поверхности */
.glass {
  background: var(--lg);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--lg-brd);
  box-shadow: var(--spec), var(--shadow-card);
}
.glass-strong {
  background: var(--lg-strong);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid var(--lg-brd);
  box-shadow: var(--spec), var(--shadow-pop);
}

/* контейнеры прокрутки: скроллятся, но без полос */
.scroll { overflow-y: auto; overflow-x: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.scroll::-webkit-scrollbar { display: none; }

/* аватар клуба или игрока */
.av {
  border-radius: 16px; flex: none; display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; position: relative; box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
}
.av .vf {
  position: absolute; bottom: -4px; right: -4px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--teal); border: 2.5px solid #14102a; display: flex; align-items: center; justify-content: center;
  color: #06231E; font-size: 11px;
}

/* теги и пилюли */
.tag { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 8px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.tag.live { background: rgba(48, 209, 88, .16); color: #5be08a; }
.tag.vip { background: rgba(255, 194, 75, .16); color: var(--gold); }
.tag.soon { background: rgba(168, 162, 214, .14); color: var(--muted); }
.tag.late { background: rgba(255, 59, 92, .16); color: #ff8095; }
.tag.purple { background: rgba(124, 92, 255, .2); color: #cfc6ff; }
.tag.teal { background: rgba(45, 226, 197, .16); color: var(--teal); }
.tag.blue, .tag.src-app { background: rgba(63, 140, 255, .16); color: #8bb8ff; }
.tag.door { background: rgba(255, 159, 10, .16); color: #ffc174; }
.tag.comp { background: rgba(177, 75, 255, .18); color: #d9b6ff; }

/* точки состояния брони и события */
.sdot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.sdot.booked { background: var(--blue); }
.sdot.checkedin { background: var(--green); box-shadow: 0 0 7px var(--green); }
.sdot.busted { background: var(--dim); }
.sdot.played { background: var(--gold); }
.sdot.cancelled { background: var(--red); }

/* кнопки */
.btn {
  border: 0; border-radius: 14px; padding: 12px 16px; font-size: 14px; font-weight: 800; letter-spacing: .1px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: .15s; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.fill { background: var(--grad-brand); color: #fff; box-shadow: 0 10px 26px rgba(108, 75, 255, .5); }
.btn.op { background: var(--grad-op); color: #04222b; box-shadow: 0 10px 26px rgba(45, 226, 197, .4); }
.btn.teal { background: var(--grad-teal); color: #052b23; box-shadow: 0 10px 26px rgba(45, 226, 197, .4); }
.btn.ghost { background: rgba(255, 255, 255, .08); color: var(--text); box-shadow: var(--spec); }
.btn.danger { background: rgba(255, 59, 92, .16); color: #ff8095; box-shadow: var(--spec); }
.btn.warn { background: rgba(255, 159, 10, .16); color: #ffc174; box-shadow: var(--spec); }
.btn.block { width: 100%; }
.btn.sm { padding: 8px 12px; font-size: 12.5px; border-radius: 11px; }
.btn i { font-size: 17px; }

/* поля ввода */
.field { display: block; margin-bottom: 12px; }
.field .lb, label.lb {
  font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--dim);
  font-weight: 700; margin-bottom: 6px; display: block;
}
.inp {
  width: 100%; background: rgba(255, 255, 255, .05); border: 1px solid var(--lg-brd); box-shadow: var(--spec);
  border-radius: 12px; padding: 12px 14px; color: var(--text); font-size: 14.5px; outline: 0; transition: .15s;
}
.inp:focus { border-color: rgba(45, 226, 197, .5); background: rgba(45, 226, 197, .06); }
.inp::placeholder { color: var(--dim); }
select.inp {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A8A2D6' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.switch { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; cursor: pointer; padding: 8px 0; }
.switch input {
  appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); position: relative; transition: .2s; flex: none; cursor: pointer;
}
.switch input:checked { background: var(--grad-op); }
.switch input::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; transition: .2s;
}
.switch input:checked::after { transform: translateX(18px); }
/* компактный вариант для строки приза */
.switch.mini { padding: 0; justify-content: center; }
.switch.mini input { width: 34px; height: 20px; }
.switch.mini input::after { width: 14px; height: 14px; }
.switch.mini input:checked::after { transform: translateX(14px); }

@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes slidein { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
