/* GoldenShuttle cabinet bundle. External Google Fonts are intentionally not imported on /cabinet. */

/* ===== typography.css ===== */
/*
  GoldenShuttle typography tokens.

  Этот файл не должен перетирать стили конкретных блоков.
  Он хранит только общие шрифты, шкалу размеров и базовые правила для html/body/нативных заголовков.
  Компоненты в шаблонах должны брать размеры через переменные --gs-fs-* и сами решать, какой уровень им нужен.
*/
:root {
  --gs-font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --gs-font-heading: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Единая шкала размеров интерфейса. */
  --gs-fs-xs: 11px;
  --gs-fs-sm: 12px;
  --gs-fs-md: 14px;
  --gs-fs-lg: 18px;
  --gs-fs-xl: 24px;

  /* Семантические алиасы. */
  --gs-text-display: var(--gs-fs-xl);
  --gs-text-h1: var(--gs-fs-xl);
  --gs-text-h2: var(--gs-fs-lg);
  --gs-text-h3: var(--gs-fs-lg);
  --gs-text-body: var(--gs-fs-md);
  --gs-text-meta: var(--gs-fs-sm);

  --gs-line-tight: 1.12;
  --gs-line-title: 1.22;
  --gs-line-body: 1.6;
  --gs-letter-title: -0.035em;
  --gs-letter-meta: 0.06em;
}

html {
  font-size: var(--gs-text-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--gs-font-body);
  font-size: var(--gs-text-body);
  line-height: var(--gs-line-body);
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--gs-font-heading);
  font-weight: 700;
  line-height: var(--gs-line-title);
  letter-spacing: var(--gs-letter-title);
}

h1 { font-size: var(--gs-text-h1); }
h2 { font-size: var(--gs-text-h2); }
h3,
h4,
h5,
h6 { font-size: var(--gs-text-h3); }

/* Опциональные utility-классы. Они применяются только там, где их явно добавили в разметку. */
.gs-type-display,
.gs-type-h1,
.gs-type-h2,
.gs-type-h3,
.gs-heading {
  font-family: var(--gs-font-heading);
  font-weight: 700;
  line-height: var(--gs-line-title);
  letter-spacing: var(--gs-letter-title);
}

.gs-type-display { font-size: var(--gs-text-display); line-height: var(--gs-line-tight); }
.gs-type-h1 { font-size: var(--gs-text-h1); }
.gs-type-h2 { font-size: var(--gs-text-h2); }
.gs-type-h3 { font-size: var(--gs-text-h3); }
.gs-type-body { font-size: var(--gs-text-body); line-height: var(--gs-line-body); }
.gs-type-meta { font-size: var(--gs-text-meta); line-height: 1.45; }

@media (max-width: 640px) {
  :root {
    --gs-text-display: var(--gs-fs-xl);
    --gs-text-h1: var(--gs-fs-xl);
    --gs-text-h2: var(--gs-fs-lg);
    --gs-text-h3: var(--gs-fs-lg);
    --gs-text-body: var(--gs-fs-md);
    --gs-text-meta: var(--gs-fs-sm);
  }
}

