/* ── CSS Variables ───────────────────────────────────────────────────────── */
:root {
  --primary: #0d1f3c;
  --primary-dark: #071628;
  --primary-light: #1e3a6e;
  --secondary: #c9a96e;
  --secondary-light: #e8d5a3;
  --accent: #c9a96e;
  --accent-dark: #9a7a4a;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --font-heading: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --transition: all 0.2s ease;
}

/* ── Reset & Base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }

img { max-width: 100%; height: auto; display: block; }

/* ── Navigation ──────────────────────────────────────────────────────────── */
.navbar {
  background: var(--primary);
  color: var(--white);
  padding: 0 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  white-space: nowrap;
}
.navbar-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  background: white;
  border-radius: 6px;
  padding: 2px 6px;
}

.navbar-brand span.year {
  background: var(--accent);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.navbar-links a {
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.15);
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
}

/* ── Hero Section ────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1e5a8a 50%, var(--secondary) 100%);
  color: var(--white);
  padding: 4rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::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.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content { position: relative; max-width: 800px; margin: 0 auto; }

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.95rem;
  opacity: 0.85;
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── Container ───────────────────────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-sm { max-width: 800px; margin: 0 auto; padding: 0 1rem; }
.container-md { max-width: 960px; margin: 0 auto; padding: 0 1rem; }

/* ── Section ─────────────────────────────────────────────────────────────── */
.section { padding: 3rem 1rem; }
.section-lg { padding: 4rem 1rem; }

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--gray-500);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

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

.card-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 1.25rem 1.5rem;
}

.card-header h3 { font-size: 1.1rem; font-weight: 600; }
.card-body { padding: 1.5rem; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.action-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.action-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.action-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.action-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--gray-800); }
.action-card p { font-size: 0.9rem; color: var(--gray-500); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); }

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}
.btn-secondary:hover { background: #9a7a4a; border-color: #9a7a4a; color: var(--white); }

.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); }

.btn-success {
  background: var(--success);
  color: var(--white);
  border-color: var(--success);
}
.btn-success:hover { background: #059669; color: var(--white); }

.btn-danger {
  background: var(--danger);
  color: var(--white);
  border-color: var(--danger);
}
.btn-danger:hover { background: #dc2626; color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.form-section-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 1rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-section-body { padding: 1.5rem; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group.full { grid-column: 1 / -1; }

label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
}

label .required {
  color: var(--danger);
  margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition);
  width: 100%;
  font-family: var(--font-body);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.2);
}

input[type="file"] {
  padding: 0.5rem;
  border: 1.5px dashed var(--gray-300);
  border-radius: var(--radius);
  background: var(--gray-50);
  cursor: pointer;
  width: 100%;
}

textarea { resize: vertical; min-height: 80px; }

.form-hint { font-size: 0.8rem; color: var(--gray-400); }

.form-error {
  font-size: 0.8rem;
  color: var(--danger);
  display: none;
}

.form-error.visible { display: block; }

/* Checkboxes & Radios */
.check-group, .radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.check-item, .radio-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  background: var(--white);
  min-width: 0;
  flex: 1 0 auto;
}

.check-item:hover, .radio-item:hover {
  border-color: var(--secondary);
  background: #f5f0e8;
}

.check-item input, .radio-item input { margin-top: 2px; cursor: pointer; }

/* ── Alerts ──────────────────────────────────────────────────────────────── */
.alert {
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1px solid transparent;
}

.alert-success {
  background: #d1fae5;
  border-color: #6ee7b7;
  color: #065f46;
}

