
/* Official Brand Styles */
.admin-login-logo {
  height: 68px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.75rem auto;
  filter: drop-shadow(0 4px 14px rgba(41, 176, 84, 0.2));
}

.admin-header-logo {
  height: 38px;
  width: auto;
  max-width: 155px;
  object-fit: contain;
  display: block;
  background: #ffffff;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.search-box-brand {
  position: absolute;
  left: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.search-logo-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* ==========================================================================
   ODWADINI MPUNTUO — Master Admin Operations Dashboard (360 Group Ltd)
   High-performance, Modern Glassmorphism & Direct Outreach System
   ========================================================================== */

:root {
  --green-deep: #09261e;
  --green-rich: #0d382b;
  --green-light: #e8f5f0;
  --green-border: #bfe3d5;

  --gold: #d4af37;
  --gold-warm: #f0c352;
  --gold-deep: #9d7d1e;
  --gold-subtle: #fcf8ee;
  --gold-border: #ecdcb9;

  --wa-green: #25D366;
  --wa-dark: #128C7E;
  --wa-light: #e8f8f0;

  --canvas: #f4f6f8;
  --card-bg: #ffffff;
  --surface-alt: #f8fafb;

  --ink-primary: #0f172a;
  --ink-secondary: #334155;
  --ink-muted: #64748b;
  --ink-faint: #94a3b8;

  --line: #e2e8f0;
  --line-strong: #cbd5e1;

  --red: #dc2626;
  --red-light: #fef2f2;
  --blue: #2563eb;
  --blue-light: #eff6ff;
  --amber: #d97706;
  --amber-light: #fffbeb;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.06);

  --font-display: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--canvas);
  color: var(--ink-primary);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* -------------------------------- LOGIN SCREEN -------------------------------- */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(212, 175, 55, 0.12), transparent 70%),
    linear-gradient(145deg, #09261e 0%, #0d382b 50%, #051611 100%);
  padding: 1.5rem;
}

.login-card {
  background: var(--card-bg);
  width: 100%;
  max-width: 420px;
  padding: 2.75rem 2.25rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.login-crest {
  width: 68px;
  height: 68px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, var(--green-deep), var(--green-rich));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px -5px rgba(9, 38, 30, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.login-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--green-deep);
  letter-spacing: -0.02em;
}

.login-sub {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin: 0.35rem 0 1.75rem;
}

.field-label {
  display: block;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-secondary);
  margin-bottom: 0.45rem;
}

.field-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #f8fafc;
  outline: none;
  transition: all 0.2s ease;
}

.field-input:focus {
  border-color: var(--gold);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.login-error {
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 500;
  min-height: 1.25rem;
  margin: 0.6rem 0;
  text-align: left;
}

.btn-primary {
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: linear-gradient(135deg, var(--green-rich), var(--green-deep));
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(9, 38, 30, 0.3);
  transition: all 0.2s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(9, 38, 30, 0.4);
}

.login-back {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.login-back:hover {
  color: var(--green-rich);
}

/* -------------------------------- DASHBOARD -------------------------------- */
.dashboard {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--shadow-sm);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.admin-crest-sm {
  width: 38px;
  height: 38px;
  background: var(--green-deep);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(9, 38, 30, 0.25);
}

.admin-brand-main {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--green-deep);
  display: block;
}

.admin-brand-tag {
  font-size: 0.75rem;
  color: var(--ink-muted);
  font-weight: 500;
  display: block;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--green-light);
  color: var(--green-rich);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.btn-header-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}

.btn-header-ghost:hover {
  background: #f1f5f9;
  border-color: var(--line-strong);
  color: var(--ink-primary);
}

