/* ============================================================
   DYPIMED Tech Fest 2025 — Main Stylesheet
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple:   #7C3AED;
  --purple-d: #5b21b6;
  --purple-l: #ede9fe;
  --dark:     #1e0a4e;
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --green:    #16a34a;
  --red:      #dc2626;
  --amber:    #d97706;
  --blue:     #0891b2;
  --radius:   12px;
  --shadow:   0 4px 20px rgba(0,0,0,.08);
  --shadow-lg:0 10px 40px rgba(0,0,0,.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray-800);
  background: #f8f7ff;
  min-height: 100vh;
}

/* ─── SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 4px; }

/* ─── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: var(--dark);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 62px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 800; color: #fff;
  text-decoration: none; letter-spacing: -.5px;
}
.nav-brand em { color: #c4b5fd; font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
  color: rgba(255,255,255,.75); text-decoration: none;
  padding: 6px 14px; border-radius: 8px; font-weight: 600; font-size: 14px;
  transition: all .2s;
}
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,.1); }
.nav-hamburger {
  display: none; background: none; border: none;
  color: #fff; font-size: 22px; cursor: pointer;
}

/* ─── FLASH ──────────────────────────────────────────────── */
.flash {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; font-weight: 600; font-size: 14px; gap: 12px;
  animation: slideDown .3s ease;
}
.flash-success { background: #dcfce7; color: #166534; border-bottom: 2px solid #86efac; }
.flash-error   { background: #fee2e2; color: #991b1b; border-bottom: 2px solid #fca5a5; }
.flash-info    { background: #dbeafe; color: #1e40af; border-bottom: 2px solid #93c5fd; }
.flash-close   { background: none; border: none; font-size: 20px; cursor: pointer; line-height: 1; opacity: .6; }
@keyframes slideDown { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: 9px; border: none; cursor: pointer;
  font-weight: 700; font-size: 14px; font-family: inherit;
  text-decoration: none; transition: all .2s; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary  { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-d); }
.btn-success  { background: var(--green); color: #fff; }
.btn-success:hover { background: #15803d; }
.btn-danger   { background: var(--red); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-outline  { background: transparent; color: var(--purple); border: 2px solid var(--purple); }
.btn-outline:hover { background: var(--purple-l); }
.btn-gray     { background: var(--gray-100); color: var(--gray-600); border: 1px solid var(--gray-200); }
.btn-gray:hover { background: var(--gray-200); }
.btn-sm       { padding: 6px 14px; font-size: 13px; }
.btn-lg       { padding: 14px 36px; font-size: 16px; }
.btn-block    { width: 100%; justify-content: center; }
.btn:disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }

/* ─── FORMS ──────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 700; color: var(--gray-600); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 11px 14px; border-radius: 9px;
  border: 1.5px solid var(--gray-200); font-size: 14px; font-family: inherit;
  outline: none; transition: border-color .2s, box-shadow .2s; background: #fff;
}
.form-control:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124,58,237,.12); }
.form-control.is-invalid { border-color: var(--red); }
.invalid-feedback { font-size: 12px; color: var(--red); margin-top: 4px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

/* ─── CARDS ──────────────────────────────────────────────── */
.card {
  background: #fff; border-radius: 16px;
  box-shadow: var(--shadow); overflow: hidden;
}
.card-body { padding: 24px; }
.card-img { width: 100%; height: 180px; object-fit: cover; display: block; }

/* ─── BADGES ─────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 700;
}
.badge-purple { background: var(--purple-l); color: var(--purple); }
.badge-green  { background: #dcfce7; color: #166534; }
.badge-amber  { background: #fef3c7; color: #92400e; }
.badge-red    { background: #fee2e2; color: #991b1b; }
.badge-blue   { background: #cffafe; color: #155e75; }
.badge-gray   { background: var(--gray-100); color: var(--gray-600); }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #1e0a4e 0%, #4c1d95 50%, #7c3aed 100%);
  color: #fff; text-align: center;
  padding: clamp(48px,8vw,96px) 24px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 30%, rgba(196,181,253,.15) 0%, transparent 70%);
}
.hero-pill {
  display: inline-block; background: rgba(255,255,255,.15);
  border-radius: 30px; padding: 6px 18px; font-size: 13px;
  font-weight: 700; margin-bottom: 24px; backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.2);
}
.hero h1 {
  font-size: clamp(32px,6vw,64px); font-weight: 900;
  line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 18px;
}
.hero h1 span { color: #c4b5fd; }
.hero p { font-size: 17px; opacity: .85; max-width: 520px; margin: 0 auto 32px; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: clamp(20px,5vw,48px);
  justify-content: center; margin-top: 56px; flex-wrap: wrap;
}
.hero-stat-val { font-size: 28px; font-weight: 900; color: #c4b5fd; }
.hero-stat-lbl { font-size: 12px; opacity: .7; margin-top: 2px; }

/* ─── SECTION ────────────────────────────────────────────── */
.section { padding: clamp(40px,6vw,80px) 24px; max-width: 1200px; margin: 0 auto; }
.section-title { font-size: clamp(24px,4vw,36px); font-weight: 900; margin-bottom: 8px; }
.section-sub   { color: var(--gray-400); margin-bottom: 36px; }

/* ─── EVENTS GRID ────────────────────────────────────────── */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 24px; }

.event-card { transition: transform .2s, box-shadow .2s; }
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.event-card-img-wrap { position: relative; height: 180px; overflow: hidden; }
.event-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.event-card:hover .event-card-img-wrap img { transform: scale(1.05); }
.event-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.5), transparent);
}
.event-card-fee {
  position: absolute; top: 12px; right: 12px;
  background: #fff; border-radius: 20px; padding: 4px 12px;
  font-size: 13px; font-weight: 800; color: var(--purple);
}
.event-card-enrolled {
  position: absolute; top: 12px; left: 12px;
  background: var(--green); color: #fff;
  border-radius: 20px; padding: 4px 12px; font-size: 12px; font-weight: 700;
}
.event-card-body { padding: 20px; }
.event-card-icon { font-size: 28px; margin-bottom: 8px; line-height: 1; }
.event-card-title { font-size: 18px; font-weight: 800; margin-bottom: 2px; }
.event-card-sub   { font-size: 13px; color: var(--gray-400); margin-bottom: 10px; }
.event-card-desc  { font-size: 13px; color: var(--gray-600); line-height: 1.6; margin-bottom: 14px; }
.event-card-meta  { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 12px; color: var(--gray-400); margin-bottom: 16px; }
.event-card-actions { display: flex; gap: 8px; }

/* ─── TABS ───────────────────────────────────────────────── */
.tabs { display: flex; gap: 6px; margin-bottom: 28px; flex-wrap: wrap; }
.tab-btn {
  padding: 8px 20px; border-radius: 9px; border: none; cursor: pointer;
  font-weight: 700; font-size: 14px; font-family: inherit;
  background: transparent; color: var(--gray-400); transition: all .2s;
}
.tab-btn:hover { background: var(--gray-100); color: var(--gray-800); }
.tab-btn.active { background: var(--purple); color: #fff; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ─── TABLE ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--gray-200); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 600px; }
thead th {
  background: var(--gray-50); padding: 12px 16px;
  text-align: left; font-weight: 700; color: var(--gray-600);
  border-bottom: 1px solid var(--gray-200); white-space: nowrap;
}
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--gray-100); color: var(--gray-800); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--gray-50); }

