/* ==========================================================================
   Chromate BioAnalytics GmbH - Verification Portal Stylesheet
   Domain: coacertificates.com
   Style: Minimalist, Airy, High-Contrast European Analytical Registry
   ========================================================================== */

:root {
  --primary-navy: #091326;
  --primary-dark: #0f1c3f;
  --primary-card: #ffffff;
  --accent-emerald: #059669;
  --accent-emerald-light: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.22);
  --emerald-bg: #ecfdf5;
  --emerald-border: #a7f3d0;
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-body: #f8fafc;
  --border-light: #e2e8f0;
  --border-subtle: #cbd5e1;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 30px -5px rgba(0, 0, 0, 0.12), 0 10px 15px -5px rgba(0, 0, 0, 0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, 'Liberation Mono', Menlo, monospace;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  color: var(--text-body);
  background-color: var(--bg-body);
  line-height: 1.5;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font-family: inherit;
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ─── Announcement Bar ─── */
.announcement-bar {
  background: #060d1b;
  color: #94a3b8;
  font-size: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.announcement-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.announcement-badge {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-weight: 700;
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.announcement-right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11.5px;
}

.announcement-right a {
  color: #cbd5e1;
  transition: color 0.15s;
}

.announcement-right a:hover {
  color: #34d399;
}

/* ─── Main Header (Spacious, Minimalist, No Overlaps) ─── */
.main-header {
  background: rgba(9, 19, 38, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-icon-svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.4px;
  line-height: 1.15;
}

.brand-name .swoop {
  color: #10b981;
}

.brand-sub {
  font-size: 10.5px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* Navigation Links */
.nav-container {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: #cbd5e1;
  transition: all 0.2s ease;
  padding: 6px 0;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #10b981;
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-header-search {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-header-search:hover {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

/* ─── Hero Section (Clean, Spacious, Authoritative) ─── */
.hero-section {
  background: linear-gradient(180deg, #091326 0%, #0d1e3d 60%, #0e244d 100%);
  color: #ffffff;
  padding: 76px 0 88px 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 960px;
  height: 480px;
  background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.12) 0%, rgba(14, 36, 77, 0) 70%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-badge-pulse {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.15;
  margin-bottom: 18px;
  color: #ffffff;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 40%, #6ee7b7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 16.5px;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 36px;
  font-weight: 400;
}

/* ─── Search Bar ─── */
.search-wrapper {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  text-align: left;
}

.search-input-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: var(--radius-full);
  padding: 6px 8px 6px 20px;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.45);
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
}

.search-input-box:focus-within {
  border-color: #10b981;
  box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(16, 185, 129, 0.25);
  transform: translateY(-2px);
}

.search-icon {
  color: #64748b;
  margin-right: 12px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--text-dark);
  font-weight: 500;
  background: transparent;
  padding: 10px 0;
}

.search-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.search-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.search-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.search-bar-relative {
  position: relative;
  width: 100%;
}

/* Auto-suggestions Dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  z-index: 250;
  display: none;
  max-height: 420px;
  overflow-y: auto;
}

.search-dropdown.active {
  display: block;
}

.dropdown-header {
  padding: 10px 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.15s;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover, .dropdown-item.selected {
  background: #ecfdf5;
}

.drop-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drop-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  object-fit: contain;
  border: 1px solid var(--border-light);
  padding: 2px;
}

.drop-item-meta {
  display: flex;
  flex-direction: column;
}

.drop-item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.drop-item-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.drop-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.drop-purity-badge {
  background: var(--emerald-bg);
  color: var(--accent-emerald);
  border: 1px solid var(--emerald-border);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.drop-view-text {
  font-size: 11px;
  color: #3b82f6;
  font-weight: 600;
}

.dropdown-empty {
  padding: 28px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13.5px;
}

/* Sample Quick Tags */
.sample-tags-wrapper {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #94a3b8;
}

.sample-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-mono);
  font-size: 11px;
}

.sample-tag:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
  transform: translateY(-1px);
}

/* ─── Metric Strip (Minimalist, Airy, Refined) ─── */
.trust-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 28px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 12px;
  border-right: 1px solid var(--border-light);
}

.trust-item:last-child {
  border-right: none;
}

.trust-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-emerald);
  flex-shrink: 0;
}

.trust-text-block {
  display: flex;
  flex-direction: column;
}

.trust-stat {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
}

.trust-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ─── Section Common Styling ─── */
.section-padding {
  padding: 76px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 44px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-emerald);
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 15.5px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── Certified Products Directory ─── */
.directory-section {
  background: #f8fafc;
}

.directory-controls {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filter-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.filter-search-box {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 9px 14px;
  width: 360px;
  max-width: 100%;
}

.filter-search-box input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13.5px;
  color: var(--text-dark);
  width: 100%;
  margin-left: 8px;
}

