/* ===== DESIGN TOKENS ===== */
:root {
  --ev-primary: #6366f1;
  --ev-primary-dark: #4f46e5;
  --ev-accent: #f59e0b;
  --ev-accent-dark: #d97706;
  --ev-surface: #f8fafc;
  --ev-dark: #0f172a;
  --ev-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  --ev-gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --ev-shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --ev-shadow: 0 4px 20px rgba(0,0,0,.1);
  --ev-shadow-lg: 0 10px 40px rgba(0,0,0,.15);
  --ev-radius: .75rem;
  --ev-radius-lg: 1rem;
  --ev-transition: .25s cubic-bezier(.4,0,.2,1);
}

/* ===== BASE ===== */
html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

@media (min-width: 768px) {
  html { font-size: 16px; }
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1e293b;
  background: var(--ev-surface);
  overflow-x: hidden;
}

/* ===== FOCUS ===== */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--ev-primary);
}

/* ===== NAVBAR ===== */
.backdrop-blur {
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  backdrop-filter: blur(12px) saturate(180%);
}

#mainNav {
  transition: background-color var(--ev-transition), box-shadow var(--ev-transition);
}

#mainNav.scrolled {
  background-color: rgba(15, 23, 42, .95) !important;
  box-shadow: var(--ev-shadow);
}

#mainNav .nav-link {
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .02em;
  transition: color var(--ev-transition);
}

#mainNav .nav-link:hover {
  color: var(--ev-accent) !important;
}

/* ===== HERO ===== */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: var(--ev-gradient);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-section .hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.85);
  max-width: 540px;
}

.hero-search {
  max-width: 560px;
}

.hero-search .form-control {
  border-radius: 50px 0 0 50px;
  border: none;
  padding: .85rem 1.5rem;
  font-size: 1rem;
  box-shadow: var(--ev-shadow);
}

.hero-search .btn {
  border-radius: 0 50px 50px 0;
  padding: .85rem 1.5rem;
  font-weight: 600;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-stat h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.hero-stat span {
  font-size: .8rem;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ===== SECTION STYLES ===== */
.section-heading {
  font-weight: 800;
  color: var(--ev-dark);
}

.section-subtitle {
  color: #64748b;
  max-width: 600px;
}

/* ===== EVENT CARDS ===== */
.event-card {
  background: #fff;
  border: none;
  border-radius: var(--ev-radius-lg);
  overflow: hidden;
  box-shadow: var(--ev-shadow-sm);
  transition: transform var(--ev-transition), box-shadow var(--ev-transition);
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ev-shadow-lg);
}

.event-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

.event-card .event-date-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fff;
  border-radius: .5rem;
  padding: .35rem .6rem;
  text-align: center;
  box-shadow: var(--ev-shadow-sm);
  line-height: 1.1;
}

.event-date-badge .month {
  display: block;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ev-primary);
}

.event-date-badge .day {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ev-dark);
}

.event-card .category-tag {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 50px;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.event-card .price-tag {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ev-primary);
}

/* ===== CATEGORY CARDS ===== */
.category-card {
  background: #fff;
  border: none;
  border-radius: var(--ev-radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--ev-shadow-sm);
  transition: all var(--ev-transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ev-shadow);
  background: var(--ev-gradient);
  color: #fff;
}

.category-card:hover .category-icon {
  background: rgba(255,255,255,.2);
  color: #fff;
}

.category-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(99,102,241,.1);
  color: var(--ev-primary);
  margin-bottom: 1rem;
  transition: all var(--ev-transition);
}

/* ===== HOW IT WORKS ===== */
.step-card {
  text-align: center;
  padding: 2rem 1rem;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ev-gradient);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px rgba(99,102,241,.3);
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--ev-gradient);
  position: relative;
  overflow: hidden;
}

.cta-section::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
  pointer-events: none;
}

/* ===== LINK HOVER ===== */
.link-hover {
  transition: color var(--ev-transition);
}

.link-hover:hover {
  color: var(--ev-accent) !important;
}

/* ===== BUTTONS ===== */
.btn-ev-primary {
  background: var(--ev-gradient);
  color: #fff;
  border: none;
  font-weight: 600;
  padding: .6rem 1.5rem;
  border-radius: 50px;
  transition: all var(--ev-transition);
}

.btn-ev-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99,102,241,.35);
  color: #fff;
}

.btn-ev-outline {
  border: 2px solid rgba(255,255,255,.4);
  color: #fff;
  background: transparent;
  font-weight: 600;
  padding: .6rem 1.5rem;
  border-radius: 50px;
  transition: all var(--ev-transition);
}

.btn-ev-outline:hover {
  background: #fff;
  color: var(--ev-primary);
  border-color: #fff;
}

/* ===== PLACEHOLDER IMAGE ===== */
.placeholder-img {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 2rem;
}

/* ===== PAGE HEADER (for sub-pages) ===== */
.page-header {
  background: var(--ev-gradient);
  padding: 7rem 0 3rem;
  color: #fff;
}

/* ===== FORM OVERRIDES ===== */
.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767.98px) {
  .hero-section { min-height: 70vh; }
  .hero-stats { gap: 1.25rem; }
}

/* ====================================================================
   ADMIN DASHBOARD
   ==================================================================== */

.admin-wrapper {
  padding-top: 56px; /* navbar height */
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  background: var(--ev-dark);
  overflow-y: auto;
}

.admin-sidebar-heading {
  display: block;
  padding: .25rem .75rem;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.35);
}

.admin-nav-link {
  color: rgba(255,255,255,.65);
  font-size: .875rem;
  font-weight: 500;
  border-radius: var(--ev-radius);
  padding: .55rem .75rem;
  transition: all var(--ev-transition);
  display: flex;
  align-items: center;
}

.admin-nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
}

.admin-nav-link.active {
  color: #fff;
  background: var(--ev-primary);
}

.admin-nav-link .badge {
  font-size: .6rem;
}

/* Content area */
.admin-content {
  background: var(--ev-surface);
  min-height: calc(100vh - 56px);
}

/* KPI Cards */
.admin-kpi-card {
  transition: transform var(--ev-transition);
}

.admin-kpi-card:hover {
  transform: translateY(-3px);
}

.admin-kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Action cards */
.admin-action-card {
  transition: all var(--ev-transition);
  color: var(--ev-dark);
}

.admin-action-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ev-shadow);
  color: var(--ev-dark);
}