/* ============================
   DESIGN SYSTEM — EVENT REGISTRATION (Mobile-First)
   ============================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800&family=Poppins:wght@400;500;600&display=swap');

:root {
  --bg-primary: #F9F9F4;      /* Soft matchaji cream */
  --bg-secondary: #FFFFFF;    /* Pure white */
  --bg-card: #FFFFFF;
  --bg-card-hover: #F2F6ED;
  --border: #E2E8D8;
  --border-focus: #5A7E4F;

  /* We keep the variable names for structural compatibility, but map them to Matcha colors */
  --violet: #5A7E4F;          /* Main Matcha Green */
  --violet-light: #74A066;    /* Lighter Matcha */
  --violet-dark: #3E5B35;     /* Darker Matcha */
  --cyan: #96B581;            /* Soft sage accent */
  --cyan-light: #AAC797;
  --green: #2B8A3E;           /* Success green */
  --green-light: #40C057;
  --amber: #E67700;
  --red: #E03131;

  --text-primary: #2C3527;    /* Charcoal green */
  --text-secondary: #5C6955;
  --text-muted: #8E9B85;

  --gradient-primary: linear-gradient(135deg, #5A7E4F, #7EB06D);
  --gradient-hero: linear-gradient(135deg, #EBF0E3 0%, #F9F9F4 100%);
  --gradient-card: #FFFFFF;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-glow: 0 4px 15px rgba(90, 126, 79, 0.15);
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-elevated: 0 8px 30px rgba(0, 0, 0, 0.06);

  --touch-target: 48px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Mobile safe areas */
  --bottom-nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--border); }