/* ─── STAT CARDS ─────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: #fff; border-radius: 12px; padding: 20px; border: 1px solid var(--gray-100); box-shadow: var(--shadow); }
.stat-icon { font-size: 24px; margin-bottom: 10px; }
.stat-val  { font-size: 28px; font-weight: 900; }
.stat-lbl  { font-size: 13px; color: var(--gray-400); margin-top: 4px; }

/* ─── AUTH PAGES ─────────────────────────────────────────── */
.auth-wrap { min-height: calc(100vh - 62px); display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.auth-card { background: #fff; border-radius: 20px; padding: clamp(24px,5vw,40px); width: 100%; max-width: 480px; box-shadow: var(--shadow-lg); }
.auth-icon  { font-size: 52px; text-align: center; margin-bottom: 12px; }
.auth-title { font-size: 26px; font-weight: 900; text-align: center; margin-bottom: 6px; }
.auth-sub   { text-align: center; color: var(--gray-400); margin-bottom: 28px; font-size: 14px; }

/* ─── DASHBOARD ──────────────────────────────────────────── */
.dashboard-header {
  display: flex; align-items: center; gap: 18px; margin-bottom: 32px; flex-wrap: wrap;
}
.user-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--purple), #4c1d95);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 26px; font-weight: 900;
}
.dashboard-name { font-size: 22px; font-weight: 900; }
.dashboard-meta { color: var(--gray-400); font-size: 14px; margin-top: 2px; }

