/* ==========================================================================
   VALIDEX™ HEALTHCARE DESIGN SYSTEM & STYLESHEET
   Ultra-Modern, Distinct Medical Aesthetics & Palette
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Distinct Healthcare Color Tokens */
  --primary: #059669;        /* Emerald 600 */
  --primary-hover: #047857;  /* Emerald 700 */
  --primary-light: #d1fae5;  /* Emerald 100 */
  
  --secondary: #4f46e5;      /* Indigo 600 */
  --secondary-hover: #4338ca;/* Indigo 700 */
  --secondary-light: #e0e7ff;/* Indigo 100 */
  
  --accent-cyan: #06b6d4;    /* Cyan 500 */
  --accent-cyan-bg: #cffafe;
  
  --dark-bg: #090d16;        /* Deep Obsidian */
  --dark-surface: #111827;   /* Slate Dark */
  --dark-card: #1f2937;
  
  --light-bg: #f4f7fa;       /* Porcelain White */
  --light-surface: #ffffff;
  --light-border: #e2e8f0;   /* Border Neutral */
  
  --text-main: #0f172a;      /* Dark Charcoal */
  --text-muted: #64748b;     /* Muted Slate */
  --text-light: #94a3b8;
  
  --success: #10b981;        /* Emerald Success */
  --success-bg: #ecfdf5;
  --warning: #f59e0b;        /* Amber Warning */
  --warning-bg: #fffbeb;
  --danger: #ef4444;
  --purple: #8b5cf6;
  --purple-bg: #f5f3ff;
  
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 5px rgba(0,0,0,0.03), 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 16px -2px rgba(5, 150, 105, 0.08), 0 4px 6px -2px rgba(0,0,0,0.03);
  --shadow-lg: 0 20px 35px -8px rgba(5, 150, 105, 0.14), 0 8px 16px -4px rgba(0,0,0,0.04);
  --shadow-glow: 0 0 30px rgba(5, 150, 105, 0.25);
  
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-main);
  background-color: var(--light-bg);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: 'Outfit', sans-serif;
}

body {
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* View Switcher Top Bar */
.view-switcher-bar {
  background: #090d16;
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 0.65rem 0;
  border-bottom: 2px solid #1e293b;
}

.view-switcher-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.portal-nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.825rem;
  color: #38bdf8;
  background: #1e293b;
  transition: var(--transition-fast);
  border: 1px solid #334155;
  text-decoration: none;
  cursor: pointer;
}

.portal-btn:hover {
  color: #ffffff;
  background: #334155;
  border-color: #38bdf8;
  transform: translateY(-1px);
}

.portal-btn.active {
  background: linear-gradient(135deg, #059669 0%, #4f46e5 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.45);
}

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

/* Top Announcement Bar */
.top-bar {
  background: linear-gradient(90deg, #090d16 0%, #1e1b4b 50%, #090d16 100%);
  color: #ffffff;
  font-size: 0.875rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.75rem;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #34d399;
  border-radius: 50%;
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.top-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-link {
  color: #a5b4fc;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}

.top-link:hover {
  color: #ffffff;
}

/* Header Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--light-border);
  transition: var(--transition-normal);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 84px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--dark-bg);
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--primary);
}

.logo-tag {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  font-weight: 800;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(5, 150, 105, 0.45);
}

.btn-secondary {
  background: var(--light-surface);
  color: var(--dark-bg);
  border: 1px solid var(--light-border);
}

.btn-secondary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-2px);
}

.btn-purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 4.5rem 0 5.5rem 0;
  background: radial-gradient(circle at 80% 20%, rgba(209, 250, 229, 0.6) 0%, rgba(224, 231, 255, 0.4) 50%, rgba(244, 247, 250, 1) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #ffffff;
  border: 1px solid var(--primary-light);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--primary);
  width: fit-content;
}

.hero-title {
  font-size: 3.35rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--dark-bg);
  letter-spacing: -0.03em;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
}

.hero-trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0.5rem;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--light-surface);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--light-border);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.trust-pill svg {
  color: var(--primary);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.hero-guarantee {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Hero Card Preview */
.hero-card-preview {
  background: var(--light-surface);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--light-border);
  position: relative;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--light-border);
  margin-bottom: 1.25rem;
}

.cert-badge-official {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.75rem;
}

.doc-info-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
}

.doc-avatar-mini {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
}

.doc-details-mini h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--dark-bg);
}

