:root {
  --bg: #eef3f8;
  --surface: #ffffff;
  --surface-alt: #f6f9fc;
  --border: #d8e1eb;
  --text: #16304a;
  --muted: #677b90;
  --brand: #0d5db8;
  --brand-strong: #0a4a91;
  --accent: #ffb100;
  --success: #1f8f4d;
  --warning: #d97706;
  --danger: #c0392b;
  --shadow: 0 24px 54px rgba(17, 52, 90, 0.12);
}

.public-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  padding: 22px 16px 36px;
  color: #dbeafe;
}

.public-footer a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.legal-page {
  max-width: 900px;
  margin: -36px auto 36px;
  padding: 28px;
  background: #fff;
  border: 1px solid #dbe7f5;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .12);
}

.legal-copy {
  color: #334155;
  line-height: 1.7;
  white-space: normal;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: "Manrope", sans-serif; background: linear-gradient(180deg, #f7f9fc 0%, var(--bg) 100%); color: var(--text); }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }

.public-shell { max-width: 1320px; margin: 0 auto; padding: 20px; }
.public-header { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: center; margin-bottom: 24px; position: relative; }
.public-brand { display: flex; justify-content: center; align-items: center; min-height: 160px; background: linear-gradient(135deg, #0b2f5b, #0f4e95); border-radius: 28px; box-shadow: var(--shadow); }
.public-brand img { width: min(200px, 90%); }
.public-account-nav { position: absolute; top: 12px; right: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.public-account-nav a { padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,0.82); font-weight: 800; font-size: 0.9rem; }
.public-account-nav .public-cart-link[hidden] { display: none !important; }
.public-header-copy { padding: 10px 0; }
.public-kicker { display: inline-flex; padding: 8px 14px; border-radius: 999px; background: rgba(13, 93, 184, 0.12); color: var(--brand); font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.public-header-copy h1 { margin: 14px 0 10px; font-family: "Space Grotesk", sans-serif; font-size: clamp(2rem, 3vw, 3.1rem); line-height: 1.02; }
.public-header-copy p { margin: 0; color: var(--muted); font-size: 1.02rem; max-width: 760px; }

.public-main, .checkout-grid, .order-grid, .event-layout { display: grid; gap: 18px; }
.checkout-grid, .order-grid { grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr); }
.event-layout { grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr); }

.panel, .summary-card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); padding: 22px; }
.panel-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.panel-head h2, .summary-card h2 { margin: 0 0 6px; font-size: 1.35rem; }
.panel-head p, .summary-meta, .meta-list, .empty-state { margin: 0; color: var(--muted); }

.catalog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.catalog-card { overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: var(--surface-alt); display: flex; flex-direction: column; min-height: 100%; }
.catalog-media { min-height: 180px; background: linear-gradient(135deg, #0d5db8, #12335f); display: grid; place-items: center; color: #fff; font-family: "Space Grotesk", sans-serif; font-size: 1.35rem; }
.catalog-media img { width: 100%; height: 100%; object-fit: cover; }
.catalog-body { padding: 18px; display: grid; gap: 10px; }
.catalog-meta { color: var(--muted); font-size: 0.92rem; }
.catalog-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 4px; }
.availability-pill { padding: 8px 12px; border-radius: 999px; background: rgba(31, 143, 77, 0.12); color: var(--success); font-weight: 700; font-size: 0.86rem; }

.btn { border: none; border-radius: 14px; padding: 12px 18px; cursor: pointer; font-weight: 800; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); }
.btn-secondary { background: #edf3fb; color: var(--text); }

.event-header { margin-bottom: 18px; }
.side-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.side-filter .active { background: var(--brand); color: #fff; }
.team-choice-root { margin: 0 0 18px; }
.online-club-choice {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(135deg, #f8fbff, #ffffff);
}
.online-profile-choice {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
}
.online-profile-choice .online-club-card {
  min-height: 112px;
  grid-template-columns: 1fr;
}
.online-socio-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(170px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid #dbe6f3;
  border-radius: 18px;
  background: var(--surface-alt);
}
.online-socio-box label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 800;
}
.online-socio-box input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 12px;
  color: var(--text);
  background: #fff;
}
.online-socio-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--warning);
  font-weight: 700;
}
.online-socio-status.ok { color: var(--success); }
.online-flow-step,
.online-category-choice {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(12, 37, 68, .08);
}
.online-flow-step {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}
.flow-step-index {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}
.online-flow-step h3,
.online-flow-step p { margin: 0; }
.online-flow-step p { color: var(--muted); }
.flow-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.ticket-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
.ticket-choice-card {
  display: grid;
  gap: 7px;
  padding: 15px;
  border: 2px solid #dbe6f3;
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.ticket-choice-card:hover,
.ticket-choice-card.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(13, 93, 184, .12);
}
.ticket-choice-card span {
  color: var(--brand);
  font-size: 1.2rem;
  font-weight: 900;
}
.ticket-choice-card small { color: var(--muted); }
.online-club-choice-copy {
  display: grid;
  gap: 4px;
}
.online-club-choice-copy span {
  color: var(--brand);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .76rem;
}
.online-club-choice-copy strong {
  color: var(--text);
  font-size: 1.02rem;
}
.online-club-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.online-club-card {
  min-height: 142px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 2px solid #dbe6f3;
  border-radius: 22px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(12, 37, 68, .08);
}
.online-club-card:hover {
  border-color: #95b7e8;
  transform: translateY(-1px);
}
.online-club-card.active {
  border-color: var(--brand);
  background: linear-gradient(135deg, #eaf3ff, #ffffff);
  box-shadow: 0 0 0 4px rgba(13, 93, 184, .14), 0 16px 34px rgba(12, 37, 68, .1);
}
.online-club-logo,
.event-match-logo {
  display: grid;
  place-items: center;
}
.online-club-logo {
  width: 82px;
  height: 82px;
  border-radius: 20px;
  background: #f3f7fc;
}
.online-club-logo .public-team-logo {
  width: 78%;
  height: 78%;
  object-fit: contain;
}
.online-club-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.2rem;
  font-weight: 900;
}
.online-club-card small {
  color: var(--muted);
  font-weight: 700;
}
.event-hero { display: grid; grid-template-columns: 210px 1fr; gap: 18px; align-items: center; padding: 18px; border-radius: 20px; background: linear-gradient(135deg, #0b2f5b, #0f4e95); color: #fff; }
.event-hero-media { min-height: 140px; border-radius: 18px; overflow: hidden; background: rgba(255,255,255,0.1); display: grid; place-items: center; }
.event-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.event-match-logos {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}
.event-match-logos > strong {
  color: #fff;
  font-size: .92rem;
  font-weight: 900;
}
.event-match-logo {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: rgba(255,255,255,.12);
}
.event-match-logo .public-team-logo {
  width: 82%;
  height: 82%;
  object-fit: contain;
}
.event-hero h2 { margin: 0 0 8px; font-size: 1.7rem; }
.event-hero p { margin: 0; color: rgba(255,255,255,0.82); }

.legend { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.legend-item { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 999px; background: var(--surface-alt); border: 1px solid var(--border); font-size: 0.9rem; }
.legend-swatch { width: 16px; height: 16px; border-radius: 5px; }

.seat-view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbff 0%, #edf4fb 100%);
}
.seat-view-toolbar[hidden] { display: none; }
.seat-view-toolbar strong,
.seat-view-toolbar span { display: block; }
.seat-view-toolbar span { margin-top: 2px; color: var(--muted); font-size: .82rem; }
.seat-view-switch { display: inline-flex; flex: 0 0 auto; padding: 4px; border: 1px solid #cbd8e5; border-radius: 13px; background: #fff; }
.seat-view-button { min-height: 38px; padding: 8px 13px; border: 0; border-radius: 9px; background: transparent; color: var(--text); font: inherit; font-weight: 800; cursor: pointer; }
.seat-view-button.active { background: var(--brand); color: #fff; box-shadow: 0 5px 12px rgba(13, 93, 184, .22); }
.seat-view-button:disabled { opacity: .45; cursor: not-allowed; }

.seat-3d-shell { overflow: hidden; border: 1px solid #cbd8e5; border-radius: 22px; background: #f7fafc; box-shadow: 0 18px 38px rgba(9, 35, 58, .1); }
.seat-3d-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 17px 18px; background: #071f37; color: #fff; }
.seat-3d-head h3 { margin: 3px 0 4px; font-size: 1.25rem; }
.seat-3d-head p { margin: 0; color: rgba(255,255,255,.72); font-size: .9rem; }
.seat-3d-eyebrow { color: #ffbf16; font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.seat-3d-stage { position: relative; min-height: 500px; background: #eaf0f5; touch-action: none; }
.seat-3d-stage canvas { display: block; width: 100%; height: 500px; cursor: grab; }
.seat-3d-stage canvas:active { cursor: grabbing; }
.seat-3d-status { position: absolute; left: 14px; right: 14px; bottom: 14px; width: max-content; max-width: calc(100% - 28px); padding: 9px 12px; border: 1px solid rgba(255,255,255,.26); border-radius: 12px; background: rgba(5, 24, 43, .86); color: #fff; font-size: .82rem; font-weight: 700; backdrop-filter: blur(8px); }
.seat-3d-sector-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 8px; padding: 12px 14px 0; }
.seat-3d-sector-list button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 11px; border: 1px solid #cbd8e5; border-radius: 12px; background: #fff; color: var(--text); font: inherit; font-weight: 800; cursor: pointer; }
.seat-3d-sector-list button:hover { border-color: var(--brand); background: #f1f7ff; }
.seat-3d-sector-list i { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(15,23,42,.07); }
.seat-3d-note { margin: 0; padding: 12px 16px 15px; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.seat-3d-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-bottom: 1px solid #cbd8e5; }
.seat-3d-tools .btn { font-size: .8rem; padding: 8px 12px; }
.seat-3d-tools .btn[aria-pressed="true"] { background: #17364b; color: #fff; }
.seat-3d-tools [hidden] { display: none !important; }
.seat-3d-tools span { flex: 1 1 180px; font-size: .78rem; color: var(--muted); }
.seat-3d-loading { min-height: 420px; display: grid; place-content: center; justify-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 20px; background: #edf3f8; color: var(--text); }
.seat-3d-loading span { width: 36px; height: 36px; border: 4px solid #c8d7e5; border-top-color: var(--brand); border-radius: 50%; animation: seat-3d-spin .8s linear infinite; }
@keyframes seat-3d-spin { to { transform: rotate(360deg); } }

.seat-layout { display: grid; gap: 16px; }
.map-step-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.map-step-head h3 { margin: 0 0 4px; font-size: 1.2rem; }
.map-step-head p { margin: 0; color: var(--muted); }
.venue-map { position: relative; min-height: 430px; border: 1px solid var(--border); border-radius: 20px; background: #f8fafc; overflow: hidden; }
.court-lines { position: absolute; inset: 18% 8% 18%; border: 2px solid rgba(179, 91, 72, 0.45); pointer-events: none; }
.court-half { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(179, 91, 72, 0.45); }
.court-circle { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%); border: 1px solid rgba(179, 91, 72, 0.55); border-radius: 50%; }
.court-area { position: absolute; top: 35%; width: 18%; height: 30%; border: 1px solid rgba(179, 91, 72, 0.55); }
.court-area.left { left: 0; border-left: 0; border-radius: 0 40px 40px 0; }
.court-area.right { right: 0; border-right: 0; border-radius: 40px 0 0 40px; }
.map-zone { position: absolute; border: 2px solid rgba(22, 48, 74, 0.45); background: rgba(255,255,255,0.9); color: var(--text); border-radius: 4px; display: grid; place-items: center; padding: 6px; cursor: pointer; font-weight: 900; text-align: center; box-shadow: 0 12px 28px rgba(17, 52, 90, 0.12); }
.map-zone:hover { border-color: var(--brand); background: #fff8e3; transform: translateY(-1px); }
.map-zone span { line-height: 1.15; font-size: clamp(0.72rem, 1.5vw, 0.95rem); }
.map-zone-setor { background: rgba(237,243,251,0.94); }
.stcc-zone { cursor: pointer; outline: none; transition: filter .16s ease, opacity .16s ease; }
.stcc-zone:hover,
.stcc-zone:focus { filter: drop-shadow(0 10px 18px rgba(15, 23, 42, .32)); }
.stcc-zone text { pointer-events: none; user-select: none; }
.map-empty { position: absolute; left: 18px; right: 18px; bottom: 18px; }
.seat-sector { border: 1px solid var(--border); border-radius: 20px; overflow: hidden; background: var(--surface-alt); }
.seat-sector-head { padding: 12px 16px; background: #edf3fb; border-bottom: 1px solid var(--border); font-weight: 800; }
.seat-row { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 12px; align-items: flex-start; padding: 14px 16px; border-bottom: 1px solid rgba(216,225,235,0.7); }
.seat-row:last-child { border-bottom: 0; }
.seat-row-label { padding-top: 8px; font-weight: 800; }
.seat-row-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.seat-btn { min-width: 48px; min-height: 44px; padding: 8px 10px; border-radius: 12px; border: 1px solid rgba(0,0,0,0.08); color: #fff; font-weight: 800; cursor: pointer; }
.seat-btn[disabled] { cursor: default; opacity: 0.8; }

.selection-list, .meta-list { display: grid; gap: 12px; }
.selection-item, .ticket-card, .meta-item, .payment-box { border: 1px solid var(--border); border-radius: 18px; background: var(--surface-alt); padding: 14px; }
.selection-item { display: grid; gap: 6px; }
.selection-item-top { display: flex; justify-content: space-between; gap: 10px; }
.selection-remove { border: none; background: transparent; color: var(--danger); cursor: pointer; font-weight: 800; }
.summary-total { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.summary-total strong { font-size: 1.35rem; color: var(--brand); }

.checkout-form { display: grid; gap: 18px; }
.checkout-form label { display: grid; gap: 8px; font-weight: 700; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field-grid label { display: grid; gap: 8px; font-weight: 700; }
.field-grid span { font-size: 0.92rem; }
input, select { width: 100%; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-alt); padding: 12px 14px; color: var(--text); }
input:focus, select:focus { outline: 2px solid rgba(13, 93, 184, 0.18); border-color: var(--brand); }

.payment-methods { display: grid; gap: 10px; }
.payment-option { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 14px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface-alt); cursor: pointer; }
.payment-option strong { display: block; }
.payment-option small { color: var(--muted); }
.payment-option:has(input:disabled) { opacity: 0.58; cursor: not-allowed; }
.credit-option { display: grid !important; grid-template-columns: auto 1fr; gap: 12px !important; align-items: center; padding: 15px; border: 1px solid rgba(31,143,77,.28); border-radius: 18px; background: rgba(31,143,77,.07); cursor: pointer; }
.credit-option input { width: auto; }
.credit-option strong,.credit-option small { display: block; }
.credit-option small { margin-top: 3px; color: var(--muted); font-weight: 600; }
.summary-adjustment { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; color: var(--success); }
.summary-due { padding-top: 10px; border-top: 1px dashed var(--border); color: var(--brand); font-size: 1.08rem; }
.payment-mobile-field { padding: 14px; border: 1px solid rgba(13, 93, 184, 0.24); border-radius: 18px; background: rgba(13, 93, 184, 0.05); }
.payment-mobile-field[hidden] { display: none; }
.payment-mobile-field label { margin: 0; }
.payment-mobile-field small { color: var(--muted); font-weight: 600; }
.terms-box { border: 1px solid var(--border); border-radius: 18px; background: var(--surface-alt); padding: 14px; }
.terms-box h3 { margin: 0 0 8px; }
.terms-box p { margin: 0 0 12px; color: var(--muted); line-height: 1.55; }
.terms-accept { display: flex !important; grid-template-columns: none !important; flex-direction: row; align-items: center; gap: 10px; }
.terms-accept input { width: auto; }
.countdown-pill { min-width: 92px; padding: 10px 14px; border-radius: 999px; background: rgba(217,119,6,0.12); color: var(--warning); font-weight: 800; text-align: center; }

.payment-box { margin-bottom: 16px; }
.payment-box.pending { border-color: rgba(217,119,6,0.18); }
.payment-box.paid { border-color: rgba(31,143,77,0.22); }
.payment-box h3 { margin: 0 0 8px; }

.ticket-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.ticket-card img { width: 180px; max-width: 100%; display: block; margin: 12px auto; background: #fff; padding: 10px; border-radius: 14px; border: 1px solid var(--border); }
.ticket-code { font-family: Consolas, monospace; font-size: 0.92rem; word-break: break-all; }

.auth-panel { max-width: 620px; margin: 0 auto; }
.auth-links, .account-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.account-cart-link {
  flex-basis: 100%;
  justify-content: center;
}
.auth-links a { color: var(--brand); font-weight: 800; }
.flash-stack { display: grid; gap: 10px; margin-bottom: 16px; }
.public-alert { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); font-weight: 700; }
.public-alert.success { border-color: rgba(31,143,77,0.25); color: var(--success); }
.public-alert.danger, .public-alert.error { border-color: rgba(192,57,43,0.25); color: var(--danger); }
.public-alert.warning { border-color: rgba(217,119,6,0.25); color: var(--warning); }

.modal-backdrop { position: fixed; inset: 0; background: rgba(9, 24, 42, 0.5); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50; }
.modal-card { width: min(460px, 100%); background: var(--surface); border-radius: 22px; border: 1px solid var(--border); box-shadow: var(--shadow); padding: 22px; }
.modal-actions { display: grid; gap: 10px; margin-top: 16px; }

.toast-root { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 10px; z-index: 60; }
.toast { min-width: 220px; max-width: 340px; padding: 12px 14px; border-radius: 14px; color: #fff; box-shadow: var(--shadow); }
.toast.info { background: #334155; }
.toast.success { background: var(--success); }
.toast.warning { background: var(--warning); }
.toast.error { background: var(--danger); }

@media (max-width: 980px) {
  .public-header,
  .checkout-grid,
  .order-grid,
  .event-layout,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .public-brand {
    min-height: 130px;
  }

  .public-account-nav {
    position: static;
    grid-row: 2;
    justify-content: flex-start;
  }

  .event-hero {
    grid-template-columns: 1fr;
  }
  .online-club-choice-grid {
    grid-template-columns: 1fr;
  }
  .online-club-card {
    min-height: 116px;
    grid-template-columns: 66px minmax(0, 1fr);
  }
  .online-club-logo {
    width: 66px;
    height: 66px;
  }
  .online-socio-box {
    grid-template-columns: 1fr;
  }
  .online-flow-step {
    grid-template-columns: 1fr;
  }
  .flow-actions {
    justify-content: flex-start;
  }

  .venue-map {
    min-height: 330px;
  }
}

@media (max-width: 640px) {
  .seat-view-toolbar { align-items: stretch; flex-direction: column; gap: 10px; }
  .seat-view-switch { display: grid; grid-template-columns: 1fr 1fr; }
  .seat-3d-head { align-items: stretch; flex-direction: column; padding: 14px; }
  .seat-3d-head .btn { width: 100%; }
  .seat-3d-stage,
  .seat-3d-stage canvas { min-height: 390px; height: 390px; }
  .seat-3d-sector-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .public-shell { padding: 14px; }
  .panel, .summary-card { padding: 18px; border-radius: 20px; }
  .seat-row { grid-template-columns: 1fr; }
}

/* Bilheteira UPVN */
body.ticket-office-page {
  background:
    radial-gradient(circle at 75% 0%, rgba(255,177,0,.16), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #f2f6fb 58%, #eef3f8 100%);
}

body.ticket-office-page .public-shell {
  max-width: none;
  padding: 0;
}

body.ticket-office-page .public-header {
  display: grid;
  grid-template-columns: minmax(170px, 280px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 94px;
  margin: 0;
  padding: 0 42px;
  background: linear-gradient(135deg, #02152b 0%, #062448 58%, #071322 100%);
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: #fff;
}

body.ticket-office-page .public-brand {
  min-height: 0;
  justify-content: flex-start;
  padding-right: 28px;
  border-right: 1px solid rgba(255,255,255,.22);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.ticket-office-page .public-brand img {
  width: min(240px, 100%);
  max-height: 46px;
  object-fit: contain;
}

body.ticket-office-page .public-club-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

body.ticket-office-page .public-club-brand span:first-child {
  color: rgba(255,255,255,.72);
  font-weight: 700;
  white-space: nowrap;
}

body.ticket-office-page .public-club-brand img {
  width: 42px;
  height: 42px;
  max-width: 42px;
  max-height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
  filter: drop-shadow(0 7px 12px rgba(0,0,0,.28));
}

.public-club-brand .public-club-logo {
  display: block;
  width: 42px;
  height: 42px;
  max-width: 42px;
  max-height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
  object-position: center;
}

.club-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 2px solid rgba(255,255,255,.78);
  font-size: .68rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

body.ticket-office-page .public-club-brand strong {
  font-size: 1.15rem;
  font-weight: 900;
}

body.ticket-office-page .public-account-nav {
  position: static;
  display: flex;
  align-items: center;
  gap: 18px;
}

body.ticket-office-page .public-account-nav a {
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

body.ticket-office-page .public-header-copy {
  display: none;
}

body.ticket-office-page .public-main {
  display: block;
}

.ticket-office-hero {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  padding: 46px max(24px, calc((100vw - 1280px) / 2)) 86px;
  background:
    linear-gradient(90deg, rgba(2,21,43,.96) 0%, rgba(6,36,72,.92) 50%, rgba(2,21,43,.84) 100%),
    linear-gradient(135deg, transparent 0 56%, rgba(255,177,0,.22) 56% 58%, transparent 58%),
    radial-gradient(circle at 78% 50%, rgba(255,177,0,.22), transparent 18rem);
  color: #fff;
}

.ticket-office-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 28%, rgba(255,255,255,.12) 0 3.5rem, transparent 3.6rem),
    linear-gradient(120deg, transparent 0 68%, rgba(255,177,0,.16) 68% 70%, transparent 70%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(255,255,255,.035) 38px 40px);
  pointer-events: none;
}

.ticket-office-copy {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.office-pill,
.next-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 18px;
  border: 2px solid #071322;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffca28, #ffb100);
  color: #071322;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 7px 0 rgba(0,0,0,.24);
}

.league-logo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.league-logo-pill img {
  display: block;
  width: auto;
  height: 50px;
  max-width: 150px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.28));
}

.ticket-office-copy h2 {
  margin: 22px 0 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 1;
  color: #fff;
}

.ticket-office-copy p {
  margin: 0;
  max-width: 780px;
  color: rgba(255,255,255,.88);
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  line-height: 1.45;
}

.public-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.office-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid rgba(255,255,255,.28);
  border-radius: 16px;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.office-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.56);
}

.office-cta.primary {
  border-color: #071322;
  background: linear-gradient(135deg, #ffca28, #ffb100);
  color: #071322;
  box-shadow: 0 10px 0 rgba(0,0,0,.24);
}

.office-cta.secondary {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}

.ticket-office-watermark {
  position: absolute;
  right: max(16px, calc((100vw - 1320px) / 2));
  bottom: -72px;
  width: min(290px, 34vw);
  aspect-ratio: 1;
  opacity: .13;
  pointer-events: none;
}

.ticket-office-watermark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1);
}

.ticket-page-hero {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 38px max(24px, calc((100vw - 1280px) / 2)) 68px;
  background:
    linear-gradient(90deg, rgba(2,21,43,.96) 0%, rgba(6,36,72,.92) 54%, rgba(2,21,43,.86) 100%),
    radial-gradient(circle at 78% 50%, rgba(255,177,0,.18), transparent 18rem);
  color: #fff;
}

.ticket-page-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 70%, rgba(255,177,0,.14) 70% 72%, transparent 72%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 1px, transparent 1px 9px);
  pointer-events: none;
}

.ticket-page-hero > div:first-child {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.ticket-page-hero h2 {
  margin: 18px 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  color: #fff;
}

.ticket-page-hero p {
  margin: 0;
  max-width: 760px;
  color: rgba(255,255,255,.86);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.45;
}

.ticket-page-watermark {
  position: absolute;
  right: max(16px, calc((100vw - 1320px) / 2));
  bottom: -58px;
  width: min(220px, 30vw);
  aspect-ratio: 1;
  opacity: .1;
  pointer-events: none;
}

.ticket-page-watermark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1);
}

body.ticket-office-page .event-panel,
body.ticket-office-page .checkout-grid,
body.ticket-office-page .order-grid,
body.ticket-office-page .auth-panel,
body.ticket-office-page .public-main > .panel:not(.panel-catalog) {
  width: min(1280px, calc(100% - 32px));
  margin: -34px auto 28px;
  position: relative;
  z-index: 2;
}

body.ticket-office-page .checkout-grid,
body.ticket-office-page .order-grid {
  display: grid;
}

body.ticket-office-page .auth-panel {
  display: block;
}

body.ticket-office-page .panel-catalog {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  margin: -54px auto 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

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

.catalog-card {
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr) minmax(185px, 210px);
  gap: 24px;
  align-items: center;
  min-height: 172px;
  padding: 22px;
  border: 1px solid rgba(8,31,60,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 42px rgba(15,35,65,.1);
  min-width: 0;
}

.catalog-card-featured {
  grid-column: 1 / -1;
  grid-template-columns: minmax(330px, 390px) minmax(0, 1fr) minmax(200px, 230px);
  min-height: 232px;
  border: 2px solid #ffb100;
  box-shadow: 0 24px 60px rgba(255,177,0,.16), 0 18px 42px rgba(15,35,65,.12);
}

.catalog-grid-featured > .catalog-card:not(.catalog-card-featured),
.catalog-grid-closed > .catalog-card {
  grid-template-columns: minmax(118px, 150px) minmax(0, 1fr);
  gap: 16px;
}

.catalog-grid-featured > .catalog-card:not(.catalog-card-featured) .catalog-buy,
.catalog-grid-closed > .catalog-card .catalog-buy {
  grid-column: 1 / -1;
  grid-template-columns: 1fr auto;
  align-items: end;
}

.catalog-grid-featured > .catalog-card:not(.catalog-card-featured) .catalog-buy .availability-pill,
.catalog-grid-closed > .catalog-card .catalog-buy .availability-pill {
  justify-self: start;
}

.catalog-grid-featured > .catalog-card:not(.catalog-card-featured) .catalog-buy .btn,
.catalog-grid-closed > .catalog-card .catalog-buy .btn {
  min-width: 150px;
}

.catalog-grid-featured > .catalog-card:not(.catalog-card-featured) .team-logos,
.catalog-grid-closed > .catalog-card .team-logos {
  gap: 8px;
}

.catalog-grid-featured > .catalog-card:not(.catalog-card-featured) .team-logo,
.catalog-grid-closed > .catalog-card .team-logo {
  width: 48px;
  border-radius: 12px;
}

.catalog-grid-featured > .catalog-card:not(.catalog-card-featured) .team-logos > strong,
.catalog-grid-closed > .catalog-card .team-logos > strong {
  font-size: .85rem;
}

.catalog-match {
  display: grid;
  gap: 18px;
  align-content: center;
  min-width: 0;
}

.team-logos {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.team-logos > strong {
  color: #071322;
  font-size: 1.28rem;
  font-weight: 900;
}

.team-logo {
  display: grid;
  place-items: center;
  width: 78px;
  max-width: 100%;
  aspect-ratio: 1;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.catalog-card-featured .team-logo {
  width: 112px;
}

.team-logo img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  display: block;
}

.team-logo span {
  font-weight: 900;
  color: #071322;
}

.catalog-body {
  padding: 0;
  gap: 10px;
  min-width: 0;
}

.catalog-competition {
  color: #071322;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.catalog-body h2 {
  margin: 0;
  color: #071322;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 2.05rem);
  overflow-wrap: anywhere;
}

.catalog-meta-list {
  display: grid;
  gap: 7px;
  color: #384b63;
  font-weight: 650;
}

.catalog-meta-list span {
  display: flex;
  align-items: center;
  min-height: 22px;
}

.catalog-buy {
  display: grid;
  gap: 16px;
  justify-items: stretch;
  min-width: 0;
}

.availability-pill {
  justify-self: end;
  background: #e7f8ee;
  color: #087443;
}

.availability-pill.soldout {
  background: #ffe7e7;
  color: #c42121;
}

.availability-pill.soon {
  background: #fff2cc;
  color: #8a4b00;
}

.price-box {
  display: grid;
  justify-items: start;
  color: #071322;
}

.price-box small {
  color: #64748b;
  font-weight: 800;
}

.price-box strong {
  font-size: 1.75rem;
  font-weight: 900;
}

.catalog-buy .btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
}

.catalog-buy .btn-primary {
  background: linear-gradient(135deg, #ffc400, #ffad00);
  color: #071322;
  box-shadow: 0 10px 22px rgba(255,177,0,.28);
}

.catalog-buy .btn-primary:hover {
  background: linear-gradient(135deg, #ffd44d, #ffb100);
}

.home-next-events {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
  min-width: 0;
}

.home-next-events-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 2px 4px;
}

.home-next-events-head span {
  display: block;
  color: #0d5db8;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-next-events-head strong {
  display: block;
  color: #071322;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  font-weight: 900;
}

.home-next-events-head .office-cta {
  min-height: 54px;
  padding-inline: 28px;
  font-size: 1.02rem;
  white-space: nowrap;
}

.home-next-events-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  min-width: 0;
}

.home-next-events.single .home-next-events-grid {
  grid-template-columns: minmax(0, min(680px, 100%));
}

.office-benefits {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  overflow: hidden;
  border-radius: 22px;
}

.benefit-item {
  display: grid;
  gap: 8px;
  min-height: 126px;
  padding: 20px;
  border: 1px solid rgba(8,31,60,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 16px 36px rgba(15,35,65,.08);
}

.benefit-item strong {
  color: #071322;
  font-weight: 900;
}

.benefit-item span {
  color: #64748b;
  font-size: .92rem;
}

.ticket-office-closed {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 12px;
  min-height: 260px;
  padding: 42px 24px;
  border: 2px solid rgba(255,177,0,.65);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,251,255,.94)),
    radial-gradient(circle at 50% 0%, rgba(255,177,0,.2), transparent 22rem);
  text-align: center;
  box-shadow: 0 24px 60px rgba(15,35,65,.12);
}

.ticket-office-closed .state-dot {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb100, #f97316);
  box-shadow: 0 12px 28px rgba(249,115,22,.25);
}

.ticket-office-closed h2 {
  margin: 0;
  color: #071322;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.ticket-office-closed p {
  margin: 0;
  max-width: 680px;
  color: #465870;
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.45;
}

.closed-events-title {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-top: 8px;
  color: #071322;
}

.closed-events-title strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
}

.closed-events-title span {
  color: #64748b;
  font-weight: 750;
}

.catalog-grid-closed {
  grid-column: 1 / -1;
}

.catalog-card-closed {
  opacity: .98;
}

@media (max-width: 1050px) {
  body.ticket-office-page .public-header {
    grid-template-columns: minmax(150px, 220px) 1fr;
    padding: 16px 22px;
  }

  body.ticket-office-page .public-account-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .catalog-grid-featured,
  .catalog-grid-closed,
  .home-next-events-grid,
  .office-benefits {
    grid-template-columns: 1fr;
  }

  .catalog-card,
  .catalog-card-featured {
    grid-template-columns: 1fr;
  }

  .catalog-buy {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .catalog-buy .availability-pill {
    justify-self: start;
  }

  .catalog-buy .btn {
    grid-column: 1 / -1;
  }

  .closed-events-title {
    display: grid;
  }

  .home-next-events-head {
    align-items: start;
  }
}

@media (max-width: 640px) {
  body.ticket-office-page .public-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
    min-height: 76px;
    padding: 12px 14px;
  }

  body.ticket-office-page .public-brand {
    padding-right: 12px;
  }

  body.ticket-office-page .public-brand img {
    max-width: 160px;
    max-height: 34px;
  }

  body.ticket-office-page .public-club-brand img,
  .public-club-brand .public-club-logo {
    width: 34px;
    height: 34px;
    max-width: 34px;
    max-height: 34px;
    flex-basis: 34px;
  }

  body.ticket-office-page .public-club-brand span:first-child,
  body.ticket-office-page .public-club-brand strong,
  body.ticket-office-page .public-account-nav a:first-child {
    display: none;
  }

  body.ticket-office-page .public-account-nav {
    grid-column: 1 / -1;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .club-mark {
    width: 34px;
    height: 34px;
  }

  .ticket-office-hero {
    min-height: 250px;
    padding: 30px 16px 72px;
  }

  .ticket-page-hero {
    min-height: 180px;
    padding: 26px 16px 56px;
  }

  .ticket-page-hero h2 {
    margin-top: 14px;
    font-size: clamp(1.75rem, 9vw, 2.45rem);
  }

  .ticket-page-watermark {
    right: 8px;
    bottom: -34px;
    width: 120px;
    opacity: .08;
  }

  body.ticket-office-page .event-panel,
  body.ticket-office-page .checkout-grid,
  body.ticket-office-page .order-grid,
  body.ticket-office-page .auth-panel,
  body.ticket-office-page .public-main > .panel:not(.panel-catalog) {
    width: calc(100% - 20px);
    margin: -24px auto 22px;
  }

  .ticket-office-watermark {
    right: 8px;
    bottom: -38px;
    width: 130px;
    opacity: .09;
  }

  .office-pill,
  .next-pill {
    min-height: 30px;
    padding: 0 12px;
    font-size: .78rem;
  }

  body.ticket-office-page .panel-catalog,
  .office-benefits {
    width: calc(100% - 20px);
  }

  .catalog-card {
    gap: 18px;
    padding: 16px;
    border-radius: 16px;
  }

  .team-logos {
    gap: 10px;
  }

  .team-logo,
  .catalog-card-featured .team-logo {
    width: 76px;
    max-width: 100%;
    border-radius: 14px;
  }

  .catalog-buy {
    grid-template-columns: 1fr;
  }
}

/* Identidade publica comum */
.public-container {
  width: min(1100px, calc(100% - 32px));
  margin-inline: auto;
}

body.ticket-office-page .public-header {
  grid-template-columns: minmax(150px, 230px) minmax(160px, 1fr) auto;
  min-height: 86px;
  padding: 14px max(18px, calc((100vw - 1280px) / 2));
}

body.ticket-office-page .public-brand img {
  width: auto;
  max-width: 180px;
  max-height: 40px;
}

body.ticket-office-page .public-club-brand {
  min-width: 0;
}

body.ticket-office-page .public-club-brand strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.ticket-office-page .public-account-nav {
  gap: 14px;
  min-width: 0;
}

body.ticket-office-page .public-account-nav a {
  white-space: nowrap;
  font-size: .94rem;
}

.page-hero,
.ticket-page-hero {
  min-height: 0;
  padding: 30px max(18px, calc((100vw - 1100px) / 2)) 46px;
}

.page-hero .office-pill,
.ticket-page-hero .office-pill {
  min-height: 28px;
  padding: 0 14px;
  box-shadow: none;
  border-width: 1px;
  font-size: .76rem;
  letter-spacing: .04em;
  white-space: normal;
  text-align: center;
}

.page-hero h2,
.ticket-page-hero h2 {
  margin-top: 12px;
  font-size: clamp(1.9rem, 3.2vw, 3.1rem);
}

.page-hero p,
.ticket-page-hero p {
  max-width: 820px;
}

.ticket-page-watermark {
  width: min(150px, 22vw);
  bottom: -42px;
}

body.ticket-office-page .event-panel,
body.ticket-office-page .checkout-grid,
body.ticket-office-page .order-grid,
body.ticket-office-page .auth-panel,
body.ticket-office-page .public-main > .panel:not(.panel-catalog),
body.ticket-office-page .legal-page {
  width: min(1100px, calc(100% - 32px));
  margin: -22px auto 30px;
}

body.ticket-office-page .auth-panel {
  max-width: 500px;
}

.checkout-form {
  gap: 16px;
}

.checkout-form .field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legal-page {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.legal-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.legal-content-single {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
}

.legal-copy {
  color: #273f58;
  font-size: 1rem;
  line-height: 1.72;
}

.legal-copy p:first-child {
  margin-top: 0;
}

.legal-entity {
  align-self: start;
  padding: 18px;
  border: 1px solid #dbe6f3;
  border-radius: 18px;
  background: #f6f9fc;
}

.legal-entity h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.legal-entity dl,
.legal-entity div {
  display: grid;
  gap: 4px;
}

.legal-entity dl {
  margin: 0;
  gap: 12px;
}

.legal-entity dt {
  color: #64748b;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.legal-entity dd {
  margin: 0;
  color: #0f2740;
  overflow-wrap: anywhere;
}

.public-footer {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0 34px;
  color: #1f3b57;
}

.public-footer-brand {
  display: grid;
  gap: 3px;
}

.public-footer-brand strong {
  color: #071322;
}

.public-footer-brand span {
  color: #64748b;
  font-size: .9rem;
  font-weight: 700;
}

.public-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.public-footer a {
  color: #0a4a91;
}

.catalog-all-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 8px 0 0;
}

.catalog-all-actions .office-cta {
  border-color: #071322;
}

body[data-page="catalog"] .catalog-grid-featured {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-page="catalog"] .catalog-card-featured {
  grid-column: auto;
}

body[data-page="catalog"] .catalog-card,
body[data-page="catalog"] .catalog-card-featured {
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
  min-height: 220px;
}

body[data-page="catalog"] .catalog-buy {
  grid-column: 1 / -1;
  grid-template-columns: 1fr auto auto;
  align-items: end;
}

@media (min-width: 1500px) {
  body[data-page="catalog"] .catalog-grid-featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  body.ticket-office-page .public-header {
    grid-template-columns: minmax(140px, 190px) 1fr;
    padding: 14px 18px;
  }

  body.ticket-office-page .public-account-nav {
    grid-column: 1 / -1;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .legal-content {
    grid-template-columns: 1fr;
  }

  body[data-page="catalog"] .catalog-grid-featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="catalog"] .catalog-card,
  body[data-page="catalog"] .catalog-card-featured {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  html,
  body.ticket-office-page {
    max-width: 100%;
    overflow-x: hidden;
  }

  body.ticket-office-page * {
    min-width: 0;
  }

  body.ticket-office-page .public-header {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 12px;
    padding: 12px 14px;
  }

  body.ticket-office-page .public-brand {
    border-right: 0;
    padding-right: 0;
  }

  body.ticket-office-page .public-brand img {
    max-width: 142px;
  }

  body.ticket-office-page .public-club-brand strong,
  body.ticket-office-page .public-account-nav a:first-child {
    display: inline;
  }

  body.ticket-office-page .public-club-brand {
    max-width: 100%;
    align-items: center;
    gap: 8px;
  }

  body.ticket-office-page .public-club-brand img {
    width: 30px;
    height: 30px;
  }

  body.ticket-office-page .public-club-brand strong {
    white-space: normal;
    overflow-wrap: normal;
    line-height: 1.15;
    font-size: .92rem;
  }

  body.ticket-office-page .public-account-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-width: 100%;
    width: 100%;
  }

  body.ticket-office-page .public-account-nav a {
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    color: #f8fbff;
    font-size: .78rem;
    padding: 7px 8px;
    text-align: center;
    white-space: nowrap;
  }

  body.ticket-office-page .public-account-nav a:first-child {
    grid-column: 1 / -1;
  }

  .ticket-office-hero {
    min-height: 0;
    padding: 32px 16px 58px;
  }

  .page-hero,
  .ticket-page-hero {
    padding: 24px 16px 38px;
  }

  .page-hero h1,
  .ticket-page-hero h1,
  .ticket-office-hero h1 {
    font-size: clamp(2rem, 12vw, 3rem);
    line-height: .98;
  }

  body.ticket-office-page .event-panel,
  body.ticket-office-page .checkout-grid,
  body.ticket-office-page .order-grid,
  body.ticket-office-page .auth-panel,
  body.ticket-office-page .public-main > .panel:not(.panel-catalog),
  body.ticket-office-page .legal-page {
    width: calc(100% - 20px);
    margin-top: -16px;
  }

  .checkout-form .field-grid,
  body[data-page="catalog"] .catalog-grid-featured {
    grid-template-columns: 1fr;
  }

  body[data-page="catalog"] .catalog-buy {
    grid-template-columns: 1fr;
  }

  .legal-content {
    padding: 18px;
    border-radius: 18px;
  }

  .public-footer {
    display: grid;
    width: calc(100% - 28px);
    overflow: hidden;
  }

  .public-footer nav {
    justify-content: flex-start;
  }

  .public-footer-brand strong,
  .public-footer-brand span {
    overflow-wrap: anywhere;
  }

  .page-hero .office-pill,
  .ticket-page-hero .office-pill,
  .ticket-office-hero .office-pill {
    max-width: 100%;
    display: inline-flex;
    white-space: normal;
    line-height: 1.1;
    text-align: left;
  }
}

