:root {
  --bg: #fdf6f4; --card: #fff; --ink: #2a2230; --muted: #7a6f82; --brand: #e0556b;
  --brand-dark: #c03e54; --accent: #2f9e7a; --line: #eadfe0; --warn: #b7791f;
}
* { box-sizing: border-box; }
a { color: var(--brand-dark); }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); }
header { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--brand); text-decoration: none; }
.brand { min-width: 0; }
.brand img { border-radius: 9px; flex: none; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
nav { display: flex; gap: 4px; align-items: center; flex-wrap: nowrap; flex: none; }
nav a, nav button { white-space: nowrap; }
header { gap: 12px; }
nav a, nav button { font: inherit; font-size: .9rem; color: var(--ink); background: none; border: 0; cursor: pointer; padding: 6px 10px; border-radius: 8px; text-decoration: none; }
nav a:hover, nav button:hover { background: var(--bg); }
main { max-width: 820px; margin: 0 auto; padding: 20px 16px 60px; }
.banner { background: #fff4d6; color: var(--warn); text-align: center; padding: 8px 12px; font-size: .88rem; }
.hidden { display: none !important; }
h1 { font-size: 1.6rem; margin: 8px 0 16px; }
h2 { font-size: 1.1rem; margin: 24px 0 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; }
.event-card { cursor: pointer; transition: transform .1s, box-shadow .1s; display: flex; justify-content: space-between; gap: 14px; }
.event-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.07); }
.event-card h3 { margin: 0 0 4px; font-size: 1.1rem; }
.meta { color: var(--muted); font-size: .9rem; }
.price { text-align: right; white-space: nowrap; }
.price .now { font-size: 1.3rem; font-weight: 800; }
.price s { color: var(--muted); font-size: .85rem; display: block; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #e5f6ef; color: var(--accent); margin-top: 4px; }
.tag.red { background: #fde8ec; color: var(--brand-dark); }
.tag.grey { background: #eee; color: #666; }
button.primary, a.primary { display: inline-block; font: inherit; font-weight: 700; background: var(--brand); color: #fff; border: 0; padding: 12px 22px; border-radius: 10px; cursor: pointer; text-decoration: none; }
button.primary:hover { background: var(--brand-dark); }
button.primary:disabled { opacity: .5; cursor: not-allowed; }
button.ghost { font: inherit; background: none; border: 1px solid var(--line); padding: 8px 14px; border-radius: 10px; cursor: pointer; }
button.danger { color: var(--brand-dark); }
label { display: block; font-weight: 600; font-size: .88rem; margin: 12px 0 4px; }
input, textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
textarea { min-height: 100px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } .event-card { flex-direction: column; } .price { text-align: left; } }
.auth { max-width: 380px; margin: 30px auto; }
.error { color: var(--brand-dark); font-size: .9rem; margin-top: 10px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px; z-index: 10; }
.big-price { font-size: 2rem; font-weight: 800; }
.desc { white-space: pre-wrap; }
ul.people { padding-left: 18px; margin: 4px 0; columns: 2; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
td, th { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.back { display: inline-block; margin-bottom: 10px; color: var(--muted); text-decoration: none; cursor: pointer; }

/* ---------- home hero ---------- */
.hero { text-align: center; padding: 40px 20px 36px; margin-bottom: 26px; border-radius: 22px; color: #fff;
  background: radial-gradient(circle at 15% 20%, rgba(255,255,255,.18), transparent 45%), linear-gradient(135deg, #e0556b 0%, #c03e54 55%, #8f2f6f 100%); }
.hero-logo { border-radius: 18px; box-shadow: 0 6px 20px rgba(0,0,0,.18); background: #fff; }
.hero h1 { font-size: 2.1rem; margin: 14px 0 6px; line-height: 1.15; }
.hero p { max-width: 460px; margin: 0 auto 22px; opacity: .92; }
.hero-actions { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero .primary { background: #fff; color: var(--brand-dark); }
.hero .primary:hover { background: #fdecef; }
.hero a.primary { background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.55); }
.hero-link { color: #fff; font-size: .9rem; text-decoration: underline; }
#events { scroll-margin-top: 80px; }

/* ---------- split-screen login ---------- */
main.wide { max-width: none; padding: 0; }
.auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 62px); }
.auth-brand { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 48px 56px; color: #fff;
  background: radial-gradient(circle at 20% 15%, rgba(255,255,255,.2), transparent 50%), linear-gradient(150deg, #e0556b 0%, #c03e54 55%, #8f2f6f 100%); }
.auth-brand img { border-radius: 16px; background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.auth-brand h2 { font-size: 2rem; margin: 18px 0 8px; line-height: 1.15; }
.auth-brand p { max-width: 360px; opacity: .92; margin: 0; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.auth-form .auth { margin: 0; width: 100%; max-width: 390px; border: 0; background: transparent; padding: 0; }
.auth-form .auth h1 { font-size: 1.7rem; }
.auth-form .auth .primary { padding: 13px 22px; }
@media (max-width: 760px) {
  .auth-split { grid-template-columns: 1fr; min-height: 0; }
  .auth-brand { padding: 28px 24px; align-items: center; text-align: center; }
  .auth-brand img { width: 48px; height: 48px; }
  .auth-brand h2 { font-size: 1.4rem; margin: 10px 0 4px; }
  .auth-brand p { display: none; }
  .auth-form { padding: 24px 20px 48px; }
}

@media (max-width: 560px) {
  header { padding: 12px 14px; }
  .brand { font-size: 1rem; }
  nav a, nav button { padding: 6px 8px; font-size: .85rem; }
  .hero h1 { font-size: 1.7rem; }
}