::-webkit-scrollbar-thumb { background: var(--violet); border-radius: 3px; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5 { font-family: 'Montserrat', sans-serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: var(--text-primary); }
h1 { font-size: clamp(1.75rem, 6vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 4vw, 2rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p { color: var(--text-secondary); }
a { color: var(--violet); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--violet-light); }

/* ---- LAYOUT ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.container-sm { max-width: 680px; margin: 0 auto; padding: 0 1rem; }

/* ---- NAVBAR (Public) ---- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 7, 15, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem;
}
.navbar-brand {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 1rem; font-weight: 800;
  background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  flex-shrink: 0;
}
.navbar-brand .icon { font-size: 1.2rem; -webkit-text-fill-color: initial; }

/* Desktop nav links */
.navbar-links { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 640px) {
  .navbar-links { display: flex; }
}
.navbar-links a {
  color: var(--text-secondary); font-size: 0.875rem; font-weight: 500;
  padding: 0.5rem 0.9rem; border-radius: var(--radius-sm);
  min-height: var(--touch-target); display: flex; align-items: center;
  transition: var(--transition);
}
.navbar-links a:hover, .navbar-links a.active { color: var(--text-primary); background: var(--bg-card); }

/* Hamburger (mobile only) */
.hamburger {
  display: flex; flex-direction: column; gap: 4px; cursor: pointer;
  padding: 0.5rem; border: none; background: var(--bg-card); border-radius: var(--radius-sm);
  width: 40px; height: 40px; align-items: center; justify-content: center;
}
.hamburger span { display: block; width: 20px; height: 2px; background: var(--text-primary); transition: var(--transition); border-radius: 2px; }
@media (min-width: 640px) { .hamburger { display: none; } }

/* Mobile Drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: var(--transition);
}
.mobile-drawer.open { opacity: 1; pointer-events: all; }
.mobile-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 75vw; max-width: 300px;
  background: var(--bg-secondary); border-left: 1px solid var(--border);
  padding: 2rem 1.25rem;
  transform: translateX(100%); transition: var(--transition-slow);
  display: flex; flex-direction: column; gap: 0.25rem;
}
.mobile-drawer.open .mobile-drawer-panel { transform: translateX(0); }
.mobile-drawer-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.9rem 1rem; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 1rem; font-weight: 500;
  min-height: var(--touch-target); text-decoration: none;
  transition: var(--transition);
}
.mobile-drawer-link:hover, .mobile-drawer-link.active {
  background: var(--bg-card); color: var(--text-primary);
}
.mobile-drawer-link.active { color: var(--violet-light); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0 1.5rem; height: var(--touch-target);
  font-size: 0.9rem; font-weight: 600;
  border-radius: var(--radius-sm); border: none; cursor: pointer;
  transition: var(--transition); white-space: nowrap; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
  background: var(--gradient-primary); color: #fff;
  box-shadow: 0 4px 15px rgba(90, 126, 79, 0.25);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 25px rgba(124,58,237,0.5); color: #fff; }
.btn-primary:active:not(:disabled) { transform: scale(0.97); }
.btn-outline { background: transparent; color: var(--text-primary); border: 1.5px solid var(--border); }
.btn-outline:hover { background: var(--bg-card); border-color: var(--border-focus); color: var(--violet-light); }
.btn-ghost { background: var(--bg-card); color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #dc2626; transform: translateY(-1px); color: #fff; }
.btn-danger:active:not(:disabled) { transform: scale(0.97); }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover:not(:disabled) { background: #059669; transform: translateY(-1px); color: #fff; }
.btn-amber { background: var(--amber); color: #000; font-weight: 700; }
.btn-amber:hover:not(:disabled) { background: #d97706; color: #000; transform: translateY(-1px); }
.btn-sm { height: 36px; padding: 0 0.9rem; font-size: 0.8rem; }
.btn-lg { height: 56px; padding: 0 2rem; font-size: 1rem; }
.btn-icon { padding: 0; width: var(--touch-target); height: var(--touch-target); border-radius: var(--radius-sm); }
.btn-full { width: 100%; }

/* ---- CARDS ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: var(--transition);
}
.card-glass { background: var(--gradient-card); backdrop-filter: blur(20px); }

/* ---- FORMS ---- */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-label { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); }
.form-label span { color: var(--red); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 0 1rem;
  height: var(--touch-target);
  background: #FFFFFF; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-family: inherit; font-size: 1rem;
  transition: var(--transition); outline: none;
}
.form-control:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(90,126,79,0.15); }
.form-control::placeholder { color: var(--text-muted); }
.form-control.error { border-color: var(--red); }
textarea.form-control { height: auto; padding: 0.75rem 1rem; resize: vertical; min-height: 110px; }
select.form-control { cursor: pointer; }
select.form-control option { background: #FFFFFF; color: #000; }
.form-hint { font-size: 0.78rem; color: var(--text-muted); }
.form-error { font-size: 0.78rem; color: var(--red); }

/* ---- BADGES ---- */
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.25rem 0.75rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; white-space: nowrap;
}
.badge-violet { background: rgba(124,58,237,0.2); color: var(--violet-light); }
.badge-cyan { background: rgba(6,182,212,0.15); color: var(--cyan-light); }
.badge-green { background: rgba(16,185,129,0.15); color: var(--green-light); }
.badge-amber { background: rgba(245,158,11,0.15); color: var(--amber); }
.badge-red { background: rgba(239,68,68,0.15); color: var(--red); }
.badge-gray { background: rgba(107,114,128,0.2); color: var(--text-muted); }

