:root {
  --red: #ff2635;
  --red-dark: #b70f22;
  --ink: #0a1018;
  --soft: #f7f3ee;
  --white: #ffffff;
  --muted: #b8c0cc;
  --panel: rgba(10, 16, 24, 0.76);
  --glass: rgba(255, 255, 255, 0.08);
  --line: #eadada;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--ink);
  color: var(--white);
}
main { background: #fff; }
body.account-page main {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 38, 53, .09), transparent 34%),
    linear-gradient(180deg, #fff 0%, #fff 76%, #fff7f8 100%);
}
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2vw, 28px);
  padding: 24px clamp(18px, 4vw, 72px);
  background: linear-gradient(180deg, rgba(10, 16, 24, 0.86), rgba(10, 16, 24, 0.2));
  backdrop-filter: blur(6px);
}

.logo,
.text-logo {
  display: inline-flex;
  align-items: center;
  overflow: visible;
  background: transparent;
  color: #fff;
  line-height: 1;
  box-shadow: none;
}
.image-logo {
  display: block;
  flex: 0 0 auto;
  width: 118px;
  aspect-ratio: 724 / 675;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
}
.brand-logo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ucommunity-logo,
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 7px;
  background: #000;
  color: var(--red);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
}

.text-logo strong {
  display: block;
  color: #fff;
  font-size: clamp(21px, 1.5vw, 28px);
  font-weight: 900;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 1.9vw, 34px);
  flex: 1;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(15px, 1.08vw, 20px);
  font-weight: 800;
}
.main-nav a { transition: color 0.2s ease; }
.main-nav a:hover,
.main-nav .active { color: var(--red); }

.header-account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.header-account-link:hover,
.header-account-link.active {
  transform: translateY(-1px);
  border-color: rgba(231, 0, 0, 0.75);
  background: rgba(231, 0, 0, 0.22);
}

.header-account-link span,
.header-account-link strong {
  display: grid;
  place-items: center;
}

.header-account-link svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.header-account-link strong {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.header-account-link span[hidden],
.header-account-link strong[hidden] {
  display: none;
}

.hero,
.page-hero {
  position: relative;
  display: grid;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 14, 22, 0.96), rgba(22, 16, 28, 0.68) 46%, rgba(176, 69, 6, 0.72)),
    linear-gradient(135deg, #07131c, #211528 48%, #a84409);
}

.hero {
  min-height: 100vh;
  place-items: center;
  padding: 190px 20px 120px;
}

.page-hero {
  min-height: 48vh;
  align-items: end;
  padding: 180px clamp(20px, 5vw, 72px) 76px;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before,
.page-hero::before {
  content: '';
  position: absolute;
  inset: -20%;
  z-index: 1;
  background:
    radial-gradient(circle at 18% 32%, rgba(99, 142, 155, 0.26), transparent 23%),
    linear-gradient(102deg, transparent 0 41%, rgba(255, 255, 255, 0.12) 42%, transparent 43% 100%);
  filter: blur(1px);
  transform: rotate(-2deg);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(4, 8, 14, 0.24), rgba(4, 8, 14, 0.7)),
    linear-gradient(90deg, rgba(10, 16, 24, 0.76), rgba(10, 16, 24, 0.16));
}

.hero-content,
.page-hero-content {
  position: relative;
  z-index: 3;
  width: min(1060px, calc(100% - 32px));
}

.hero-content {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.page-hero-content {
  margin: 0 auto;
}

.eyebrow,
.kicker,
.section-heading p {
  margin: 0;
  color: var(--red);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.return-page h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(54px, 9vw, 126px);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 4vw, 56px);
  line-height: 1;
  font-weight: 900;
}

.hero p:not(.eyebrow) {
  max-width: 690px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1.45;
  font-weight: 700;
}

.primary-link,
button,
.secondary-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 16px 30px rgba(255, 38, 53, 0.22);
  transition: transform 0.2s ease, background 0.2s ease;
}

.primary-link {
  margin-top: 12px;
}

.primary-link:hover,
button:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.secondary-button {
  background: #111;
  color: #fff;
  box-shadow: 0 12px 28px rgba(255, 38, 56, .12);
}

.content-section,
.account-layout,
.return-page {
  color: var(--ink);
}

.content-section {
  position: relative;
  padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 72px);
  background: #fff;
}

