:root {
  color-scheme: dark;
  --bg: #071018;
  --bg-2: #101a26;
  --panel: rgba(18, 30, 43, 0.84);
  --panel-strong: rgba(23, 39, 55, 0.94);
  --line: rgba(154, 184, 214, 0.18);
  --text: #f3f8ff;
  --muted: #9fb0c4;
  --accent: #4fe0b6;
  --accent-2: #66a7ff;
  --danger: #ff6b7a;
  --warning: #ffd166;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(79, 224, 182, 0.18), transparent 30rem),
    radial-gradient(circle at 85% 0%, rgba(102, 167, 255, 0.18), transparent 28rem),
    linear-gradient(135deg, #071018 0%, #0c1722 45%, #08131b 100%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.subscription-panel {
  display: grid;
  gap: 18px;
}

.brand-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(79, 224, 182, 0.55);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(79, 224, 182, 0.24), rgba(102, 167, 255, 0.12));
  color: var(--accent);
}

.status-pill,
.soft-note {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
  font-size: 14px;
  white-space: nowrap;
}

.status-pill.is-active {
  border-color: rgba(79, 224, 182, 0.45);
  color: var(--accent);
}

.status-pill.is-expired {
  border-color: rgba(255, 107, 122, 0.45);
  color: var(--danger);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
}

.main-card,
.qr-card,
.locations-card,
.guide-card,
.support-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.main-card {
  min-height: 420px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  font-size: 4.875rem;
  line-height: 0.92;
}

h2 {
  font-size: 1.875rem;
}

.lead {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.metrics > div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 14px;
}

.metric-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
}

.metrics strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 18px;
}

.traffic-bar {
  height: 10px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.traffic-bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 240ms ease;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-action,
.secondary-action {
  min-height: 52px;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 800;
}

.primary-action {
  border: 0;
  color: #061019;
  background: linear-gradient(135deg, var(--accent), #8ae9ff);
}

.secondary-action {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.primary-action:focus-visible,
.secondary-action:focus-visible,
.tab:focus-visible {
  outline: 3px solid rgba(79, 224, 182, 0.42);
  outline-offset: 2px;
}

.toast {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--accent);
  font-size: 15px;
}

.qr-card {
  padding: 22px;
  display: grid;
  align-content: center;
  gap: 18px;
  text-align: center;
}

.qr-frame {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 8px;
  background: #f8fbff;
  padding: 18px;
}

.qr-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.qr-card p,
.support-card p,
.guide-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.locations-card,
.guide-card,
.support-card {
  padding: 24px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

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

.location {
  min-height: 126px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 16px;
}

.location-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.location strong {
  display: block;
  margin-top: 18px;
  font-size: 22px;
  overflow-wrap: anywhere;
}

.location small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0 14px;
  font-weight: 700;
}

.tab.is-active {
  border-color: rgba(79, 224, 182, 0.5);
  color: var(--text);
  background: rgba(79, 224, 182, 0.12);
}

.guide-body {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 18px;
}

.guide-body ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: var(--text);
}

.guide-body li {
  padding-left: 4px;
  line-height: 1.55;
}

.support-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--panel-strong);
}

.support-card span {
  font-weight: 800;
  white-space: nowrap;
}

.is-hidden {
  display: none;
}

@media (max-width: 860px) {
  .shell {
    width: min(100% - 22px, 720px);
    padding: 18px 0;
  }

  .hero-grid,
  .locations-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .main-card {
    min-height: auto;
    padding: 24px;
  }

  h1 {
    font-size: 3.5rem;
    line-height: 0.96;
  }

  .lead {
    font-size: 16px;
  }

  .qr-card {
    grid-template-columns: 150px 1fr;
    align-items: center;
    text-align: left;
  }

  .section-head,
  .support-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 520px) {
  .brand-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-pill,
  .soft-note {
    white-space: normal;
  }

  .action-row {
    display: grid;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .qr-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
