:root {
  color-scheme: dark;
  --bg: #0d100e;
  --surface: #171b18;
  --surface-2: #202620;
  --surface-3: #111512;
  --line: #303831;
  --text: #edf2e8;
  --muted: #a7b0a3;
  --accent: #9ec44b;
  --accent-2: #c4e273;
  --accent-dark: #1c260d;
  --danger: #ff7a6e;
  --danger-dark: #321916;
  --warning: #efc66b;
  --approved: #a9d85b;
  --pending: #efc66b;
  --canceled: #a4a9ae;
  --radius: 18px;
  --shadow: 0 16px 38px rgba(0, 0, 0, 0.3);
  font-family: Inter, Roboto, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

.profile-no-show-fees {
  border-color: rgba(232, 78, 78, .62);
  background: linear-gradient(145deg, rgba(111, 24, 24, .42), rgba(25, 18, 18, .96));
}

.no-show-fee-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.no-show-fee-heading > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 999px;
  color: #fff;
  background: #d33f3f;
  font-weight: 900;
}

.no-show-fee-heading p,
.profile-no-show-list {
  margin: 5px 0 0;
}

.profile-no-show-list {
  display: grid;
  gap: 8px;
}

.profile-no-show-item {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  background: rgba(0, 0, 0, .18);
}