.memberships-section {
  background:
    linear-gradient(180deg, #fff 0%, #fff 78%, #fff5f6 100%);
}

.section-heading {
  width: min(1180px, 100%);
  margin: 0 auto 30px;
}

.section-heading h2,
.membership-panel h2 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: clamp(34px, 4vw, 62px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.status-line {
  width: min(1180px, 100%);
  min-height: 26px;
  margin: 0 auto 22px;
  color: #5f6470;
  font-weight: 800;
}

.auth-panel > .status-line.account-summary {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 0 0 24px;
  padding: 14px;
  border: 1px solid #f0dfe1;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #fff9fa 100%);
  box-shadow: 0 16px 34px rgba(10, 16, 24, .06);
}

.auth-panel > .status-line.account-summary:empty {
  display: none;
}

.auth-panel > .status-line.account-summary strong,
.auth-panel > .status-line.account-summary small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.auth-panel > .status-line.account-summary strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.auth-panel > .status-line.account-summary small {
  margin-top: 3px;
  color: #697180;
  font-size: 13px;
  line-height: 1.35;
}

.account-avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 12px 24px rgba(10, 16, 24, .14);
}

.tier-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.compact-grid {
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tier-card,
.auth-panel,
.membership-panel,
.current-membership {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #fff 72%, #fff7f8 100%);
  color: var(--ink);
  box-shadow: 0 18px 50px rgba(18, 23, 30, 0.1);
}

.tier-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
}

.tier-card.active {
  border-color: var(--red);
  box-shadow: 0 22px 58px rgba(255, 38, 53, 0.16);
}

.tier-card h3 {
  margin: 0;
  color: var(--red-dark);
  font-size: 28px;
  font-weight: 900;
}

.price {
  color: var(--ink);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}

.price small {
  color: #6d7380;
  font-size: 15px;
}

.benefit-list {
  flex: 1;
  margin: 0;
  padding-left: 18px;
  color: #5f6470;
  line-height: 1.55;
  font-weight: 700;
}

.account-layout {
  width: min(1180px, calc(100% - 32px));
  margin: -38px auto 0;
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 28px;
  padding: 0 0 92px;
  align-items: start;
}

.auth-panel,
.membership-panel,
.current-membership {
  padding: 28px;
}

.auth-panel {
  position: sticky;
  top: 128px;
  overflow: hidden;
}

.auth-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--red), #111 58%, rgba(255, 38, 53, .24));
}

.auth-panel .section-heading {
  margin-bottom: 26px;
}

.auth-panel .section-heading h1 {
  margin: 8px 0 0;
  max-width: 8ch;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
}

.membership-panel {
  display: grid;
  gap: 20px;
}

.compact-heading h2 {
  font-size: 32px;
}

.stack-form {
  display: grid;
  gap: 12px;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--red-dark);
  font-weight: 900;
  text-align: left;
  box-shadow: none;
  padding: 0;
  min-height: auto;
}

.link-button:hover {
  text-decoration: underline;
}

.password-reset-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #f2c9cf;
  border-radius: 8px;
  background: #fff7f8;
}

.password-reset-panel[hidden] {
  display: none;
}

.reset-heading {
  display: grid;
  gap: 4px;
}