.doc-details-mini p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cert-sample-body {
  background: #f8fafc;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid #edf2f7;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.cert-line {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dotted #cbd5e1;
  padding-bottom: 4px;
}

.cert-line span.label {
  color: var(--text-muted);
  font-weight: 500;
}

.cert-line span.value {
  font-weight: 700;
  color: var(--dark-bg);
}

.cert-footer-mini {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qr-mini {
  width: 50px;
  height: 50px;
  background: #ffffff;
  border: 1px solid var(--light-border);
  padding: 4px;
  border-radius: 6px;
}

.seal-stamp-mini {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 900;
  font-size: 0.8rem;
  text-transform: uppercase;
}

/* Stats Counter Section */
.stats-section {
  background: var(--dark-bg);
  color: #ffffff;
  padding: 3.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  font-weight: 900;
  color: #34d399;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 0.95rem;
  color: #a5b4fc;
  font-weight: 600;
}

/* Certificate Types Section */
.section {
  padding: 5.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.section-subtitle {
  font-size: 0.875rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--dark-bg);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Category Filter Tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.tab-btn {
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  transition: var(--transition-fast);
}

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

.tab-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

.cert-card {
  background: var(--light-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--light-border);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
  position: relative;
}

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

.cert-card.popular {
  border: 2px solid var(--primary);
}

.popular-tag {
  position: absolute;
  top: -14px;
  right: 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.3);
}

.cert-card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.cert-card-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark-bg);
  margin-bottom: 0.5rem;
}

.cert-card-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.cert-card-price span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.cert-card-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.cert-card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
  border-top: 1px solid var(--light-border);
  padding-top: 1.25rem;
}

.cert-card-features li {
  font-size: 0.875rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.cert-card-features li svg {
  color: var(--primary);
  flex-shrink: 0;
}

.cert-card-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

/* Process Timeline / Workflow */
.process-section {
  background: #edf2f7;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.process-card {
  background: var(--light-surface);
  padding: 2.25rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-border);
  position: relative;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.process-step-num {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
  margin: 0 auto 1.25rem auto;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.process-card h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--dark-bg);
}

.process-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Verification Engine & Search Section */
.verify-section {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #1e1b4b 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 4.5rem 3rem;
  margin: 4rem auto;
  box-shadow: var(--shadow-xl);
}

.verify-box {
  max-width: 650px;
  margin: 2rem auto 0 auto;
}

.search-input-group {
  display: flex;
  background: #ffffff;
  padding: 6px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.search-input-group input {
  flex: 1;
  border: none;
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
  outline: none;
  font-family: inherit;
  color: var(--dark-bg);
  border-radius: var(--radius-md);
}

/* Modal & Application Wizard */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(9, 13, 22, 0.8);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--light-surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  position: relative;
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--light-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 10;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--dark-bg);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: #e2e8f0;
  color: var(--dark-bg);
}

/* Wizard Steps Progress */
.wizard-progress {
  display: flex;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--light-border);
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-light);
}

.step-item.active {
  color: var(--primary);
}

.step-item.completed {
  color: var(--success);
}

.step-bubble {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
}

.step-item.active .step-bubble {
  background: var(--primary);
  color: #ffffff;
}

.step-item.completed .step-bubble {
  background: var(--success);
  color: #ffffff;
}

.modal-body {
  padding: 2rem;
}

