:root {
  --lime: #c8ff02;
  --blue: #0b098b;
  --paper: #f4f4f4;
  --black: #000000;
  --ink: #11131a;
  --muted: #626777;
  --line: #d9dbe3;
  --surface: #ffffff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  color: white;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 38px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--black);
  background: var(--lime);
  border-radius: 8px;
  font-weight: 900;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 50%;
  background: var(--lime);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--lime);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  cursor: pointer;
  font-size: 22px;
  font-weight: 900;
}

.mode-toggle {
  display: none;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  color: var(--black);
  background: var(--lime);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  color: var(--lime);
  font-weight: 700;
}

.top-nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.top-nav a:hover {
  color: var(--lime);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.language-switcher button {
  min-width: 38px;
  height: 34px;
  color: white;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.language-switcher button.active {
  color: #000;
  background: var(--lime);
}

.nav-book,
.primary-action,
.secondary-action,
form button,
.package-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.nav-book,
.primary-action,
form button,
.package-card a {
  color: var(--black);
  background: var(--lime);
}

.secondary-action {
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: center;
  padding: 80px clamp(18px, 5vw, 76px) 120px;
  color: white;
  background-image: url("assets/hero-vr-arena.png");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 82px;
  background: linear-gradient(to bottom, rgba(244, 244, 244, 0), var(--paper));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.65) 38%, rgba(11, 9, 139, 0.24) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.48));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
}

.hero-logo {
  display: block;
  width: min(140px, 34vw);
  aspect-ratio: 1;
  margin: 0 0 18px;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 24px 80px rgba(200, 255, 2, 0.18);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(46px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions,
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 28px;
}

.hero-facts {
  margin-top: 34px;
}

.hero-facts span {
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.section {
  padding: 70px clamp(18px, 5vw, 76px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto 28px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.05;
}

.intro-grid,
.package-grid,
.location-layout,
.app-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.intro-grid,
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.intro-grid article,
.package-card,
.login-panel,
.workspace,
.side-tabs,
.location-info,
.map-panel,
.price-table-wrap,
.table-wrap,
.request-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.06);
}

.intro-grid article {
  padding: 24px;
}

.intro-grid h3,
.location-info h3,
.panel-heading h3 {
  margin-bottom: 10px;
}

.intro-grid p,
.package-card p,
.location-info p,
.hint {
  color: var(--muted);
  line-height: 1.55;
}

.price-table-wrap,
.table-wrap {
  max-width: 1180px;
  margin: 0 auto;
  overflow-x: auto;
}

.price-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: white;
}

.price-table th {
  color: white;
  background: var(--blue);
  text-align: left;
}

.price-table th,
.price-table td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.price-table td:nth-child(2),
.price-table td:nth-child(3) {
  font-weight: 800;
}

.packages {
  background: #080812;
  color: white;
}

.package-card {
  padding: 24px;
  color: var(--ink);
}

.package-card.featured {
  border-color: var(--lime);
  box-shadow: var(--shadow);
}

.package-name {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 10px;
  color: var(--black);
  background: var(--lime);
  border-radius: 8px;
  font-weight: 900;
}

.package-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 28px;
}

.package-card a {
  width: 100%;
  margin-top: 12px;
}

.package-note {
  max-width: 1180px;
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.package-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.franchise {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 78% 18%, rgba(200, 255, 2, 0.22), transparent 28%),
    radial-gradient(circle at 18% 80%, rgba(11, 9, 139, 0.36), transparent 34%),
    linear-gradient(135deg, #060713 0%, #11102a 48%, #000 100%);
}

.franchise::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 18%, rgba(200, 255, 2, 0.22), transparent 26%),
    linear-gradient(180deg, rgba(6, 7, 19, 0), rgba(6, 7, 19, 0.92));
}

.franchise > * {
  position: relative;
  z-index: 1;
}

.franchise-hero,
.franchise-grid,
.franchise-concept,
.franchise-photo-grid,
.franchise-steps,
.franchise-games,
.franchise-trust,
.franchise-request-form,
.franchise-stats {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.franchise-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px;
  align-items: center;
}

