:root {
  color-scheme: dark;
  --bg: #030405;
  --surface: #0b0c10;
  --surface-2: #151526;
  --line: #242638;
  --text: #f3f7ff;
  --muted: #aeb8cc;
  --accent: #26ffd2;
  --accent-2: #8a67ff;
  --neon: #36c7ff;
  --danger: #f06f65;
  --ok: #79d184;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 78% 8%, rgba(54, 199, 255, 0.1), transparent 28%),
    radial-gradient(circle at 18% 10%, rgba(138, 103, 255, 0.12), transparent 30%),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 12px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(242, 193, 91, 0.7);
  background: #16130d;
  color: var(--accent);
  font-weight: 800;
}

.brand-logo {
  width: 52px;
  height: 34px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(54, 71, 255, 0.82));
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.nav a,
.topbar-action {
  color: var(--muted);
  font-size: 0.88rem;
}

.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.nav a:hover,
.topbar-action:hover {
  color: var(--text);
}

.topbar-action {
  border: 1px solid rgba(38, 255, 210, 0.52);
  background: rgba(38, 255, 210, 0.08);
  color: var(--text);
  padding: 10px 14px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: clamp(44px, 9vw, 92px) clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(3, 4, 5, 0.96)),
    radial-gradient(circle at 78% 24%, rgba(38, 255, 210, 0.2), transparent 30%),
    radial-gradient(circle at 22% 18%, rgba(138, 103, 255, 0.26), transparent 28%),
    #030405;
}

.light {
  position: absolute;
  top: 8%;
  width: 34%;
  height: 88%;
  background: linear-gradient(180deg, rgba(38, 255, 210, 0.28), transparent 72%);
  clip-path: polygon(48% 0, 58% 0, 100% 100%, 0 100%);
  opacity: 0.52;
  transform-origin: top;
}

.light.one {
  left: 12%;
  transform: rotate(-18deg);
}

.light.two {
  right: 14%;
  background: linear-gradient(180deg, rgba(138, 103, 255, 0.3), transparent 72%);
  transform: rotate(18deg);
}

.stage {
  position: absolute;
  right: 8%;
  bottom: 8%;
  display: flex;
  align-items: end;
  gap: 10px;
  opacity: 0.72;
}