/* ─── TICKET CARD ─────────────────────────────────────────── */
.ticket {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); margin-bottom: 0;
}
.ticket-header { padding: 18px 20px; color: #fff; }
.ticket-body   { padding: 20px; }
.ticket-qr     { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.ticket-meta   { flex: 1; min-width: 160px; }
.ticket-meta-row { margin-bottom: 10px; }
.ticket-meta-key { font-size: 11px; color: var(--gray-400); }
.ticket-meta-val { font-size: 13px; font-weight: 700; }
.ticket-scan-hint {
  margin-top: 14px; padding: 10px; background: var(--gray-50);
  border-radius: 8px; font-size: 12px; color: var(--gray-400); text-align: center;
}

/* ─── MODAL ──────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 16px; backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: #fff; border-radius: 20px; padding: 32px;
  width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0,0,0,.3);
  transform: translateY(20px); transition: transform .2s;
}
.modal-backdrop.open .modal-box { transform: translateY(0); }
.modal-title { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.modal-sub   { color: var(--gray-400); font-size: 14px; margin-bottom: 22px; }

/* ─── ADMIN NAV ──────────────────────────────────────────── */
.admin-layout { display: flex; min-height: calc(100vh - 62px); }
.admin-sidebar {
  width: 220px; background: var(--dark); color: #fff;
  padding: 24px 12px; flex-shrink: 0;
  position: sticky; top: 62px; height: calc(100vh - 62px);
  overflow-y: auto;
}
.admin-content { flex: 1; padding: 32px 28px; overflow: auto; }
.sidebar-label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.35); letter-spacing: 1px; text-transform: uppercase; padding: 0 12px; margin: 20px 0 8px; }
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px; color: rgba(255,255,255,.7);
  text-decoration: none; font-weight: 600; font-size: 14px; transition: all .2s;
}
.sidebar-link:hover, .sidebar-link.active { background: rgba(255,255,255,.12); color: #fff; }
.sidebar-icon { font-size: 18px; }

/* ─── PROGRESS BAR ───────────────────────────────────────── */
.progress { background: var(--gray-100); border-radius: 4px; height: 6px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 4px; transition: width .4s ease; }

/* ─── CERT PLACEHOLDER ───────────────────────────────────── */
.cert-pending {
  text-align: center; padding: 24px; background: var(--gray-50);
  border-radius: 12px; border: 2px dashed var(--gray-200);
}

/* ─── EMPTY STATE ────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-400); }
.empty-state-icon { font-size: 52px; margin-bottom: 14px; }

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer { background: var(--dark); color: rgba(255,255,255,.6); padding: 32px 24px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer-brand { font-weight: 800; color: #fff; font-size: 16px; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: rgba(255,255,255,.5); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: #c4b5fd; }
.footer-copy { font-size: 12px; width: 100%; }

/* ─── PAGE HEADER ────────────────────────────────────────── */
.page-header { background: var(--dark); color: #fff; padding: 40px 24px; }
.page-header-inner { max-width: 1200px; margin: 0 auto; }
.page-header h1 { font-size: clamp(24px,4vw,36px); font-weight: 900; margin-bottom: 4px; }
.page-header p  { opacity: .7; font-size: 15px; }

/* ─── PAYMENT SUMMARY ────────────────────────────────────── */
.pay-summary { background: var(--gray-50); border-radius: 12px; padding: 16px; margin-bottom: 20px; }
.pay-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.pay-row:last-child { border-top: 1px solid var(--gray-200); padding-top: 10px; margin-top: 4px; font-weight: 800; font-size: 16px; }
.pay-row span:last-child { color: var(--purple); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-hamburger { display: block; }
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 62px; left: 0; right: 0; background: var(--dark);
    padding: 16px; gap: 4px; border-top: 1px solid rgba(255,255,255,.1);
  }
  .nav-links.open { display: flex; }
  .navbar { position: relative; }

  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: relative; top: 0; display: flex; flex-wrap: wrap; gap: 4px; padding: 12px; }
  .sidebar-label { display: none; }
  .admin-content { padding: 20px 16px; }

  .ticket-qr { flex-direction: column; }
  .hero-stats { gap: 20px; }
}