.franchise-hero h1,
.franchise-hero h2 {
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 78px);
  line-height: 0.98;
}

.franchise-hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.6;
}

.franchise-visual {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 14px;
  min-height: 420px;
}

.visual-card {
  position: relative;
  display: flex;
  min-height: 180px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(200, 255, 2, 0.22);
  border-radius: 8px;
}

.visual-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.95;
  background:
    linear-gradient(135deg, rgba(200, 255, 2, 0.18), rgba(11, 9, 139, 0.28)),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, 0.06) 18px 19px);
}

.visual-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.82));
}

.visual-card.equipment::before {
  background:
    radial-gradient(circle at 50% 34%, transparent 0 36px, rgba(200, 255, 2, 0.9) 37px 42px, transparent 43px),
    radial-gradient(circle at 32% 44%, rgba(0, 0, 0, 0.78) 0 28px, transparent 29px),
    radial-gradient(circle at 68% 44%, rgba(0, 0, 0, 0.78) 0 28px, transparent 29px),
    linear-gradient(145deg, rgba(200, 255, 2, 0.24), rgba(11, 9, 139, 0.36));
}

.visual-card.players {
  grid-row: span 2;
}

.visual-card.players::before {
  background:
    radial-gradient(circle at 38% 34%, rgba(200, 255, 2, 0.86) 0 24px, transparent 25px),
    radial-gradient(circle at 62% 30%, rgba(244, 244, 244, 0.78) 0 20px, transparent 21px),
    linear-gradient(80deg, transparent 0 35%, rgba(200, 255, 2, 0.9) 35% 38%, transparent 39%),
    linear-gradient(120deg, transparent 0 54%, rgba(244, 244, 244, 0.72) 54% 57%, transparent 58%),
    linear-gradient(145deg, rgba(11, 9, 139, 0.62), rgba(0, 0, 0, 0.3));
}

.visual-card.chart::before {
  background:
    linear-gradient(145deg, rgba(200, 255, 2, 0.2), rgba(11, 9, 139, 0.42)),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(255, 255, 255, 0.08) 22px 23px);
}

.visual-card span,
.visual-card strong,
.chart-bars {
  position: relative;
  z-index: 1;
}

.visual-card span {
  color: var(--lime);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.visual-card strong {
  margin-top: 6px;
  font-size: 24px;
}

.chart-bars {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 72px;
  margin-top: 14px;
}

.chart-bars i {
  display: block;
  width: 22px;
  background: var(--lime);
  border-radius: 4px 4px 0 0;
}

.chart-bars i:nth-child(1) { height: 24px; }
.chart-bars i:nth-child(2) { height: 38px; }
.chart-bars i:nth-child(3) { height: 52px; }
.chart-bars i:nth-child(4) { height: 68px; }

.franchise-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.franchise-stats .stat span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.45;
}

.franchise-concept {
  position: relative;
  overflow: hidden;
  margin-top: 28px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(200, 255, 2, 0.24);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.franchise-concept img {
  display: block;
  width: 100%;
  height: auto;
}

.concept-info {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 12px 22px;
  align-items: center;
  padding: 20px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.74));
}

.concept-info span,
.photo-card span {
  color: var(--lime);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.concept-info h3 {
  margin: 0;
  color: white;
  font-size: 28px;
}

.concept-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.franchise-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.photo-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(200, 255, 2, 0.18);
  border-radius: 8px;
}

.photo-card.large {
  grid-row: span 2;
  min-height: 540px;
}

.photo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compact-equipment .photo-card::before,
.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
}

.compact-equipment .photo-card::before {
  opacity: 0.9;
  background:
    radial-gradient(circle at 78% 20%, rgba(200, 255, 2, 0.22), transparent 32%),
    linear-gradient(135deg, rgba(11, 9, 139, 0.35), rgba(0, 0, 0, 0.9));
}

.photo-card::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.88));
}

