:root {
  --bg: #11092d;
  --bg2: #1c0f4a;
  --card: rgba(35, 20, 82, .78);
  --card2: rgba(59, 30, 126, .68);
  --text: #fff;
  --muted: #c8bdec;
  --accent: #ffb31a;
  --orange: #ff7a1a;
  --green: #49d84c;
  --danger: #ff4b7a;
  --line: rgba(179, 132, 255, .34);
  --shadow: 0 24px 70px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 8%, rgba(126, 48, 255, .24), transparent 30rem),
    radial-gradient(circle at 88% 22%, rgba(255, 179, 26, .13), transparent 24rem),
    radial-gradient(circle at 50% 56%, rgba(255, 72, 148, .08), transparent 34rem),
    linear-gradient(180deg, var(--bg), #08051c 100%);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.site-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12, 7, 34, .78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 950; letter-spacing: .2px; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; }
.nav-links { display: none; gap: 18px; color: var(--muted); font-weight: 800; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.locale-select, .input, .select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: var(--text);
  padding: 0 14px;
  font-weight: 800;
}
.locale-select option, .select option { color: #160d36; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, #8a36ff, #5c24d8);
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(112, 45, 255, .28);
}
.button.gold { background: linear-gradient(135deg, var(--accent), var(--orange)); color: #210d25; box-shadow: 0 16px 36px rgba(255, 122, 26, .25); }
.button.ghost { background: rgba(255, 255, 255, .075); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); border: 1px solid var(--line); color: var(--text); }
.button.danger { background: linear-gradient(135deg, #ff5d88, #b8143d); }
.hero {
  padding: clamp(34px, 7vw, 78px) 0 clamp(54px, 8vw, 92px);
  display: grid;
  gap: clamp(28px, 6vw, 64px);
}
.hero-copy h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.55rem, 9.5vw, 5rem);
  line-height: .98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero-copy p {
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.14rem);
  line-height: 1.7;
  max-width: 58ch;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.hero-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, .055);
  color: #eee8ff;
  font-size: .86rem;
  font-weight: 850;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-art {
  position: relative;
  min-height: 420px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 179, 26, .16), transparent 17rem),
    linear-gradient(160deg, rgba(54, 22, 122, .76), rgba(13, 7, 38, .93));
  box-shadow: var(--shadow);
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(126, 54, 255, .18), transparent 62%);
}
.hero-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: center;
  justify-items: center;
  gap: clamp(16px, 4vw, 26px);
  min-height: inherit;
  padding: clamp(30px, 7vw, 50px) clamp(18px, 5vw, 44px);
}
.hero-logo {
  width: min(84%, 430px);
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .48));
}
.hero-separator {
  width: min(68%, 340px);
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 179, 26, .75), rgba(255, 255, 255, .42), transparent);
  box-shadow: 0 0 18px rgba(255, 179, 26, .3);
}
.hero-ticket {
  width: min(78%, 390px);
  filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .4));
}
.float-ball {
  position: absolute;
  display: grid;
  place-items: center;
  z-index: 2;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff 0 28%, #ffd9e8 29% 45%, #cf2d62 46% 100%);
  color: #160d36;
  font-weight: 950;
  box-shadow: 0 16px 26px rgba(0, 0, 0, .34);
}
.ball-a { left: 18px; top: 42%; }
.ball-b { right: 18px; top: 43%; background: radial-gradient(circle at 35% 28%, #fff 0 28%, #d7ecff 29% 45%, #2488e8 46% 100%); }
.ball-c { right: 34px; bottom: 34%; background: radial-gradient(circle at 35% 28%, #fff 0 28%, #eee0ff 29% 45%, #7e3fe0 46% 100%); }
.section { padding: 42px 0; }
.section-title { font-size: clamp(1.8rem, 8vw, 3rem); margin: 0 0 22px; }
.feature-grid, .stat-grid {
  display: grid;
  gap: 14px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  background: var(--card);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .18);
}
.card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); line-height: 1.6; }
.legal-page { max-width: 860px; padding: 36px 0 64px; }
.legal-page h1 { font-size: clamp(2.2rem, 10vw, 4rem); line-height: 1; margin: 0 0 12px; }
.legal-page .intro { color: var(--muted); line-height: 1.7; font-size: 1.05rem; }
.legal-content {
  margin-top: 22px;
  padding: clamp(22px, 5vw, 34px);
}
.legal-content h2 {
  margin: 0 0 10px;
  font-size: clamp(1.3rem, 4vw, 1.8rem);
}
.legal-content h2:not(:first-child) {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.legal-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text);
  font-weight: 850;
}
.admin-layout { display: grid; min-height: 100vh; }
.admin-sidebar {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 8, 42, .92);
}
.admin-sidebar nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.admin-sidebar a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 850;
  background: rgba(255,255,255,.05);
}
.admin-sidebar a.active { color: #fff; background: rgba(126, 54, 255, .42); }
.admin-main { padding: 18px; width: 100%; min-width: 0; }
.admin-title { margin: 0 0 14px; font-size: clamp(1.8rem, 8vw, 3.2rem); }
.notice { padding: 12px 14px; border-radius: 14px; background: rgba(73, 216, 76, .16); color: #8dff91; border: 1px solid rgba(73, 216, 76, .28); margin-bottom: 14px; }
.legal-contact a { color: #fff; font-weight: 950; text-decoration: underline; text-underline-offset: 3px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.04); }
table { width: 100%; border-collapse: collapse; min-width: 780px; }
th, td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
td { color: #fff; }
.muted { color: var(--muted); }
.positive { color: var(--green); font-weight: 900; }
.negative { color: var(--danger); font-weight: 900; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 9px; background: rgba(255,255,255,.08); font-weight: 850; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pagination { margin-top: 16px; }
.pager {
  display: grid;
  gap: 10px;
  color: var(--muted);
}
.pager-summary {
  font-weight: 800;
  font-size: .92rem;
}
.pager-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pager-button,
.pager-ellipsis {
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  font-weight: 900;
  line-height: 1;
}
.pager-button.active {
  color: #210d25;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--orange));
}
.pager-button.disabled {
  opacity: .45;
  cursor: not-allowed;
}
.pager-ellipsis {
  color: var(--muted);
  border-color: transparent;
  background: transparent;
}
.pagination svg {
  width: 16px;
  height: 16px;
}

@media (min-width: 760px) {
  .nav-links { display: flex; }
  .hero { grid-template-columns: minmax(0, .88fr) minmax(380px, 1.12fr); align-items: center; }
  .hero-copy h1 { font-size: clamp(3.5rem, 6vw, 5.5rem); }
  .hero-art { min-height: 470px; }
  .hero-logo { width: min(82%, 470px); }
  .hero-ticket { width: min(76%, 430px); }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .admin-layout { grid-template-columns: 260px 1fr; }
  .admin-sidebar { min-height: 100vh; border-bottom: 0; border-right: 1px solid var(--line); position: sticky; top: 0; }
  .admin-sidebar nav { display: grid; }
  .admin-main { padding: 28px; }
}

@media (min-width: 1180px) {
  .site-shell { width: min(1240px, calc(100% - 56px)); }
  .hero { gap: 58px; }
  .hero-art { min-height: 520px; }
  .hero-stage { gap: 30px; }
}

@media (max-width: 520px) {
  .site-shell { width: min(100% - 28px, 1120px); }
  .site-nav-inner { min-height: 66px; }
  .brand span { font-size: .98rem; }
  .brand-mark { width: 34px; height: 34px; }
  .locale-select { max-width: 122px; }
  .hero-copy h1 {
    max-width: 11.5ch;
    font-size: clamp(2.55rem, 13.5vw, 4.05rem);
  }
  .hero-copy p {
    font-size: 1rem;
  }
  .hero-ctas .button {
    flex: 1 1 150px;
  }
  .hero-art {
    min-height: 0;
    border-radius: 22px;
  }
  .hero-stage {
    padding: 28px 14px 30px;
    gap: 18px;
  }
  .hero-logo {
    width: 86%;
  }
  .hero-ticket {
    width: 80%;
  }
  .float-ball {
    width: 42px;
    height: 42px;
    font-size: .92rem;
  }
}

.admin-update-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1rem;
  max-width: 72rem;
}
.admin-update-form {
  display: grid;
  gap: .85rem;
  padding: 1.25rem;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .04);
}
.admin-update-form h2 { margin: 0; }
.admin-update-field {
  display: block;
  width: 100%;
  margin-top: .35rem;
  padding: .6rem .75rem;
  font: inherit;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #21153e;
}
.admin-update-field:focus-visible { outline: 2px solid var(--accent); }