.btn-header-outline {
  padding: 0.45rem 0.85rem;
  background: transparent;
  border: 1px solid var(--red);
  color: var(--red);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-header-outline:hover {
  background: var(--red);
  color: #ffffff;
}

.admin-main {
  padding: 1.75rem 2rem;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

/* -------------------------------- STAT CARDS -------------------------------- */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.stat-card {
  background: var(--card-bg);
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1.1rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f1f5f9;
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card-gold .stat-icon-wrap {
  background: var(--gold-subtle);
  color: var(--gold-deep);
  border: 1px solid var(--gold-border);
}

.stat-card-alert .stat-icon-wrap {
  background: var(--amber-light);
  color: var(--amber);
  border: 1px solid #fed7aa;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--ink-primary);
  line-height: 1.1;
  display: block;
}

.stat-cap {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.2rem;
  display: block;
}

/* -------------------------------- FILTER BAR -------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  background: var(--card-bg);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.15s;
}

.chip:hover {
  background: #f8fafc;
  border-color: var(--line-strong);
}

.chip.active {
  background: var(--green-deep);
  color: #ffffff;
  border-color: var(--green-deep);
}

.chip .count {
  background: rgba(0, 0, 0, 0.08);
  padding: 0.1rem 0.45rem;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
}

.chip.active .count {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.filter-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box svg {
  position: absolute;
  left: 0.75rem;
  color: var(--ink-faint);
  pointer-events: none;
}

.search-input {
  padding: 0.48rem 0.85rem 0.48rem 2.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  width: 250px;
  outline: none;
  background: #f8fafc;
  transition: border-color 0.15s, width 0.2s;
}

.search-input:focus {
  border-color: var(--green-rich);
  background: #ffffff;
  width: 290px;
}

.status-select {
  padding: 0.48rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 500;
  outline: none;
  background: #ffffff;
  cursor: pointer;
}

.btn-refresh {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.85rem;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-refresh:hover {
  background: #f1f5f9;
  color: var(--ink-primary);
}

/* -------------------------------- DATA TABLE -------------------------------- */
.table-wrap {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  background: #f8fafc;
  padding: 0.85rem 1.1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table td {
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background-color 0.12s ease;
  cursor: pointer;
}

.data-table tbody tr:hover {
  background-color: #f8fafc;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.ref-code {
  font-family: monospace;
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--green-rich);
  background: var(--green-light);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--green-border);
  display: inline-block;
}

.cell-name {
  font-weight: 700;
  color: var(--ink-primary);
  display: block;
}

.cell-sub {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 0.15rem;
}

.type-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  color: var(--ink-secondary);
  white-space: nowrap;
}

.type-badge.hot {
  background: var(--gold-subtle);
  color: var(--gold-deep);
  border: 1px solid var(--gold-border);
}

/* Quick Outreach buttons */
.contact-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--wa-light);
  color: var(--wa-dark);
  border: 1px solid rgba(37, 211, 102, 0.4);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s;
}

.btn-wa:hover {
  background: var(--wa-green);
  color: #ffffff;
  border-color: var(--wa-green);
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #f1f5f9;
  color: var(--ink-secondary);
  border: 1px solid var(--line);
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}

.btn-call:hover {
  background: var(--blue-light);
  color: var(--blue);
  border-color: #bfdbfe;
}

/* Quick inline status dropdown */
.inline-status-select {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  outline: none;
  cursor: pointer;
  background: transparent;
}

.inline-status-select.status-new {
  background: var(--amber-light);
  color: var(--amber);
  border-color: #fde68a;
}

.inline-status-select.status-in-review {
  background: var(--blue-light);
  color: var(--blue);
  border-color: #bfdbfe;
}

.inline-status-select.status-approved {
  background: var(--green-light);
  color: var(--green-rich);
  border-color: var(--green-border);
}

.inline-status-select.status-closed {
  background: #f1f5f9;
  color: var(--ink-muted);
  border-color: var(--line);
}

.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

.icon-btn {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.15s;
}

.icon-btn:hover {
  background: #f8fafc;
  color: var(--ink-primary);
  border-color: var(--line-strong);
}

.icon-btn.primary {
  background: var(--green-light);
  color: var(--green-rich);
  border-color: var(--green-border);
}

.icon-btn.danger {
  color: var(--red);
}

.icon-btn.danger:hover {
  background: var(--red-light);
  border-color: #fca5a5;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink-primary);
  margin-bottom: 0.4rem;
}

