/* ========================================
   Workshop Ticket System — Design System
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Variables --- */
* {
  touch-action: manipulation;
}
html {
  -ms-touch-action: manipulation;
  touch-action: manipulation;
}
:root {
  --primary: #C40000;
  --primary-dark: #9B0000;
  --primary-light: #FF2D2D;
  --secondary: #FFFFFF;
  --accent: #111111;
  --bg: #F8F8F8;
  --bg-card: #FFFFFF;
  --border: #E5E5E5;
  --text: #333333;
  --text-light: #777777;
  --text-muted: #AAAAAA;
  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
  --transition: all 0.3s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --container: 1200px;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  color: var(--accent);
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

/* ========================================
   Navbar
   ======================================== */
.navbar {
  background: var(--secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 20px;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
}

.navbar__logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.navbar__menu {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.navbar__menu a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  color: var(--text);
}

.navbar__menu a:hover {
  background: var(--bg);
  color: var(--primary);
}

.navbar__logout {
  color: var(--primary) !important;
  font-weight: 600 !important;
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar__toggle--active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.navbar__toggle--active span:nth-child(2) {
  opacity: 0;
}
.navbar__toggle--active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary);
  color: white;
}
.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(196,0,0,0.3);
}

.btn--outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn--outline:hover {
  background: var(--primary);
  color: white;
}

.btn--secondary {
  background: var(--accent);
  color: white;
}
.btn--secondary:hover {
  background: #333;
}

.btn--success {
  background: var(--success);
  color: white;
}

.btn--danger {
  background: var(--danger);
  color: white;
}

.btn--sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ========================================
   Cards
   ======================================== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
}

.card__body {
  padding: 20px;
}

.card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card__text {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card__meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card__price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.card__footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ========================================
   Form Elements
   ======================================== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--accent);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--secondary);
  color: var(--text);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(196,0,0,0.1);
}

.form-control::placeholder {
  color: var(--text-muted);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23777' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-error {
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 4px;
}

/* ========================================
   Grid
   ======================================== */
.grid {
  display: grid;
  gap: 24px;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ========================================
   Hero Slider
   ======================================== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
}

.hero-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slider__slide--active {
  opacity: 1;
}

.hero-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slider__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.55) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.hero-slider__overlay h2 {
  color: white;
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
  letter-spacing: -0.5px;
}

.hero-slider__overlay p {
  color: rgba(255,255,255,0.92);
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 28px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}

.hero-slider__overlay .btn {
  font-size: 1.05rem;
  padding: 14px 36px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(196,0,0,0.35);
}

.hero-slider__overlay .btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(196,0,0,0.45);
}

/* Slider Dots */
.hero-slider__dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-slider__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: 2px solid rgba(255,255,255,0.7);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.hero-slider__dot--active {
  background: white;
  transform: scale(1.2);
}

/* Slider Arrows */
.hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.hero-slider__arrow:hover {
  background: rgba(255,255,255,0.35);
}

.hero-slider__arrow--prev { left: 16px; }
.hero-slider__arrow--next { right: 16px; }

/* ========================================
   Section
   ======================================== */
.section {
  padding: 48px 0;
}

.section__title {
  text-align: center;
}

.section__title h2 {
  margin-bottom: 8px;
}

.section__title p {
  color: var(--text-light);
  font-size: 1.05rem;
}

/* ========================================
   Badge
   ======================================== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge--pending {
  background: #FEF3C7;
  color: #92400E;
}

.badge--approved {
  background: #D1FAE5;
  color: #065F46;
}

.badge--cancelled {
  background: #FEE2E2;
  color: #991B1B;
}

.badge--used {
  background: #DBEAFE;
  color: #1E40AF;
}

/* ========================================
   Table
   ======================================== */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
}