/* ===== cabinet-base.css ===== */
/*
  GoldenShuttle cabinet shared styles.
  One source of truth for cabinet tokens, reset, layout shell, cards, alerts,
  buttons, badges, common page headings and header typography.
*/
:root {
  --bg: #f7f5f1;
  --surface: rgba(255,255,255,.88);
  --surface-strong: #ffffff;
  --line: #e8dfcf;
  --line-soft: #efe7da;
  --text: #172033;
  --muted: #6d7891;
  --navy: #15233f;
  --navy-2: #203153;
  --gold: #c9a44a;
  --gold-2: #e8cb76;
  --gold-soft: #fbf4df;
  --success: #167a4a;
  --success-soft: #e7f6ee;
  --warn: #a76612;
  --warn-soft: #fff3dc;
  --danger: #be4334;
  --danger-soft: #fdecea;
  --blue: #3b6ebf;
  --shadow-sm: 0 6px 18px rgba(21, 35, 63, .06);
  --shadow: 0 18px 50px rgba(21, 35, 63, .10);
  --radius-s: 12px;
  --radius: 20px;
  --radius-l: 28px;
  --max: 1120px;
  --cabinet-gap: 18px;

  --cabinet-font-body: var(--gs-font-body, 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  --cabinet-font-heading: var(--gs-font-heading, 'Unbounded', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  --cabinet-fs-xs: var(--gs-fs-xs, 11px);
  --cabinet-fs-sm: var(--gs-fs-sm, 12px);
  --cabinet-fs-body: var(--gs-fs-md, 14px);
  --cabinet-fs-title: var(--gs-fs-lg, 18px);
  --cabinet-fs-hero: var(--gs-fs-xl, 24px);
  --cabinet-fw-regular: 400;
  --cabinet-fw-medium: 500;
  --cabinet-fw-semibold: 600;
  --cabinet-fw-bold: 700;
  --cabinet-line-tight: var(--gs-line-tight, 1.12);
  --cabinet-line-title: var(--gs-line-title, 1.22);
  --cabinet-line-body: var(--gs-line-body, 1.6);
  --cabinet-letter-title: var(--gs-letter-title, -0.035em);
  --cabinet-letter-meta: var(--gs-letter-meta, 0.06em);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(231, 207, 142, .18), transparent 24%),
    linear-gradient(180deg, #f8f3e8 0%, #f5f0e6 20%, #f7f5f1 100%);
  font-family: var(--cabinet-font-body);
  font-size: var(--cabinet-fs-body);
  line-height: var(--cabinet-line-body);
  font-weight: var(--cabinet-fw-regular);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; font-family: var(--cabinet-font-body); }

.shell {
  width: 100%;
  max-width: var(--max);
  min-width: 0;
  margin: 0 auto;
  padding: 24px var(--cabinet-gap) 56px;
}
.shell--flush-top { padding-top: 0; }
.shell--narrow { max-width: 980px; }
.shell > * { max-width: 100%; min-width: 0; }

.hero,
.panel,
.card,
.stat,
.glass {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: var(--shadow);
  border-radius: var(--radius-l);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero { padding: 28px; margin-bottom: var(--cabinet-gap); }
.panel { padding: 24px; }
.card { padding: 20px; background: var(--surface-strong); }
.stat { padding: 22px; }
.shell > .panel + .panel { margin-top: var(--cabinet-gap); }
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

.topbar,
.topbar button,
.topbar input,
.topbar a { font-family: var(--cabinet-font-body); }
.topbar .brand-title {
  font-family: var(--cabinet-font-heading);
  font-size: var(--cabinet-fs-body);
  font-weight: var(--cabinet-fw-bold);
  line-height: var(--cabinet-line-tight);
  letter-spacing: var(--cabinet-letter-title);
  color: var(--navy);
}
.topbar .brand-sub {
  font-size: var(--cabinet-fs-xs);
  font-weight: var(--cabinet-fw-semibold);
  line-height: 1.35;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.topbar .profile-email-short {
  font-size: var(--cabinet-fs-body);
  font-weight: var(--cabinet-fw-semibold);
  line-height: 1.35;
}
.topbar .profile-menu-item,
.topbar .btn {
  font-size: var(--cabinet-fs-body);
  font-weight: var(--cabinet-fw-bold);
  line-height: 1.35;
}
.topbar .profile-avatar {
  font-family: var(--cabinet-font-heading);
  font-size: var(--cabinet-fs-sm);
  font-weight: var(--cabinet-fw-bold);
}

.hero-title,
.title,
.panel-title,
.section-title,
.tg-connect-title,
.lab-preview-title,
.rf-title,
.status-big,
.stat-value,
.rv-sum-price,
.rv-tl-date {
  font-family: var(--cabinet-font-heading);
  letter-spacing: var(--cabinet-letter-title);
  color: var(--navy);
}
.hero-title,
.title {
  margin: 14px 0 8px;
  font-size: var(--cabinet-fs-hero);
  font-weight: var(--cabinet-fw-bold);
  line-height: var(--cabinet-line-tight);
}
.panel-title,
.section-title,
.tg-connect-title,
.lab-preview-title,
.rf-title {
  margin: 0 0 6px;
  font-size: var(--cabinet-fs-title);
  font-weight: var(--cabinet-fw-bold);
  line-height: var(--cabinet-line-title);
}
.sub,
.panel-sub,
.section-sub,
.hero-sub,
.tg-connect-text,
.lab-preview-text,
.hall,
.hint,
.empty,
.note,
.rf-subtitle,
.status-hint {
  font-family: var(--cabinet-font-body);
  font-size: var(--cabinet-fs-body);
  font-weight: var(--cabinet-fw-regular);
  line-height: var(--cabinet-line-body);
  color: var(--muted);
}
.sub,
.hero-sub { max-width: 60ch; }
.panel-sub,
.section-sub { margin: 0; }

.eyebrow,
.mini-label,
.channel-head,
.rv-day-wd,
.rv-tl-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--cabinet-fs-xs);
  font-weight: var(--cabinet-fw-bold);
  line-height: 1.35;
  letter-spacing: var(--cabinet-letter-meta);
  text-transform: uppercase;
}
.eyebrow {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #8a6716;
}
.badge,
.rating-label,
.field label,
.rf-row-label {
  font-size: var(--cabinet-fs-sm);
  font-weight: var(--cabinet-fw-semibold);
  line-height: 1.4;
}
.name,
.dt,
.rating-value,
.price,
.rv-day-n,
.rv-sl-time,
.rf-row-value,
.status-title,
.step-title,
.mode-title,
.rental-feature-title,
.setting-title,
.calendar-reset-title,
.link-title {
  font-family: var(--cabinet-font-body);
  font-size: var(--cabinet-fs-body);
  font-weight: var(--cabinet-fw-bold);
  line-height: var(--cabinet-line-title);
  letter-spacing: 0;
}
.price,
.rating-value,
.status-big { font-size: var(--cabinet-fs-title); }
.old,
.mode-sub,
.rental-feature-sub,
.rv-sum-slots,
.rv-sum-warn,
.rv-sl-dur,
.rv-sr-price,
.calendar-reset-text,
.setting-help-pop,
.mb-cal-hint-text,
.link-text,
.link-meta,
.info-box,
.autosave-status {
  font-size: var(--cabinet-fs-sm);
  font-weight: var(--cabinet-fw-regular);
  line-height: 1.5;
}

.field { display: grid; gap: 8px; margin-bottom: 14px; }
.field label { color: #56627d; }
.field input,
.field select,
.input,
input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
  color: var(--text);
  outline: none;
}
.field input:focus,
.field select:focus,
.input:focus,
input:focus,
select:focus {
  border-color: #d7be86;
  box-shadow: 0 0 0 4px rgba(201,164,74,.12);
}
input::placeholder { color: #9aa3b6; }

.actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn,
.more {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--cabinet-font-body);
  font-size: var(--cabinet-fs-body);
  font-weight: var(--cabinet-fw-bold);
  line-height: 1.35;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover,
.more:hover { transform: translateY(-1px); }
.btn:disabled,
.more:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary,
.more {
  background: linear-gradient(145deg, var(--navy), var(--navy-2));
  color: #fff;
  box-shadow: 0 10px 24px rgba(21,35,63,.18);
}
.btn-gold {
  background: linear-gradient(145deg, var(--gold), var(--gold-2));
  color: #fff;
  box-shadow: 0 12px 24px rgba(201,164,74,.24);
}
.btn-outline,
.btn-secondary,
.btn.secondary {
  background: rgba(255,255,255,.86);
  border-color: var(--line);
  color: var(--navy);
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
  padding: 0 10px;
  min-height: 38px;
}
.btn-danger {
  background: #fff;
  color: var(--danger);
  border-color: #efc0b9;
}
.btn-blue { background: var(--blue); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: var(--cabinet-fs-sm); }
.btn-full { width: 100%; }
.btn-loading { position: relative; pointer-events: none; }
.btn-loading::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  border-radius: 50%;
  position: absolute;
  right: 12px;
  top: calc(50% - 7px);
  animation: gs-spin .7s linear infinite;
}
@keyframes gs-spin { to { transform: rotate(360deg); } }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  white-space: nowrap;
  background: #eef2f7;
  color: #39465f;
}
.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}
.badge-success,
.badge.success { color: var(--success); background: var(--success-soft); }
.badge-warn { color: var(--warn); background: var(--warn-soft); }
.badge-danger,
.badge.danger { color: var(--danger); background: var(--danger-soft); }
.badge-gold { color: #866411; background: var(--gold-soft); }

.msg,
.err,
.note {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-family: var(--cabinet-font-body);
  font-size: var(--cabinet-fs-body);
  font-weight: var(--cabinet-fw-regular);
  line-height: 1.5;
}
.msg.ok,
.msg-ok { background: var(--success-soft); color: var(--success); border-color: #bfe2cd; }
.msg.err,
.msg-error,
.err { background: var(--danger-soft); color: #9d3b2f; border-color: #f3c8c1; }
.note { color: #8a6716; background: var(--gold-soft); border-color: #efdfb5; }
.empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}
.muted { color: var(--muted); }

.gs-modal-title {
  font-family: var(--cabinet-font-heading);
  font-size: var(--cabinet-fs-title);
  font-weight: var(--cabinet-fw-bold);
  line-height: var(--cabinet-line-title);
  letter-spacing: var(--cabinet-letter-title);
  margin-bottom: 10px;
}
.gs-modal-text {
  font-family: var(--cabinet-font-body);
  font-size: var(--cabinet-fs-body);
  line-height: var(--cabinet-line-body);
  color: var(--muted);
  margin-bottom: 18px;
}

@media (max-width: 720px) {
  :root { --cabinet-gap: 14px; }
  .shell { padding: 18px var(--cabinet-gap) 48px; overflow-x: clip; }
  .hero, .panel, .card, .stat { border-radius: 24px; }
  .hero, .panel { padding: 20px; }
  .hero-title,
  .title,
  .panel-title,
  .section-title,
  .tg-connect-title,
  .lab-preview-title,
  .rf-title { overflow-wrap: anywhere; }
}
@media (max-width: 420px) {
  :root { --cabinet-gap: 12px; }
  .hero, .panel, .card, .stat { padding-left: 14px; padding-right: 14px; }
}

/* ===== cabinet-header.css ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(247, 245, 241, .78);
  border-bottom: 1px solid rgba(232, 223, 207, .9);
}
.topbar-inner {
  max-width: var(--max, 1120px);
  height: 72px;
  margin: 0 auto;
  padding: 0 var(--cabinet-gap, 18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}
.topbar .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.topbar .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--navy, #15233f) 0%, #23355c 100%);
  color: #f3d98e;
  box-shadow: var(--shadow-sm, 0 6px 18px rgba(21, 35, 63, .06));
  flex: 0 0 auto;
}
.topbar .brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.profile-menu-wrapper { position: relative; }
.profile-btn {
  border: 1px solid var(--line, #e8dfcf);
  background: rgba(255,255,255,.92);
  border-radius: 999px;
  padding: 8px 12px 8px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--text, #172033);
  box-shadow: var(--shadow-sm, 0 6px 18px rgba(21, 35, 63, .06));
  font: inherit;
}
.profile-btn:hover { border-color: #d5c3a2; }
.profile-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy, #15233f);
  color: #f3d98e;
}
.profile-email-short {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-chevron {
  color: var(--muted, #6d7891);
  transition: transform .18s ease;
}
.profile-menu-wrapper.open .profile-chevron { transform: rotate(180deg); }
.profile-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line, #e8dfcf);
  border-radius: 18px;
  box-shadow: var(--shadow, 0 18px 50px rgba(21, 35, 63, .10));
  overflow: hidden;
}
.profile-dropdown.show { display: block; }
.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  text-decoration: none;
  color: var(--text, #172033);
  border-bottom: 1px solid var(--line-soft, #efe7da);
  cursor: pointer;
  background: #fff;
}
.profile-menu-item:last-child { border-bottom: 0; }
.profile-menu-item:hover { background: #faf7f0; }
.profile-menu-item.disabled { opacity: .45; pointer-events: none; }
.menu-icon { width: 20px; text-align: center; }
.topbar .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  text-decoration: none;
}
.topbar .btn-gold {
  background: linear-gradient(145deg, var(--gold, #c9a44a), var(--gold-2, #e8cb76));
  color: #fff;
}
.topbar .btn-sm { min-height: 40px; }
@media (max-width: 720px) {
  .topbar-inner {
    height: 64px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .topbar .brand-mark { width: 38px; height: 38px; border-radius: 13px; }
  .topbar .brand-sub { display: none; }
  .profile-email-short { max-width: 118px; }
  .profile-btn { padding-right: 10px; gap: 8px; }
}

/* ===== cabinet.css ===== */
.page-grid,
.stack,
.panel,
.hero-main,
.hero-side {
  min-width: 0;
}

.hero-main,
.hero-side,
.glass {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero-main {
  border-radius: 30px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.hero-main::before {
  content: "";
  position: absolute;
  inset: auto -60px -70px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,164,74,.18), transparent 65%);
  pointer-events: none;
}
.hero-title {
  margin: 14px 0 10px;
  max-width: 15ch;
}
.hero-sub {
  max-width: 54ch;
  margin-bottom: 22px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-side {
  border-radius: 30px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
}
.mini-label {
  font-size: var(--gs-fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 8px;
}
.status-card {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(249,246,238,.96));
  border: 1px solid var(--line-soft);
}
.status-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.status-title {
}
.status-big {
  margin-bottom: 8px;
}
.status-hint {
}

.page-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: var(--cabinet-gap);
  align-items: start;
}
.stack { display: grid; gap: var(--cabinet-gap); }


.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin-top: 16px;
}
.step {
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #faf7f0);
  border: 1px solid var(--line-soft);
}
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-size: var(--gs-fs-sm);
  font-weight: 700;
  margin-bottom: 10px;
}
.step-title {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  font-size: var(--gs-fs-md);
}
.step-text {
  font-size: var(--gs-fs-sm);
  color: var(--muted);
  line-height: 1.55;
}

.user-meta {
  display: grid;
  gap: 12px;
}
.meta-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #faf7f2);
  border: 1px solid var(--line-soft);
}
.meta-label {
  font-size: var(--gs-fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 4px;
}
.meta-value {
  font-size: var(--gs-fs-md);
  font-weight: 700;
  color: var(--navy);
  word-break: break-word;
}

.subscription-list {
  display: grid;
  gap: 12px;
}
.subscription-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #faf7f0);
  border: 1px solid var(--line-soft);
}
.subscription-name {
  font-size: var(--gs-fs-md);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.subscription-tier,
.subscription-expire {
  font-size: var(--gs-fs-sm);
  color: var(--muted);
  line-height: 1.5;
}
.subscription-right {
  min-width: 108px;
  text-align: right;
}
.subscription-value {
  font-family: var(--gs-font-heading);
  font-size: var(--gs-fs-xl);
  line-height: 1;
  color: var(--gold);
  margin-bottom: 8px;
}
.subscription-note {
  font-size: var(--gs-fs-xs);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.empty-state {
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #faf7f0);
  border: 1px dashed #dbcdb5;
  color: var(--muted);
  line-height: 1.6;
  font-size: var(--gs-fs-md);
}

.tg-box {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fffaf0, #fff);
  border: 1px solid #ecdcb8;
}
.tg-step {
  font-size: var(--gs-fs-xs);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: #9b7621;
  margin-bottom: 8px;
}
.tg-text {
  font-size: var(--gs-fs-md);
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.tg-connect-wide {
  margin-top: 24px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 12% 20%, rgba(232, 203, 118, .34), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #fff8e8 100%);
}
.tg-connect-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(201,164,74,.34);
  background: rgba(255,255,255,.76);
  color: #8a6716;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: var(--gs-fs-lg);
  line-height: 1;
  box-shadow: 0 6px 16px rgba(21,35,63,.06);
}
.tg-connect-close:hover { background: #fff; border-color: rgba(201,164,74,.58); }
.tg-connect-close:disabled { opacity: .5; cursor: not-allowed; }
.tg-connect-wide::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -90px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(21, 35, 63, .06);
  pointer-events: none;
}
.tg-connect-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}
.tg-connect-title {
  font-family: var(--gs-font-heading);
  font-size: var(--gs-fs-lg);
  color: var(--navy);
  margin: 0 0 8px;
}
.tg-connect-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: var(--gs-fs-md);
  max-width: 760px;
}
.tg-connect-meta {
  margin-top: 12px;
  color: #8b7650;
  font-size: var(--gs-fs-sm);
  line-height: 1.5;
}
.tg-connect-action {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  min-width: 220px;
}

