:root {
  --font-ui: "Trebuchet MS", "Segoe UI", sans-serif;
  --font-size-100: 0.88rem;
  --font-size-200: 1rem;
  --font-size-300: 1.12rem;
  --font-size-400: clamp(1.35rem, 2.4vw, 1.75rem);
  --font-size-500: clamp(1.7rem, 3.5vw, 2.8rem);

  --bg: #0f1722;
  --bg-soft: #121f2f;
  --surface: #1a2b40;
  --surface-soft: #223650;
  --text: #eef4ff;
  --muted: #b9c8de;
  --primary: #f0a62d;
  --primary-strong: #d78f1a;
  --danger: #c9353f;
  --radius: 18px;
  --space-1: 0.4rem;
  --space-2: 0.7rem;
  --space-3: 1rem;
  --space-4: 1.4rem;
  --space-5: 2rem;
  --shadow: 0 18px 40px rgba(2, 7, 15, 0.35);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-ui); background: radial-gradient(1200px 500px at 50% -20%, #223650 0%, var(--bg) 65%); color: var(--text); font-size: 16px; }
.container { width: min(1120px, 92vw); margin: 0 auto; padding: 1rem 0 3rem; }
.row { display: flex; gap: .75rem; }
.between { justify-content: space-between; }
.center { align-items: center; }
.stack { display: grid; gap: .8rem; }

.card { background: linear-gradient(160deg, var(--surface), var(--surface-soft)); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.grid { display: grid; }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap-md { gap: 1rem; }

.btn { border: 0; background: var(--primary); color: #1c1405; font-weight: 700; letter-spacing: .01em; padding: .65rem 1rem; border-radius: 12px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--primary-strong); }
.btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: var(--text); }
.btn-sm { font-size: var(--font-size-100); padding: .45rem .65rem; }

input, textarea, select { width: 100%; padding: .65rem .75rem; border: 1px solid rgba(255,255,255,0.2); border-radius: 10px; background: rgba(8, 14, 22, 0.45); color: var(--text); }
label { display: grid; gap: .4rem; font-weight: 600; }

.alert { padding: .65rem .8rem; border-radius: 10px; }
.alert-error { background: #f9d7db; color: #6f1017; }
.alert:not(.alert-error) { background: #dff4e5; color: #134b24; }
.badge { display: inline-block; background: rgba(240, 166, 45, 0.18); color: #ffd389; border: 1px solid rgba(240,166,45,0.4); border-radius: 999px; padding: .2rem .65rem; font-size: .8rem; }

.table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.table th, .table td { text-align: left; padding: .7rem; border-bottom: 1px solid rgba(255,255,255,0.08); vertical-align: top; }

.site-header { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(12px); background: rgba(8, 12, 18, 0.88); border-bottom: 1px solid rgba(255,255,255,0.08); }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; letter-spacing: .03em; }
.brand-mark { font-size: 1.4rem; }
.main-nav { flex-wrap: wrap; justify-content: flex-end; }
.site-header nav a { text-decoration: none; color: #dde8fa; padding: .5rem .72rem; border-radius: 10px; font-size: .95rem; }
.site-header nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }

.hero { margin: 1.25rem 0 1.6rem; padding: 2.2rem; background: linear-gradient(145deg, rgba(240,166,45,0.12), rgba(20,33,49,0.72)); }
.kicker { margin: 0; color: #ffd389; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .82rem; }
.hero h1 { font-size: var(--font-size-500); margin: 0 0 .7rem; }
.hero p { color: var(--muted); max-width: 70ch; }
.hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1rem; }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin: 1.5rem 0 .8rem; }
.section-head h2 { margin: 0; }

h1, h2, h3 { line-height: 1.2; }
h2 { font-size: var(--font-size-400); }
h3 { font-size: var(--font-size-300); }
p { line-height: 1.6; }

.feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.feature-list .card h3 { margin-top: .1rem; }
.prose p { line-height: 1.65; color: #d4e0f2; }

a { color: #ffd389; }
a:hover { color: #ffe0a7; }

.event-card { border-left: 4px solid var(--primary); }
.event-card h3 { margin: .3rem 0 .4rem; font-size: 1.18rem; }
.meta-line { color: var(--muted); font-size: .95rem; }
.event-date { font-weight: 700; color: #ffd389; }
.event-actions { margin-top: .85rem; display: flex; gap: .55rem; }

.admin-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar { background: #102847; color: #f1f6ff; padding: 1rem; display: grid; align-content: start; gap: 1rem; }
.admin-sidebar nav { display: grid; gap: .4rem; }
.admin-sidebar a { color: #f1f6ff; text-decoration: none; padding: .5rem .6rem; border-radius: 8px; }
.admin-sidebar a:hover { background: rgba(255, 255, 255, 0.12); }
.admin-content { padding: 1rem; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.gallery-grid img { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; }
.gallery-tile { display: block; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.gallery-tile:hover { transform: translateY(-4px); box-shadow: 0 22px 38px rgba(2,7,15,.46); }
.gallery-tile img { height: 190px; border-radius: 12px; }

.contact-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1rem; }
.contact-note { color: var(--muted); }

.page-header { margin: 1.2rem 0 1rem; }
.page-header h1 { margin: 0 0 .4rem; }
.page-header p { margin: 0; color: var(--muted); }

.site-footer { border-top: 1px solid rgba(255,255,255,0.08); color: var(--muted); padding: 1.1rem 0 2rem; }

.auth-page { display: grid; place-items: center; min-height: 100vh; }
.auth-card { width: min(420px, 92vw); }

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .hero { padding: 1.3rem; }
  .site-header .container { align-items: flex-start; }
  .contact-wrap { grid-template-columns: 1fr; }
}