.table th,
.table td {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.table th {
  background: var(--bg);
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.table tr:hover td {
  background: #FAFAFA;
}

.table .actions {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
}

/* ========================================
   Stats Cards
   ======================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.stat-card__label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 8px;
}

.stat-card__value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-card--primary .stat-card__value { color: var(--primary); }
.stat-card--success .stat-card__value { color: var(--success); }
.stat-card--warning .stat-card__value { color: var(--warning); }
.stat-card--info .stat-card__value { color: var(--info); }

/* ========================================
   Modal
   ======================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 90%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal__header h3 {
  font-size: 1.25rem;
}

.modal__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-light);
  transition: var(--transition);
}

.modal__close:hover {
  background: var(--bg);
  color: var(--accent);
}

.modal__footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* ========================================
   Toast
   ======================================== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  color: white;
  font-weight: 500;
  font-size: 0.9rem;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.toast--visible {
  transform: translateY(0);
  opacity: 1;
}

.toast--success { background: var(--success); }
.toast--error { background: var(--danger); }
.toast--info { background: var(--info); }
.toast--warning { background: var(--warning); }

/* ========================================
   Filters
   ======================================== */
.filters {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filters .form-control {
  width: auto;
  min-width: 180px;
}

/* ========================================
   Category Selector
   ======================================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.category-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.category-card:hover {
  border-color: var(--primary);
}

.category-card.active {
  border-color: var(--primary);
  background: #FFF5F5;
}

.category-card__icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.category-card__name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.category-card__price {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.05rem;
}

/* ========================================
   Participant Counter
   ======================================== */
.counter {
  display: flex;
  align-items: center;
  gap: 16px;
}

.counter__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  transition: var(--transition);
  background: var(--bg-card);
}

.counter__btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.counter__value {
  font-size: 1.5rem;
  font-weight: 700;
  min-width: 40px;
  text-align: center;
}

/* ========================================
   Summary Box
   ======================================== */
.summary {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--border);
}

.summary__row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.95rem;
}

.summary__row--total {
  border-top: 2px solid var(--border);
  margin-top: 8px;
  padding-top: 12px;
  font-weight: 700;
  font-size: 1.1rem;
}

.summary__row--total span:last-child {
  color: var(--primary);
  font-size: 1.25rem;
}

/* ========================================
   Success Page
   ======================================== */
.success-box {
  text-align: center;
  max-width: 500px;
  padding: 16px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.success-box__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #D1FAE5;
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 24px;
}

/* Reservation Summary Table */
.res-summary {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  text-align: left;
  font-size: 0.9rem;
}

.res-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.res-summary__row:last-child {
  border-bottom: none;
}

.res-summary__row--highlight {
  background: var(--bg);
}

.res-summary__row--total {
  background: var(--bg);
  font-weight: 700;
  font-size: 1rem;
}

.res-summary__row--total .res-summary__value {
  color: var(--primary);
  font-size: 1.1rem;
}

.res-summary__label {
  color: var(--text-light);
  flex-shrink: 0;
}

.res-summary__value {
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}

/* ========================================
   QR Scanner
   ======================================== */
.scanner-container {
  margin: 0 auto;
}

.scanner-video {
  width: 100%;
  border-radius: var(--radius);
  background: #000;
}

.scanner-result {
  margin-top: 24px;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  margin-top: auto;
  background: var(--accent);
  color: rgba(255,255,255,0.6);
  padding: 32px 0 20px;
  font-size: 0.85rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 16px;
  align-items: start;
}

.footer__link {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__link:hover {
  color: white;
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
}

.footer__social-link--ig {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.footer__social-link--wa {
  background: #25D366;
}

.footer__social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.footer__copy {
  text-align: center;
}

/* Floating WhatsApp Button */
.fab-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  z-index: 999;
  transition: var(--transition);
  animation: fab-pulse 2s ease-in-out infinite;
}

.fab-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}

@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 24px rgba(37,211,102,0.6); }
}

/* ========================================
   Loading
   ======================================== */