@media (max-width: 480px) {
  .events-grid { grid-template-columns: 1fr; }
  .stat-grid   { grid-template-columns: 1fr 1fr; }
  .modal-box   { padding: 20px; }
  .auth-card   { padding: 22px; }
}

/* ─── UTILS ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--gray-400); }
.mt-1 { margin-top: 8px; }  .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; }
.d-flex { display: flex; } .align-center { align-items: center; } .flex-wrap { flex-wrap: wrap; }
.fw-bold { font-weight: 700; } .fw-black { font-weight: 900; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

/* ─── FOOTER REDESIGN ─────────────────────────────────────── */
.site-footer {
  background: #0f0528;
  color: rgba(255,255,255,.75);
  padding: 0;
  margin-top: 60px;
  border-top: 3px solid #7C3AED;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 40px;
  padding: 52px 0 40px;
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}
.footer-logo {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -.5px;
}
.footer-logo em { color: #c4b5fd; font-style: normal; }
.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
  margin-bottom: 20px;
}
.footer-socials { display: flex; gap: 8px; }
.footer-social-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  transition: all .2s;
  text-decoration: none;
}
.footer-social-btn:hover { background: #7C3AED; color: #fff; }
.footer-col-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.4);
  margin-bottom: 14px;
}
.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav-list a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: 14px;
  transition: color .2s;
}
.footer-nav-list a:hover { color: #c4b5fd; }
.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-contact-list li {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.65);
  align-items: flex-start;
}
.footer-contact-list a { color: #c4b5fd; text-decoration: none; }
.footer-contact-list a:hover { color: #fff; }
.fc-icon { flex-shrink: 0; margin-top: 1px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,.35); }
.footer-copy-sep { margin: 0 6px; }
.footer-bottom-links { display: flex; gap: 8px; align-items: center; font-size: 12px; color: rgba(255,255,255,.3); }
.footer-bottom-links a { color: rgba(255,255,255,.45); text-decoration: none; transition: color .2s; }
.footer-bottom-links a:hover { color: #c4b5fd; }

/* ─── NAVBAR BRAND UPDATE ─────────────────────────────────── */
.nav-brand small {
  font-size: 12px;
  font-weight: 500;
  opacity: .6;
  margin-left: 2px;
  display: block;
  line-height: 1;
}

/* ─── GENDER OPTIONS ──────────────────────────────────────── */
.gender-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.gender-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
  user-select: none;
}
.gender-option input[type="radio"] { display: none; }
.gender-option:hover { border-color: var(--purple); background: var(--purple-l); }
.gender-option.selected,
.gender-option:has(input:checked) {
  border-color: var(--purple);
  background: var(--purple-l);
  color: var(--purple);
}
.gender-radio-mark {
  width: 16px; height: 16px;
  border: 2px solid var(--gray-400);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  transition: all .2s;
}
.gender-option:has(input:checked) .gender-radio-mark {
  border-color: var(--purple);
  background: var(--purple);
  box-shadow: inset 0 0 0 3px #fff;
}

/* ─── CONTACT PAGE ────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.contact-info-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.cic-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.cic-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-400); margin-bottom: 3px; }
.cic-val { font-size: 14px; font-weight: 600; color: var(--gray-800); }
.contact-coord-box {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.coord-heading {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--dark);
}
.coord-list { display: flex; flex-direction: column; gap: 12px; }
.coord-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
}
.coord-item:last-child { border-bottom: none; padding-bottom: 0; }
.coord-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--purple-l);
  color: var(--purple);
  font-weight: 800;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.coord-name { font-size: 14px; font-weight: 700; }
.coord-event { font-size: 12px; color: var(--gray-400); }
.coord-email { font-size: 12px; color: var(--purple); text-decoration: none; }
.coord-email:hover { text-decoration: underline; }
.map-container { margin-bottom: 24px; }
.map-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
}
.map-open-link { color: var(--purple); text-decoration: none; font-size: 12px; }
.map-open-link:hover { text-decoration: underline; }
.contact-form-box {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}

/* ─── ENROLLMENT CARDS ────────────────────────────────────── */
.enrollment-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(0,0,0,.09);
  transition: transform .2s, box-shadow .2s;
}
.enrollment-card:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,.13); }
.enrollment-card-header {
  padding: 22px;
  color: #fff;
}
.enrollment-status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}
.status-confirmed { background: rgba(255,255,255,.25); }
.status-entered   { background: rgba(22,163,74,.9); }
.enrollment-card-body { padding: 20px; }
.enroll-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
  background: var(--gray-50);
  border-radius: 10px;
  padding: 14px;
}
.enroll-detail-item { }
.enroll-detail-key { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-400); margin-bottom: 2px; }
.enroll-detail-val { font-size: 13px; font-weight: 600; color: var(--gray-800); }
.ticket-qr-row {
  display: flex;
  gap: 0;
  align-items: flex-start;
  margin-bottom: 12px;
}
.ticket-scan-hint {
  text-align: center;
  font-size: 11px;
  color: var(--gray-400);
  background: var(--gray-50);
  border-radius: 8px;
  padding: 6px;
  margin-bottom: 12px;
}