/* Form Controls */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--dark-bg);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--light-border);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition-fast);
  background: #ffffff;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.modal-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--light-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
}

/* Interactive Certificate Viewer Modal */
.cert-document-view {
  background: #ffffff;
  border: 2px solid #090d16;
  border-radius: 4px;
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg);
  font-family: 'Times New Roman', Georgia, serif;
  color: #111111;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
  background-size: 24px 24px;
}

.cert-header-official {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 3px double #090d16;
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
}

.clinic-branding h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: #090d16;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.clinic-branding p {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  color: #475569;
}

.doc-reg-details {
  text-align: right;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.825rem;
  line-height: 1.4;
}

.cert-main-title {
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #090d16;
  margin: 1.5rem 0;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.cert-content-body {
  font-size: 1.05rem;
  line-height: 1.9;
  text-align: justify;
  margin-bottom: 2.5rem;
}

.cert-footer-signatures {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 3rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.official-seal-badge {
  border: 2px solid var(--primary);
  border-radius: 50%;
  width: 90px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 900;
  font-size: 0.65rem;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-10deg);
}

.doctor-signature-box {
  text-align: center;
}

.signature-img-placeholder {
  font-family: 'Brush Script MT', cursive, sans-serif;
  font-size: 2.2rem;
  color: #059669;
  margin-bottom: -10px;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 850px;
  margin: 0 auto;
}

.faq-item {
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--dark-bg);
  text-align: left;
}

.faq-question svg {
  transition: transform 0.3s ease;
  color: var(--primary);
  flex-shrink: 0;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Doctor Portal (/nmcdoctors) */
.portal-hero {
  background: linear-gradient(135deg, #090d16 0%, #1e1b4b 100%);
  color: #ffffff;
  padding: 4rem 0;
  border-bottom: 1px solid var(--dark-card);
}

.portal-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
}

.portal-sidebar {
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.doc-profile-card {
  text-align: center;
  border-bottom: 1px solid var(--light-border);
  padding-bottom: 1.25rem;
}

.doc-avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  margin: 0 auto 10px auto;
}

.doc-status-badge {
  display: inline-block;
  background: var(--success-bg);
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  margin-top: 6px;
}

.queue-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.queue-item {
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.queue-item:hover, .queue-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  background: var(--primary-light);
}

.signature-pad-container {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  background: #ffffff;
  padding: 10px;
  text-align: center;
  position: relative;
}

#signatureCanvas {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  cursor: crosshair;
  touch-action: none;
}

/* Admin Dashboard (/admin) */
.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.admin-stat-card {
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-stat-card.primary { border-top: 4px solid var(--primary); }
.admin-stat-card.success { border-top: 4px solid var(--success); }
.admin-stat-card.purple { border-top: 4px solid var(--purple); }
.admin-stat-card.warning { border-top: 4px solid var(--warning); }

.admin-stat-val {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--dark-bg);
  font-family: 'Outfit', sans-serif;
}

.admin-stat-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--light-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--light-border);
}

.data-table th, .data-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--light-border);
}

.data-table th {
  background: #f8fafc;
  font-weight: 800;
  color: var(--dark-bg);
}

/* Footer */
.footer {
  background: var(--dark-bg);
  color: #94a3b8;
  padding: 5rem 0 2rem 0;
  border-top: 1px solid var(--dark-card);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid var(--dark-card);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--dark-bg);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  border-left: 4px solid var(--primary);
  animation: slide-in 0.3s ease;
}

@keyframes slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Print Stylesheet */
@media print {
  body * {
    visibility: hidden;
  }
  #certPrintArea, #certPrintArea * {
    visibility: visible;
  }
  #certPrintArea {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: none;
    box-shadow: none;
  }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .portal-grid { grid-template-columns: 1fr; }
  .admin-metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero-title { font-size: 2.35rem; }
  .nav-menu { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .admin-metrics-grid { grid-template-columns: 1fr; }
}