.loading {
  display: flex;
  justify-content: center;
  padding: 48px 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================================
   Empty State
   ======================================== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.empty-state__icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

/* ========================================
   Admin Layout — Sidebar + Topbar
   ======================================== */
:root {
  --admin-sidebar-width: 260px;
  --admin-topbar-height: 62px;
  --admin-bg: #F0F4F8;
  --admin-sidebar-bg: #111827;
  --admin-sidebar-hover: rgba(255,255,255,0.07);
  --admin-sidebar-active: var(--primary);
}

.admin-body {
  display: block;
  background: var(--admin-bg);
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* ---- Sidebar ---- */
.admin-sidebar {
  width: var(--admin-sidebar-width);
  min-width: var(--admin-sidebar-width);
  background: var(--admin-sidebar-bg);
  color: #CBD5E1;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1100;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-sidebar::-webkit-scrollbar-track { background: transparent; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

/* Brand */
.admin-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  height: var(--admin-topbar-height);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-weight: 700;
  font-size: 1.05rem;
  color: #FFFFFF;
  flex-shrink: 0;
  letter-spacing: -0.2px;
}

.admin-sidebar__logo {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Nav */
.admin-sidebar__nav {
  flex: 1;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-sidebar__section-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #475569;
  padding: 10px 12px 4px;
  margin-top: 6px;
}

.admin-sidebar__link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 13px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #94A3B8;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  position: relative;
}

.admin-sidebar__link:hover {
  background: var(--admin-sidebar-hover);
  color: #E2E8F0;
}

.admin-sidebar__link--active {
  background: var(--admin-sidebar-active);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(196,0,0,0.25);
}

.admin-sidebar__link--active:hover {
  background: var(--primary-dark);
  color: #FFFFFF;
}

.admin-sidebar__link--logout { color: #F87171; }
.admin-sidebar__link--logout:hover { background: rgba(248,113,113,0.1); color: #FCA5A5; }

.admin-sidebar__icon {
  font-size: 1rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.85;
}

.admin-sidebar__link--active .admin-sidebar__icon { opacity: 1; }

.admin-sidebar__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.admin-sidebar__footer {
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

/* ---- Topbar (always visible) ---- */
.admin-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 28px 0 24px;
  height: var(--admin-topbar-height);
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 0 0 #E5E7EB;
}

.admin-topbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 7px;
  cursor: pointer;
  border: none;
  background: none;
  border-radius: 7px;
  transition: background 0.15s;
  flex-shrink: 0;
}

.admin-topbar__toggle:hover { background: var(--bg); }

.admin-topbar__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.admin-topbar__toggle--active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.admin-topbar__toggle--active span:nth-child(2) { opacity: 0; }
.admin-topbar__toggle--active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.admin-topbar__title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
}

.admin-topbar__spacer { flex: 1; }

.admin-topbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.admin-topbar__date {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
  white-space: nowrap;
}

.admin-topbar__user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: default;
}

.admin-topbar__user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-topbar__user-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

/* ---- Notification Bell ---- */
.notif-bell {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all .15s;
  flex-shrink: 0;
}
.notif-bell:hover { border-color: var(--primary); background: #fff5f5; }
.notif-bell__badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
  line-height: 1;
}
.notif-bell__badge:empty { display: none; }
.notif-bell--pulse {
  animation: notif-pulse .6s ease;
}
@keyframes notif-pulse {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.2); }
  60% { transform: scale(0.95); }
}