.filter-stats-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.category-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-pill {
  background: #f1f5f9;
  color: var(--text-body);
  border: 1px solid var(--border-light);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cat-pill:hover {
  background: #e2e8f0;
  color: var(--text-dark);
}

.cat-pill.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.cat-pill .count {
  font-size: 11px;
  opacity: 0.8;
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 6px;
  border-radius: 10px;
}

.cat-pill.active .count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: #bbf7d0;
}

.card-top-banner {
  height: 185px;
  background: #fbfcfe;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
  border-bottom: 1px solid var(--border-light);
}

.card-vial-img {
  max-height: 150px;
  max-width: 90%;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.08));
}

.product-card:hover .card-vial-img {
  transform: scale(1.05);
}

.card-badges-float {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.badge-cat {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-purity {
  background: #10b981;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
  letter-spacing: 0.3px;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-brand-title {
  font-size: 17.5px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 4px;
}

.card-formula-sub {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.card-specs-table {
  width: 100%;
  font-size: 12px;
  border-collapse: collapse;
  margin-bottom: 18px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid #edf2f7;
}

.card-specs-table td {
  padding: 7px 10px;
  border-bottom: 1px solid #edf2f7;
}

.card-specs-table tr:last-child td {
  border-bottom: none;
}

.card-specs-table .lbl {
  color: var(--text-muted);
  font-weight: 500;
  width: 40%;
}

.card-specs-table .val {
  color: var(--text-dark);
  font-weight: 700;
  font-family: var(--font-mono);
  text-align: right;
}

.card-footer {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

.btn-verify-card {
  flex: 1;
  background: #0f172a;
  color: #ffffff;
  border: none;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-verify-card:hover {
  background: var(--accent-emerald);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-pdf-quick {
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  border-radius: var(--radius-md);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-pdf-quick:hover {
  background: #e2e8f0;
  color: var(--text-dark);
}

/* ─── Methodology & Standards ─── */
.standards-section {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.standards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 50px;
}

.standard-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.2s;
}

.standard-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.standard-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-emerald);
  margin-bottom: 18px;
}

.standard-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.standard-card p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.6;
}

/* Method Table Box */
.method-box {
  background: #091326;
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
}

.method-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 16px;
}

.method-box-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.method-badge {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.method-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 640px;
}

.method-table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 11.5px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.method-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}

.method-table tr:last-child td {
  border-bottom: none;
}

.method-table .highlight-green {
  color: #34d399;
  font-weight: 700;
  font-family: var(--font-mono);
}

/* ─── Modal Sheet (Certificate Viewer) ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(9, 19, 38, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-sheet {
  background: #ffffff;
  width: 100%;
  max-width: 860px;
  max-height: 92vh;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6);
  transform: scale(0.96);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal-sheet {
  transform: scale(1);
}

.modal-top-bar {
  background: #091326;
  color: #ffffff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 2px solid #10b981;
}

.modal-verified-shield {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.modal-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-modal-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.btn-modal-action:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn-download-pdf {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

.btn-download-pdf:hover {
  background: #059669;
  border-color: #059669;
}

.btn-modal-close {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: color 0.15s;
}

.btn-modal-close:hover {
  color: #ffffff;
}

/* Certificate Preview Sheet */
.certificate-preview-container {
  padding: 32px 36px;
  overflow-y: auto;
  background: #ffffff;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.5;
}

.coa-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #0f2744;
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.coa-brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.coa-brand-text h1 {
  font-size: 18px;
  font-weight: 800;
  color: #0f2744;
  line-height: 1.15;
}

.coa-brand-text span {
  font-size: 11px;
  color: #64748b;
}

.coa-doc-title-block {
  text-align: right;
}

.coa-doc-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f2744;
  letter-spacing: -0.3px;
}

.coa-cert-id-tag {
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #059669;
}

.coa-meta-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-bottom: 16px;
  background: #f8fafc;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.meta-sub {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.5px;
}

.meta-main {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.meta-detail {
  font-size: 11.5px;
  color: #64748b;
}

.coa-dates-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.date-line {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
}

.date-line span:first-child {
  color: #64748b;
}

.date-line span:last-child {
  font-weight: 700;
  font-family: var(--font-mono);
}

.coa-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 14px;
}

.coa-spec-table td {
  padding: 6px 10px;
  border: 1px solid var(--border-light);
}

.coa-spec-table .col-lbl {
  background: #f8fafc;
  font-weight: 600;
  color: #475569;
  width: 25%;
}

.coa-spec-table .col-val {
  color: #0f172a;
  font-weight: 500;
}

.coa-results-section {
  margin-bottom: 16px;
}

.coa-results-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #0f2744;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.coa-results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.coa-results-table td {
  padding: 6px 10px;
  border: 1px solid var(--border-light);
}

