/* LBE-Club – dark nightlife theme (from the redesign mockup) */
:root {
  --bg: #0E0C11;
  --surface: #18151D;
  --surface-2: #231E2A;
  --line: #2A2531;
  --line-strong: #4A4253;
  --text: #F4EFF6;
  --text-soft: #D9D1DE;
  --muted: #ADA3B5;
  --accent: #E2B66E;
  --accent-hover: #F0CF94;
  --on-accent: #1A1408;
  --accent-tint: #1A1610;
  --radius: 20px;
  --font-body: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-display: "Frank Ruhl Libre", Georgia, serif;
  --bottom-nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
.muted { color: var(--muted); }

.skip-link { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip-link:focus { inset-inline-start: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(14, 12, 17, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: 1px; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); }
.brand:hover { color: var(--text); }
.top-nav { display: none; gap: 28px; }
.top-nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.top-nav a:hover, .top-nav a.active { color: var(--text); }
.top-nav a.active { box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 4px; }

.icon-button { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line); background: transparent; color: var(--text); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; flex: none; }
.icon-button:hover { color: var(--accent); border-color: var(--line-strong); }

/* Hero */
.hero { padding-top: 28px; padding-bottom: 20px; display: flex; flex-direction: column; gap: 12px; }
.hero h1 { font-family: var(--font-display); font-size: clamp(32px, 6vw, 52px); line-height: 1.15; font-weight: 700; }
.hero-small h1 { font-size: clamp(28px, 5vw, 40px); }
.lead { font-size: 17px; color: var(--muted); max-width: 640px; }
.trust { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: 6px; }

/* Region chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-top: 4px; padding-bottom: 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; display: inline-flex; align-items: center; font-size: 14px; }
.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip-on, .chip-on:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }

/* Sections */
.section { padding-top: 12px; padding-bottom: 20px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.section-head h2 { font-size: 22px; font-weight: 700; }

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

/* Card */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-featured { border-color: rgba(226, 182, 110, .55); }
.card-media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.date-badge { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--bg); color: var(--text); border-radius: 12px; padding: 6px 10px; text-align: center; line-height: 1.1; display: flex; flex-direction: column; }
.date-day { font-size: 12px; color: var(--muted); }
.date-num { font-size: 20px; font-weight: 700; }
.media-pill { position: absolute; top: 12px; inset-inline-end: 12px; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { font-size: 18px; font-weight: 700; line-height: 1.3; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: 4px; }
.card-excerpt { font-size: 14px; color: var(--text-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 4px; }
.perk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--accent); }

.grid-compact .card-media { aspect-ratio: 4 / 3; }
.grid-compact .card-title { font-size: 16px; }

/* Pills and buttons */
.pill { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--muted); }
.pill-accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
.pill-muted { background: var(--surface-2); color: var(--text-soft); }

.btn { min-height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-outline:hover { background: var(--accent-tint); color: var(--accent-hover); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--line-strong); color: var(--text); }