/* ---- Notification Dropdown ---- */
.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-height: 440px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  border: 1px solid var(--border);
  z-index: 2000;
  display: none;
  overflow: hidden;
}
.notif-dropdown--open { display: block; animation: notif-dd-in .2s ease; }
@keyframes notif-dd-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.notif-dropdown__header {
  padding: 14px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.notif-dropdown__clear {
  font-size: 0.75rem;
  color: var(--text-light);
  cursor: pointer;
  font-weight: 500;
  border: none;
  background: none;
  transition: color .15s;
}
.notif-dropdown__clear:hover { color: var(--primary); }
.notif-dropdown__list {
  max-height: 360px;
  overflow-y: auto;
  padding: 6px 0;
}
.notif-dropdown__empty {
  padding: 32px 16px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
}
.notif-item {
  display: flex;
  gap: 10px;
  padding: 10px 16px;
  transition: background .1s;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: #fafafa; }
.notif-item--unread { background: #fef9f0; }
.notif-item--unread:hover { background: #fef3e0; }
.notif-item__icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.notif-item__icon--rez { background: rgba(34,197,94,.1); }
.notif-item__icon--waitlist { background: rgba(234,179,8,.1); }
.notif-item__body { flex: 1; min-width: 0; }
.notif-item__title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 2px;
  line-height: 1.3;
}
.notif-item__detail {
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.35;
}
.notif-item__time {
  font-size: 0.68rem;
  color: #bbb;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- Sidebar badge ---- */
.admin-sidebar__badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  border-radius: 99px;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  line-height: 1;
}
.admin-sidebar__badge:empty { display: none; }

/* ---- Global Toast (moved from dashboard) ---- */
.global-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  pointer-events: none;
}
.g-toast {
  pointer-events: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  padding: 0;
  min-width: 300px;
  max-width: 380px;
  overflow: hidden;
  animation: g-toast-in .35s cubic-bezier(.22,1,.36,1);
  border-left: 5px solid var(--success);
}
.g-toast.g-toast--leaving {
  animation: g-toast-out .3s ease-in forwards;
}
@keyframes g-toast-in {
  from { opacity: 0; transform: translateX(60px) scale(.94); }
  to   { opacity: 1; transform: translateX(0)   scale(1); }
}
@keyframes g-toast-out {
  from { opacity: 1; transform: translateX(0)   scale(1); max-height: 200px; margin-bottom: 0; }
  to   { opacity: 0; transform: translateX(60px) scale(.94); max-height: 0; margin-bottom: -10px; }
}
.g-toast__body {
  padding: 14px 16px 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.g-toast__icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.g-toast__content { flex: 1; }
.g-toast__title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent);
  margin-bottom: 3px;
}
.g-toast__detail {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.4;
}
.g-toast__detail strong { color: var(--accent); }
.g-toast__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: color .15s;
}
.g-toast__close:hover { color: var(--accent); }
.g-toast__progress {
  height: 3px;
  background: var(--border);
}
.g-toast__progress-bar {
  height: 100%;
  background: var(--success);
  transition: width linear;
  width: 100%;
}

@media (max-width: 480px) {
  .notif-dropdown {
    width: calc(100vw - 32px);
    right: -60px;
  }
}

/* ---- Content area ---- */
.admin-content {
  flex: 1;
  margin-left: var(--admin-sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-content > .section {
  flex: 1;
  padding: 28px 32px;
}

.admin-content > .section > .container {
  max-width: 100%;
  padding: 0;
}

/* ---- Admin page header ---- */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.4px;
}

/* ---- Stat cards ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--border);
  transition: box-shadow 0.15s, transform 0.15s;
}

.stat-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.stat-card--primary { border-top-color: var(--primary); }
.stat-card--success { border-top-color: var(--success); }
.stat-card--warning { border-top-color: var(--warning); }
.stat-card--info    { border-top-color: var(--info); }

.stat-card__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-light);
  font-weight: 700;
  margin-bottom: 8px;
}

.stat-card__value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-card--primary .stat-card__value { color: var(--primary); }
.stat-card--success .stat-card__value { color: var(--success); }
.stat-card--warning .stat-card__value { color: var(--warning); }
.stat-card--info    .stat-card__value { color: var(--info); }

/* ---- Admin section card ---- */
.admin-section-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 24px;
}

.admin-section-card__header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-section-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-section-card__body { padding: 20px; }