.reset-heading span {
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.reset-heading strong {
  color: var(--ink);
  font-size: 18px;
}

.reset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reset-actions button {
  flex: 1 1 150px;
}

label {
  display: grid;
  gap: 7px;
  color: #5f6470;
  font-size: 14px;
  font-weight: 900;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #e2d8d8;
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

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

.check-row input {
  width: auto;
  min-height: auto;
}

.register-panel {
  margin-top: 18px;
}

.register-panel summary {
  cursor: pointer;
  color: var(--red-dark);
  font-weight: 900;
}

.register-panel .stack-form {
  margin-top: 14px;
}

.account-dashboard {
  display: grid;
  gap: 14px;
  margin-top: 0;
}

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

.account-dashboard-head > div,
.account-order-card {
  border: 1px solid #f2c9cf;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.account-dashboard-head > div {
  padding: 14px;
}

.account-dashboard-head span,
.account-order-top span,
.account-order-meta,
.account-ticket-list span,
.account-ticket-list small {
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 800;
}

.account-dashboard-head strong {
  display: block;
  font-size: 1.5rem;
}

.account-dashboard[hidden],
.account-settings[hidden],
.mailing-unsubscribe-panel[hidden] {
  display: none;
}

.account-order-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-order-toolbar button {
  border: 0;
  border-radius: 999px;
  padding: 0 17px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.account-order-toolbar button.active,
.account-order-toolbar button:hover {
  background: var(--red);
}

.account-orders {
  display: grid;
  gap: 12px;
}

.account-order-card {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.account-order-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.account-order-top h4 {
  margin: 3px 0;
}

.account-order-top code,
.account-ticket-list code {
  font-family: inherit;
  font-weight: 900;
  color: var(--red);
}

.account-order-meta,
.account-ticket-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-order-meta span {
  border-radius: 999px;
  background: #fff5f6;
  padding: 5px 9px;
}

.account-ticket-list > div {
  display: grid;
  gap: 4px;
  min-width: min(100%, 210px);
  border-radius: 8px;
  background: #fff5f6;
  padding: 10px;
}

.account-ticket-download,
.account-order-link {
  width: fit-content;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.account-empty {
  color: #6b7280;
  font-weight: 800;
}

.account-settings,
.mailing-unsubscribe-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #f2c9cf;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.account-settings > div,
.mailing-unsubscribe-panel > div,
.account-danger-zone > div {
  display: grid;
  gap: 4px;
}

.account-settings > div span,
.mailing-unsubscribe-panel > div span,
.account-danger-zone > div span {
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-settings > div strong,
.mailing-unsubscribe-panel > div strong,
.account-danger-zone > div strong {
  color: var(--ink);
  font-size: 22px;
}

.consent-check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--ink);
  font-weight: 800;
}

.consent-check input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--red);
}

.consent-check.is-locked {
  color: #6b7280;
}

.consent-check.is-locked input {
  opacity: .72;
}

.account-settings-link {
  justify-self: start;
  color: var(--red-dark);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.account-settings-link:hover {
  text-decoration: underline;
}

.account-danger-zone {
  display: grid;
  gap: 10px;
  margin-top: 6px;
  padding: 14px;
  border: 1px solid rgba(255, 38, 56, .42);
  border-radius: 8px;
  background: #fff5f6;
}

.account-danger-zone p,
.mailing-unsubscribe-panel p {
  margin: 0;
  color: #596070;
  font-size: 13px;
  font-weight: 800;
}

.danger-button,
.account-settings .danger-button {
  width: fit-content;
  border: 0;
  border-radius: 8px;
  padding: 11px 15px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.danger-button:disabled {
  cursor: wait;
  opacity: .7;
}

.mailing-layout {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}

.mailing-unsubscribe-panel .status-line,
.account-settings .status-line {
  width: 100%;
  margin: 0;
}

.current-membership {
  min-height: 142px;
}

.membership-status-pill {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  background: #f1eeee;
  color: #5f6470;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.membership-status-pill.active {
  background: #ffe1e5;
  color: var(--red-dark);
}

.membership-status-pill.pending {
  background: #fff3d8;
  color: #9a5b00;
}

.current-membership strong,
.current-membership span,
.current-membership code {
  display: block;
  margin-top: 8px;
}

.current-membership code {
  overflow-wrap: anywhere;
  color: var(--red-dark);
  font-weight: 900;
}

.account-perk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.account-perk-card {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid #eadfdf;
  border-radius: 8px;
  background: #fff;
}

.account-perk-card.available {
  border-color: rgba(19, 148, 86, .32);
}

.account-perk-card.used,
.account-perk-card.locked {
  opacity: .74;
}

.account-perk-card strong,
.account-perk-card span,
.account-perk-card small,
.account-perk-card p,
.account-perk-card a {
  margin: 0;
}

.account-perk-card a {
  display: inline-flex;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 7px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.account-perk-card p {
  color: #6f747d;
  font-size: 12px;
  line-height: 1.45;
}

.return-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(5, 14, 22, 0.96), rgba(22, 16, 28, 0.68) 46%, rgba(176, 69, 6, 0.72)),
    url("assets/logo.jpg") center/cover;
}

.return-page .auth-panel {
  width: min(480px, 100%);
}

.return-page .kicker,
.return-page h1,
.return-page .status-line {
  width: auto;
  margin-left: 0;
  margin-right: 0;
}

.return-page h1 {
  color: var(--ink);
  font-size: clamp(36px, 5vw, 62px);
}

@media (max-width: 1180px) {
  .site-header {
    padding: 18px 22px;
  }

  .main-nav {
    gap: 16px;
    font-size: 15px;
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .image-logo {
    width: 82px;
  }

  .header-account-link {
    position: absolute;
    top: 16px;
    right: 22px;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 26px;
  }

  .hero,
  .page-hero {
    min-height: 70vh;
    padding-top: 170px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(44px, 16vw, 76px);
  }

  .tier-grid,
  .account-layout {
    grid-template-columns: 1fr;
  }

  .account-layout {
    margin-top: -24px;
  }

  .auth-panel {
    position: relative;
    top: auto;
  }
}