.alert-error {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

.alert-warning {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #92400e;
}

.alert-info {
  background: #e8f0f8;
  border-color: #9ab4d4;
  color: #0d1f3c;
}

/* ── Status Badges ───────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-pending { background: #fef3c7; color: #92400e; }
.badge-confirmed { background: #d1fae5; color: #065f46; }
.badge-rejected { background: #fee2e2; color: #991b1b; }
.badge-primary { background: #e0eaf5; color: #0d1f3c; }
.badge-secondary { background: #f5f0e4; color: #7a5c2a; }

/* Role badges */
.badge-horc { background: #fef3c7; color: #78350f; }
.badge-board { background: #e0eaf5; color: #0d1f3c; }
.badge-esg { background: #d1fae5; color: #065f46; }
.badge-isc { background: #ede9fe; color: #4c1d95; }
.badge-guest { background: #f3f4f6; color: #374151; }

/* ── Tables ──────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--white);
}

thead {
  background: var(--primary);
  color: var(--white);
}

thead th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}

tbody tr:hover { background: var(--gray-50); }

tbody td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
}

/* ── Tabs ────────────────────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  padding: 0.65rem 1.25rem;
  border: none;
  background: none;
  color: var(--gray-500);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  white-space: nowrap;
}

.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── Agenda ──────────────────────────────────────────────────────────────── */
.agenda-day-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  margin-bottom: 1.5rem;
}

.agenda-day-btn {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.agenda-day-btn.active,
.agenda-day-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.agenda-list { list-style: none; }

.agenda-item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
  align-items: flex-start;
}

.agenda-time {
  flex-shrink: 0;
  min-width: 120px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary);
  padding-top: 2px;
}

.agenda-item-title {
  font-size: 0.9rem;
  color: var(--gray-800);
  flex: 1;
}

.agenda-item-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--gray-100);
  color: var(--gray-500);
  white-space: nowrap;
}

.agenda-item-badge.closed { background: #fee2e2; color: #991b1b; }
.agenda-item-badge.keynote { background: #e0eaf5; color: #0d1f3c; }
.agenda-item-badge.social { background: #d1fae5; color: #065f46; }

/* ── Agenda Table (3-col: Time | Program | Venue) ────────────────────────── */
.agenda-tbl { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.agenda-tbl thead th { background: var(--primary); color: white; padding: 0.5rem 0.75rem; text-align: left; font-weight: 600; font-size: 0.8rem; }
.agenda-tbl td { padding: 0.45rem 0.75rem; border-bottom: 1px solid var(--gray-100); vertical-align: top; line-height: 1.5; }
.agenda-tbl .col-time { width: 105px; color: var(--gray-500); font-size: 0.77rem; font-weight: 600; white-space: nowrap; padding-top: 0.55rem; }
.agenda-tbl .col-venue { width: 120px; color: var(--gray-600); font-size: 0.77rem; }
.arow-section td { background: #e0eaf5; font-weight: 700; color: #0d1f3c; font-size: 0.8rem; }
.arow-break td { background: #f0fdf4; color: var(--gray-500); font-style: italic; }
.arow-social td { background: #fef3c7; }
.arow-closed td { background: #fce7f3; color: #9d174d; }
.arow-sub td:not(.col-time):not(.col-venue) { padding-left: 1.25rem; }
.arow-end td { background: var(--gray-50); color: var(--gray-500); font-size: 0.8rem; text-align: center; }

.se-toggle {
  background: none; border: none; cursor: pointer; padding: 0;
  text-align: left; font-size: 0.84rem; width: 100%;
  display: flex; align-items: flex-start; gap: 0.35rem; color: inherit;
}
.se-toggle:hover .se-title { text-decoration: underline; color: var(--accent-dark, #92400e); }
.se-title { color: var(--primary); }
.se-icon { flex-shrink: 0; font-size: 0.65rem; margin-top: 0.35rem; transition: transform 0.2s; display: inline-block; }
.se-toggle.open .se-icon { transform: rotate(180deg); }
.se-detail {
  display: none; margin-top: 0.6rem; padding: 0.7rem 0.85rem;
  background: #f8f4ec; border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.8rem; line-height: 1.6;
}
.se-detail.open { display: block; }
.se-orgs { margin-bottom: 0.4rem; color: var(--gray-700); }
.se-orgs strong { color: var(--primary); }
.se-blurb { color: var(--gray-600); }

/* ── Stats Cards ─────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}

.stat-card:hover { box-shadow: var(--shadow); }

.stat-card .stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
  font-weight: 500;
}

/* ── Modal ───────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 0.2s;
}

.modal-overlay.open .modal { transform: scale(1); }

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-header h3 { font-size: 1.05rem; font-weight: 700; }

.modal-close {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0 0.25rem;
  opacity: 0.8;
  transition: var(--transition);
}

.modal-close:hover { opacity: 1; }

.modal-body { padding: 1.5rem; }

/* ── Availability Grid ───────────────────────────────────────────────────── */
.avail-grid {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.avail-table {
  border-collapse: collapse;
  min-width: 100%;
  font-size: 0.82rem;
}

.avail-table th {
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 0.75rem;
  text-align: center;
  white-space: nowrap;
}

.avail-table td {
  padding: 0.4rem 0.75rem;
  text-align: center;
  border: 1px solid var(--gray-200);
}

.slot-available {
  background: #d1fae5;
  color: #065f46;
  font-weight: 600;
}

.slot-booked {
  background: #fee2e2;
  color: #991b1b;
  font-weight: 600;
}

.slot-selected {
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
}

/* ── Name Badges ─────────────────────────────────────────────────────────── */
.badge-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1rem;
}

.name-badge {
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  page-break-inside: avoid;
  break-inside: avoid;
  width: 210px;
  height: 297px;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
}

.badge-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 0.6rem 1rem;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
}

.badge-logo-area {
  padding: 0.5rem;
  text-align: center;
  border-bottom: 1px solid var(--gray-200);
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 0.7rem;
}

.badge-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
}

.badge-body {
  flex: 1;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.badge-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.badge-title-text {
  font-size: 0.7rem;
  color: var(--gray-600);
}

.badge-org { font-size: 0.72rem; color: var(--gray-700); font-weight: 600; }
.badge-country { font-size: 0.68rem; color: var(--gray-500); }

.badge-role-tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.badge-footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 0.4rem 0.75rem;
  text-align: center;
  font-size: 0.6rem;
  color: var(--gray-400);
}

/* ── Confirmation Display ────────────────────────────────────────────────── */
.confirmation-box {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border: 2px solid #6ee7b7;
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
}

.confirmation-code {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.15em;
  background: var(--white);
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius);
  margin: 1rem 0;
  box-shadow: var(--shadow-sm);
}

/* ── Admin Layout ────────────────────────────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 64px);
}

.admin-sidebar {
  width: 220px;
  background: var(--primary);
  padding: 1rem 0;
  flex-shrink: 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.sidebar-link:hover, .sidebar-link.active {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.admin-content {
  flex: 1;
  padding: 2rem;
  overflow-x: auto;
}

/* ── Search & Filters ────────────────────────────────────────────────────── */
.search-bar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.search-bar input {
  flex: 1;
  min-width: 200px;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.85rem;
  margin-top: auto;
}

footer a { color: rgba(255,255,255,0.9); }

/* ── Utility ─────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.font-bold { font-weight: 700; }
.text-sm { font-size: 0.85rem; }
.text-muted { color: var(--gray-400); }
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Pagination ──────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.page-btn {
  padding: 0.35rem 0.7rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--gray-700);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.page-btn:hover, .page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--primary); padding: 0.5rem; z-index: 99; }
  .navbar-links.open { display: flex; }
  .navbar-toggle { display: block; }
  .navbar { position: sticky; }
  .hero { padding: 2.5rem 1rem; }
  .admin-sidebar { display: none; }
  .admin-content { padding: 1rem; }
  .badge-preview-grid { grid-template-columns: 1fr; }
  .tabs { gap: 0; }
}

/* ── Print Styles ────────────────────────────────────────────────────────── */
@media print {
  body { background: white; }
  .navbar, .admin-sidebar, footer, .no-print, .btn, .search-bar, .pagination, .tabs, .stats-grid { display: none !important; }
  .admin-content { padding: 0; }
  .badge-print-grid {
    display: grid;
    grid-template-columns: repeat(2, 105mm);
    gap: 5mm;
    padding: 10mm;
  }
  .name-badge {
    width: 105mm;
    height: 148mm;
    page-break-inside: avoid;
    break-inside: avoid;
  }
  @page { size: A4; margin: 10mm; }
}