.photo-card div {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 1;
}

.photo-card h3 {
  margin: 6px 0;
  color: white;
  font-size: 26px;
}

.photo-card p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.franchise-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.franchise-grid article,
.franchise-steps,
.franchise-games,
.franchise-trust,
.franchise-request-form {
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(200, 255, 2, 0.18);
  border-radius: 8px;
}

.franchise-grid h3,
.franchise-steps h3,
.franchise-games h3,
.franchise-trust h3 {
  color: var(--lime);
}

.franchise-grid p,
.franchise-grid li,
.franchise-steps li,
.franchise-games p,
.franchise-trust p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.franchise-grid ul,
.franchise-steps ol {
  margin: 0;
  padding-left: 20px;
}

.franchise-steps,
.franchise-games,
.franchise-trust,
.franchise-request-form {
  margin-top: 18px;
}

.franchise-steps ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 24px;
}

.franchise-request-form {
  background: rgba(255, 255, 255, 0.1);
}

.franchise-request-form .section-heading {
  grid-column: 1 / -1;
  margin: 0 0 8px;
}

.location-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.85fr;
  gap: 18px;
}

.map-panel {
  min-height: 390px;
  overflow: hidden;
}

.map-panel iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 390px;
  border: 0;
}

.location-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 28px;
}

.request-section {
  background: #e7e9f0;
}

.request-form,
.login-panel form,
.booking-form,
.owner-form,
.inline-form {
  display: grid;
  gap: 14px;
}

.request-form {
  max-width: 840px;
  margin: 0 auto;
  padding: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 7px;
  color: #333846;
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  color: var(--ink);
  background: white;
  border: 1px solid #c8ccd8;
  border-radius: 8px;
  outline: none;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11, 9, 139, 0.13);
}

.request-form label:nth-child(6),
.request-form button {
  grid-column: 1 / -1;
}

.dashboard {
  padding-top: 34px;
  background: transparent;
}

.portal-page {
  min-height: calc(100vh - 74px);
  background: #090a10;
}

.portal-hero {
  position: relative;
  min-height: 360px;
  display: grid;
  align-items: end;
  padding: 70px clamp(18px, 5vw, 76px) 52px;
  color: white;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(11, 9, 139, 0.48), rgba(0, 0, 0, 0.3)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), #090a10),
    url("assets/hero-vr-arena.png");
  background-size: cover;
  background-position: center;
}

.portal-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 76px;
  background: linear-gradient(to bottom, rgba(9, 10, 16, 0), #090a10);
}

.portal-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
}

.portal-hero-inner p:not(.eyebrow) {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.55;
}

.portal-title {
  margin-bottom: 0;
  color: white;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
}

.portal-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.portal-facts span {
  padding: 10px 12px;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  font-weight: 800;
}

.login-panel {
  max-width: 460px;
  margin: 0 auto;
  padding: 24px;
  color: var(--ink);
  border-color: rgba(200, 255, 2, 0.4);
  box-shadow: var(--shadow);
}

.inline-reset {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  gap: 8px;
  margin-top: 10px;
}

.app-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: start;
}

.hidden {
  display: none !important;
}

.side-tabs {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  position: sticky;
  top: 92px;
  background: #000;
  border-color: rgba(200, 255, 2, 0.24);
}

.side-tabs button {
  min-height: 42px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-weight: 800;
}

.side-tabs button.active,
.side-tabs button:hover {
  color: var(--black);
  background: var(--lime);
}

.workspace {
  min-height: 520px;
  padding: 22px;
  color: var(--ink);
  border-color: rgba(200, 255, 2, 0.22);
  box-shadow: var(--shadow);
}

.single-workspace {
  max-width: 1180px;
  margin: 0 auto;
}

.workspace-view {
  display: none;
}