/* ---- STAT CARD ---- */
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem;
  display: flex; flex-direction: column; gap: 0.3rem;
}
.stat-icon { font-size: 1.6rem; margin-bottom: 0.25rem; }
.stat-value { font-size: 1.75rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---- TABLE (scrollable on mobile) ---- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
thead { background: rgba(255,255,255,0.03); }
th { padding: 0.75rem 0.9rem; text-align: left; font-size: 0.72rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--border); }
td { padding: 0.85rem 0.9rem; font-size: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tbody tr { transition: var(--transition); }
tbody tr:hover td { background: rgba(255,255,255,0.02); }

/* ---- STEPS ---- */
.steps-bar { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 2rem; }
.step-item { flex: 1; display: flex; }
.step-item:last-child { flex: 0 0 auto; }
.step-icon-col { display: flex; flex-direction: column; align-items: center; width: 80px; flex-shrink: 0; }
.step-circle {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700;
  border: 2px solid var(--border);
  background: var(--bg-secondary); color: var(--text-muted);
  flex-shrink: 0; transition: var(--transition);
}
.step-label { font-size: 0.7rem; color: var(--text-muted); font-weight: 600; margin-top: 0.35rem; text-align: center; display: none; }
@media (min-width: 400px) { .step-label { display: block; } }
.step-line { flex: 1; height: 2px; background: var(--border); transition: var(--transition); margin-top: 19px; margin-left: -10px; margin-right: -10px; z-index: 0; }
.step-item.active .step-circle { border-color: var(--violet); color: var(--violet-light); background: rgba(90,126,79,0.15); }
.step-item.done .step-circle { border-color: var(--violet); background: var(--violet); color: #fff; }
.step-item.done .step-line { background: var(--violet); }
.step-item.active .step-line { background: var(--violet-light); }

/* ---- MODAL ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(8px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0; opacity: 0; pointer-events: none;
  transition: var(--transition-slow);
}
@media (min-width: 640px) {
  .modal-overlay { align-items: center; padding: 1.5rem; }
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 1.5rem; width: 100%;
  max-height: 92vh; overflow-y: auto;
  transform: translateY(100%);
  transition: var(--transition-slow);
}
@media (min-width: 640px) {
  .modal { border-radius: var(--radius-xl); max-width: 700px; transform: translateY(20px) scale(0.97); }
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-handle {
  width: 36px; height: 4px; background: var(--border);
  border-radius: 2px; margin: 0 auto 1.25rem; display: block;
}
@media (min-width: 640px) { .modal-handle { display: none; } }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.modal-close {
  background: var(--bg-card); border: none; color: var(--text-muted);
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: var(--bg-card-hover); color: var(--text-primary); }

/* ---- TOAST ---- */
#toast-container {
  position: fixed; bottom: calc(var(--bottom-nav-h) + 0.75rem); right: 1rem;
  z-index: 9999; display: flex; flex-direction: column; gap: 0.5rem;
}
@media (min-width: 768px) {
  #toast-container { bottom: 1.5rem; right: 1.5rem; }
}
.toast {
  padding: 0.85rem 1.1rem; border-radius: var(--radius-md);
  background: var(--bg-secondary); border: 1px solid var(--border);
  color: var(--text-primary); font-size: 0.875rem; font-weight: 500;
  display: flex; align-items: center; gap: 0.6rem;
  box-shadow: var(--shadow-elevated); animation: toastIn 0.3s ease;
  max-width: 300px;
}
.toast.success { border-color: var(--green); }
.toast.error { border-color: var(--red); }
.toast.info { border-color: var(--violet); }
.toast.warning { border-color: var(--amber); }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }

/* ---- HERO ---- */
.hero {
  background: var(--gradient-hero);
  padding: 3rem 0 3rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -30%; left: -20%;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(90,126,79,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -20%; right: -10%;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(150,181,129,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(90,126,79,0.1); border: 1px solid rgba(90,126,79,0.2);
  color: var(--violet-dark); font-size: 0.8rem; font-weight: 600;
  padding: 0.35rem 1rem; border-radius: 999px; margin-bottom: 1rem;
}
.hero-title { margin-bottom: 0.75rem; }
.hero-title .highlight { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: 1rem; margin-bottom: 1.5rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-direction: column; }
@media (min-width: 400px) { .hero-actions { flex-direction: row; flex-wrap: wrap; } }

/* ---- EVENT CARDS ---- */
.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.5rem 0 3rem;
}
@media (min-width: 520px) { .events-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } }
@media (min-width: 900px) { .events-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); } }

