﻿:root {
  --bg: #06060c;
  --bg2: #111325;
  --pink: #ff2f92;
  --cyan: #17e7ff;
  --yellow: #ffd24a;
  --green: #33ffa8;
  --white: #f7f8ff;
  --muted: #b9bfd9;
  --card: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--white);
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 47, 146, 0.24), transparent 22%),
    radial-gradient(circle at 85% 8%, rgba(23, 231, 255, 0.18), transparent 22%),
    radial-gradient(circle at 75% 70%, rgba(255, 210, 74, 0.12), transparent 18%),
    linear-gradient(180deg, #05060b 0%, #0a0d1a 40%, #07070d 100%);
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.party-bg { position: fixed; inset: 0; pointer-events: none; }
.hidden { display: none; }

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.login-card {
  width: min(560px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--yellow);
}

h1 {
  margin: 12px 0;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

.subtitle, .small-note, .hint { color: var(--muted); }

label { display: block; margin: 12px 0 6px; font-weight: 800; }

input, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 0.96rem;
}

button {
  margin-top: 14px;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.94rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), #ff5ca8);
  box-shadow: 0 14px 30px rgba(255, 47, 146, 0.25);
  cursor: pointer;
}

.secondary {
  background: linear-gradient(135deg, var(--cyan), #3cd7ff);
  box-shadow: 0 14px 30px rgba(23, 231, 255, 0.18);
}

.error { min-height: 20px; color: #ff9191; margin: 8px 0 0; }

main {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 22px;
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at 20% 0%, rgba(255, 47, 146, 0.15), transparent 30%),
    radial-gradient(circle at 100% 20%, rgba(23, 231, 255, 0.15), transparent 28%),
    linear-gradient(135deg, rgba(18, 20, 38, 0.86), rgba(9, 10, 18, 0.86));
  padding: 24px;
  display: grid;
  gap: 18px;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}

.hero-image img {
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--border);
  max-height: 320px;
  object-fit: cover;
}

.panel {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 24px;
  padding: 18px;
  margin-top: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(8px);
}

.panel h2 {
  margin: 0 0 10px;
  font-size: 30px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.budget-input-wrap { margin-bottom: 10px; max-width: 320px; }
.budget-switch { display: flex; gap: 10px; flex-wrap: wrap; }

.budget-btn {
  width: auto;
  margin-top: 0;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
}

.budget-btn.active {
  background: linear-gradient(135deg, var(--pink), var(--cyan));
}

.budget-info { color: var(--green); font-weight: 900; margin: 10px 0 0; }

.chapter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.chapter-tab {
  width: auto;
  margin-top: 0;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.86rem;
}

.chapter-tab.active {
  background: linear-gradient(135deg, var(--pink), var(--cyan));
}

.event-form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px;
  margin-bottom: 12px;
}

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.form-actions button { width: auto; }

.timeline, .grid { display: grid; gap: 12px; }
.timeline { grid-template-columns: 1fr; }
.grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 12px;
}

.card h4, .card h5 { margin: 0 0 8px; }
.card p { margin: 0 0 7px; color: #e4e8ff; }
.tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0c0f1d;
  background: var(--yellow);
  margin-bottom: 8px;
}

.day-card { padding: 14px; }
.slot-block + .slot-block { margin-top: 12px; }
.slot-block h4 { margin: 0 0 8px; font-size: 1.08rem; text-transform: uppercase; }
.slot-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.option-item { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); border-radius: 14px; padding: 10px; }
.option-item.option-winner {
  border-color: rgba(51, 255, 168, 0.7);
  box-shadow: 0 0 0 1px rgba(51, 255, 168, 0.3), 0 0 28px rgba(51, 255, 168, 0.2);
}
.option-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.option-links a { font-weight: 800; }
.price-line { color: var(--green); font-weight: 900; }
.price-edit { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.price-edit input { max-width: 120px; }
.vote-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.vote-btn {
  width: auto;
  margin-top: 0;
  padding: 7px 10px;
  font-size: 0.78rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.vote-btn.active {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 10px 24px rgba(23, 231, 255, 0.2);
}
.vote-count {
  font-weight: 800;
  color: var(--yellow);
  font-size: 0.9rem;
}

.db-card h5 {
  font-size: 1.02rem;
}

.db-meta {
  font-size: 0.9rem;
}

.db-meta strong {
  color: var(--yellow);
}

.db-details {
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 8px;
}

.db-details summary {
  cursor: pointer;
  font-weight: 900;
  color: #fff;
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
}

.db-list {
  margin: 8px 0 0;
  padding-left: 16px;
}

.db-list li {
  margin-bottom: 6px;
  font-size: 0.88rem;
}

.event-meta { font-size: 0.9rem; }
.event-actions { display: flex; gap: 8px; margin-top: 8px; }
.event-actions button { width: auto; margin-top: 0; padding: 8px 12px; }

.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; }
.spot-list { margin: 0; padding-left: 18px; }
.spot-list li { margin-bottom: 10px; }
.image-stack { display: grid; gap: 10px; }
.image-stack img { width: 100%; border-radius: 14px; border: 1px solid var(--border); max-height: 210px; object-fit: cover; }

.links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.links-grid a { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); padding: 10px; border-radius: 10px; text-align: center; font-weight: 800; }

@media (max-width: 940px) {
  .hero, .two-col { grid-template-columns: 1fr; }
}