.workspace-view.active {
  display: block;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-heading h3 {
  font-size: 24px;
  line-height: 1.1;
}

.compact-heading {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.panel-heading span,
.panel-heading button {
  flex: 0 0 auto;
}

.booking-form,
.owner-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 18px;
  margin-bottom: 18px;
  background: #f8f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

.booking-form {
  border-bottom: 1px solid var(--line);
}

.booking-form label:nth-child(10),
.booking-form button,
.owner-form button {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  grid-column: 1 / -1;
}

.form-actions button {
  grid-column: auto;
}

#bookingSubmitBtn {
  color: white;
  background: #d71920;
}

#bookingSubmitBtn:hover {
  background: #aa1016;
}

.ghost-button {
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
}

.danger-button {
  color: #fff;
  background: #dc2626;
}

.danger-button:hover {
  background: #b91c1c;
}

.duration-preview {
  grid-column: 1 / -1;
  padding: 12px 14px;
  color: var(--black);
  background: var(--lime);
  border-radius: 8px;
  font-weight: 900;
}

.day-preview,
.payment-preview {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 900;
}

.day-preview {
  color: white;
  background: var(--blue);
}

.day-preview.holiday {
  color: white;
  background: #d71920;
}

.payment-preview {
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
}

.modal-panel {
  width: min(1040px, 100%);
  max-height: min(860px, calc(100vh - 36px));
  overflow: auto;
  padding: 22px;
  background: var(--surface);
  border: 1px solid rgba(200, 255, 2, 0.42);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.small-modal {
  width: min(560px, 100%);
}

.modal-form {
  margin-bottom: 0;
}

.rest-payment-form {
  grid-template-columns: 1fr;
}

.icon-close {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  color: white;
  background: var(--black);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.portal-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.mini-stat {
  padding: 16px;
  color: white;
  background:
    linear-gradient(135deg, rgba(11, 9, 139, 0.96), rgba(0, 0, 0, 0.92));
  border: 1px solid rgba(200, 255, 2, 0.32);
  border-radius: 8px;
}

.mini-stat span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-stat strong {
  display: block;
  color: var(--lime);
  font-size: 22px;
  line-height: 1.1;
}

.list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.list-item {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: #f8f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.list-item strong {
  color: var(--blue);
}

.list-item small {
  color: var(--muted);
}

.list-item button {
  justify-self: start;
  min-height: 34px;
  padding: 0 12px;
  color: white;
  background: var(--black);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.booking-item {
  cursor: pointer;
}

.booking-item:hover {
  border-color: var(--blue);
  box-shadow: 0 10px 26px rgba(11, 9, 139, 0.11);
}

.inactive-item {
  opacity: 0.82;
  background: #f1f2f6;
}

.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.item-actions button:last-child {
  color: var(--black);
  background: var(--lime);
}

.timeline {
  display: grid;
  gap: 8px;
}

.time-capsules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}

.time-capsule {
  display: grid;
  gap: 4px;
  min-height: 68px;
  padding: 12px;
  color: var(--ink);
  background: white;
  border: 1px solid #cfd3df;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.time-capsule.booked {
  position: relative;
  grid-template-columns: 1fr 38px;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: visible;
}

.capsule-main,
.capsule-add {
  min-height: 68px;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 900;
}

.capsule-main {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px 6px 12px 14px;
  text-align: center;
}

.capsule-add {
  display: grid;
  place-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 24px;
  line-height: 1;
}

.capsule-add:hover {
  background: rgba(255, 255, 255, 0.2);
}

.time-capsule span {
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.time-capsule small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.capsule-flags {
  position: absolute;
  top: 4px;
  left: 6px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 3px;
  font-style: normal;
}

.capsule-flags b {
  display: inline-flex;
  min-width: 23px;
  height: 23px;
  align-items: center;
  justify-content: center;
  color: var(--black);
  background: var(--lime);
  border: 2px solid white;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.capsule-flags .multi-flag {
  background: var(--lime);
}

.time-capsule.free:hover,
.time-capsule.selected {
  color: var(--black);
  background: var(--lime);
  border-color: var(--lime);
  transform: translateY(-1px);
}

.time-capsule.free:hover small,
.time-capsule.selected small {
  color: rgba(0, 0, 0, 0.7);
}

.time-capsule.holiday-slot {
  color: #3b2700;
  background: #f5c542;
  border-color: #f5c542;
}

.time-capsule.holiday-slot small {
  color: rgba(59, 39, 0, 0.72);
}

.time-capsule.holiday-slot:hover,
.time-capsule.holiday-slot.selected {
  background: #ffd86a;
  border-color: #ffd86a;
}

.time-capsule.booked {
  color: white;
  background: #d71920;
  border-color: #d71920;
}

.time-capsule.booked.partial {
  background: #d71920;
  border-color: #d71920;
}

.time-capsule.booked small {
  color: rgba(255, 255, 255, 0.78);
}

.time-capsule.booked:hover {
  background: #aa1016;
  border-color: #aa1016;
}

.time-capsule.booked.selected {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}

.time-capsule.booked.paid {
  color: white;
  background: #d71920;
  border-color: #d71920;
}

.time-capsule.booked.partial.paid {
  background: #d71920;
  border-color: #d71920;
}

.time-capsule.booked.paid:hover {
  background: #aa1016;
  border-color: #aa1016;
}

.slot-modal-panel {
  max-width: 820px;
}

.slot-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.slot-booking-list {
  max-height: min(54vh, 520px);
  overflow: auto;
  padding-right: 4px;
}

.slot-booking-item {
  border-left: 5px solid #d71920;
}

.timeline-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  min-height: 48px;
  border: 1px solid #cfd3df;
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.timeline-row time {
  display: grid;
  place-items: center;
  color: white;
  background: #000;
  font-weight: 800;
}

.timeline-row div {
  padding: 12px 14px;
  background: #f8f9fc;
  line-height: 1.45;
}

.timeline-row.booked {
  border-color: rgba(200, 255, 2, 0.85);
  box-shadow: 0 8px 22px rgba(200, 255, 2, 0.12);
}

.timeline-row.booked time {
  color: var(--black);
  background: var(--lime);
}

.timeline-row.booked div {
  background: #eefad1;
}

.schedule-booking {
  display: inline-block;
  padding: 2px 0;
  cursor: pointer;
  font-weight: 800;
}

.schedule-booking:hover {
  color: var(--blue);
}

.owner-stats,
.report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.stat {
  padding: 16px;
  color: white;
  background:
    linear-gradient(135deg, var(--blue), #000);
  border-radius: 8px;
  border: 1px solid rgba(200, 255, 2, 0.25);
}

.stat strong {
  display: block;
  margin-top: 8px;
  color: var(--lime);
  font-size: 24px;
}

.inline-form {
  grid-template-columns: 1fr 140px 140px auto;
}

.workspace-view[data-view-panel="certificates"] .inline-form,
.workspace-view[data-view-panel="bar"] .inline-form,
.target-form {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 14px;
}

.target-table {
  min-width: 860px;
}

.target-table th,
.target-table td {
  text-align: left;
  vertical-align: top;
}

.target-table td:first-child,
.target-table td:nth-child(2) {
  min-width: 150px;
}

.target-table small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.target-day-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.target-day-row {
  display: grid;
  grid-template-columns: 72px repeat(4, minmax(70px, 1fr));
  gap: 6px;
  padding: 8px;
  background: rgba(11, 9, 139, 0.06);
  border: 1px solid rgba(11, 9, 139, 0.1);
  border-radius: 8px;
  font-size: 12px;
}

.target-day-row span:first-child {
  color: var(--blue);
  font-weight: 900;
}

.client-filter-form {
  grid-template-columns: minmax(220px, 1.4fr) 170px 170px auto;
  margin-bottom: 14px;
}

.client-card {
  gap: 12px;
}

.client-card-main {
  display: grid;
  gap: 6px;
}

.client-card-main b {
  color: var(--lime);
  letter-spacing: 0;
}

.client-whatsapp {
  width: fit-content;
  padding: 10px 12px;
  color: #000;
  background: var(--lime);
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.client-whatsapp:hover {
  transform: translateY(-1px);
}

.client-visits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.client-visits div {
  display: grid;
  gap: 4px;
  padding: 10px;
  background: rgba(11, 9, 139, 0.08);
  border: 1px solid rgba(11, 9, 139, 0.12);
  border-radius: 8px;
}

.client-visits b {
  color: var(--blue);
}

.rating-form {
  display: grid;
  gap: 14px;
}

.rating-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.rating-buttons {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.rating-buttons button {
  min-height: 42px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(11, 9, 139, 0.18);
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.rating-buttons button.active {
  color: #000;
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: 0 8px 20px rgba(200, 255, 2, 0.2);
}

.bar-filter-form {
  max-width: 420px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: min(380px, calc(100vw - 36px));
  padding: 14px 16px;
  color: white;
  background: var(--black);
  border-left: 5px solid var(--lime);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    align-items: center;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-book {
    margin-left: 0;
  }

  .top-nav {
    order: 3;
    width: 100%;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    overflow-x: auto;
    padding: 8px 0 4px;
  }

  .top-nav.open {
    display: flex;
  }

  .top-nav a {
    padding: 10px 0;
  }

  .intro-grid,
  .package-grid,
  .location-layout,
  .franchise-hero,
  .franchise-grid,
  .franchise-concept,
  .franchise-photo-grid,
  .franchise-stats,
  .app-shell,
  .booking-form,
  .owner-form,
  .portal-stat-row,
  .owner-stats,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .side-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: static;
  }

  .package-note {
    align-items: stretch;
    flex-direction: column;
  }

  .package-note .primary-action {
    width: 100%;
  }

  .franchise-steps ol {
    grid-template-columns: 1fr;
  }

  .franchise-visual {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .visual-card.players {
    grid-row: auto;
  }

  .photo-card.large {
    grid-row: auto;
    min-height: 360px;
  }

  .concept-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .nav-book {
    order: 4;
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
    padding-bottom: 86px;
  }

  h1,
  .franchise-hero h1,
  .portal-title {
    font-size: 38px;
    line-height: 1;
  }

  .hero-copy,
  .franchise-hero p {
    font-size: 16px;
  }

  .section {
    padding: 48px 16px;
  }

  .portal-page .section.dashboard {
    padding-left: 12px;
    padding-right: 12px;
  }

  .with-mode-toggle {
    gap: 10px;
  }

  .mode-toggle {
    display: inline-flex;
  }

  .with-mode-toggle .side-tabs {
    display: none;
  }

  .with-mode-toggle .side-tabs.open {
    display: grid;
  }

  .side-tabs {
    grid-template-columns: 1fr;
  }

  .side-tabs button {
    min-height: 44px;
  }

  .workspace {
    min-width: 0;
  }

  .time-capsules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .slot-summary {
    grid-template-columns: 1fr;
  }

  .item-actions {
    grid-template-columns: 1fr;
  }

  .modal-panel {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    overflow: auto;
  }

  .franchise-visual {
    gap: 10px;
  }

  .visual-card {
    min-height: 150px;
  }

  .franchise-stats .stat strong {
    font-size: 22px;
  }

  .franchise-request-form .section-heading {
    display: block;
  }

  .photo-card,
  .photo-card.large {
    min-height: 300px;
  }

  .photo-card h3 {
    font-size: 22px;
  }

  .nav-book {
    flex: 1;
  }

  .hero {
    min-height: 760px;
    padding: 70px 18px 110px;
    background-position: 62% center;
  }

  .portal-hero {
    min-height: 420px;
    padding: 62px 18px 42px;
    background-position: 62% center;
  }

  .hero-copy {
    font-size: 17px;
  }

  .section {
    padding: 54px 18px;
  }

  .section-heading,
  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .request-form,
  .inline-form {
    grid-template-columns: 1fr;
  }

  .request-form button {
    grid-column: auto;
  }

  .workspace {
    padding: 14px;
  }

  .timeline-row {
    grid-template-columns: 70px 1fr;
  }
}