.event-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden;
  transition: var(--transition-slow); cursor: pointer;
  display: flex; flex-direction: column;
  -webkit-tap-highlight-color: transparent;
}
.event-card:hover { border-color: rgba(124,58,237,0.4); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.event-card:active { transform: scale(0.98); }
.event-card-img {
  height: 160px; background: var(--gradient-card); overflow: hidden;
  position: relative;
}
@media (min-width: 640px) { .event-card-img { height: 180px; } }
.event-card-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-slow); }
.event-card:hover .event-card-img img { transform: scale(1.04); }
.event-card-img-placeholder {
  height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; color: var(--violet); opacity: 0.35;
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(6,182,212,0.05));
}
.event-card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: 0.6rem; }
.event-card-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.event-meta { display: flex; flex-direction: column; gap: 0.25rem; }
.event-meta-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--text-muted); }
.event-card-footer { padding: 0.9rem 1rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.event-price { font-size: 0.95rem; font-weight: 700; color: var(--violet-light); }
.event-price.free { color: var(--green-light); }

/* ---- GALLERY ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 0.5rem; }
@media (min-width: 400px) { .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); } }
.gallery-thumb {
  aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden;
  position: relative; cursor: pointer; border: 2px solid transparent; transition: var(--transition);
}
.gallery-thumb:hover { border-color: var(--violet); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb .remove-btn {
  position: absolute; top: 4px; right: 4px;
  background: rgba(0,0,0,0.75); border: none; color: #fff;
  width: 24px; height: 24px; border-radius: 50%; cursor: pointer;
  font-size: 0.7rem; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
}
.gallery-thumb:hover .remove-btn { opacity: 1; }
@media (hover: none) { .gallery-thumb .remove-btn { opacity: 1; } }

/* ---- RICHTEXT ---- */
.richtext-toolbar {
  display: flex; gap: 0.2rem; flex-wrap: wrap;
  padding: 0.4rem 0.5rem;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-bottom: none; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.richtext-toolbar button {
  background: none; border: none; color: var(--text-secondary);
  padding: 0.35rem 0.5rem; border-radius: 6px; cursor: pointer;
  font-size: 0.8rem; font-weight: 600; transition: var(--transition);
  min-width: 32px; min-height: 32px;
}
.richtext-toolbar button:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.richtext-editor {
  border: 1px solid var(--border); border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 1rem; min-height: 180px; outline: none;
  background: rgba(255,255,255,0.03); color: var(--text-primary);
  font-family: inherit; font-size: 0.9rem; line-height: 1.7;
}
.richtext-editor:focus { border-color: var(--violet); }

/* ---- TICKET ---- */
.ticket-wrap {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden;
  max-width: 420px; margin: 0 auto;
  box-shadow: var(--shadow-elevated);
}
.ticket-header {
  background: var(--gradient-primary); padding: 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
}
.ticket-body { padding: 1.5rem; }
.ticket-field { margin-bottom: 0.9rem; }
.ticket-field label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 600; }
.ticket-field p { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.ticket-divider { border: none; border-top: 2px dashed rgba(255,255,255,0.1); margin: 1.25rem 0; }
.ticket-qr { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.ticket-qr canvas, .ticket-qr img { border-radius: var(--radius-md); background: #fff; padding: 10px; }
.ticket-status {
  display: flex; align-items: center; gap: 0.5rem; justify-content: center;
  padding: 0.5rem 1.2rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700;
}
.ticket-status.pending { background: rgba(245,158,11,0.15); color: var(--amber); border: 1px solid rgba(245,158,11,0.3); }
.ticket-status.approved { background: rgba(16,185,129,0.15); color: var(--green-light); border: 1px solid rgba(16,185,129,0.3); }
.ticket-status.rejected { background: rgba(239,68,68,0.15); color: var(--red); border: 1px solid rgba(239,68,68,0.3); }
.ticket-status.free { background: rgba(16,185,129,0.15); color: var(--green-light); border: 1px solid rgba(16,185,129,0.3); }

/* ---- QR LOCKED (pending) ---- */
.qr-locked {
  width: 160px; height: 160px;
  background: rgba(255,255,255,0.05); border: 2px dashed var(--border);
  border-radius: var(--radius-md); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.5rem;
  color: var(--text-muted); font-size: 0.8rem; text-align: center;
  padding: 1rem;
}
.qr-locked .lock-icon { font-size: 2rem; }

/* ---- PAYMENT PENDING BANNER ---- */
.pending-banner {
  background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(245,158,11,0.05));
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: var(--radius-xl); padding: 2rem;
  text-align: center; margin-bottom: 1.5rem;
}
.pending-banner .pending-icon { font-size: 3rem; margin-bottom: 0.75rem; }
.pending-banner h2 { color: var(--amber); margin-bottom: 0.5rem; }

/* ---- ADMIN LAYOUT ---- */
.admin-layout { display: flex; min-height: 100vh; }

/* Sidebar (desktop only) */
.sidebar {
  width: 220px; background: var(--bg-secondary); border-right: 1px solid var(--border);
  padding: 1.25rem 0.75rem; display: none; flex-direction: column; gap: 0.2rem;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
@media (min-width: 768px) { .sidebar { display: flex; } }

.sidebar-logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.9rem; font-weight: 800; padding: 0.5rem;
  background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 1.25rem;
}
.sidebar-logo .icon { font-size: 1.1rem; -webkit-text-fill-color: initial; }
.sidebar-link {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.75rem; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 0.85rem; font-weight: 500;
  text-decoration: none; transition: var(--transition); cursor: pointer;
  min-height: 40px;
}
.sidebar-link:hover, .sidebar-link.active { background: var(--bg-card); color: var(--text-primary); }
.sidebar-link.active { color: var(--violet-light); border-left: 2px solid var(--violet); }
.sidebar-link .icon { font-size: 1rem; }
.sidebar-section-label {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); font-weight: 600; padding: 0.4rem 0.75rem; margin-top: 0.4rem;
}
.sidebar-badge {
  margin-left: auto; background: var(--red); color: #fff;
  font-size: 0.65rem; font-weight: 700; padding: 0.1rem 0.45rem;
  border-radius: 999px; min-width: 18px; text-align: center;
}

/* Main content */
.main-content { flex: 1; overflow-x: hidden; padding-bottom: calc(var(--bottom-nav-h) + 1rem); }
@media (min-width: 768px) { .main-content { padding-bottom: 2rem; } }
.page-header { padding: 1.25rem 1rem 0; margin-bottom: 1.25rem; }
@media (min-width: 768px) { .page-header { padding: 1.75rem 1.75rem 0; } }
.page-header h1 { font-size: clamp(1.3rem, 4vw, 1.6rem); }
.page-body { padding: 0 1rem 1.5rem; }
@media (min-width: 768px) { .page-body { padding: 0 1.75rem 1.75rem; } }

/* ---- BOTTOM NAV (mobile admin) ---- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--bottom-nav-h);
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-around;
  z-index: 200; padding: 0 0.5rem;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
@media (min-width: 768px) { .bottom-nav { display: none; } }
.bottom-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  padding: 0.4rem 0.75rem; border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: 0.65rem; font-weight: 600;
  text-decoration: none; transition: var(--transition);
  min-width: 56px; cursor: pointer; border: none; background: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.bottom-nav-item .nav-icon { font-size: 1.3rem; line-height: 1; }
.bottom-nav-item.active { color: var(--violet-light); }
.bottom-nav-badge {
  position: absolute; top: 2px; right: 8px;
  background: var(--red); color: #fff; font-size: 0.6rem; font-weight: 700;
  padding: 0.05rem 0.35rem; border-radius: 999px; min-width: 16px; text-align: center;
}

/* ---- PENDING PAYMENT SECTION ---- */
.pending-card {
  border: 1px solid rgba(245,158,11,0.3);
  background: rgba(245,158,11,0.05);
  border-radius: var(--radius-lg); padding: 1rem;
  display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap;
}
.pending-card-info { flex: 1; min-width: 180px; }
.pending-card-actions { display: flex; gap: 0.5rem; align-items: center; flex-shrink: 0; }

/* ---- UPLOAD ZONE ---- */
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem 1rem; text-align: center; cursor: pointer;
  transition: var(--transition); display: block;
}
.upload-zone:hover, .upload-zone.dragging { border-color: var(--violet); background: rgba(124,58,237,0.05); }
.upload-zone input[type="file"] { display: none; }
.upload-icon { font-size: 2rem; margin-bottom: 0.4rem; color: var(--violet); opacity: 0.7; }

/* ---- CHECKIN RESULT ---- */
.checkin-result {
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 1.5rem; margin-top: 1.25rem; text-align: center;
  animation: fadeIn 0.4s ease;
}
.checkin-result.success { border-color: var(--green); background: rgba(16,185,129,0.05); }
.checkin-result.already { border-color: var(--amber); background: rgba(245,158,11,0.05); }
.checkin-result.error { border-color: var(--red); background: rgba(239,68,68,0.05); }
.checkin-result .result-icon { font-size: 3rem; margin-bottom: 0.75rem; }
.checkin-result h3 { margin-bottom: 0.4rem; }
.checkin-result .result-details { margin-top: 1.25rem; text-align: left; background: rgba(255,255,255,0.03); border-radius: var(--radius-md); padding: 0.9rem; }
.checkin-result .result-detail-row { display: flex; justify-content: space-between; padding: 0.4rem 0; font-size: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.checkin-result .result-detail-row:last-child { border-bottom: none; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in { animation: fadeIn 0.4s ease; }

/* ---- SCANNER ---- */
#qr-reader { border: none !important; background: transparent !important; }
#qr-reader video { border-radius: var(--radius-md); width: 100% !important; }
#qr-reader__scan_region { background: transparent !important; }
#qr-reader__dashboard { background: var(--bg-secondary) !important; padding: 0.75rem !important; }
#qr-reader__dashboard_section_csr button {
  background: var(--gradient-primary) !important; border: none !important;
  color: #fff !important; padding: 0.6rem 1.2rem !important; border-radius: var(--radius-sm) !important;
  cursor: pointer !important; font-family: inherit !important; font-weight: 600 !important;
  font-size: 0.9rem !important; min-height: 44px !important;
}

/* ---- SEARCH ---- */
.search-bar { position: relative; }
.search-bar .search-icon { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); font-size: 0.9rem; color: var(--text-muted); pointer-events: none; }
.search-bar input { padding-left: 2.4rem; }

/* ---- MISC ---- */
.section-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.4rem; }
.divider { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }
.flex { display: flex; } .flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }
.text-sm { font-size: 0.875rem; } .text-xs { font-size: 0.75rem; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-green { color: var(--green-light); } .text-red { color: var(--red); }
.text-violet { color: var(--violet-light); } .text-cyan { color: var(--cyan-light); }
.text-amber { color: var(--amber); }
.font-bold { font-weight: 700; } .font-semibold { font-weight: 600; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.empty-state { text-align: center; padding: 3rem 1.5rem; color: var(--text-muted); }
.empty-state .empty-icon { font-size: 2.5rem; margin-bottom: 0.75rem; opacity: 0.4; }

/* ---- RESPONSIVE GRIDS ---- */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.grid-checkin { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 900px) { .grid-checkin { grid-template-columns: 1fr 1fr; } }
