:root {
  --ink: #050918;
  --panel: #0b1022;
  --panel-2: #11182c;
  --line: #25304b;
  --text: #f7fbff;
  --muted: #90a0bf;
  --cyan: #19c2de;
  --cyan-2: #37e3f3;
  --green: #4caf50;
  --red: #ef5148;
  --white: #ffffff;
  --shadow: 0 22px 55px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

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

.brand, .user-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.brand-mark {
  width: 35px;
  height: 35px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: linear-gradient(145deg, var(--cyan), #0aa7c7);
  box-shadow: 0 0 22px rgba(25, 194, 222, .35);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #c9d6ef;
  font-size: 14px;
}

.nav a {
  padding: 8px 10px;
  border-radius: 8px;
}

.nav a:hover, .nav a.active {
  background: rgba(25, 194, 222, .1);
  color: var(--cyan);
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.user-pill {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  color: #dce8ff;
}

.user-pill.show { display: flex; }

.btn {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
  color: #04101d;
  background: var(--white);
  white-space: nowrap;
}

.btn.primary {
  background: var(--cyan);
  box-shadow: 0 10px 30px rgba(25, 194, 222, .22);
}

.btn.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  border-color: var(--line);
}

.btn.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(48px, 7vw, 98px) clamp(18px, 5vw, 72px);
  background:
    radial-gradient(circle at 85% 35%, rgba(18, 60, 135, .55), transparent 34%),
    radial-gradient(circle at 58% 82%, rgba(25, 194, 222, .18), transparent 28%),
    linear-gradient(115deg, #050918 0%, #080d22 54%, #051a35 100%);
}

.eyebrow, .badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--cyan-2);
  background: rgba(25, 194, 222, .08);
  border: 1px solid rgba(25, 194, 222, .42);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
}

.hero h1 {
  max-width: 700px;
  margin: 22px 0 18px;
  font-size: clamp(46px, 7vw, 84px);
  line-height: .96;
  letter-spacing: 0;
}

.hero h1 span { display: block; color: var(--cyan); }
.lead { max-width: 680px; color: #bed0ee; font-size: clamp(17px, 2vw, 20px); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.phone-shell {
  border-radius: 34px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: var(--shadow);
}

.phone-screen {
  border-radius: 26px;
  padding: 26px;
  background: #070c1b;
  border: 1px solid rgba(255, 255, 255, .1);
}

.ticket {
  margin: 18px auto;
  width: min(100%, 260px);
  color: #04101d;
  background: var(--cyan);
  clip-path: polygon(8% 0, 92% 0, 100% 18%, 100% 82%, 92% 100%, 8% 100%, 0 82%, 0 18%);
  padding: 24px 22px;
  min-height: 220px;
}

.ticket h3 { margin: 8px 0; font-size: 27px; line-height: .98; }
.ticket small { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.ticket .dashed { margin: 28px 0 18px; border-top: 2px dashed rgba(4, 16, 29, .32); }

.page {
  padding: clamp(34px, 5vw, 70px) clamp(18px, 5vw, 72px);
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 26px;
}

.page-head h1, .page-head h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.muted { color: var(--muted); margin: 6px 0 0; }

.app-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 720px;
  border: 1px solid rgba(255,255,255,.08);
  background: #080d1f;
}

.sidebar {
  border-right: 1px solid rgba(255,255,255,.08);
  background: var(--panel);
  padding: 22px;
}

.side-nav {
  display: grid;
  gap: 8px;
  margin-top: 26px;
}

.side-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  color: #8795b2;
  padding: 0 12px;
}

.side-nav a.active {
  color: var(--cyan);
  background: rgba(25,194,222,.08);
  border: 1px solid rgba(25,194,222,.4);
}

.wallet {
  margin-top: 42px;
  padding: 16px;
  border: 1px solid rgba(25,194,222,.24);
  background: rgba(25,194,222,.08);
  border-radius: 8px;
}

.wallet strong { display: block; margin: 4px 0 12px; font-size: 28px; }
.main-panel { min-width: 0; padding: 28px; }

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

.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.side { grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); }

.card, .panel {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  background: var(--panel-2);
  padding: 22px;
}

.event-card {
  overflow: hidden;
  padding: 0;
  min-height: 300px;
}

.event-art {
  height: 150px;
  background: #0c1326;
  overflow: hidden;
}

.event-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-body { padding: 20px; }
.event-body h3 { margin: 0 0 6px; font-size: 20px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.chip { min-height: 24px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: 999px; color: #9af5c1; background: rgba(76,175,80,.14); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.price { color: var(--cyan); font-size: 24px; font-weight: 900; }

form { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.wide { grid-column: 1 / -1; }
label { color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--text);
  background: #0d1428;
  padding: 0 13px;
  outline: none;
}
textarea { min-height: 120px; padding: 12px 13px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(25,194,222,.12); }

.movement {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.08);
  background: #0c1326;
}
.movement + .movement { margin-top: 10px; }
.movement small { color: var(--muted); }
.movement.positive b:last-child { color: #7ef4b0; }
.movement.negative b:last-child { color: #ffb0aa; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 50;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 16px;
  border-radius: 8px;
  color: #04101d;
  background: var(--cyan);
  font-weight: 900;
  box-shadow: var(--shadow);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 960px) {
  .hero, .app-layout, .grid, .grid.three, .grid.side { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
}

@media (max-width: 720px) {
  .topbar, .page-head { align-items: start; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
}