/* ─── GROUP MEMBERS ───────────────────────────────────────── */
.group-members-section {
  background: #faf9ff;
  border: 2px solid var(--purple-l);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
}
.group-members-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--dark);
}
.gm-count {
  background: var(--purple);
  color: #fff;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
}
.gm-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.gm-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  transition: opacity .3s;
}
.gm-leader { border-left: 3px solid var(--purple); }
.gm-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--purple-l);
  color: var(--purple);
  font-weight: 900;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.gm-info { flex: 1; min-width: 0; }
.gm-name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-email { font-size: 11px; color: var(--gray-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-role-badge {
  font-size: 10px;
  font-weight: 800;
  background: var(--purple);
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.gm-remove-btn {
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  font-size: 14px;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all .2s;
}
.gm-remove-btn:hover { background: #fee2e2; color: var(--red); }
.gm-add-form { margin-top: 4px; }
.gm-add-search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.gm-search-result { margin-bottom: 6px; }
.gm-found-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #dcfce7;
  border: 1.5px solid #86efac;
  border-radius: 10px;
  padding: 10px 12px;
}
.gm-msg {
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--gray-100);
  color: var(--gray-600);
}
.gm-msg-error   { background: #fee2e2; color: #991b1b; }
.gm-msg-success { background: #dcfce7; color: #166534; }
.gm-msg-warn    { background: #fef3c7; color: #92400e; }
.gm-hint { font-size: 11px; color: var(--gray-400); margin-top: 4px; }
.gm-full-msg {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  text-align: center;
  padding: 8px;
  background: #dcfce7;
  border-radius: 8px;
}

/* ─── NAV LOGO ────────────────────────────────────────────── */
.nav-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.25);
  flex-shrink: 0;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -.4px;
}
.nav-brand em { color: #f97316; font-style: normal; }

/* ─── FOOTER LOGO ─────────────────────────────────────────── */
.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.footer-logo-img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.2);
  flex-shrink: 0;
}
.footer-tagline-small {
  font-size: 11px;
  color: rgba(255,255,255,.4);
  margin-top: 2px;
}

/* ─── ADMIN SIDEBAR BRAND ─────────────────────────────────── */
.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 10px;
}

/* ─── DASHBOARD USER AVATAR LG ────────────────────────────── */
.user-avatar-lg {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED, #4c1d95);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(124,58,237,.3);
}

/* ─── CERTIFICATE CARDS ───────────────────────────────────── */
.cert-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(0,0,0,.1);
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.cert-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.14); }
.cert-card-ribbon {
  height: 6px;
  width: 100%;
}
.cert-card-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 32px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.2));
}
.cert-card-body {
  padding: 20px 22px 22px;
}
.cert-card-title {
  font-size: 18px;
  font-weight: 900;
  color: #1e0a4e;
  margin-bottom: 4px;
  margin-top: 12px;
}
.cert-card-sub {
  font-size: 12px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.cert-card-name {
  font-size: 15px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 2px;
}
.cert-card-id {
  font-size: 12px;
  font-family: monospace;
  color: #7C3AED;
  background: #f5f3ff;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 4px;
}
.cert-pending-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fef3c7;
  border: 1.5px solid #fde68a;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: #92400e;
  margin-top: 14px;
  font-weight: 500;
  line-height: 1.4;
}

/* ─── ADMIN SIDEBAR BADGE ─────────────────────────────────── */
.badge-gray { background: #e5e7eb; color: #4b5563; }
