:root {
  --bg: #070708;
  --bg-soft: #101014;
  --card: rgba(15, 15, 18, 0.94);
  --card-2: rgba(24, 24, 31, 0.98);
  --text: #f5f2ed;
  --muted: #c8c2ba;
  --accent: #d2b074;
  --accent-2: #8b1e24;
  --accent-3: #4b0f14;
  --border: #2d2a29;
  --shadow: rgba(0, 0, 0, 0.46);
  --success: #2f6e4e;
  --danger: #a53439;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top, rgba(139, 30, 36, 0.18) 0%, rgba(139, 30, 36, 0) 26%),
    radial-gradient(circle at 20% 20%, rgba(210, 176, 116, 0.12) 0%, rgba(210, 176, 116, 0) 24%),
    linear-gradient(180deg, #060607 0%, #0a0a0c 45%, #080809 100%);
  color: var(--text);
  min-height: 100vh;
}
a { color: #e7c994; text-decoration: none; }
a:hover { text-decoration: underline; }
.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.03) 0%, rgba(255,255,255,0) 16%),
              radial-gradient(circle at center, rgba(255,255,255,.025) 0%, rgba(255,255,255,0) 55%);
}
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(8, 8, 10, 0.7);
  border-bottom: 1px solid rgba(210, 176, 116, 0.16);
}
.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}
.logo-link { flex: 0 0 auto; }
.festival-logo {
  width: min(30vw, 330px);
  min-width: 190px;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.55));
}
.brand-copy h1 {
  margin: 0;
  font-size: clamp(1.6rem, 2.2vw, 2.3rem);
  letter-spacing: 0.04em;
}
.eyebrow {
  margin: 0 0 8px;
  font-size: .78rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
}
.subtitle {
  margin: 6px 0 0;
  color: var(--muted);
}
.top-nav { display: flex; gap: 16px; flex-wrap: wrap; }
.top-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(210, 176, 116, 0.22);
  background: rgba(255,255,255,.03);
}
.main-shell { padding-top: 32px; padding-bottom: 36px; }
.card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.02) 0%, rgba(255,255,255,0) 16%),
    linear-gradient(180deg, rgba(18,18,22,.96) 0%, rgba(11,11,14,.96) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 22px 48px var(--shadow), inset 0 1px 0 rgba(255,255,255,0.04);
}
.metal-ornament {
  position: relative;
  overflow: hidden;
}
.metal-ornament::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(210,176,116,.28), rgba(255,255,255,.03), rgba(139,30,36,.25));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.narrow { max-width: 500px; margin: 34px auto; }
.login-card { text-align: center; }
.lead { max-width: 60ch; }
.hero-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.hero-kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .8rem;
  color: var(--accent);
}
.hero-badge {
  flex: 0 0 auto;
  min-width: 150px;
  text-align: center;
  border-radius: 18px;
  padding: 18px 16px;
  background: linear-gradient(180deg, rgba(210,176,116,.16) 0%, rgba(139,30,36,.18) 100%);
  border: 1px solid rgba(210,176,116,.24);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }
h2 { margin-top: 0; font-size: clamp(1.5rem, 2vw, 2rem); }
.grid-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.stack-form { display: grid; gap: 16px; text-align: left; }
.full { grid-column: 1 / -1; }
label span { display: block; margin-bottom: 8px; font-weight: 700; }
input, select, textarea, button {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(210,176,116,.18);
  padding: 13px 14px;
  font-size: 1rem;
}
input, select, textarea {
  background: linear-gradient(180deg, #0b0b0f 0%, #15151b 100%);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(210,176,116,.5);
  box-shadow: 0 0 0 3px rgba(210,176,116,.12);
}
textarea { resize: vertical; }
button, .button-secondary {
  display: inline-block;
  width: auto;
  color: #160f05;
  font-weight: 800;
  cursor: pointer;
  border: none;
  padding: 13px 18px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
button {
  background: linear-gradient(180deg, #e1c28d 0%, #b88f56 100%);
  box-shadow: 0 10px 24px rgba(0,0,0,.3);
}
.button-secondary {
  background: linear-gradient(180deg, #2f313b 0%, #1f2027 100%);
  color: var(--text);
  border-radius: 14px;
  border: 1px solid rgba(210,176,116,.16);
}
button.danger { background: linear-gradient(180deg, #bb4a4f 0%, #7b1f24 100%); color: white; }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
}
.checkbox input { width: auto; transform: scale(1.15); accent-color: var(--accent); }
.checkbox span { margin: 0; font-weight: 600; }
.checkbox-card, .consent-card {
  border: 1px solid rgba(210,176,116,.14);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255,255,255,.025);
}
.checkbox-block { align-items: flex-start; }
.flash-wrap { margin-bottom: 16px; }
.flash {
  border-radius: 14px;
  padding: 13px 15px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
}
.flash.success { background: rgba(47,110,78,.26); }
.flash.error { background: rgba(165,52,57,.2); }
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.filter-form { display: flex; gap: 12px; flex-wrap: wrap; }
.filter-form input, .filter-form select { width: auto; min-width: 180px; }
.export-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.table-card { overflow: hidden; }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}
.status-hint {
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid rgba(210,176,116,.18);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-size: .95rem;
}
.status-hint.ok { color: #b7e3cb; }
.status-hint.warn { color: #f0c8b9; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 1040px; }
th, td {
  padding: 12px;
  border-bottom: 1px solid rgba(210,176,116,.1);
  text-align: left;
  vertical-align: top;
}
th { background: rgba(255,255,255,.03); }
.status-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(210,176,116,.12);
  border: 1px solid rgba(210,176,116,.2);
}
.edit-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}
@media (max-width: 980px) {
  .header-shell, .hero-panel, .section-head, .edit-head { flex-direction: column; align-items: flex-start; }
  .header-brand { flex-direction: column; align-items: flex-start; }
  .festival-logo { width: min(68vw, 360px); }
}
@media (max-width: 800px) {
  .grid-form { grid-template-columns: 1fr; }
  .filter-form input, .filter-form select { width: 100%; min-width: 0; }
  .card { padding: 22px; border-radius: 20px; }
  .container { padding: 0 14px; }
}