.stage span {
  width: clamp(24px, 4vw, 58px);
  height: clamp(80px, 18vw, 240px);
  background: linear-gradient(180deg, #262b35, #101216);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stage span:nth-child(2),
.stage span:nth-child(4) {
  height: clamp(120px, 24vw, 320px);
}

.hero-content {
  position: relative;
  max-width: 780px;
}

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

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(4rem, 12vw, 9.4rem);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy,
.section-heading p {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions,
.scanner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 800;
}

.button.primary {
  background: linear-gradient(90deg, var(--accent), var(--neon), var(--accent-2));
  color: #020306;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.button.danger {
  min-height: 40px;
  border-color: rgba(240, 111, 101, 0.5);
  background: rgba(240, 111, 101, 0.12);
  color: var(--danger);
}

.button.full {
  width: 100%;
}

.static-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(38, 255, 210, 0.28);
  background: rgba(38, 255, 210, 0.07);
  padding: 14px;
}

.static-price span,
.static-price strong {
  display: block;
}

.static-price span {
  color: var(--muted);
  font-weight: 800;
}

.static-price strong {
  font-size: 1.4rem;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-band div {
  padding: 28px clamp(18px, 4vw, 48px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-band strong,
.stats-band span {
  display: block;
}

.stats-band strong {
  font-size: clamp(1.45rem, 3vw, 2.4rem);
}

.stats-band span {
  color: var(--muted);
  margin-top: 6px;
}

.section {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 64px);
}

.section-heading {
  margin-bottom: 28px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
}

.reverse {
  grid-template-columns: minmax(320px, 1fr) minmax(0, 0.85fr);
}

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

.event-card,
.promoter-card,
.panel {
  border: 1px solid var(--line);
  background: rgba(11, 12, 16, 0.9);
  box-shadow: var(--shadow);
}

.event-card {
  min-height: 360px;
  display: grid;
  align-content: end;
  overflow: hidden;
}

.event-art {
  min-height: 180px;
  background: linear-gradient(135deg, var(--card-a), var(--card-b));
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.event-card.has-banner .event-art {
  min-height: 240px;
}

.event-body,
.promoter-card,
.panel {
  padding: 22px;
}

.event-body h3,
.promoter-card h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.meta,
.commission {
  color: var(--muted);
  line-height: 1.6;
}

.price-row,
.promoter-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #0f1116;
  color: var(--text);
  padding: 12px;
}

input,
select {
  min-height: 46px;
  padding-top: 0;
  padding-bottom: 0;
}

textarea {
  resize: vertical;
}

.mini-form {
  max-width: 460px;
  margin-top: 22px;
}

.lounge-map {
  min-height: 410px;
}

.couch-summary {
  align-content: center;
  min-height: 280px;
}

.couch-summary h2 {
  font-size: clamp(2rem, 5vw, 4.2rem);
}

.map-stage {
  display: grid;
  place-items: center;
  height: 84px;
  margin-bottom: 22px;
  background: linear-gradient(90deg, #222344, #10111e);
  color: var(--accent);
  font-weight: 900;
}

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

.lounge-seat {
  min-height: 82px;
  border: 2px solid rgba(38, 255, 210, 0.82);
  background: rgba(8, 10, 18, 0.82);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  padding: 12px;
}

.lounge-seat strong,
.lounge-seat span {
  display: block;
}

.lounge-seat span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.lounge-seat.reserved {
  border-color: rgba(255, 255, 255, 0.16);
  opacity: 0.42;
  color: var(--danger);
}

.lounge-seat.selected {
  border-color: var(--accent);
  background: rgba(38, 255, 210, 0.08);
}

.promoter-card {
  display: grid;
  gap: 14px;
}

.tracking-link {
  overflow-wrap: anywhere;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #080a12;
  color: var(--accent-2);
  padding: 12px;
  font-size: 0.88rem;
}

.qr-panel {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.qr-code {
  display: grid;
  place-items: center;
  width: 180px;
  aspect-ratio: 1;
  background: #fff;
  padding: 14px;
}

.qr-code canvas {
  width: 100%;
  height: 100%;
}

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

.qr-panel strong,
.qr-panel span {
  display: block;
}

.qr-panel span {
  margin-top: 8px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.scan-result {
  color: var(--muted);
  font-weight: 800;
}

.scan-result.ok {
  color: var(--ok);
}

.scan-result.fail {
  color: var(--danger);
}

.scan-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 12%, rgba(244, 196, 95, 0.16), transparent 34%),
    radial-gradient(circle at 84% 20%, rgba(215, 36, 255, 0.14), transparent 32%),
    var(--bg);
}

.scan-shell {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: clamp(22px, 5vw, 64px);
}

.scan-panel {
  width: min(760px, 100%);
  display: grid;
  gap: 22px;
}

.scan-panel h1 {
  font-size: clamp(3.4rem, 9vw, 7rem);
}

.scan-form {
  gap: 16px;
}

.camera-preview {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #050507;
}

.qr-reader {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050507;
}

.qr-reader video {
  width: 100%;
}

.scan-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  background: #101216;
  padding: 18px;
}

.scan-card.ok {
  border-color: rgba(121, 209, 132, 0.5);
}

.scan-card.fail {
  border-color: rgba(240, 111, 101, 0.5);
}

.scan-card strong {
  font-size: 1.4rem;
}

.scan-card span {
  color: var(--muted);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 64px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.notice {
  margin: 18px clamp(18px, 5vw, 64px);
  border: 1px solid rgba(91, 215, 200, 0.38);
  background: rgba(91, 215, 200, 0.1);
  color: var(--accent-2);
  padding: 14px 18px;
  font-weight: 800;
}

.notice.inline {
  margin: 0;
}

.admin-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.login-shell {
  width: min(520px, calc(100vw - 36px));
}

.login-panel h1 {
  font-size: clamp(3rem, 9vw, 6rem);
}

.admin-main {
  min-height: calc(100vh - 72px);
}

.admin-section {
  display: grid;
  gap: 24px;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
}

.admin-form.compact {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.admin-form .full,
.admin-form .button.full {
  grid-column: 1 / -1;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-line input {
  width: auto;
  min-height: auto;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

th,
td {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

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

td span {
  color: var(--muted);
  font-size: 0.88rem;
}

td form {
  display: inline-grid;
  margin-top: 8px;
}

.tracking-link.small {
  display: inline-block;
  max-width: 260px;
  font-size: 0.78rem;
}

.copy-link {
  min-height: 38px;
  margin-top: 8px;
  padding: 0 12px;
  font-size: 0.82rem;
}

.mini-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 800;
}

.span-2 {
  grid-column: span 2;
}

.banner-preview {
  min-height: 160px;
  border: 1px solid var(--line);
  background: #090a0d;
  overflow: hidden;
}

.banner-preview img {
  width: 100%;
  height: 220px;
  display: block;
  object-fit: cover;
}

.event-hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: clamp(44px, 9vw, 92px) clamp(18px, 5vw, 64px);
  background: linear-gradient(135deg, var(--card-a), var(--card-b));
}

.event-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(12, 13, 16, 0.94)),
    var(--event-banner, linear-gradient(135deg, var(--card-a), var(--card-b)));
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.event-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(38, 255, 210, 0.18), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(138, 103, 255, 0.3), transparent 32%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.58), transparent 70%);
}

.event-hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.event-detail-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #101116;
}

.event-detail-band div {
  padding: 24px clamp(18px, 4vw, 46px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.event-detail-band strong,
.event-detail-band span {
  display: block;
}

.event-detail-band strong {
  font-size: clamp(1.35rem, 3vw, 2.4rem);
}

.event-detail-band span {
  color: var(--muted);
  margin-top: 6px;
}

.full-banner-section {
  padding-top: clamp(34px, 5vw, 68px);
}

.full-banner {
  border: 1px solid var(--line);
  background: #050507;
  box-shadow: var(--shadow);
}

.full-banner img {
  width: 100%;
  max-height: 86vh;
  display: block;
  object-fit: contain;
  background: #050507;
}

.lounge-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
}

.lounge-admin-item {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  padding: 14px;
}

.lounge-admin-item strong,
.lounge-admin-item span {
  display: block;
}

.lounge-admin-item span {
  color: var(--muted);
}

@media (max-width: 920px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .stats-band,
  .event-detail-band,
  .event-grid,
  .promoter-grid,
  .lounge-admin-grid,
  .split,
  .reverse,
  .admin-form,
  .admin-form.compact {
    grid-template-columns: 1fr;
  }

  .stats-band div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .lounge-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .event-detail-band div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .span-2 {
    grid-column: 1;
  }
}

@media (max-width: 620px) {
  body {
    overflow-x: hidden;
  }

  .topbar {
    position: static;
    gap: 12px;
    padding: 12px 16px;
  }

  .brand {
    width: 100%;
  }

  .brand-logo {
    width: 44px;
    height: 28px;
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .brand small,
  .nav a,
  .topbar-action {
    font-size: 0.78rem;
  }

  .nav {
    width: 100%;
    gap: 8px;
  }

  .nav a,
  .topbar-action {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,.12);
    padding: 0 10px;
  }

  .hero {
    min-height: 620px;
    padding: 36px 16px;
  }

  .event-hero {
    min-height: auto;
    aspect-ratio: 1 / 1;
    align-items: end;
    padding: 18px;
    background: #050507;
  }

  .event-hero-bg {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.36)),
      var(--event-banner, linear-gradient(135deg, var(--card-a), var(--card-b)));
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
  }

  .event-hero::after {
    background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.78));
  }

  .event-hero-content {
    max-width: 100%;
  }

  .event-hero-content h1 {
    font-size: clamp(1.4rem, 8vw, 2.2rem);
    line-height: 1;
    margin-bottom: 6px;
  }

  .event-hero-content .hero-copy {
    display: none;
  }

  .event-hero-content .hero-actions {
    display: none;
  }

  h1 {
    font-size: clamp(3.1rem, 18vw, 4.7rem);
    line-height: 0.92;
  }

  h2 {
    font-size: clamp(1.8rem, 11vw, 3rem);
  }

  .hero-copy,
  .section-heading p {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .section {
    padding: 44px 16px;
  }

  .event-card {
    min-height: auto;
  }

  .event-card.has-banner .event-art,
  .event-art {
    min-height: 190px;
  }

  .stats-band div,
  .event-detail-band div {
    padding: 18px 16px;
  }

  .checkout-form,
  .mini-form,
  .panel {
    width: 100%;
  }

  .static-price {
    align-items: flex-start;
    flex-direction: column;
  }

  select,
  input {
    min-height: 52px;
    font-size: 16px;
  }

  .couch-summary {
    min-height: 0;
  }

  .topbar-action {
    width: 100%;
    text-align: center;
  }

  .lounge-row {
    display: none;
  }

  .qr-panel {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }

  .scan-body .topbar {
    min-height: 56px;
    padding: 8px 12px;
  }

  .scan-body .brand-logo {
    width: 32px;
    height: 22px;
  }

  .scan-body .brand {
    width: auto;
  }

  .scan-body .brand strong {
    font-size: 0.9rem;
  }

  .scan-body .brand small {
    display: none;
  }

  .scan-shell {
    min-height: auto;
    place-items: start;
    padding: 16px;
  }

  .scan-panel h1,
  .login-panel h1 {
    font-size: clamp(2.2rem, 13vw, 3.8rem);
  }
}