.empty-hint {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

/* -------------------------------- DRAWER -------------------------------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  justify-content: flex-end;
}

.drawer-backdrop.open {
  display: flex;
}

.drawer {
  width: 100%;
  max-width: 520px;
  background: var(--card-bg);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25);
  animation: slideInRight 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.drawer-head {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.drawer-ref {
  font-family: monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-rich);
  background: var(--green-light);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.drawer-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--green-deep);
  margin-top: 0.35rem;
}

.drawer-close {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--ink-muted);
  cursor: pointer;
  line-height: 1;
}

.drawer-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.drawer-status-box {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.drawer-status-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}

.drawer-status-select-wrap select {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  background: #ffffff;
  outline: none;
}

.drawer-quick-actions {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.drawer-quick-actions a,
.drawer-quick-actions button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.drawer-quick-wa {
  background: var(--wa-green);
  color: #ffffff;
}

.drawer-quick-call {
  background: #f1f5f9;
  color: var(--ink-primary);
  border: 1px solid var(--line) !important;
}

.drawer-meta {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--line);
}

.drawer-section {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-secondary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-grid {
  display: grid;
  gap: 0.85rem;
}

.detail-item {
  background: #f8fafc;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.detail-key {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.detail-val {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-primary);
  word-break: break-word;
}

.drawer-foot {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 0.75rem;
  background: #f8fafc;
}

.btn-print-pass {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: var(--green-deep);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-print-pass:hover {
  background: var(--gold-warm);
}

.btn-danger {
  padding: 0.75rem 1.1rem;
  background: #ffffff;
  border: 1px solid var(--red);
  color: var(--red);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-danger:hover {
  background: var(--red);
  color: #ffffff;
}

/* -------------------------------- PARTICIPANT PASS MODAL -------------------------------- */
.pass-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(5px);
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.pass-modal {
  background: #ffffff;
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.pass-modal-head {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.pass-modal-head h3 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--green-deep);
  font-size: 1.1rem;
}

.pass-modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.pass-modal-body {
  padding: 1.5rem;
  background: #f1f5f9;
}

/* The Printable Event Card */
.event-id-card {
  background: #ffffff;
  border: 2px solid var(--gold);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.event-id-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #09261e, #d4af37, #dc2626);
}

.pass-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pass-card-logo {
  width: 36px;
  height: 36px;
  background: var(--green-deep);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pass-card-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--green-deep);
  letter-spacing: 0.02em;
}

.pass-card-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.pass-year-pill {
  margin-left: auto;
  background: var(--gold-subtle);
  color: var(--gold-deep);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--gold-border);
}

.pass-card-banner {
  background: linear-gradient(135deg, var(--green-deep), var(--green-rich));
  color: var(--gold-warm);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 0.4rem;
  border-radius: 6px;
  margin-bottom: 1.25rem;
}

.pass-card-content {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.pass-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.pass-avatar {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0d382b, #155743);
  color: var(--gold-warm);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
}

.pass-verified-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #10b981;
}

.pass-info-block {
  flex: 1;
}

.pass-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  display: block;
}

.pass-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink-primary);
  margin-bottom: 0.6rem;
}

.pass-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.pass-val {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.pass-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px dashed var(--line);
  padding-top: 1rem;
}

.pass-ref-code {
  font-family: monospace;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--green-rich);
}

.pass-barcode-sim {
  text-align: right;
}

.barcode-lines {
  width: 130px;
  height: 24px;
  background: repeating-linear-gradient(
    90deg,
    #0f172a 0px,
    #0f172a 2px,
    transparent 2px,
    transparent 4px,
    #0f172a 4px,
    #0f172a 7px,
    transparent 7px,
    transparent 9px
  );
  margin-bottom: 0.2rem;
}

.pass-barcode-sim span {
  font-size: 0.62rem;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  font-weight: 700;
}

.pass-modal-actions {
  padding: 1rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  border-top: 1px solid var(--line);
}

.btn-outline {
  padding: 0.75rem 1.25rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
}

/* -------------------------------- TOAST -------------------------------- */
.toast-wrap {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}

.toast {
  background: var(--ink-primary);
  color: #ffffff;
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: slideUp 0.2s ease;
}

.toast.toast-error {
  background: var(--red);
}

.toast.toast-gold {
  background: var(--green-deep);
  color: var(--gold-warm);
  border: 1px solid var(--gold);
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* -------------------------------- PRINT MEDIA -------------------------------- */
@media print {
  body * {
    visibility: hidden;
  }
  #printArea, #printArea * {
    visibility: visible;
  }
  #printArea {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: none;
    box-shadow: none;
  }
}