.form-group { margin-bottom: 14px; }
.form-group:last-child { margin-bottom: 0; }
.form-label {
  display: block;
  margin-bottom: 7px;
  font-size: var(--gs-fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.form-row {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}
.form-row .form-group { flex: 1; min-width: 200px; margin-bottom: 0; }


.login-links { margin: 4px 0 14px; display:flex; justify-content:flex-end; }
.link-gold { color:#a9842b; text-decoration:none; font-weight:700; }
.link-gold:hover { text-decoration:underline; }
.error { margin-top:14px; padding:14px 16px; border-radius:16px; background:#fdecea; color:#9f3329; border:1px solid #f4c7c0; font-size: var(--gs-fs-md); }
.login-form-v2 
.login-form-v2 

.booking-anchor {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--gs-fs-md);
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  margin-top: 4px;
}

.skeleton-list { display: grid; gap: 12px; }
.skeleton-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #faf7f0);
  border: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}
.skeleton-square {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #ece4d7;
  flex: 0 0 auto;
}
.skeleton-lines { flex: 1; }
.skeleton-line {
  height: 12px;
  background: #ece4d7;
  border-radius: 999px;
  margin-bottom: 10px;
}
.skeleton-line:last-child { width: 60%; margin-bottom: 0; }
.skeleton-pill-btn {
  width: 86px;
  height: 38px;
  border-radius: 999px;
  background: #ece4d7;
  flex: 0 0 auto;
}
.skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 60%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
  animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer { to { transform: translateX(260%); } }

.gs-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 20, 36, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  backdrop-filter: blur(6px);
}
.gs-modal {
  width: min(430px, 100%);
  border-radius: 26px;
  background: #fff;
  padding: 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.just-booked { animation: pulseGreen .7s ease-out; }
.just-cancelled { animation: pulseRed .7s ease-out; }
@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(22,122,74,.32); }
  50% { box-shadow: 0 0 0 8px rgba(22,122,74,.12); }
  100% { box-shadow: 0 0 0 0 rgba(22,122,74,0); }
}
@keyframes pulseRed {
  0% { box-shadow: 0 0 0 0 rgba(190,67,52,.30); }
  50% { box-shadow: 0 0 0 8px rgba(190,67,52,.11); }
  100% { box-shadow: 0 0 0 0 rgba(190,67,52,0); }
}
#slots-block.slots-updating { opacity: .58; pointer-events: none; transition: opacity .18s ease; }

