:root {
  --orange: #ff6a00;
  --orange-strong: #ff3d00;
  --amber: #ffb000;
  --hot: #ff2500;
  --ink: #08090b;
  --ink-2: #111318;
  --graphite: #1d1f24;
  --muted: #8f98a8;
  --line: rgba(255, 255, 255, 0.12);
  --white: #ffffff;
  --green: #62ff00;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  background: var(--ink);
}

button,
input,
textarea {
  font: inherit;
}

.portal {
  background:
    radial-gradient(circle at 82% 22%, rgba(255, 106, 0, 0.34), transparent 34%),
    radial-gradient(circle at 8% 78%, rgba(255, 61, 0, 0.2), transparent 30%),
    linear-gradient(108deg, rgba(3, 4, 6, 0.62) 0, rgba(8, 9, 11, 0.58) 45%, rgba(255, 106, 0, 0.2) 100%),
    url("/assets/dark-event-bg.jpg") center / cover fixed;
}

.shell {
  width: min(1220px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.82fr);
  align-items: center;
  gap: 34px;
  padding: 28px 0;
}

.checkout-panel,
.table-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 9, 11, 0.72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.hero-panel {
  min-height: 700px;
  padding: 28px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-shadow: 0 12px 42px rgba(0, 0, 0, 0.55);
}

.checkout-panel {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-color: rgba(255, 106, 0, 0.24);
  background:
    linear-gradient(180deg, rgba(31, 33, 39, 0.91), rgba(8, 9, 11, 0.93)),
    rgba(8, 9, 11, 0.86);
}

.checkout-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--amber), var(--orange), var(--hot));
}

.brand-row,
.admin-header,
.trust-strip,
.token-form {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-row,
.admin-header,
.trust-strip {
  justify-content: space-between;
}

.brand-logo {
  width: min(230px, 58vw);
  height: auto;
  object-fit: contain;
}

.status-pill,
.trust-strip span,
.plan-badge,
.status {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill {
  border-color: rgba(255, 106, 0, 0.52);
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.3), rgba(8, 9, 11, 0.42));
  color: var(--white);
}

.eyebrow,
.section-heading p {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 760px;
}

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

.hero-copy h1 {
  max-width: 820px;
  margin-bottom: 14px;
  font-size: clamp(3.35rem, 7.2vw, 7.1rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1 span {
  display: block;
  color: #ff9a1f;
}

.lead {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  line-height: 1.24;
  font-weight: 750;
}

.trust-strip {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.section-heading h2,
.section-heading h1 {
  margin-bottom: 18px;
  font-size: 1.95rem;
  line-height: 1;
  letter-spacing: 0;
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 18px;
}

.plan-option {
  width: 100%;
  min-height: 116px;
  padding: 14px 13px;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: stretch;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--white);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.035)),
    rgba(17, 19, 24, 0.72);
  cursor: pointer;
  text-align: left;
  transition: 160ms ease;
}

.plan-option:nth-child(5) {
  grid-column: 1 / -1;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto;
  align-items: center;
  min-height: 82px;
}

.plan-option:hover,
.plan-option.selected {
  border-color: rgba(255, 176, 0, 0.86);
  background:
    linear-gradient(135deg, rgba(255, 176, 0, 0.98), rgba(255, 106, 0, 0.94) 44%, rgba(255, 37, 0, 0.88));
  transform: translateY(-1px);
  box-shadow: 0 12px 34px rgba(255, 106, 0, 0.22);
}

.plan-title {
  margin: 10px 0 5px;
  font-size: 1.1rem;
  font-weight: 850;
}

.plan-price {
  align-self: end;
  font-size: 1.55rem;
  font-weight: 900;
}

.plan-option small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.plan-badge {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(0, 0, 0, 0.38);
  font-size: 0.72rem;
  padding: 5px 8px;
}

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

label span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  outline: none;
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

input {
  height: 46px;
  padding: 0 14px;
}

textarea {
  min-height: 98px;
  resize: vertical;
  padding: 12px;
}

.qr-image {
  width: min(220px, 100%);
  aspect-ratio: 1;
  display: block;
  margin: 0 auto 12px;
  border-radius: var(--radius);
  background: var(--white);
}

input:focus,
textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 176, 0, 0.18);
}

.primary-button,
.secondary-button,
.danger-button {
  min-height: 48px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 850;
}

.primary-button {
  color: var(--ink);
  background: linear-gradient(135deg, #ffd15a, var(--orange) 58%, var(--hot));
  box-shadow: 0 12px 28px rgba(255, 106, 0, 0.28);
}

.secondary-button {
  padding: 0 16px;
  color: var(--white);
  background: var(--graphite);
}

.payment-link {
  min-height: 46px;
  margin: 10px 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 176, 0, 0.32);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(255, 106, 0, 0.16);
  font-weight: 850;
  text-decoration: none;
}

.danger-button {
  padding: 0 12px;
  color: var(--white);
  background: #be123c;
}

.form-message,
.small {
  min-height: 20px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
}

.payment-box {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.admin {
  background:
    radial-gradient(circle at 86% 0, rgba(255, 106, 0, 0.28), transparent 34%),
    linear-gradient(180deg, #08090b, #111318);
}

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

.admin-header {
  margin-bottom: 24px;
}

.admin-logo {
  width: 180px;
  display: block;
  margin-bottom: 8px;
}

.admin-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.token-form {
  align-items: end;
}

.token-form input {
  width: min(340px, 44vw);
}

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

.metric {
  min-height: 116px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.metric p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.metric strong {
  font-size: 1.85rem;
}

.table-section {
  padding: 22px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.92rem;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.status.paid {
  color: #052e16;
  background: #86efac;
}

.status.pending {
  color: #451a03;
  background: #fed7aa;
}

@media (max-width: 920px) {
  .shell {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-panel {
    min-height: auto;
    gap: 44px;
    padding-top: 18px;
  }

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

@media (max-width: 620px) {
  .shell,
  .admin-shell {
    width: min(100% - 20px, 1180px);
  }

  .hero-panel,
  .checkout-panel,
  .table-section {
    padding: 18px;
  }

  .brand-row,
  .admin-header,
  .token-form {
    align-items: stretch;
    flex-direction: column;
  }

  .status-pill {
    align-self: flex-start;
  }

  .hero-copy h1 {
    font-size: 3rem;
  }

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

  .plan-option {
    min-height: 112px;
    padding: 11px;
  }

  .plan-option:nth-child(5) {
    grid-template-columns: 1fr auto;
    min-height: 78px;
  }

  .plan-title {
    margin-top: 8px;
    font-size: 0.98rem;
  }

  .plan-price {
    font-size: 1.28rem;
  }

  .plan-option small {
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .plan-badge {
    max-width: 100%;
    font-size: 0.66rem;
    white-space: normal;
  }

  .token-form input,
  .metric-grid {
    width: 100%;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }
}
