:root {
  --gold: #c79a2e;
  --gold-dark: #9c7a1f;
  --gold-light: #f6e9c8;
  --ink: #2b2620;
  --muted: #6b6459;
  --bg: #fffdf8;
  --card: #ffffff;
  --border: #ece2cc;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(120, 96, 30, 0.08);
  --success: #2e7d32;
  --danger: #c0392b;
  --warn: #b8860b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
h1, h2, h3, h4 { font-family: Georgia, 'Times New Roman', serif; margin: 0 0 .5em; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
img { max-width: 100%; display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: .2s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #fff; box-shadow: 0 6px 16px rgba(199,154,46,.35); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(199,154,46,.45); }
.btn-outline { background: transparent; border-color: var(--gold); color: var(--gold-dark); }
.btn-outline:hover { background: var(--gold-light); }
.btn-light { background: #fff; color: var(--gold-dark); }
.btn-sm { padding: 7px 14px; font-size: .82rem; border-radius: 8px; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; background: #fffef9f2; backdrop-filter: blur(6px); border-bottom: 1px solid var(--border); z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-badge { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg,var(--gold),var(--gold-dark)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: Georgia, serif; }
.brand-logo-img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #fff; border: 1px solid var(--border); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { font-weight: 500; color: var(--ink); }
.main-nav a:hover { color: var(--gold-dark); }
.nav-cta { padding: 10px 22px !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { width: 24px; height: 2px; background: var(--ink); display: block; }

@media (max-width: 860px) {
  .hamburger { display: flex; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; gap: 0; border-bottom: 1px solid var(--border); max-height: 0; overflow: hidden; transition: max-height .25s ease; }
  .main-nav.open { max-height: 320px; }
  .main-nav a { padding: 14px 20px; width: 100%; border-top: 1px solid var(--border); }
  .nav-cta { margin: 14px 20px; width: calc(100% - 40px); }
}

/* ---------- Hero Slider ---------- */
.hero-slider { position: relative; overflow: hidden; background: var(--ink); }
.slide { position: relative; display: none; min-height: 480px; align-items: center; color: #fff; background-size: cover; background-position: center; }
.slide.active { display: flex; }
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(20,16,8,.82), rgba(20,16,8,.45)); }
.slide-content { position: relative; z-index: 2; padding: 90px 20px; max-width: 640px; margin: 0 auto; width: 100%; }
.slide-eyebrow { color: var(--gold-light); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 700; }
.slide-content h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 12px 0; }
.slide-meta { display: flex; gap: 20px; flex-wrap: wrap; margin: 18px 0 28px; font-size: .92rem; color: #f1e6c8; }
.slider-controls { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 16px; z-index: 3; }
.slider-controls button { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.4); color: #fff; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
.slider-dots { position: absolute; bottom: 18px; width: 100%; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.slider-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,.45); cursor: pointer; }
.slider-dots button.active { background: var(--gold); width: 22px; border-radius: 6px; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: #fbf6e8; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-eyebrow { color: var(--gold-dark); text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; font-weight: 700; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 24px; margin-top: 40px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card .icon { width: 46px; height: 46px; border-radius: 10px; background: var(--gold-light); color: var(--gold-dark); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 14px; }

/* ---------- Registration CTA ---------- */
.cta-band { background: linear-gradient(135deg, var(--gold-dark), var(--gold)); color: #fff; border-radius: 20px; padding: 56px 32px; text-align: center; margin: 0 20px; }
.cta-band h2 { color: #fff; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.status-badge { display: inline-block; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.5); padding: 6px 16px; border-radius: 999px; font-size: .82rem; margin-bottom: 14px; }

/* ---------- Organizer / Contact ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.info-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; }
.info-list li { display: flex; gap: 10px; }
.info-list b { color: var(--gold-dark); min-width: 64px; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); height: 320px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Forms ---------- */
.form-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); max-width: 760px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: .87rem; font-weight: 600; }
label .req { color: var(--danger); }
input, select, textarea {
  padding: 11px 13px; border: 1px solid var(--border); border-radius: 8px; font-size: .95rem;
  font-family: inherit; background: #fffefb;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.field-error { color: var(--danger); font-size: .8rem; }
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: .92rem; }
.alert-error { background: #fdecea; color: var(--danger); border: 1px solid #f6c6c0; }
.alert-success { background: #eaf6ea; color: var(--success); border: 1px solid #c8e6c9; }
.alert-info { background: #fff7e0; color: var(--warn); border: 1px solid #f2dfa0; }

/* ---------- Success / Verify ---------- */
.success-box { max-width: 640px; margin: 0 auto; text-align: center; }
.success-icon { width: 74px; height: 74px; border-radius: 50%; background: #eaf6ea; color: var(--success); display: flex; align-items: center; justify-content: center; font-size: 2.2rem; margin: 0 auto 20px; }
.detail-table { width: 100%; border-collapse: collapse; margin: 26px 0; text-align: left; }
.detail-table td { padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: .92rem; }
.detail-table td:first-child { color: var(--muted); width: 45%; }
.regid-box { background: var(--gold-light); border: 1px dashed var(--gold); border-radius: 10px; padding: 16px; font-size: 1.3rem; font-weight: 700; letter-spacing: .05em; color: var(--gold-dark); margin: 18px 0; }

/* ---------- Footer ---------- */
.site-footer { background: #211c14; color: #d9d0bd; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 32px; padding: 56px 20px 30px; }
.footer-grid h4 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-brand { color: #fff; margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner { display: flex; justify-content: space-between; padding: 16px 20px; font-size: .8rem; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: var(--gold); }

/* ---------- Admin ---------- */
.admin-shell { display: flex; min-height: 100vh; background: #f6f3ea; }
.admin-sidebar { width: 230px; background: #201b12; color: #ddd3b8; flex-shrink: 0; }
.admin-sidebar .brand-badge { background: var(--gold); }
.admin-sidebar-inner { padding: 22px 16px; position: sticky; top: 0; }
.admin-nav { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 4px; }
.admin-nav a { display: block; padding: 11px 14px; border-radius: 8px; color: #cfc4a3; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(199,154,46,.18); color: #fff; }
.admin-main { flex: 1; padding: 28px 30px; min-width: 0; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 18px; margin-bottom: 30px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stat-card .num { font-size: 1.8rem; font-weight: 700; color: var(--gold-dark); }
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 24px; overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 920px; }
table.data-table th, table.data-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data-table th { color: var(--muted); text-transform: uppercase; font-size: .72rem; letter-spacing: .05em; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.badge-pending { background: #fff3cd; color: #8a6d00; }
.badge-approved { background: #d9efd9; color: var(--success); }
.badge-rejected { background: #fbe0dd; color: var(--danger); }
.action-links { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.action-links a, .action-links button { font-size: .78rem; color: var(--gold-dark); background: none; border: none; cursor: pointer; padding: 0; }
.action-links .danger { color: var(--danger); }
.action-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 5px 11px; border-radius: 999px; font-size: .74rem; font-weight: 600;
  border: 1px solid var(--border); background: #fff; color: var(--ink); white-space: nowrap;
  transition: .15s ease;
}
.action-btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.action-btn-reject { background: #fdecea; color: var(--danger); border-color: #f6c6c0; }
.action-btn-reject:hover { background: #fbdedb; color: var(--danger); }
.action-btn-unreject { background: #fff7e0; color: var(--warn); border-color: #f2dfa0; }
.action-btn-delete { background: var(--danger); color: #fff; border-color: var(--danger); }
.action-btn-delete:hover { background: #a5362a; color: #fff; }

/* Approve toggle switch */
.approve-toggle { display: inline-flex; align-items: center; gap: 6px; }
.approve-toggle .switch-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.switch { position: relative; display: inline-block; width: 38px; height: 21px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; cursor: pointer; inset: 0; background-color: #ddd2ab; border-radius: 34px; transition: .2s; }
.switch .slider::before { content: ""; position: absolute; height: 15px; width: 15px; left: 3px; bottom: 3px; background-color: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.switch input:checked + .slider { background-color: var(--success); }
.switch input:checked + .slider::before { transform: translateX(17px); }
.filters-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.filters-bar select, .filters-bar input { padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; }
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#211c14,#3a2f1a); padding: 20px; }
.login-card { background: #fff; border-radius: 16px; padding: 40px; width: 100%; max-width: 380px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