/* Notices and channels */
.notice { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; margin-block: 8px 16px; }
.notice h2 { font-size: 18px; }
.channels { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.channels-head { display: flex; align-items: center; gap: 10px; color: var(--accent); }
.channels-head h2 { font-size: 18px; color: var(--text); }
.channel-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.past-link { display: flex; justify-content: center; padding-bottom: 32px; }

/* Party page */
.party-media { position: relative; background: var(--surface-2); max-height: 62vh; overflow: hidden; }
.party-media img { width: 100%; max-height: 62vh; object-fit: cover; }
.media-back { position: absolute; top: 16px; inset-inline-start: 16px; background: var(--bg); border-color: transparent; }
.party-body { padding-top: 24px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 18px; max-width: 820px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills:empty { display: none; }
.party-title { font-family: var(--font-display); font-size: clamp(28px, 5vw, 42px); line-height: 1.2; font-weight: 700; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.fact-label { font-size: 13px; color: var(--muted); }
.fact-value { font-size: 16px; font-weight: 700; }
.fact-sub { font-size: 14px; color: var(--muted); }
.party-section { display: flex; flex-direction: column; gap: 12px; }
.party-section h2 { font-size: 20px; font-weight: 700; }
.description { color: var(--text-soft); font-size: 16px; line-height: 1.7; display: flex; flex-direction: column; gap: 12px; overflow-wrap: anywhere; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.step-num { width: 28px; height: 28px; border-radius: 14px; border: 1px solid var(--accent); color: var(--accent); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.perk-box { border: 1px solid var(--accent); background: var(--accent-tint); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.perk-head { display: flex; align-items: center; gap: 10px; }
.perk-head h2 { font-size: 18px; }

/* Sticky contact bar */
.cta-bar { position: fixed; inset-inline: 0; bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); background: #121016; border-top: 1px solid var(--line); z-index: 25; }
.cta-row { display: flex; gap: 10px; padding-block: 12px; }
.cta-row .btn { flex: 1; padding-inline: 12px; }
.has-cta { padding-bottom: 72px; }

/* Pager */
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button.on { color: var(--accent); border-color: var(--accent); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.hide-phone { display: none; }

/* Forms */
.page-narrow { max-width: 560px; }
.page-mid { max-width: 820px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-size: 14px; font-weight: 500; color: var(--text-soft); }
.field .hint { font-size: 13px; color: var(--muted); }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=date],
.field input[type=time], .field input[type=url], .field input[type=tel], .field input[type=number], .field textarea, .field input[type=file] {
  width: 100%; min-height: 46px; background: var(--bg); color: var(--text); border: 1px solid var(--line-strong);
  border-radius: 12px; padding: 10px 14px; font: inherit; font-size: 16px;
}
.field input[type=file] { padding: 10px; }
.field textarea { min-height: 200px; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(226, 182, 110, .2); }
.field input[type=date], .field input[type=time] { color-scheme: dark; }
.field-error, .field .field-validation-error { color: #FF9C8A; font-size: 13px; }
.input-validation-error { border-color: #FF9C8A !important; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-soft); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 14px; padding: 12px 16px; font-size: 15px; border: 1px solid var(--line-strong); background: var(--surface-2); }
.alert-error { border-color: rgba(255, 156, 138, .6); background: #2A1714; color: #FFD3CA; }
.alert-ok { border-color: rgba(155, 226, 155, .5); background: #142415; color: #CFF5CF; }
.alert ul { margin: 6px 0 0; padding-inline-start: 18px; }
.current-image { display: flex; gap: 12px; align-items: center; }
.current-image img { width: 120px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.danger-zone { border: 1px solid rgba(255, 156, 138, .4); border-radius: var(--radius); padding: 16px 20px; }
.danger-zone summary { cursor: pointer; color: #FFB4A6; font-weight: 500; }
.btn-danger { background: #B4412F; color: #fff; }
.btn-danger:hover { background: #C9513E; color: #fff; }

/* Event lists in the account and admin pages */
.event-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.event-row { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; gap: 12px; align-items: center; }
.event-row img { width: 72px; height: 54px; object-fit: cover; border-radius: 10px; flex: none; background: var(--surface-2); }
.event-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.event-row-title { font-weight: 700; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-row-meta { font-size: 13px; color: var(--muted); }
.event-row-actions { display: flex; gap: 6px; flex: none; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.status-list { list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.badge-off { color: #FFB4A6; }
.badge-on { color: #9BE29B; }

.form-section { font-size: 18px; margin-top: 8px; }
.flash { padding-top: 16px; }

/* Organizer statistics and promotion */
.event-row-stats { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13px; color: var(--text-soft); }
.event-row-stats b { color: var(--accent); font-weight: 700; }
.event-row-actions { flex-wrap: wrap; justify-content: flex-start; }
@media (max-width: 639px) {
  .event-row { flex-wrap: wrap; }
  .event-row-main { flex-basis: calc(100% - 84px); }
  .event-row-actions { width: 100%; padding-inline-start: 84px; }
}
.event-row-actions form { display: contents; }
.pill-xs { padding: 1px 8px; font-size: 11px; margin-inline-end: 6px; vertical-align: 2px; }
.fact-value.big { font-size: 26px; color: var(--accent); }
.owner-box { border: 1px dashed var(--accent); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--accent-tint); }
.owner-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; color: var(--text-soft); }
.owner-stats b { color: var(--accent); font-size: 18px; }
.promo-box { border: 1px solid var(--accent); background: var(--accent-tint); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.promo-star { font-size: 22px; }
.promo-list { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 4px; color: var(--text-soft); }
.promo-price { font-size: 20px; color: var(--accent); }
.pay-options { display: flex; flex-direction: column; gap: 14px; }
.pay-option { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.pay-option .hint { font-size: 13px; color: var(--muted); }
.pay-result { text-align: center; align-items: center; }
.table-wrap { overflow-x: auto; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filter-chips .chip { gap: 6px; }
.chip-on .muted { color: inherit; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { text-align: start; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table th { color: var(--muted); font-weight: 500; }
.field select, .select { width: 100%; min-height: 46px; background: var(--bg); color: var(--text); border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px 14px; font: inherit; font-size: 16px; }

/* Ad banners (always labeled) */
.ad-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.ad-label { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 1; background: rgba(14, 12, 17, .85); color: var(--muted); font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); }
.ad-link { display: flex; flex-direction: column; text-decoration: none; color: var(--text); height: 100%; }
.ad-link img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface-2); }
.ad-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.ad-title { font-weight: 700; font-size: 16px; }
.ad-text { font-size: 14px; color: var(--muted); }
.ad-link:hover .ad-title { color: var(--accent); }
@media (min-width: 640px) {
  .ad-wide .ad-link { flex-direction: row; align-items: center; }
  .ad-wide .ad-link img { width: 38%; max-width: 260px; aspect-ratio: 16 / 10; flex: none; }
  .ad-wide .ad-label { inset-inline-end: auto; inset-inline-start: 10px; }
}

/* Text pages (about, terms, privacy) */
.prose { max-width: 760px; color: var(--text-soft); font-size: 16px; line-height: 1.8; display: flex; flex-direction: column; gap: 14px; padding-bottom: 32px; }
.prose h2 { color: var(--text); font-size: 20px; margin-top: 12px; }
.prose ul { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose .updated { font-size: 13px; color: var(--muted); }
.contact-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 24px; padding-block: 24px; font-size: 13px; color: var(--muted); }
.site-footer p + p { margin-top: 4px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 12px; }
.footer-links a { color: var(--text-soft); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

/* Bottom navigation (phones) */
.bottom-nav { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #121016; border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); min-height: var(--bottom-nav-h); }
.bottom-nav a { min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: 12px; text-decoration: none; }
.bottom-nav a.active { color: var(--accent); }

@media (min-width: 640px) {
  .hide-phone { display: inline-flex; }
  .form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .form-card { padding: 28px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .top-nav { display: flex; gap: 22px; }
  .phone-only { display: none !important; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .grid-compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero { padding-top: 48px; padding-bottom: 28px; }
  .cta-bar { bottom: 0; }
  .cta-row { max-width: 820px; }
  .cta-row .btn { flex: 0 1 auto; padding-inline: 24px; }
  .party-media, .party-media img { max-height: 460px; }
}

/* /diag (development only) */
.diag { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.diag h1 { font-size: 26px; }
.diag h2 { font-size: 18px; margin-top: 16px; }
.diag pre { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; margin: 0; }
.diag-err { color: #FF9C8A; }
.diag-ok { color: #9BE29B; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