.coa-results-table .res-lbl {
  background: #f8fafc;
  font-weight: 600;
  color: #475569;
  width: 35%;
}

.coa-results-table .res-val {
  font-family: var(--font-mono);
  font-weight: 700;
}

.coa-chromatogram-box {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 16px;
  margin-bottom: 16px;
}

.chromatogram-pane {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px;
}

.chrom-header-text {
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: #64748b;
  margin-bottom: 8px;
  font-weight: 600;
}

.chrom-svg-canvas {
  width: 100%;
  height: 160px;
  display: block;
}

.sample-photo-pane {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fbfcfe;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  position: relative;
}

.sample-photo-pane img {
  max-height: 135px;
  max-width: 100%;
  object-fit: contain;
}

.sample-photo-tag {
  font-size: 9.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  margin-top: 4px;
}

.coa-signoff-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
  margin-bottom: 12px;
}

.chemist-signature-box {
  display: flex;
  flex-direction: column;
}

.signature-hand {
  font-family: 'Caveat', cursive;
  font-size: 26px;
  color: #0f2744;
  line-height: 1;
  margin-bottom: 2px;
}

.chemist-name-bold {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.chemist-title-sub {
  font-size: 11px;
  color: #64748b;
}

.qr-verification-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qr-code-box {
  width: 52px;
  height: 52px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 4px;
}

.qr-code-box svg {
  width: 100%;
  height: 100%;
}

.qr-info-text {
  display: flex;
  flex-direction: column;
}

.qr-badge-title {
  font-size: 9.5px;
  font-weight: 800;
  color: #059669;
  letter-spacing: 0.5px;
}

.qr-cert-id {
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #0f2744;
}

.qr-domain {
  font-size: 10.5px;
  color: #64748b;
}

.coa-legal-footnote {
  font-size: 10.5px;
  color: #94a3b8;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
  line-height: 1.45;
  text-align: center;
}

/* ─── Footer ─── */
.main-footer {
  background: #091326;
  color: #94a3b8;
  padding: 64px 0 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand h4 {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 16px;
  color: #94a3b8;
}

.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 0.6px;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13px;
  color: #94a3b8;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: #34d399;
}

.footer-lab-address {
  font-size: 13px;
  line-height: 1.6;
  color: #cbd5e1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: #64748b;
}

/* Toast */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-xl);
  border: 1px solid #334155;
  transform: translateY(100px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 2000;
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.toast-icon-green {
  color: #10b981;
}

/* ==========================================================================
   Comprehensive Responsive Media Queries
   ========================================================================== */

/* Tablets & Small Desktops (<= 1024px) */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 38px;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .trust-item {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding: 12px 6px;
  }
  .trust-item:nth-child(3),
  .trust-item:nth-child(4) {
    border-bottom: none;
  }
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .standards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

/* Tablets (<= 768px) */
@media (max-width: 768px) {
  .announcement-right {
    display: none;
  }
  .header-inner {
    height: 64px;
  }
  .nav-links {
    display: none; /* Can be opened with mobile menu or simplified */
  }
  .hero-section {
    padding: 56px 0 64px 0;
  }
  .hero-title {
    font-size: 30px;
    letter-spacing: -0.6px;
  }
  .hero-lead {
    font-size: 15px;
    margin-bottom: 28px;
  }
  .search-input-box {
    padding: 5px 6px 5px 16px;
  }
  .search-input {
    font-size: 13.5px;
  }
  .search-btn {
    padding: 10px 18px;
    font-size: 13px;
  }
  .section-padding {
    padding: 56px 0;
  }
  .section-title {
    font-size: 26px;
  }
  .standards-grid {
    grid-template-columns: 1fr;
  }
  .method-box {
    padding: 24px 20px;
  }
  .coa-meta-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .coa-chromatogram-box {
    grid-template-columns: 1fr;
  }
  .sample-photo-pane {
    height: 160px;
  }
  .certificate-preview-container {
    padding: 20px 16px;
  }
  .modal-top-bar {
    padding: 12px 16px;
  }
}

/* Mobile Phones (<= 540px) */
@media (max-width: 540px) {
  .brand-name {
    font-size: 16px;
  }
  .brand-sub {
    font-size: 9.5px;
  }
  .hero-title {
    font-size: 25px;
  }
  .search-input-box {
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius-lg);
    padding: 12px;
    gap: 10px;
  }
  .search-input {
    padding: 4px 0;
  }
  .search-btn {
    width: 100%;
    justify-content: center;
    border-radius: var(--radius-md);
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .trust-item {
    border-bottom: 1px solid var(--border-light);
  }
  .trust-item:last-child {
    border-bottom: none;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .filter-search-box {
    width: 100%;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  .coa-header {
    flex-direction: column;
    gap: 10px;
  }
  .coa-doc-title-block {
    text-align: left;
  }
  .coa-signoff-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}