.profile-no-show-item span {
  color: var(--muted);
  font-size: .88rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  background:
    radial-gradient(circle at 100% 0, rgba(158, 196, 75, 0.13), transparent 32rem),
    linear-gradient(180deg, #101410, var(--bg) 38rem);
  overscroll-behavior-y: contain;
}

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

button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(158, 196, 75, 0.38);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

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

h1 {
  margin-bottom: 5px;
  font-size: clamp(1.7rem, 7vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 4px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.view {
  width: min(100%, 780px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 16px calc(100px + env(safe-area-inset-bottom));
}

.login-view {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
}

.register-view {
  justify-content: flex-start;
}

.verify-view {
  justify-content: center;
}

.compact-hero {
  margin-top: 8px;
}

.auth-logo-small {
  width: min(38vw, 150px);
  margin-bottom: 15px;
}

.name-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.register-consents {
  display: grid;
  gap: 9px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-3);
}

.legal-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding-left: 31px;
  font-size: 0.76rem;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.verification-code {
  min-height: 62px;
  font-size: 1.65rem;
  font-weight: 850;
  letter-spacing: 0.3em;
  text-align: center;
}

.verify-form {
  width: 100%;
}

.muted-link {
  color: var(--muted);
}

.login-hero {
  margin-bottom: 20px;
}

.lead {
  max-width: 33rem;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.eyebrow {
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.muted {
  color: var(--muted);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(23, 27, 24, 0.96);
  box-shadow: var(--shadow);
}

.brand-logo {
  display: block;
  width: min(58vw, 230px);
  height: auto;
  margin: 0 auto 22px;
  border-radius: 22%;
  object-fit: contain;
}

.form-stack {
  display: grid;
  gap: 16px;
  padding: 20px;
}

label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

label > span {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 780;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #101411;
  color: var(--text);
}

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

input::placeholder {
  color: #747c72;
}

.password-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check-row input {
  flex: 0 0 auto;
  width: 21px;
  min-height: 21px;
  margin-top: 1px;
  accent-color: var(--accent);
}

.check-row > span {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.security-note,
.warning-note,
.success-note {
  margin: -3px 0 0;
  padding: 11px 12px;
  border-radius: 11px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.field-help {
  display: block;
  margin-top: -1px;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.4;
}

.login-account-hint {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid rgba(239, 198, 107, 0.28);
  border-left: 4px solid var(--warning);
  border-radius: 13px;
  background: rgba(239, 198, 107, 0.07);
}

.login-account-hint-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(239, 198, 107, 0.16);
  color: var(--warning);
  font-size: 1.05rem;
  font-weight: 900;
}

.login-account-hint strong {
  display: block;
  margin: 1px 0 5px;
  color: #f3e4bd;
  font-size: 0.93rem;
}

.login-account-hint p {
  margin: 0;
  color: #c9c4b5;
  font-size: 0.77rem;
  line-height: 1.48;
}

.login-account-hint p + p {
  margin-top: 6px;
}

.login-faq {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-3);
}

.login-faq summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 780;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.login-faq summary::-webkit-details-marker {
  display: none;
}

.login-faq summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.16s ease;
}

.login-faq[open] summary::after {
  transform: rotate(45deg);
}

.login-faq-content {
  display: grid;
  gap: 0;
  padding: 0 14px 14px;
  border-top: 1px solid var(--line);
}

.login-faq article {
  padding-top: 12px;
}

.login-faq article + article {
  margin-top: 12px;
  border-top: 1px solid rgba(201, 221, 197, 0.1);
}

.login-faq h3 {
  margin: 0 0 5px;
  color: var(--text);
  font-size: 0.83rem;
  line-height: 1.4;
}

.login-faq p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.warning-note {
  border-left: 3px solid var(--warning);
  color: #ded6bf;
}

.success-note {
  border-left: 3px solid var(--accent);
  color: #d8e5bd;
}

.primary-button,
.secondary-button,
.danger-button {
  min-height: 48px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 780;
  cursor: pointer;
}

.primary-button {
  background: var(--accent);
  color: #151b0b;
  box-shadow: 0 8px 20px rgba(158, 196, 75, 0.18);
}

.primary-button:active {
  background: var(--accent-2);
}

.secondary-button {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--text);
}

.booking-load-more {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.booking-month-filter {
  margin-top: 14px;
}

.booking-month-filter label {
  display: grid;
  gap: 7px;
}

.booking-month-filter input[type="month"] {
  width: 100%;
  min-width: 0;
}

.booking-month-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.booking-month-actions .secondary-button {
  flex: 1 1 auto;
}

.booking-month-filter .security-note {
  margin: 0;
}

.danger-button {
  border-color: rgba(255, 122, 110, 0.25);
  background: var(--danger-dark);
  color: var(--danger);
}

button:disabled {
  cursor: default;
  opacity: 0.55;
}

.icon-button {
  display: grid;
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
}

.text-button,
.inline-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 720;
  text-decoration: none;
  cursor: pointer;
}

.text-button.muted-link {
  color: var(--muted);
}

.inline-link {
  display: inline;
  font-size: inherit;
  text-decoration: underline;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.82rem;
}

.login-help {
  margin: 14px 8px 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
  text-align: center;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.filter-panel {
  display: grid;
  gap: 13px;
  margin-bottom: 14px;
  padding: 15px;
}

.filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}

.filter-heading .text-button {
  font-size: 0.76rem;
}

.date-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.date-grid input {
  min-width: 0;
  padding-inline: 9px;
}

.search-field {
  margin-bottom: 8px;
}

.search-field input {
  padding-left: 15px;
  border-radius: 15px;
}

.list-meta {
  display: flex;
  justify-content: space-between;
  min-height: 26px;
  padding: 5px 2px 8px;
  color: var(--muted);
  font-size: 0.73rem;
}

.card-list {
  display: grid;
  gap: 12px;
}

.event-card,
.booking-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(32, 38, 32, 0.96), rgba(20, 24, 21, 0.98));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.event-card.registered {
  border-color: rgba(158, 196, 75, 0.5);
}

.event-card.canceled-event {
  border-color: rgba(255, 112, 104, 0.65);
  box-shadow: inset 0 0 0 1px rgba(255, 112, 104, 0.12), 0 10px 24px rgba(0, 0, 0, 0.2);
}

.event-card.canceled-event .date-badge {
  border-color: rgba(255, 112, 104, 0.35);
  background: rgba(94, 31, 28, 0.52);
  color: var(--danger);
}

.event-card-button {
  display: grid;
  width: 100%;
  grid-template-columns: 62px minmax(0, 1fr) 22px;
  gap: 13px;
  padding: 16px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.date-badge {
  display: flex;
  height: 62px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(158, 196, 75, 0.3);
  border-radius: 15px;
  background: var(--accent-dark);
  color: var(--accent);
}

.date-badge strong {
  font-size: 1.45rem;
  line-height: 1;
}

.date-badge span {
  margin-top: 4px;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.card-main {
  min-width: 0;
}

.card-main h2 {
  overflow: hidden;
  margin: 0 0 7px;
  font-size: 1.02rem;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.card-meta span {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.price {
  color: var(--text);
  font-size: 0.83rem;
  font-weight: 780;
}

.availability {
  color: var(--muted);
  font-size: 0.72rem;
}

.availability.full {
  color: var(--danger);
}

.card-statuses {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 5px 8px;
}

.event-state-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 99px;
  background: rgba(158, 196, 75, 0.12);
  color: var(--accent);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.event-state-chip.canceled,
.event-state-chip.full,
.event-state-chip.closed,
.event-state-chip.unavailable {
  background: rgba(255, 112, 104, 0.12);
  color: var(--danger);
}

.event-state-chip.not-open {
  background: rgba(239, 198, 107, 0.12);
  color: var(--pending);
}

.chevron {
  align-self: center;
  color: var(--muted);
  font-size: 1.4rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 25px;
  padding: 4px 8px;
  border-radius: 99px;
  background: #252b26;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
}

.status-chip.approved {
  background: rgba(158, 196, 75, 0.12);
  color: var(--approved);
}

.status-chip.pending {
  background: rgba(239, 198, 107, 0.12);
  color: var(--pending);
}

.status-chip.canceled,
.status-chip.rejected {
  color: var(--canceled);
}

.registered-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  padding: 5px 10px;
  border-radius: 0 0 0 10px;
  background: var(--accent);
  color: #121807;
  font-size: 0.61rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.registered-ribbon.canceled-ribbon {
  background: var(--danger);
  color: #210a08;
}

.registered-ribbon.waitlist-ribbon {
  background: #e8b94f;
  color: #241704;
}

.registered-ribbon.waitlist-ribbon.offer {
  background: #ff8a3d;
  color: #271004;
}

.event-card.waitlisted {
  border-color: rgba(232, 185, 79, 0.52);
}

.empty-state {
  display: grid;
  min-height: 180px;
  place-content: center;
  gap: 7px;
  padding: 25px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  color: var(--text);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 15px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-3);
}

.segment {
  min-height: 42px;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 760;
}

.segment.active {
  background: var(--surface-2);
  color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.booking-head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 15px 15px 11px;
}

.booking-head .date-badge {
  height: 54px;
  border-radius: 13px;
}

.booking-head .date-badge strong {
  font-size: 1.22rem;
}

.booking-title h2 {
  margin: 1px 0 6px;
  font-size: 0.98rem;
}

.booking-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 15px 15px;
}

.booking-actions button {
  min-height: 43px;
  padding: 9px 8px;
  font-size: 0.75rem;
}

.booking-reminder {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 11px;
  background: var(--surface-3);
}

.booking-reminder > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.booking-reminder select {
  min-height: 40px;
  padding: 6px 9px;
  font-size: 0.76rem;
}

.bottom-nav {
  position: fixed;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 7px max(10px, calc((100vw - 760px) / 2)) max(7px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(15, 18, 16, 0.97);
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(15px);
}

.attendance-note {
  display: grid;
  gap: 3px;
  margin: 0 15px 12px;
  padding: 10px 12px;
  border: 1px solid rgba(158, 196, 75, 0.38);
  border-radius: 11px;
  background: rgba(158, 196, 75, 0.08);
}

.attendance-note b {
  color: var(--accent);
  font-size: 0.8rem;
}

.attendance-note span {
  color: var(--muted);
  font-size: 0.7rem;
}

.attendance-note.reversed {
  border-color: rgba(255, 122, 110, 0.3);
  background: rgba(255, 122, 110, 0.06);
}

.attendance-note.reversed b {
  color: var(--danger);
}

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

.pass-summary > div {
  display: grid;
  gap: 5px;
  padding: 13px 9px;
  background: var(--surface-3);
  text-align: center;
}

.pass-summary span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 750;
  text-transform: uppercase;
}

.pass-summary strong {
  color: var(--accent);
  font-size: 1.18rem;
}

.pass-list {
  margin-bottom: 24px;
}

.player-pass-card {
  display: grid;
  gap: 13px;
  padding: 16px;
  background: linear-gradient(145deg, rgba(158, 196, 75, 0.08), var(--surface-2) 48%);
}

.player-pass-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.player-pass-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.pass-chip {
  flex: none;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(164, 169, 174, 0.12);
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
}

.pass-chip.active { color: var(--approved); background: rgba(158, 196, 75, 0.12); }
.pass-chip.upcoming { color: #9dc1ff; background: rgba(110, 157, 230, 0.12); }
.pass-chip.revoked { color: var(--danger); background: rgba(255, 122, 110, 0.1); }

.pass-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #252b26;
}

.pass-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.unlimited-mark {
  color: var(--accent);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 0.8;
}

.pass-dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  color: var(--muted);
  font-size: 0.7rem;
}

.pass-dates b {
  display: block;
  margin-top: 2px;
  color: var(--text);
}

.pass-note {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

.pass-log-section h2 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.pass-movement-list {
  display: grid;
  gap: 7px;
}

.pass-movement {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
}

.pass-movement b { font-size: 0.8rem; }
.pass-movement span,
.pass-movement small { color: var(--muted); font-size: 0.68rem; }

.nav-item {
  position: relative;
  display: grid;
  min-height: 57px;
  place-items: center;
  gap: 2px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 730;
}

.nav-item.active {
  color: var(--accent);
}

.nav-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.nav-item i {
  position: absolute;
  top: 4px;
  right: calc(50% - 25px);
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.offline-banner {
  position: sticky;
  z-index: 25;
  top: 0;
  padding: max(8px, env(safe-area-inset-top)) 12px 8px;
  background: #5c481d;
  color: #fff2cb;
  font-size: 0.74rem;
  font-weight: 750;
  text-align: center;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 18px;
}

.profile-card h2,
.profile-card p {
  margin-bottom: 2px;
}

.avatar {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(158, 196, 75, 0.35);
  border-radius: 50%;
  background: var(--accent-dark);
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 850;
}

.settings-card {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  padding: 18px;
}

.section-title p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.menu-list {
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.menu-row {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 15px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
}

.menu-row:last-child {
  border-bottom: 0;
}

.menu-row b {
  color: var(--accent);
  font-size: 1.3rem;
}

.full-button {
  width: 100%;
}

.version {
  margin: 18px 0 0;
  color: #687066;
  font-size: 0.69rem;
  text-align: center;
}

.overlay {
  position: fixed;
  z-index: 50;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: max(20px, env(safe-area-inset-top));
  padding-right: env(safe-area-inset-right);
  padding-left: env(safe-area-inset-left);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.overlay-top {
  z-index: 70;
  align-items: center;
  padding: 20px;
}

.dialog {
  display: flex;
  width: min(100%, 700px);
  max-height: calc(100vh - max(20px, env(safe-area-inset-top)));
  max-height: calc(100dvh - max(20px, env(safe-area-inset-top)));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 23px 23px 0 0;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.dialog-header {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 17px 12px;
  border-bottom: 1px solid var(--line);
}

.dialog-header > div {
  min-width: 0;
}

.dialog-header h2 {
  overflow-wrap: anywhere;
}

.dialog-body {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 18px 17px max(24px, env(safe-area-inset-bottom));
}

.event-detail {
  display: grid;
  gap: 11px;
  margin-bottom: 18px;
}

.event-status-banner {
  padding: 10px 12px;
  border: 1px solid rgba(158, 196, 75, 0.35);
  border-radius: 11px;
  background: rgba(158, 196, 75, 0.1);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.4;
}

.event-status-banner.canceled,
.event-status-banner.full,
.event-status-banner.closed,
.event-status-banner.unavailable {
  border-color: rgba(255, 112, 104, 0.45);
  background: rgba(94, 31, 28, 0.35);
  color: var(--danger);
}

.event-status-banner.not-open {
  border-color: rgba(239, 198, 107, 0.42);
  background: rgba(93, 70, 20, 0.28);
  color: var(--pending);
}

.detail-line {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.detail-line b {
  color: var(--accent);
  text-align: center;
}

.detail-description {
  max-height: 120px;
  overflow-y: auto;
  padding: 12px;
  border-radius: 11px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.booking-form {
  padding: 0;
}

.custom-fields {
  display: grid;
  gap: 13px;
}

.custom-field {
  display: grid;
  gap: 7px;
}

.custom-field > span:first-child,
.custom-field-group legend {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 780;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
}

.custom-field-group {
  display: grid;
  gap: 9px;
  min-width: 0;
  margin: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-3);
}

.custom-field-group legend {
  max-width: 100%;
  padding: 0 5px;
}

.custom-field-check,
.custom-field-option {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-3);
}

.custom-field-option {
  padding: 8px 9px;
  border: 0;
  background: transparent;
}

.custom-field-content {
  padding: 11px 12px;
  border-left: 3px solid var(--accent);
  border-radius: 11px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.custom-field-links {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.55;
  text-transform: none;
}

.required-mark {
  color: var(--danger);
  font-style: normal;
}

.booking-custom-fields {
  display: grid;
  gap: 5px;
  margin: 0 15px 12px;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.booking-custom-fields span {
  display: block;
}

.booking-custom-fields b {
  color: var(--text);
}

.registered-actions {
  display: grid;
  gap: 13px;
}

.waitlist-actions {
  padding: 14px;
  border: 1px solid rgba(232, 185, 79, 0.45);
  border-radius: 13px;
  background: rgba(82, 59, 12, 0.18);
}

.confirm-dialog {
  width: min(100%, 390px);
  padding: 20px;
}

.confirm-dialog p {
  margin: 8px 0 20px;
  line-height: 1.45;
}

.dialog-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.loading {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-content: center;
  place-items: center;
  gap: 13px;
  background: rgba(8, 10, 9, 0.76);
  color: var(--text);
  font-size: 0.83rem;
  backdrop-filter: blur(3px);
}

.spinner {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(158, 196, 75, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.toast {
  position: fixed;
  z-index: 110;
  right: 15px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  left: 15px;
  width: min(calc(100% - 30px), 520px);
  margin: 0 auto;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #262d27;
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  line-height: 1.4;
  text-align: center;
}

.toast.error {
  border-color: rgba(255, 122, 110, 0.35);
  color: #ffd0cc;
  background: #321c1a;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.player-web-brand {
  display: none;
}

@media (min-width: 900px) {
  .arena-player-web .app-shell {
    padding-left: 250px;
  }

  .arena-player-web .page.view {
    width: min(100%, 1280px);
    padding: 34px 28px 60px;
  }

  .arena-player-web .bottom-nav {
    inset: 0 auto 0 0;
    display: flex;
    width: 250px;
    flex-direction: column;
    gap: 8px;
    padding: 22px 16px;
    border-top: 0;
    border-right: 1px solid var(--line);
    box-shadow: 12px 0 36px rgba(0, 0, 0, 0.2);
  }

  .arena-player-web .player-web-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 18px;
    color: var(--text);
    text-decoration: none;
  }

  .arena-player-web .player-web-brand img {
    width: 49px;
    height: 49px;
    border-radius: 13px;
    object-fit: cover;
  }

  .arena-player-web .player-web-brand > span {
    display: grid;
    gap: 3px;
  }

  .arena-player-web .player-web-brand strong {
    color: var(--accent);
    font-size: 0.74rem;
    letter-spacing: 0.1em;
  }

  .arena-player-web .player-web-brand small {
    color: var(--muted);
    font-size: 0.76rem;
  }

  .arena-player-web .nav-item {
    display: grid;
    min-height: 52px;
    grid-template-columns: 30px 1fr;
    place-items: center start;
    gap: 9px;
    padding: 8px 12px;
    border: 1px solid transparent;
    font-size: 0.82rem;
    text-align: left;
  }

  .arena-player-web .nav-item:hover,
  .arena-player-web .nav-item.active {
    border-color: var(--line);
    background: var(--surface-2);
  }

  .arena-player-web .nav-icon {
    width: 28px;
    text-align: center;
  }

  .arena-player-web .nav-item i {
    top: 9px;
    right: 9px;
  }

  .arena-player-web #events-page .filter-panel {
    grid-template-columns: minmax(140px, auto) minmax(340px, 1fr) auto;
    align-items: end;
  }

  .arena-player-web #events-page .filter-heading {
    display: grid;
    align-self: center;
  }

  .arena-player-web #events-page .search-field {
    display: block;
    max-width: 520px;
  }

  .arena-player-web #events-page .card-list,
  .arena-player-web #bookings-page .card-list,
  .arena-player-web #passes-page .card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .arena-player-web #profile-page {
    grid-template-columns: minmax(280px, 0.75fr) minmax(390px, 1.25fr);
    align-content: start;
    gap: 16px;
  }

  .arena-player-web #profile-page:not([hidden]) {
    display: grid;
  }

  .arena-player-web #profile-page .topbar,
  .arena-player-web #profile-page .version {
    grid-column: 1 / -1;
  }

  .arena-player-web #profile-page .settings-card {
    grid-column: 2;
  }

  .arena-player-web #profile-page .profile-card,
  .arena-player-web #profile-page .full-button {
    grid-column: 1;
  }

  .arena-player-web #profile-page .profile-card {
    grid-row: 2;
  }

  .arena-player-web #profile-page .full-button {
    grid-row: 3;
    height: fit-content;
  }

  .arena-player-web .overlay {
    align-items: center;
    padding: 28px;
  }

  .arena-player-web .dialog {
    max-height: calc(100vh - 56px);
    max-height: calc(100dvh - 56px);
    border-radius: 23px;
  }

  .arena-player-web .dialog-body {
    min-height: 0;
  }

  .arena-player-web .toast {
    bottom: 24px;
  }

  .arena-player-web .login-view:not([hidden]) {
    display: grid;
    width: min(100%, 1080px);
    grid-template-columns: minmax(300px, 1fr) minmax(420px, 520px);
    align-items: center;
    gap: 54px;
    padding: 45px 28px;
  }

  .arena-player-web .login-view .login-help {
    grid-column: 2;
    margin-top: -38px;
  }

  .arena-player-web .login-view .brand-logo {
    width: min(28vw, 300px);
  }

  .arena-player-web .register-view:not([hidden]) {
    align-items: start;
  }

  .arena-player-web .register-view .login-hero {
    position: sticky;
    top: 44px;
  }
}

@media (min-width: 1250px) {
  .arena-player-web #events-page .card-list,
  .arena-player-web #bookings-page .card-list,
  .arena-player-web #passes-page .card-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 640px) {
  .login-view {
    width: min(100%, 520px);
  }

  .event-card-button {
    grid-template-columns: 70px minmax(0, 1fr) 24px;
    padding: 18px;
  }

  .date-badge {
    height: 68px;
  }

  .dialog {
    margin-bottom: 20px;
    border-radius: 23px;
  }
}

@media (max-width: 370px) {
  :root { font-size: 15px; }
  .view { padding-inline: 12px; }
  .date-grid { gap: 7px; }
  .event-card-button { grid-template-columns: 54px minmax(0, 1fr) 15px; gap: 10px; padding: 13px; }
  .date-badge { height: 56px; }
  .booking-actions { grid-template-columns: 1fr; }
  .booking-reminder { grid-column: auto; grid-template-columns: 1fr; }
  .name-grid { grid-template-columns: 1fr; }
}

/* Community, rank and privacy additions. Kept deliberately compact so the
   PWA remains usable on both a phone and a desktop browser. */
.rank-chip{display:inline-flex;margin-top:6px;padding:4px 9px;border-radius:999px;font-size:.78rem;font-weight:800;letter-spacing:.04em;background:#263323;color:#c9e66a}.rank-chip.gold{background:linear-gradient(135deg,#c99720,#ffe383);color:#302208}.rank-chip.referee{background:#7f2828;color:#fff1f1}.profile-benefits{display:grid;gap:5px;border-left:4px solid #a6c844}.profile-benefits.gold{border-left-color:#e4b83f;background:#272116}.profile-benefits.referee{border-left-color:#be4b4b;background:#291717}.profile-benefits strong{font-size:1.05rem}.player-id-card{display:grid;gap:8px;padding:13px;border:1px solid rgba(158,196,75,.28);border-radius:14px;background:rgba(158,196,75,.06)}.player-id-card p{margin:3px 0 0;color:var(--muted);font-size:.76rem}.player-id-card code{display:inline-flex;align-items:center;width:max-content;max-width:100%;padding:7px 9px;border-radius:9px;background:#0d120e;color:#d8ee93;font-size:.88rem;font-weight:850;letter-spacing:.08em;overflow-wrap:anywhere}.inline-actions{display:flex;flex-wrap:wrap;gap:8px}.friend-candidates{display:grid;gap:7px}.friend-candidate{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:10px 12px;border:1px solid rgba(201,221,197,.14);border-radius:12px;background:#111811;color:inherit;text-align:left}.friend-candidate:hover,.friend-candidate:focus-visible{border-color:rgba(158,196,75,.65);outline:none}.friend-candidate small{display:block;margin-top:3px;color:var(--muted)}.friend-candidate code{color:#d8ee93;font-size:.72rem}.friends-section{margin:22px 0}.friends-section h2{font-size:1.05rem;margin:0 0 10px}.friend-list,.notification-list{display:grid;gap:9px}.friend-row,.notification-row,.friend-attendee{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border:1px solid rgba(201,221,197,.14);border-radius:15px;background:#111811}.friend-row p,.notification-row p{margin:3px 0 0}.friend-row-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.friend-row-actions button{min-height:34px;padding:6px 10px}.notification-row.unread{border-left:3px solid #a8ce45}.friend-event-section{margin-top:18px;padding-top:16px;border-top:1px solid rgba(201,221,197,.14)}.friend-event-section h3{margin:0 0 10px;font-size:1rem}.friend-attendee-list,.event-invite-list{display:grid;gap:8px;margin:9px 0}.event-invite-list label{display:flex;align-items:center;gap:9px;padding:8px 2px}.friend-rank{margin-left:auto}.bottom-nav .nav-item{min-width:66px}.bottom-nav{overflow-x:auto}.arena-player-web #friends-page{max-width:760px}

.arena-language-switcher {
  position: fixed;
  z-index: 12000;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 4px 8px;
  border: 1px solid rgba(161, 205, 69, .42);
  border-radius: 12px;
  background: rgba(13, 16, 14, .96);
  color: #eef3e7;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

.arena-language-switcher select {
  width: auto;
  min-width: 92px;
  min-height: 30px;
  margin: 0;
  padding: 2px 28px 2px 6px;
  border: 0;
  background-color: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
}

.arena-language-switcher select:focus-visible {
  outline: 2px solid #a1cd45;
  outline-offset: 2px;
}

.arena-language-switcher-inline {
  position: static;
  min-height: 32px;
  padding: 2px 6px;
  box-shadow: none;
}

body.arena-dialog-open {
  overflow: hidden;
}

body.arena-dialog-open > .arena-language-switcher:not(.arena-language-switcher-inline) {
  display: none;
}

.private-link-notice {
  max-width: 34rem;
  margin: 1rem auto 0;
  padding: .8rem 1rem;
  border: 1px solid rgba(215, 178, 71, .58);
  border-radius: .9rem;
  background: rgba(89, 67, 13, .28);
  color: #f2d77f;
  font-weight: 750;
  line-height: 1.45;
}

.event-card.private-event {
  border-color: rgba(215, 178, 71, .62);
  box-shadow: inset 0 0 0 1px rgba(215, 178, 71, .12);
}

.event-card .private-ribbon {
  background: #d7b247;
  color: #171207;
}

.private-event-badge,
.private-event-detail-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 4px 9px;
  border: 1px solid rgba(242, 211, 119, .55);
  border-radius: 999px;
  background: rgba(112, 82, 14, .48);
  color: #f2d377;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .055em;
}

.private-event-badge {
  margin-top: 5px;
}

.private-event-detail-badge {
  margin-bottom: 12px;
}

.private-attendee-section {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(215, 178, 71, .35);
}

.private-attendee-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.private-attendee-heading h3 {
  margin: 0;
  font-size: 1rem;
}

.private-attendee-heading span {
  color: #f2d377;
  font-size: .76rem;
  font-weight: 800;
}

.private-attendee-names {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.private-attendee-name {
  padding: 9px 11px;
  border: 1px solid rgba(215, 178, 71, .22);
  border-radius: 11px;
  background: rgba(89, 67, 13, .2);
  color: var(--text);
  overflow-wrap: anywhere;
}

.private-attendee-section .security-note {
  margin: 0;
}

@media (max-width: 760px) {
  .overlay {
    padding-top: max(8px, env(safe-area-inset-top));
  }

  .dialog {
    max-height: calc(100vh - max(8px, env(safe-area-inset-top)));
    max-height: calc(100dvh - max(8px, env(safe-area-inset-top)));
  }

  .arena-language-switcher {
    top: max(6px, env(safe-area-inset-top));
    right: max(6px, env(safe-area-inset-right));
  }

  .arena-language-switcher-inline select {
    min-width: 78px;
  }

  .private-attendee-names {
    grid-template-columns: 1fr;
  }
}