/* ---- Overlay ---- */
.admin-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1050;
  backdrop-filter: blur(2px);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 992px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }

  /* Admin sidebar → hidden off-screen on mobile */
  .admin-sidebar {
    transform: translateX(-100%);
  }

  .admin-sidebar--open {
    transform: translateX(0);
  }

  .admin-sidebar-overlay--visible {
    display: block;
  }

  /* Show toggle button on mobile */
  .admin-topbar__toggle {
    display: flex;
  }

  /* Hide date on smaller screens */
  .admin-topbar__date {
    display: none;
  }

  .admin-content {
    margin-left: 0;
  }

  .admin-content > .section {
    padding: 20px 16px;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  
  .hero-slider { height: 380px; }
  .hero-slider__overlay h2 { font-size: 1.8rem; }
  .hero-slider__overlay p { font-size: 0.95rem; }
  .hero-slider__arrow { display: none; }
  
  .section { padding: 32px 0; }
  
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .navbar__toggle {
    display: flex;
  }

  .navbar__menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--secondary);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .navbar__menu--open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .navbar__menu a {
    padding: 12px 16px;
    width: 100%;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .table th, .table td {
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  .modal {
    width: 95%;
    padding: 24px;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

  .footer__social {
    justify-content: center;
  }

  .fab-whatsapp {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* ========================================
   Admin — Shared Component Library
   Modern, consistent patterns for all admin pages
   ======================================== */

/* ---- Admin Page Title ---- */
.adm-page-title {
  font-size: 1.5rem; font-weight: 800; color: var(--accent);
  letter-spacing: -0.3px; margin: 0;
}
.adm-page-subtitle {
  font-size: 0.84rem; color: var(--text-light); font-weight: 500;
  margin-top: 2px;
}

/* ---- Admin Card (universal) ---- */
.adm-card {
  background: #fff; border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  overflow: hidden; margin-bottom: 20px;
}
.adm-card__accent {
  height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--primary), #e85d4a);
}
.adm-card__accent--blue { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.adm-card__accent--purple { background: linear-gradient(90deg, #6366f1, #8b5cf6); }
.adm-card__accent--green { background: linear-gradient(90deg, #22c55e, #4ade80); }
.adm-card__accent--amber { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.adm-card__header {
  padding: 16px 20px; border-bottom: 1px solid #f3f4f6;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.adm-card__title {
  font-size: 0.92rem; font-weight: 700; color: var(--accent);
  display: flex; align-items: center; gap: 8px; margin: 0;
}
.adm-card__body { padding: 20px; }
.adm-card__footer {
  padding: 14px 20px; border-top: 1px solid #f3f4f6;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; background: #fafafa;
}

/* ---- Admin Info Banner ---- */
.adm-info {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border-radius: 12px; margin-bottom: 20px;
  font-size: 0.84rem; line-height: 1.55;
}
.adm-info--blue { background: #eff6ff; border: 1.5px solid #bfdbfe; color: #1e40af; }
.adm-info--amber { background: #fffbeb; border: 1.5px solid #fde68a; color: #92400e; }
.adm-info--green { background: #f0fdf4; border: 1.5px solid #86efac; color: #166534; }
.adm-info--red { background: #fef2f2; border: 1.5px solid #fecaca; color: #991b1b; }
.adm-info__icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

/* ---- Admin Period / Filter Buttons ---- */
.adm-filters {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap; margin-bottom: 16px;
}
.adm-filters__label {
  font-size: 0.72rem; font-weight: 700; color: var(--text-light);
  text-transform: uppercase; letter-spacing: .5px; margin-right: 4px;
}
.adm-filter-btn {
  padding: 6px 14px; border-radius: 8px;
  border: 1.5px solid var(--border); background: #fff;
  font-size: 0.78rem; font-weight: 600; cursor: pointer;
  color: var(--text-light); transition: all .15s;
  font-family: var(--font); white-space: nowrap;
}
.adm-filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.adm-filter-btn--active {
  background: var(--primary); border-color: var(--primary);
  color: #fff; box-shadow: 0 2px 8px rgba(196,0,0,.2);
}

/* ---- Admin Section Header ---- */
.adm-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin: 28px 0 16px; gap: 12px; flex-wrap: wrap;
}
.adm-section-header h3 {
  margin: 0; font-size: 1.05rem; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}

/* ---- Admin Table ---- */
.adm-table-wrap {
  overflow-x: auto; border-radius: 12px;
  border: 1px solid var(--border); background: #fff;
}
.adm-table {
  width: 100%; border-collapse: collapse;
}
.adm-table th,
.adm-table td {
  padding: 12px 16px; text-align: left;
  font-size: 0.84rem; border-bottom: 1px solid #f3f4f6;
}
.adm-table th {
  background: #f8f9fb; font-weight: 700; color: var(--text-light);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: .5px;
  white-space: nowrap; position: sticky; top: 0;
}
.adm-table tbody tr { transition: background .1s; }
.adm-table tbody tr:hover { background: #fafbfc; }
.adm-table tbody tr:last-child td { border-bottom: none; }
.adm-table .actions { display: flex; gap: 6px; flex-wrap: nowrap; }

/* ---- Admin Status Dots ---- */
.adm-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 600;
}
.adm-status::before {
  content: ''; display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
}
.adm-status--pending::before { background: var(--warning); }
.adm-status--pending { color: var(--warning); }
.adm-status--approved::before { background: var(--success); }
.adm-status--approved { color: var(--success); }
.adm-status--cancelled::before { background: var(--danger); }
.adm-status--cancelled { color: var(--danger); }
.adm-status--used::before { background: var(--info); }
.adm-status--used { color: var(--info); }
.adm-status--msg-sent::before { background: #f97316; }
.adm-status--msg-sent { color: #f97316; }
.adm-status--ticket-sent::before { background: #3b82f6; }
.adm-status--ticket-sent { color: #3b82f6; }

/* ---- Admin Badges ---- */
.adm-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 99px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: .2px;
}
.adm-badge--pending { background: #fef3c7; color: #92400e; }
.adm-badge--approved { background: #d1fae5; color: #065f46; }
.adm-badge--cancelled { background: #fee2e2; color: #991b1b; }
.adm-badge--used { background: #dbeafe; color: #1e40af; }
.adm-badge--active { background: #d1fae5; color: #065f46; }
.adm-badge--inactive { background: #f3f4f6; color: #6b7280; }
.adm-badge--draft { background: #e5e7eb; color: #4b5563; }

/* ---- Admin Pagination ---- */
.adm-pagination {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 8px; margin-top: 14px; padding: 4px 0;
}
.adm-pagination__btn {
  padding: 7px 16px; border-radius: 8px;
  border: 1.5px solid var(--border); background: #fff;
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
  color: var(--text-light); transition: all .15s;
  font-family: var(--font);
}
.adm-pagination__btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.adm-pagination__btn--active {
  background: var(--primary); color: #fff; border-color: var(--primary);
  pointer-events: none;
}
.adm-pagination__btn:disabled { opacity: .4; cursor: not-allowed; }
.adm-pagination__ellipsis {
  padding: 0 4px; color: var(--text-light); font-size: 0.8rem;
}
.adm-pagination__info {
  font-size: 0.8rem; color: var(--text-light); font-weight: 600;
  min-width: 56px; text-align: center;
}

/* ---- Admin Stat Cards ---- */
.adm-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-bottom: 24px;
}
.adm-stat {
  background: #fff; border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  border: 1px solid var(--border);
  overflow: hidden; transition: box-shadow .15s, transform .15s;
}
.adm-stat:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transform: translateY(-1px);
}
.adm-stat__accent {
  height: 3px; width: 100%;
}
.adm-stat__inner {
  padding: 16px 18px 14px;
  display: flex; align-items: flex-start; gap: 12px;
}
.adm-stat__icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex-shrink: 0;
}
.adm-stat__content { flex: 1; min-width: 0; }
.adm-stat__label {
  font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: .5px; color: var(--text-light);
  font-weight: 700; margin-bottom: 4px;
}
.adm-stat__value {
  font-size: 1.6rem; font-weight: 800; line-height: 1.1;
  color: var(--accent);
}
.adm-stat__sub {
  font-size: 0.7rem; color: var(--text-light);
  margin-top: 3px; font-weight: 500;
}
/* Stat color variants */
.adm-stat--primary .adm-stat__accent { background: var(--primary); }
.adm-stat--primary .adm-stat__icon { background: rgba(196,0,0,.08); color: var(--primary); }
.adm-stat--primary .adm-stat__value { color: var(--primary); }
.adm-stat--success .adm-stat__accent { background: var(--success); }
.adm-stat--success .adm-stat__icon { background: rgba(34,197,94,.1); color: var(--success); }
.adm-stat--success .adm-stat__value { color: var(--success); }
.adm-stat--warning .adm-stat__accent { background: var(--warning); }
.adm-stat--warning .adm-stat__icon { background: rgba(234,179,8,.1); color: var(--warning); }
.adm-stat--warning .adm-stat__value { color: var(--warning); }
.adm-stat--danger .adm-stat__accent { background: var(--danger); }
.adm-stat--danger .adm-stat__icon { background: rgba(239,68,68,.1); color: var(--danger); }
.adm-stat--danger .adm-stat__value { color: var(--danger); }
.adm-stat--info .adm-stat__accent { background: var(--info); }
.adm-stat--info .adm-stat__icon { background: rgba(59,130,246,.1); color: var(--info); }
.adm-stat--info .adm-stat__value { color: var(--info); }
.adm-stat--purple .adm-stat__accent { background: #8b5cf6; }
.adm-stat--purple .adm-stat__icon { background: rgba(139,92,246,.1); color: #8b5cf6; }
.adm-stat--purple .adm-stat__value { color: #8b5cf6; }
.adm-stat--indigo .adm-stat__accent { background: #6366f1; }
.adm-stat--indigo .adm-stat__icon { background: rgba(99,102,241,.1); color: #6366f1; }
.adm-stat--indigo .adm-stat__value { color: #6366f1; }
.adm-stat--teal .adm-stat__accent { background: #14b8a6; }
.adm-stat--teal .adm-stat__icon { background: rgba(20,184,166,.1); color: #14b8a6; }
.adm-stat--teal .adm-stat__value { color: #14b8a6; }

/* ---- Admin Modal ---- */
.adm-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  z-index: 2000; padding: 20px;
}
.adm-modal-overlay.active { display: flex; }
.adm-modal {
  background: #fff; border-radius: 16px;
  width: 100%; max-width: 520px; max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,.2);
  animation: adm-modal-in .25s ease;
}
@keyframes adm-modal-in {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.adm-modal__header {
  padding: 18px 22px; border-bottom: 1px solid #f3f4f6;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.adm-modal__title {
  font-size: 1.05rem; font-weight: 700; color: var(--accent);
  display: flex; align-items: center; gap: 8px; margin: 0;
}
.adm-modal__close {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: #f3f4f6; border: none; cursor: pointer;
  font-size: 0.9rem; color: var(--text-light);
  transition: all .15s;
}
.adm-modal__close:hover { background: #fee2e2; color: var(--danger); }
.adm-modal__body { padding: 20px 22px; }
.adm-modal__footer {
  padding: 16px 22px; border-top: 1px solid #f3f4f6;
  display: flex; gap: 10px; justify-content: flex-end;
}

/* ---- Admin Form ---- */
.adm-form-group { margin-bottom: 16px; }
.adm-form-group label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--accent); margin-bottom: 6px;
}
.adm-form-group label .required { color: var(--danger); }
.adm-form-group input,
.adm-form-group select,
.adm-form-group textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid #e5e5e5; border-radius: 10px;
  font-size: 0.88rem; font-family: var(--font);
  background: #fff; transition: border-color .15s;
  box-sizing: border-box;
}
.adm-form-group input:focus,
.adm-form-group select:focus,
.adm-form-group textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(196,0,0,.06);
}
.adm-form-group textarea { resize: vertical; min-height: 80px; }
.adm-form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.adm-form-row--3 { grid-template-columns: 1fr 1fr 1fr; }

/* ---- Admin Toggle Switch ---- */
.adm-toggle {
  position: relative; width: 44px; height: 24px;
  background: #d1d5db; border-radius: 99px;
  cursor: pointer; transition: background .2s;
  border: none; padding: 0; flex-shrink: 0;
}
.adm-toggle::after {
  content: ''; position: absolute;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; top: 3px; left: 3px;
  transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.adm-toggle--on { background: var(--success); }
.adm-toggle--on::after { transform: translateX(20px); }

/* ---- Admin Back Link ---- */
.adm-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-light); font-size: 0.84rem; font-weight: 600;
  text-decoration: none; margin-bottom: 20px;
  padding: 6px 0; transition: color .15s;
}
.adm-back:hover { color: var(--primary); }
.adm-back svg { transition: transform .2s; }
.adm-back:hover svg { transform: translateX(-2px); }

/* ---- Admin Empty State ---- */
.adm-empty {
  text-align: center; padding: 48px 20px;
  color: var(--text-light);
}
.adm-empty__icon { font-size: 2.5rem; margin-bottom: 12px; opacity: .5; }
.adm-empty__text { font-size: 0.9rem; margin-bottom: 16px; }

/* ---- Admin Progress Bar ---- */
.adm-progress { display: flex; align-items: center; gap: 10px; }
.adm-progress__track {
  flex: 1; height: 6px; background: #e5e7eb;
  border-radius: 99px; overflow: hidden;
}
.adm-progress__fill {
  height: 100%; border-radius: 99px;
  transition: width .4s ease;
}
.adm-progress__fill--low { background: var(--success); }
.adm-progress__fill--mid { background: var(--warning); }
.adm-progress__fill--high { background: var(--danger); }
.adm-progress__pct {
  font-size: 0.72rem; font-weight: 700;
  min-width: 36px; text-align: right;
}

/* ---- Admin Toolbar ---- */
.adm-toolbar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; flex-wrap: wrap;
  border-bottom: 1px solid #f3f4f6;
}
.adm-toolbar input,
.adm-toolbar select {
  padding: 8px 12px; border: 1.5px solid #e5e5e5;
  border-radius: 8px; font-size: 0.82rem;
  font-family: var(--font); background: #fff;
  transition: border-color .15s;
}
.adm-toolbar input:focus,
.adm-toolbar select:focus { outline: none; border-color: var(--primary); }

/* ---- Responsive for admin stats ---- */
@media (max-width: 1100px) { .adm-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .adm-stats { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
  .adm-form-row { grid-template-columns: 1fr; }
  .adm-form-row--3 { grid-template-columns: 1fr; }
}

/* ---- Admin Section Card (event forms) ---- */
.section-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 24px;
  overflow: hidden;
}
.section-card__header {
  background: var(--bg); padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: 0.95rem; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.section-card__body { padding: 24px; }

/* ---- Admin Form Row (grid layouts) ---- */
.form-row { display: grid; gap: 16px; }
.form-row--2 { grid-template-columns: 1fr 1fr; }
.form-row--3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 768px) {
  .form-row--2 { grid-template-columns: 1fr; }
  .form-row--3 { grid-template-columns: 1fr; }
}

/* ---- Admin Upload Box ---- */
.upload-box {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 32px 20px; text-align: center; cursor: pointer;
  transition: var(--transition); position: relative;
}
.upload-box:hover, .upload-box.drag-over { border-color: var(--primary); background: #fff5f5; }
.upload-box input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-preview {
  max-width: 200px; max-height: 200px; border-radius: var(--radius);
  margin: 12px auto 0; display: block; object-fit: cover;
}

/* ---- Admin Rules List ---- */
.rules-list { display: flex; flex-direction: column; gap: 8px; }
.rule-item { display: flex; gap: 8px; align-items: center; }
.rule-item input { flex: 1; }

/* ---- Admin Info Banner ---- */
.info-banner {
  display: flex; align-items: center; gap: 10px;
  border-radius: var(--radius); padding: 12px 16px;
  margin-bottom: 24px; font-size: 0.88rem;
}
.info-banner--blue { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E40AF; }
.info-banner--amber { background: #FEF3C7; border: 1px solid #FDE68A; color: #92400E; }

/* ========================================
   Event Card (ev-card) — Shared
   ======================================== */
.ev-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.ev-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,.10);
  border-color: transparent;
}
.ev-card__img-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #f3f4f6;
}
.ev-card__img-wrap img,
.ev-card__img-wrap > div {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.ev-card:hover .ev-card__img-wrap img {
  transform: scale(1.04);
}
.ev-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.ev-card__badge--full { background: rgba(0,0,0,.65); color: #fff; }
.ev-card__badge--low  { background: #dc2626; color: #fff; }
.ev-card__badge--soon { background: rgba(80,80,80,.72); color: #fff; }

.ev-card__pills {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ev-card__pills-row {
  display: flex;
  gap: 5px;
}
.ev-card__pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  background: #eaedf1;
  border: 1px solid #d1d5db;
  letter-spacing: .1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ev-card__pill--location {
  min-width: 0;
  flex-shrink: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ev-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 0;
  gap: 10px;
}
.ev-card__title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ev-card__cat-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--primary);
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.ev-card__cat-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.ev-card__meta-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  padding-bottom: 2px;
}
.ev-card__meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--text-light);
  line-height: 1.4;
}
.ev-card__meta-row svg {
  flex-shrink: 0;
  color: var(--primary);
  opacity: 0.7;
}

.ev-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 14px;
  gap: 8px;
  border-top: 1px solid #f3f4f6;
  margin-top: 12px;
}
.ev-card__spots {
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ev-card__spots--full     { color: #dc2626; }
.ev-card__spots--low      { color: #dc2626; }
.ev-card__spots--soon     { color: var(--text-light); }
.ev-card__spots--popular  { color: #7c3aed; }
.ev-card__spots--available{ color: #15803d; }
.ev-card__btn--full       { width: 100%; text-align: center; }