@media (max-width: 980px) {
  .page-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --cabinet-gap: 14px; }
  .hero-main { padding: 22px; }
  .hero-side { padding: 22px; }
  .steps { grid-template-columns: 1fr; }
  .tg-connect-grid { grid-template-columns: 1fr; }
  .tg-connect-action { min-width: 0; }
  .form-row { flex-direction: column; align-items: stretch; }
  .form-row .form-group { min-width: 0; width: 100%; }
}
@media (max-width: 520px) {
  .hero-main,
  .hero-side {
    padding-left: 16px;
    padding-right: 16px;
  }
  .subscription-card { grid-template-columns: 1fr; }
  .subscription-right { text-align: left; min-width: 0; }
}

/* ── Mode picker (v3 only) ─────────────────────────────────────── */
.mode-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--cabinet-gap);
  padding-bottom: 0;
}
.mode-card {
  background: linear-gradient(180deg, #ffffff, #faf7f0);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  cursor: pointer;
  position: relative;
  transition: border-color .16s ease, box-shadow .16s ease, transform .14s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.mode-card:hover {
  border-color: #d0bc97;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.mode-card.mode-active {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(21,35,63,.10), var(--shadow-sm);
  background: linear-gradient(180deg, #ffffff, #f2f5fd);
}
.mode-icon {
  font-size: var(--gs-fs-xl);
  margin-bottom: 10px;
  line-height: 1;
}
.mode-title {
  font-size: var(--gs-fs-md);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 5px;
  line-height: 1.2;
}
.mode-sub {
  font-size: var(--gs-fs-sm);
  color: var(--muted);
  line-height: 1.5;
}
.mode-check {
  display: none;
  position: absolute;
  top: 14px;
  right: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: var(--gs-fs-sm);
  font-weight: 700;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mode-active .mode-check { display: flex; }

/* ── Rental panel (v3 only) ───────────────────────────────────── */
.rental-features {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}
.rental-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #faf7f0);
  border: 1px solid var(--line-soft);
  font-size: var(--gs-fs-md);
  color: var(--navy);
  font-weight: 600;
}
.rental-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--gold-soft);
  border: 1px solid #eedda3;
  display: grid;
  place-items: center;
  font-size: var(--gs-fs-md);
  flex-shrink: 0;
}
.rental-feature-text { display: flex; flex-direction: column; gap: 2px; }
.rental-feature-sub { font-size: var(--gs-fs-sm); color: var(--muted); font-weight: 400; }

@media (max-width: 640px) {
  .mode-picker { grid-template-columns: 1fr 1fr; gap: var(--cabinet-gap); }
  .mode-card { padding: 16px 14px; }
  .mode-icon { font-size: var(--gs-fs-xl); margin-bottom: 8px; }
  .mode-title { font-size: var(--gs-fs-sm); }
  .mode-sub { font-size: var(--gs-fs-sm); }
}
@media (max-width: 420px) {
  .mode-picker { grid-template-columns: 1fr 1fr; gap: var(--cabinet-gap); }
  .mode-card { padding: 14px 10px; }
  .mode-title { font-size: var(--gs-fs-md); }
  .mode-sub   { font-size: var(--gs-fs-sm); }
}

/* ── Rental inline widget (rv-) ──────────────────────────────── */
.rv-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-chip {
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.9);
  font-size: var(--gs-fs-sm); font-weight: 600; color: var(--navy);
  cursor: pointer; transition: border-color .14s, box-shadow .14s;
  white-space: nowrap;
}
.rv-chip:hover { border-color: #d0bc97; }
.rv-chip.rv-chip-active {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(21,35,63,.10);
}

.rv-week-nav {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.rv-arrow {
  width: 34px; height: 34px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: rgba(255,255,255,.8);
  color: var(--navy); font-size: var(--gs-fs-md); cursor: pointer; flex-shrink: 0;
  transition: border-color .12s;
}
.rv-arrow:hover:not(:disabled) { border-color: #d0bc97; }
.rv-arrow:disabled { opacity: .35; cursor: default; }
.rv-week-lbl { flex: 1; text-align: center; font-size: var(--gs-fs-sm); font-weight: 700; color: var(--navy); }
.rv-today-pill {
  font-size: var(--gs-fs-sm); font-weight: 600; color: var(--gold);
  border: 1px solid #e8d493; border-radius: 999px;
  padding: 5px 12px; background: var(--gold-soft);
  cursor: pointer; white-space: nowrap; transition: background .12s;
}
.rv-today-pill:hover { background: #f5edcd; }

.rv-strip { display: grid; grid-template-columns: repeat(7,1fr); gap: 5px; margin-bottom: 14px; }
.rv-day {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 3px; border-radius: 13px;
  border: 1px solid transparent; cursor: pointer;
  transition: background .12s, border-color .12s;
  -webkit-tap-highlight-color: transparent;
}
.rv-day:hover:not(.rv-day-past):not(.rv-day-off) { background: rgba(21,35,63,.05); }
.rv-day.rv-day-active { background: rgba(21,35,63,.06); border-color: rgba(21,35,63,.18); }
.rv-day.rv-day-today .rv-day-n { color: var(--gold); }
.rv-day.rv-day-past  { opacity: .3; pointer-events: none; }
.rv-day.rv-day-off   { opacity: .22; pointer-events: none; }
.rv-day-wd { font-size: var(--gs-fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.rv-day.rv-day-active .rv-day-wd { color: var(--navy); }
.rv-day-n  { font-size: var(--gs-fs-lg); font-weight: 700; letter-spacing: -.02em; color: var(--navy); }
.rv-day-dots { display: flex; gap: 2px; min-height: 5px; }
.rv-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }
.rv-dot-g { background: #3b9a60; }
.rv-dot-y { background: var(--gold); }
.rv-dot-r { background: var(--danger); }

.rv-status { padding: 14px 0; font-size: var(--gs-fs-sm); color: var(--muted); }
.rv-status.rv-err { color: var(--danger); }

.rv-tl-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 14px 0 10px; border-top: 1px solid var(--line-soft);
}
.rv-tl-date { font-family: var(--gs-font-heading); font-size: var(--gs-fs-md); color: var(--navy); }
.rv-tl-meta { font-size: var(--gs-fs-sm); color: var(--muted); }

.rv-hour-label {
  padding: 8px 0 4px; font-size: var(--gs-fs-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  border-top: 1px solid var(--line-soft);
}
.rv-hour-label:first-child { border-top: none; }

.rv-slot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer; transition: background .1s;
  border-left: 3px solid transparent; padding-left: 10px; margin-left: -10px;
  -webkit-tap-highlight-color: transparent;
}
.rv-slot:last-child { border-bottom: none; }
.rv-slot:hover:not(.rv-slot-busy) { background: rgba(21,35,63,.03); }
.rv-slot.rv-h { border-left-color: #3b9a60; }
.rv-slot.rv-m { border-left-color: var(--gold); }
.rv-slot.rv-l { border-left-color: var(--danger); }
.rv-slot.rv-slot-busy { opacity: .48; cursor: default; }
.rv-slot.rv-slot-busy:hover { background: transparent; }
.rv-slot.rv-slot-sel { background: rgba(21,35,63,.05); border-left-color: var(--navy); }
.rv-slot.rv-slot-inv { background: rgba(190,67,52,.04); }
.rv-sl { display: flex; flex-direction: column; gap: 2px; }
.rv-sl-time { font-size: var(--gs-fs-md); font-weight: 700; color: var(--navy); letter-spacing: -.02em; }
.rv-slot-busy .rv-sl-time { color: var(--muted); }
.rv-slot-sel .rv-sl-time  { color: var(--navy); }
.rv-sl-dur { font-size: var(--gs-fs-xs); color: var(--muted); }
.rv-sr { display: flex; align-items: center; gap: 8px; }
.rv-sr-price { font-size: var(--gs-fs-sm); font-weight: 600; color: var(--muted); }
.rv-slot-sel .rv-sr-price { color: var(--navy); }
.rv-sr-badge {
  min-width: 26px; height: 26px; border-radius: 999px;
  background: var(--gold-soft); border: 1px solid #e8d493;
  color: #7a5c1a; display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--gs-fs-xs); font-weight: 700;
}
.rv-slot-busy .rv-sr-badge { background: var(--line-soft); border-color: var(--line); color: var(--muted); }
.rv-sr-check {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: none; place-items: center; font-size: var(--gs-fs-xs); font-weight: 700;
}
.rv-slot-sel .rv-sr-check { display: grid; }

.rv-sumbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 80;
  background: rgba(255,255,255,.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 28px rgba(21,35,63,.09);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 20px max(10px, env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform .22s cubic-bezier(.4,0,.2,1);
}
.rv-sumbar.rv-sumbar-visible { transform: translateY(0); }
.rv-sumbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.rv-sum-left { flex: 1; min-width: 0; }
.rv-sum-dt    { font-size: var(--gs-fs-sm); font-weight: 700; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 28ch; }
.rv-sum-slots { font-size: var(--gs-fs-sm); color: var(--muted); margin-top: 1px; }
.rv-sum-warn  { font-size: var(--gs-fs-xs); color: var(--danger); margin-top: 2px; }
.rv-sum-price { font-family: var(--gs-font-heading); font-size: var(--gs-fs-lg); color: var(--navy); white-space: nowrap; flex-shrink: 0; }
.rv-sum-btns  { display: flex; gap: 8px; flex-shrink: 0; }
.rv-clear-btn {
  height: 46px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.9);
  color: var(--muted); font-size: var(--gs-fs-md); font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: color .12s;
}
.rv-clear-btn:hover { color: var(--navy); }
.rv-clear-icon {
  display: none;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,255,255,.9);
  color: var(--muted); font-size: var(--gs-fs-lg); line-height: 1;
  cursor: pointer; align-items: center; justify-content: center;
  flex-shrink: 0; transition: color .12s, border-color .12s;
}
.rv-clear-icon:hover { color: var(--navy); border-color: #d0bc97; }
.rv-pay-btn { min-height: 46px; border-radius: 999px; font-size: var(--gs-fs-md); }
@media (max-width: 540px) {
  .rv-sumbar-inner { gap: 8px; }
  .rv-sum-price { font-size: var(--gs-fs-lg); }
  .rv-pay-btn { min-height: 42px; height: 42px; padding: 0 14px; font-size: var(--gs-fs-sm); }
  .rv-clear-btn { display: none; }
  .rv-clear-icon { display: inline-flex; }
}
#rv-result {
  border-radius: 16px; margin: 12px 0 4px;
  padding: 12px 16px; font-size: var(--gs-fs-sm); line-height: 1.55; display: none;
}
#rv-result.rv-res-ok  { background: var(--success-soft); border: 1px solid #bfe2cd; color: var(--success); }
#rv-result.rv-res-err { background: var(--danger-soft);  border: 1px solid #efc0b9; color: var(--danger);  }
/* ── Rental confirmation popup ─────────────────────────────── */
.rf-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(21,35,63,.45);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: rf-fadein .2s ease;
}
@keyframes rf-fadein { from { opacity:0 } to { opacity:1 } }
.rf-modal {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(21,35,63,.18);
  max-width: 420px; width: 100%;
  overflow: hidden;
  animation: rf-slidein .22s cubic-bezier(.4,0,.2,1);
}
@keyframes rf-slidein { from { transform:translateY(24px);opacity:0 } to { transform:none;opacity:1 } }
.rf-head {
  padding: 28px 28px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  border-bottom: 1px solid #efe7da;
  text-align: center;
}
.rf-icon-wrap {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.rf-icon-wrap.ok  { background: #e7f6ee; }
.rf-icon-wrap.err { background: #fdecea; }
.rf-title {
  font-family: var(--gs-font-heading);
  font-size: var(--gs-fs-lg); font-weight: 700;
  color: #15233f; line-height: 1.2;
}
.rf-subtitle { font-size: var(--gs-fs-sm); color: #6d7891; }
.rf-body { padding: 20px 28px; display: flex; flex-direction: column; gap: 12px; }
.rf-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(180deg,#fff,#faf7f0);
  border: 1px solid #efe7da; border-radius: 14px;
}
.rf-row-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: #f7f5f1; border: 1px solid #efe7da;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rf-row-icon svg { width: 18px; height: 18px; stroke: #6d7891; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rf-row-label { font-size: var(--gs-fs-xs); color: #6d7891; margin-bottom: 1px; }
.rf-row-value { font-size: var(--gs-fs-md); font-weight: 600; color: #15233f; }
.rf-footer { padding: 0 28px 24px; }
.rf-close {
  width: 100%; height: 46px; border-radius: 999px;
  background: linear-gradient(145deg,#15233f,#203153);
  color: #fff; font-size: var(--gs-fs-md); font-weight: 700;
  border: none; cursor: pointer;
}


/* ── Mobile layout guardrails: cabinet must never overflow viewport ── */
.page-grid,
.stack,
.panel,
.mode-picker,
.mode-card,
#slots-block,
#my-bookings-wrap {
  min-width: 0;
  max-width: 100%;
}
.mode-picker {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}
.mode-card {
  min-width: 0;
  overflow: hidden;
}
.mode-title,
.mode-sub,
.panel-title,
.panel-sub {
  overflow-wrap: anywhere;
  word-break: normal;
}
@media (max-width: 420px) {
  :root { --cabinet-gap: 12px; }
  .hero-main,
  .hero-side { padding-left: 14px; padding-right: 14px; }
  .mode-picker { gap: var(--cabinet-gap); }
  .mode-card { padding: 14px 10px; }
}
@media (max-width: 360px) {
  .mode-picker { grid-template-columns: 1fr; }
}

/* ===== my-bookings.css ===== */
.mb-wrap {
background: rgba(255,255,255,.88);
border: 1px solid rgba(255,255,255,.55);
box-shadow: 0 18px 50px rgba(21,35,63,.10);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border-radius: 28px;
padding: 18px 22px 6px;
margin-bottom: 0;
  }
  @media (max-width: 480px) {
.mb-wrap { padding: 14px 14px 6px; border-radius: 20px; }
  }

  .mb-head {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 4px;
  }
  .mb-title {
font-family: var(--gs-font-heading);
font-size: var(--gs-fs-md);
color: #15233f;
  }
  .mb-refresh-btn {
width: 28px; height: 28px; border-radius: 50%;
border: 1px solid #e8dfcf;
background: rgba(255,255,255,.9);
color: #6d7891;
font-size: var(--gs-fs-md); cursor: pointer;
display: inline-flex; align-items: center; justify-content: center;
transition: color .12s, transform .3s;
line-height: 1;
  }
  .mb-refresh-btn:hover { color: #15233f; }
  .mb-refresh-btn.spin { transform: rotate(360deg); }

  /* ── Footnote-подсказка календаря ── */
  .mb-cal-hint {
display: flex;
align-items: center;
gap: 4px;
padding: 4px 0 10px;
min-height: 22px;
  }
  .mb-cal-hint-text {
font-size: var(--gs-fs-xs);
color: #a8b2c4;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
  }
  @media (max-width: 380px) {
.mb-cal-hint-text { font-size: var(--gs-fs-xs); }
  }
  .mb-cal-hint-link {
font-size: var(--gs-fs-xs);
color: #7fa8d0;
text-decoration: none;
font-weight: 600;
white-space: nowrap;
flex-shrink: 0;
  }
  .mb-cal-hint-link:hover { text-decoration: underline; }
  .mb-cal-hint-x {
margin-left: auto;
flex-shrink: 0;
border: none;
background: none;
cursor: pointer;
color: #c8d0dc;
font-size: var(--gs-fs-sm);
padding: 0 0 0 6px;
line-height: 1;
  }
  .mb-cal-hint-x:hover { color: #8a95a8; }

  .mb-cal-spacer { margin-bottom: 10px; }

.mb-list { display: flex; flex-direction: column; }

  .mb-item {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 0;
border-bottom: 1px solid #efe7da;
  }
  .mb-item:last-child { border-bottom: none; margin-bottom: 0; }
  @media (max-width: 480px) {
.mb-item { gap: 9px; }
  }

  .mb-date-badge {
width: 38px; flex-shrink: 0;
display: flex; flex-direction: column;
align-items: center;
background: linear-gradient(180deg,#fff,#faf7f0);
border: 1px solid #e8dfcf;
border-radius: 10px;
padding: 4px 2px;
  }
  .mb-date-day { font-family:var(--gs-font-heading); font-size: var(--gs-fs-md); line-height: 1; color: #15233f; font-weight: 700; }
  .mb-date-mon { font-size: var(--gs-fs-xs); color: #6d7891; text-transform: uppercase; letter-spacing: .04em; margin-top: 1px; }

  .mb-body { flex: 1; min-width: 0; }
  .mb-item-title {
display: flex; align-items: center; gap: 6px;
font-size: var(--gs-fs-sm); font-weight: 600; color: #15233f;
margin-bottom: 2px;
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .mb-type-dot {
width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  }
  .mb-type-dot-training { background: #378ADD; }
  .mb-type-dot-rental   { background: #3b9a60; }
  .mb-meta {
font-size: var(--gs-fs-xs); color: #6d7891;
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }

  .mb-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
  .mb-when { display: none; }
  .mb-cancel-btn {
font-size: var(--gs-fs-xs); padding: 5px 14px;
border-radius: 99px; border: 1px solid #e8a89d;
background: rgba(190,67,52,.06); color: #be4334;
cursor: pointer; transition: background .12s; white-space: nowrap;
text-decoration: none;
font-family: inherit;
  }
  .mb-cancel-btn:hover { background: rgba(190,67,52,.12); }
  .mb-cancel-btn:disabled { opacity: .5; cursor: default; }
  .mb-amount { font-size: var(--gs-fs-sm); color: #6d7891; }

/* Calendar subscription chooser */
.mb-cal-hint-link {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.mb-cal-sheet {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  z-index: 2147483647 !important;
  isolation: isolate;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(18px + env(safe-area-inset-top)) calc(14px + env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) calc(14px + env(safe-area-inset-left));
}
.mb-cal-sheet[aria-hidden="true"] { display: none !important; }
.mb-cal-sheet-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  background: rgba(21,35,63,.48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.mb-cal-sheet-card {
  position: relative !important;
  z-index: 1 !important;
  width: min(560px, 100%);
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  border-radius: 28px;
  border: 1px solid rgba(232,223,207,.92);
  background: rgba(255,255,255,.98);
  box-shadow: 0 30px 90px rgba(21,35,63,.30);
  padding: 22px;
}
.mb-cal-sheet-head,
.mb-cal-copy,
.mb-cal-actions {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.mb-cal-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.mb-cal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff7e4;
  border: 1px solid #ead8a8;
  color: #8a6716;
  font-size: var(--gs-fs-xs);
  font-weight: 800;
}
.mb-cal-title {
  font-family: var(--gs-font-heading);
  font-size: var(--gs-fs-lg);
  color: #15233f;
  line-height: 1.15;
}
.mb-cal-close {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #e8dfcf;
  background: #fff;
  color: #6d7891;
  cursor: pointer;
}
.mb-cal-copy {
  margin: 10px 0 14px;
  color: #6d7891;
  font-size: var(--gs-fs-sm);
  line-height: 1.45;
}
.mb-cal-actions {
  display: grid;
  gap: 9px;
}
.mb-cal-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 15px;
  border: 1px solid #e8dfcf;
  background: #fff;
  color: #15233f;
  font-size: var(--gs-fs-sm);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.mb-cal-action-primary {
  background: linear-gradient(145deg,#c9a44a,#e8cb76);
  border-color: #d8bc6d;
  color: #fff;
}
.mb-cal-action.is-recommended {
  border-color: #d8bc6d;
  box-shadow: 0 0 0 3px rgba(201,164,74,.18);
}
html.mb-cal-lock,
body.mb-cal-lock { overflow: hidden; }

/* ===== training-slots.css ===== */
.booking-shell {
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
}
.hall-select-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 4px 0 4px;
}
.hall-pills {
  display: flex;
  width: 100%;
  max-width: 100%;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 0 2px;
}
.hall-pills::-webkit-scrollbar { display: none; }
.hall-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 32px;
  margin: 0;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e8dfcf;
  color: #203153;
  font-size: var(--gs-fs-sm);
  line-height: 1;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.hall-pill-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hall-pill:hover { border-color: #d1b06a; }
.hall-pill.active {
  color: #fff;
  border-color: #15233f;
  background: linear-gradient(145deg, #15233f, #203153);
}

.training-list {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 10px;
}
.training-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  column-gap: 14px;
  row-gap: 0;
  align-items: center;
  padding: 15px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #faf7f0);
  border: 1px solid #efe7da;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.training-card:hover {
  border-color: #dcc79a;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(21,35,63,.06);
}
.training-card.is-booked {
  background: linear-gradient(180deg, #f5fcf8, #f9fffb);
  border-color: #c8e7d4;
}
.training-date-block {
  grid-column: 1;
  grid-row: 1;
  width: 70px;
  min-height: 74px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff7df, #fff);
  border: 1px solid #ecdcb8;
  text-align: center;
  padding: 8px 6px;
}
.training-weekday {
  font-size: var(--gs-fs-xs);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8f99ad;
  line-height: 1;
}
.training-day {
  font-family: var(--gs-font-heading);
  font-size: var(--gs-fs-lg);
  line-height: 1;
  color: #c9a44a;
}
.training-month {
  margin-top: 3px;
  font-size: var(--gs-fs-xs);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7d879d;
}
.training-info {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  width: 100%;
  display: grid;
  gap: 4px;
}
.training-mainline {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.training-name { overflow-wrap: anywhere; }
.training-name {
  font-family: var(--gs-font-heading);
  font-size: var(--gs-fs-lg);
  font-weight: 700;
  letter-spacing: -.02em;
  color: #15233f;
  line-height: 1.15;
}
.training-time-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.training-time-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--gs-font-heading);
  font-size: var(--gs-fs-md);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #203153;
}
.training-statuses {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e9e2d6;
  font-size: var(--gs-fs-sm);
  font-weight: 700;
  color: #33415f;
}
.meta-chip.places-good { color: #167a4a; background: #edf8f1; border-color: #cde7d7; }
.meta-chip.places-warn { color: #a76612; background: #fff7e7; border-color: #f1dfb5; }
.meta-chip.places-bad { color: #be4334; background: #fdecea; border-color: #efc0b9; }
.training-empty {
  font-size: var(--gs-fs-sm);
  color: #6d7891;
  line-height: 1.5;
}
.subscription-modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(12, 20, 36, .45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
}
.subscription-modal {
  width: min(420px, 100%);
  border-radius: 24px;
  background: #fff;
  border: 1px solid #e8dfcf;
  box-shadow: 0 18px 50px rgba(21,35,63,.16);
  padding: 24px;
}
.subscription-modal-title {
  font-size: var(--gs-fs-lg);
  font-weight: 800;
  color: #15233f;
  margin-bottom: 10px;
}
.subscription-modal-text {
  font-size: var(--gs-fs-md);
  line-height: 1.6;
  color: #6d7891;
  margin-bottom: 18px;
}
.subscription-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.subscription-modal-actions .btn {
  flex: 1 1 180px;
}
.training-action {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  align-self: stretch;
}
.training-mobile-meta {
  display: none;
}
.training-mobile-button {
  grid-column: 1 / -1;
  grid-row: 4;
  display: none;
}
.mobile-places {
  font-size: var(--gs-fs-sm);
  font-weight: 700;
  line-height: 1.2;
}
.mobile-places.places-good { color: #167a4a; }
.mobile-places.places-warn { color: #a76612; }
.mobile-places.places-bad { color: #be4334; }
.training-action-top {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}
.training-action .training-statuses {
  justify-content: flex-end;
}
.training-action form {
  display: flex;
  align-items: center;
}
.training-info .training-statuses {
  display: none;
}

.participants-row {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
  margin-top: 8px;
  border-top: 1px solid #efe7da;
}

@media (max-width: 760px) {
  .booking-shell { gap: 10px; }
  .hall-select-wrap { margin: 4px 0 2px; }
  .hall-pill {
    min-height: 30px;
    padding: 0 10px;
    font-size: var(--gs-fs-xs);
  }
  .training-card {
    grid-template-columns: 66px minmax(0, 1fr);
    align-items: stretch;
    column-gap: 10px;
    row-gap: 0;
    padding: 10px 12px;
    border-radius: 22px;
  }
  .training-date-block {
    grid-column: 1;
    grid-row: 1;
    width: 60px;
    min-height: 72px;
    align-self: center;
    display: grid;
    place-items: center;
    align-content: center;
    justify-items: center;
    border-radius: 18px;
    gap: 2px;
    padding: 8px 5px;
  }
  .training-weekday {
    font-size: var(--gs-fs-xs);
    letter-spacing: .04em;
  }
  .training-day {
    font-size: var(--gs-fs-xl);
  }
  .training-month {
    margin-top: 2px;
    font-size: var(--gs-fs-xs);
  }
  .training-info {
    grid-column: 2;
    grid-row: 1;
    gap: 0;
    padding-top: 0;
    min-height: 64px;
    align-self: center;
  }
  .training-mainline {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    height: 100%;
    min-height: 64px;
  }
  .training-time-row {
    align-items: center;
    min-height: 0;
    margin: 0;
  }
  .training-name {
    display: flex;
    align-items: center;
    margin: 0;
    font-family: var(--gs-font-heading);
    font-size: var(--gs-fs-lg);
    line-height: 1.04;
    letter-spacing: -.02em;
    min-height: 0;
    font-weight: 800;
  }
  .training-time-main {
    font-family: var(--gs-font-heading);
    font-size: var(--gs-fs-lg);
    line-height: 1;
    letter-spacing: -.02em;
    font-weight: 800;
  }
  .meta-chip {
    min-height: auto;
    padding: 0;
    font-size: var(--gs-fs-sm);
    border: 0;
    background: transparent;
    border-radius: 0;
  }
  .training-empty {
    font-size: var(--gs-fs-sm);
  }
  .training-info .training-statuses {
    display: none;
  }
  .training-action {
    display: none;
  }
  .training-mobile-meta {
    display: flex;
    align-items: center;
    margin: 0;
    min-width: 0;
    width: 100%;
    margin-top: 0;
    min-height: 0;
  }
  .mobile-places {
    font-size: var(--gs-fs-xs);
    font-weight: 700;
    line-height: 1.05;
  }
  .booking-state-inline {
    min-height: 28px;
    padding: 0 12px;
    font-size: var(--gs-fs-sm);
  }
  .training-action-top {
    display: none;
  }
  .training-action form {
    width: 100%;
  }
  .training-action .btn {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    justify-content: center;
    border-radius: 16px;
    padding-left: 18px;
    padding-right: 18px;
    font-weight: 800;
  }
  .training-mobile-button {
    display: flex;
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 0;
  }
  .training-mobile-button form,
  .training-mobile-button > button {
    width: 100%;
    display: flex;
  }
  .training-mobile-button .btn {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    justify-content: center;
    border-radius: 16px;
    padding-left: 18px;
    padding-right: 18px;
    font-weight: 800;
  }
  .participants-row {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
  padding-bottom: 6px;
  margin-top: 8px;
  border-top: 1px solid #efe7da;
}
}

.avatars-stack {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 34px;
}
.avatars-stack.is-hydrating { opacity: .72; transition: opacity .18s ease; }
.participants-row.is-hydrating .participants-toggle,
.participants-row.is-hydrating .participants-free,
.participants-row.is-hydrating .participants-state-booked,
.participants-row.is-hydrating .participants-state-waitlist { opacity: .82; transition: opacity .18s ease; }
.av-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #faf7f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--gs-fs-xs);
  font-weight: 800;
  letter-spacing: 0;
  flex-shrink: 0;
  margin-right: -7px;
  background: linear-gradient(180deg, #fff7df, #fff0c8);
  color: #8a6820;
}
.av-circle:last-child { margin-right: 0; }
.av-circle.av-b { background: linear-gradient(180deg, #f5fcf8, #e0f5eb); color: #167a4a; }
.av-circle.av-c { background: linear-gradient(180deg, #fdecea, #fad5d2); color: #be4334; }
.av-circle.av-more { background: #f0f2f7; color: #6d7891; font-size: var(--gs-fs-xs); }
.participants-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  border: 1px solid #e9e2d6;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: var(--gs-fs-sm);
  font-weight: 700;
  color: #33415f;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
  white-space: nowrap;
  line-height: 1;
}
.participants-toggle:hover { border-color: #d1b06a; background: #fffbf4; }
.participants-toggle:active { transform: scale(0.97); }
.participants-toggle .pt-chevron { transition: transform .25s cubic-bezier(.4,0,.2,1); flex-shrink: 0; }
.participants-toggle.is-open .pt-chevron { transform: rotate(180deg); }
.participants-free {
  margin-left: auto;
  font-size: var(--gs-fs-sm);
  font-weight: 800;
  white-space: nowrap;
}
.participants-state-booked {
  margin-left: auto;
  font-size: var(--gs-fs-sm);
  font-weight: 800;
  white-space: nowrap;
  color: #167a4a;
}
.participants-state-waitlist {
  margin-left: auto;
  font-size: var(--gs-fs-sm);
  font-weight: 800;
  white-space: nowrap;
  color: #a76612;
}
.booking-state-inline {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: #edf8f1;
  border: 1px solid #cde7d7;
  font-size: var(--gs-fs-sm);
  font-weight: 800;
  color: #167a4a;
}
.participants-panel {
  grid-column: 1 / -1;
  grid-row: 3;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s cubic-bezier(.4,0,.2,1);
  grid-column: 1 / -1;
  overflow: hidden;
  min-height: 0;
}
.participants-panel.is-open { grid-template-rows: 1fr; }
.participants-panel-inner {
  overflow: hidden;
  min-height: 0;
}
.participants-panel-body {
  padding-top: 10px;
  border-top: 1px solid #efe7da;
  margin-top: 2px;
  display: grid;
  gap: 0;
}
.participant-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 2px;
  border-bottom: 1px solid #f5f0e8;
}
.participant-row:last-child { border-bottom: none; }
.participant-row .av-circle {
  width: 30px;
  height: 30px;
  font-size: var(--gs-fs-xs);
  margin-right: 0;
  border: none;
  flex-shrink: 0;
}
.participant-name {
  font-size: var(--gs-fs-sm);
  font-weight: 700;
  color: #15233f;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.participant-you {
  font-size: var(--gs-fs-xs);
  background: linear-gradient(180deg, #fff7df, #fff0c8);
  color: #8a6820;
  border: 1px solid #ecdcb8;
  border-radius: 6px;
  padding: 2px 8px;
  font-weight: 700;
  flex-shrink: 0;
}
.participants-hint {
  font-size: var(--gs-fs-sm);
  color: #9aa3b5;
  padding: 6px 2px;
}
/* ── /Участники ─────────────────────────────────── */

@media (max-width: 420px) {
  .hall-pills { gap: 6px; }
  .training-card {
    padding: 10px 12px;
    column-gap: 10px;
    row-gap: 0;
    grid-template-columns: 58px minmax(0, 1fr);
  }
  .training-date-block {
    width: 58px;
    min-height: 64px;
  }
  .training-weekday { font-size: var(--gs-fs-xs); }
  .training-day { font-size: var(--gs-fs-xl); }
  .training-month { font-size: var(--gs-fs-xs); }
  .training-name { font-size: var(--gs-fs-lg); }
  .training-time-main { font-size: var(--gs-fs-lg); }
  .mobile-places { font-size: var(--gs-fs-xs); }
  .booking-state-inline { font-size: var(--gs-fs-xs); }
  .training-mobile-button {
    margin-top: 0;
  }
  .training-action .btn {
    min-height: 46px;
    padding-left: 18px;
    padding-right: 18px;
  }
}
