:root {
  --primary: #143a66;
  --primary-900: #081729;
  --accent: #15b67a;
  --accent-strong: #0ea5e9;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --surface: #ffffff;
  --surface-soft: #f6f7fb;
  --surface-tint: #eef3fb;
  --text: #162033;
  --text-muted: #5c687d;
  --border: #d8e1ef;
  --shadow: 0 20px 60px rgba(9, 18, 34, 0.12);
  --shadow-soft: 0 12px 30px rgba(9, 18, 34, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(20, 58, 102, 0.16), transparent 32%),
    radial-gradient(circle at top right, rgba(21, 182, 122, 0.12), transparent 28%),
    linear-gradient(180deg, #eaf1fb 0%, #f7f9fd 26%, #fbfcfe 100%);
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.44) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.44) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.36), transparent 85%);
  opacity: 0.45;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 2000;
  background: #fff;
  color: #000;
  padding: 10px 14px;
  border-radius: 8px;
}
.skip-link:focus { left: 10px; }

.container {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.page-shell {
  position: relative;
  padding: 18px 0 54px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 23, 41, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 28px rgba(4, 10, 20, 0.18);
}

.nav-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  text-decoration: none;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: inline-block;
  flex-shrink: 0;
}

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

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: transparent;
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.mobile-panel {
  position: fixed;
  top: 0; right: 0;
  height: 100dvh;
  width: min(300px, 84vw);
  max-width: none;
  margin: 0;
  padding: 0;
  background: #0b2240;
  border-left: 1px solid rgba(255,255,255,0.09);
  box-shadow: -12px 0 48px rgba(0,0,0,0.45);
  z-index: 850;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(110%);
  visibility: hidden;
  transition: transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0s 0.38s;
}
.mobile-panel.show {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0s 0s;
}

.mobile-panel a {
  display: block;
  text-decoration: none;
  color: rgba(255,255,255,0.88);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.18s, background 0.18s;
}
.mobile-panel a:hover,
.mobile-panel a.active {
  color: var(--accent);
  background: rgba(21,182,122,0.07);
}

/* Drawer header */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 18px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.drawer-header .drawer-brand {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}
.drawer-close {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s;
  flex-shrink: 0;
}
.drawer-close:hover { background: rgba(255,255,255,0.1); }

/* Backdrop overlay */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 849;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(2px);
}
.nav-backdrop.show {
  opacity: 1;
  pointer-events: all;
}

/* Hamburger — hide when drawer is open (drawer has its own ✕) */
.nav-toggle {
  transition: opacity 0.2s ease;
}
.nav-toggle.open {
  opacity: 0;
  pointer-events: none;
}

.hero {
  position: relative;
  margin-top: 28px;
  border-radius: 30px;
  padding: clamp(26px, 5vw, 54px);
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(22, 163, 74, 0.18), transparent 36%),
    radial-gradient(circle at 12% 18%, rgba(14, 165, 233, 0.28), transparent 30%),
    linear-gradient(145deg, #09182d 0%, #12365f 55%, #0f2a49 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -38% auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 203, 255, 0.26), transparent 72%);
  filter: blur(6px);
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 6.8vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  max-width: 11ch;
}

.hero p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
  max-width: 64ch;
  font-size: 17px;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-lead {
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.7;
}

.hero-points {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-point {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.hero-point::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 6px;
  background: linear-gradient(135deg, #68e5c0, #5cc8ff);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.hero-panel {
  position: relative;
  z-index: 1;
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}

.hero-panel h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.hero-panel .panel-subtitle {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.78);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.hero-stat {
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat strong {
  display: block;
  font-size: 20px;
  margin-bottom: 2px;
  color: #fff;
}

.hero-stat span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
}

.hero-stat-icon { display: none; }

.hero-panel .search-panel {
  margin-top: 14px;
}

.search-panel {
  margin-top: 26px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.search-panel .hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

.search-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.search-row .btn {
  min-width: 140px;
}

input[type="text"], input[type="email"], textarea {
  width: 100%;
  border: 1px solid #cfd9ea;
  border-radius: 14px;
  min-height: 50px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
}

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

input:focus, textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 14px;
  min-height: 50px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  transition: 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #17b673, #0ea5e9);
  color: #fff;
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.03); }

.btn-secondary {
  background: #eff4fb;
  color: #22314a;
  border: 1px solid #d4ddec;
}
.btn-secondary:hover { background: #e5edf8; }

.btn-tertiary {
  background: var(--surface-soft);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-tertiary:hover {
  background: var(--surface-tint);
  color: var(--text);
}

/* Glass look when btn-tertiary sits on a dark container */
.hero .btn-tertiary,
.page-banner .btn-tertiary,
.card.is-ink .btn-tertiary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}
.hero .btn-tertiary:hover,
.page-banner .btn-tertiary:hover,
.card.is-ink .btn-tertiary:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.trust-badges {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-badges span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.section {
  margin-top: 28px;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.section-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.section-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.section-copy {
  margin: 0;
  max-width: 64ch;
  color: var(--text-muted);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.card.is-soft {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.card.is-ink {
  background: linear-gradient(160deg, #0d1f36, #112a49);
  color: #f8fbff;
  border-color: rgba(255, 255, 255, 0.08);
}

.card.is-ink .small,
.card.is-ink p {
  color: rgba(255, 255, 255, 0.78);
}

.card h2, .card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.card h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.feature-card,
.stat-card,
.step-card,
.info-card {
  position: relative;
  overflow: hidden;
}

.feature-card::before,
.stat-card::before,
.step-card::before,
.info-card::before {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 182, 122, 0.12), transparent 68%);
  pointer-events: none;
}

.metrics {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
  background: linear-gradient(180deg, #ffffff, #f7faff);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.metric-card strong {
  display: block;
  font-size: clamp(24px, 4vw, 36px);
  color: #102545;
  letter-spacing: -0.04em;
}

.metric-card span {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 13px;
}

.process-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-step {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: var(--shadow-soft);
}

.process-step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #102545, #1c4c7f);
  color: #fff;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-banner {
  margin-top: 22px;
  padding: clamp(22px, 4vw, 36px);
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(21, 182, 122, 0.22), transparent 28%),
    linear-gradient(145deg, #0a1b30 0%, #12355d 100%);
  box-shadow: var(--shadow);
}

.page-banner .section-label,
.page-banner .section-copy,
.page-banner p,
.page-banner .small {
  color: rgba(255, 255, 255, 0.78);
}

.page-banner .section-title {
  color: #fff;
}

.banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.banner-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.banner-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 700;
}

.kv {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 8px 14px;
}

.kv dt {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.kv dd { margin: 0; font-weight: 700; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
}

.status-pass { background: rgba(16, 185, 129, 0.16); color: #047857; }
.status-fail { background: rgba(239, 68, 68, 0.14); color: #b91c1c; }
.status-conditional { background: rgba(245, 158, 11, 0.2); color: #92400e; }
.status-pending { background: rgba(148, 163, 184, 0.2); color: #475569; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tests {
  display: grid;
  gap: 10px;
}

.test {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.test summary {
  cursor: pointer;
  list-style: none;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
}

.test summary::-webkit-details-marker { display: none; }

.test-body {
  border-top: 1px solid var(--border);
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  font-size: 14px;
}

.timeline {
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
}
.hist-item {
  position: relative;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.hist-item:last-child { border-bottom: none; padding-bottom: 4px; }
.hist-dot {
  position: absolute;
  left: -28px;
  top: 20px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 2px var(--border);
}
.hist-item--pass   .hist-dot { background: #10b981; box-shadow: 0 0 0 2px rgba(16,185,129,0.3); }
.hist-item--fail   .hist-dot { background: #ef4444; box-shadow: 0 0 0 2px rgba(239,68,68,0.3); }
.hist-item--expired .hist-dot { background: #f59e0b; box-shadow: 0 0 0 2px rgba(245,158,11,0.3); }
.hist-item--unknown .hist-dot { background: var(--border); }
.hist-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.hist-date {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.hist-badges {
  display: flex;
  gap: 5px;
  margin-left: auto;
}
.hist-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hist-badge--pass    { background: rgba(16,185,129,0.12); color: #059669; }
.hist-badge--fail    { background: rgba(239,68,68,0.1);   color: #dc2626; }
.hist-badge--expired { background: rgba(245,158,11,0.12); color: #d97706; }
.hist-badge--unknown { background: var(--surface-soft);   color: var(--text-muted); }
.hist-badge--current { background: rgba(14,165,233,0.12); color: #0284c7; }
html[data-theme="dark"] .hist-badge--pass    { background: rgba(16,185,129,0.15); color: #34d399; }
html[data-theme="dark"] .hist-badge--fail    { background: rgba(239,68,68,0.15);  color: #f87171; }
html[data-theme="dark"] .hist-badge--expired { background: rgba(245,158,11,0.15); color: #fbbf24; }
html[data-theme="dark"] .hist-badge--current { background: rgba(14,165,233,0.15); color: #38bdf8; }
.hist-cert {
  font-size: 12.5px;
  font-family: monospace;
  color: var(--text-muted);
  margin-bottom: 5px;
  letter-spacing: 0.02em;
}
.hist-meta {
  display: flex;
  gap: 18px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.hist-meta span { display: flex; align-items: center; gap: 4px; }
.hist-link {
  font-size: 12.5px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.hist-link:hover { text-decoration: underline; }
.hist-empty {
  text-align: center;
  padding: 36px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

.faq-item {
  margin-bottom: 14px;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
}

.contact-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: 0.8fr 1.2fr;
}

.contact-card {
  height: 100%;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid var(--border);
}

.contact-item strong {
  display: block;
  margin-bottom: 2px;
}

.inline-search {
  margin-top: 14px;
}

.error-box {
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #991b1b;
  border-radius: 12px;
  padding: 14px;
}

.success-box {
  border: 1px solid #bbf7d0;
  background: #ecfdf5;
  color: #065f46;
  border-radius: 12px;
  padding: 12px;
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-footer {
  margin-top: 54px;
  background:
    radial-gradient(circle at 8% 0%, rgba(91, 214, 255, 0.12), transparent 30%),
    radial-gradient(circle at 92% 0%, rgba(21, 182, 122, 0.09), transparent 28%),
    linear-gradient(180deg, #081629 0%, #0d2240 100%);
  color: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-inner {
  display: grid;
  gap: 0;
  grid-template-columns: 1.8fr 1fr 1fr;
  align-items: start;
  padding: 52px 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-brand {
  padding-right: 32px;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  margin-bottom: 18px;
}

.footer-logo-mark {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.footer-wordmark {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-wordmark-name {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}

.footer-wordmark-rc {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
}

.footer-tagline {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.58);
  max-width: 34ch;
}

.footer-col {
  padding-right: 16px;
}

.footer-heading {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.36);
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 600;
  padding: 5px 0;
  transition: color 0.15s ease;
}

.footer-col a:hover { color: #fff; }

.footer-col p {
  margin: 0 0 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.52);
}

.footer-bottom {
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom-inner > p {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.36);
}

.footer-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-chips span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.04em;
}

.small { font-size: 12px; color: var(--text-muted); }
.code { font-family: "Consolas", "Courier New", monospace; }
.hidden { display: none !important; }

.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

.muted { color: var(--text-muted); }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.badge-row span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #edf4ff;
  color: #163154;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid #d6e3f5;
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kv { grid-template-columns: 1fr 1fr; }
  .hero-grid,
  .contact-layout { grid-template-columns: 1fr; }
  .metrics,
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .mobile-panel.show { transform: translateX(0); }
  .search-row { flex-direction: column; }
  .grid-4, .grid-3, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .test-body { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { padding-right: 0; margin-bottom: 32px; }
  .footer-col { margin-bottom: 24px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .metrics,
  .process-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: rgba(255,255,255,0.06);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    margin-top: 14px;
  }
  .hero-stat {
    border-radius: 0;
    padding: 12px 4px;
    background: transparent;
    border: none;
    border-right: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3px;
  }
  .hero-stat:last-child { border-right: none; }
  .hero-stat-icon {
    display: block;
    width: 20px;
    height: 20px;
    stroke: var(--accent);
    margin-bottom: 4px;
    flex-shrink: 0;
  }
  .hero-stat strong { font-size: 13px; line-height: 1.2; }
  .hero-stat span { font-size: 10px; line-height: 1.3; }
}

@media print {
  .site-header, .site-footer, .actions, .inline-search, .btn { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #ccc; }
}

/* ============================================================
   ANIMATIONS & UI ENHANCEMENTS
   ============================================================ */

/* Scroll progress bar */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
  pointer-events: none;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Metric card pop-in override */
.metric-card.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.88);
}
.metric-card.reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.34, 1.42, 0.64, 1);
  transition-delay: var(--delay, 0ms);
}

/* Card hover lift + glow */
.metric-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.metric-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(21, 182, 122, 0.14);
  border-color: rgba(21, 182, 122, 0.4);
}
.feature-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(14, 165, 233, 0.14);
  border-color: rgba(14, 165, 233, 0.4);
}
.process-step {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.process-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(20, 58, 102, 0.2);
}

/* Live status pill */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(21, 182, 122, 0.1);
  border: 1px solid rgba(21, 182, 122, 0.3);
  color: #15b67a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.live-pill .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #15b67a;
  flex-shrink: 0;
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(21,182,122,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(21,182,122,0); }
}

/* Trust badge strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1;
}
.trust-badge svg {
  flex-shrink: 0;
  opacity: 0.85;
}

/* Typewriter cursor */
.typewriter-cursor::after {
  content: '|';
  display: inline-block;
  animation: blink-cursor 0.75s step-end infinite;
  color: var(--accent);
  font-weight: 300;
  margin-left: 3px;
}
.typewriter-cursor.done::after { display: none; }
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Floating particles */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  border-radius: inherit;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: float-particle var(--dur, 8s) var(--delay, 0s) ease-in-out infinite;
}
@keyframes float-particle {
  0% { transform: translateY(0) scale(0.5); opacity: 0; }
  15% { opacity: var(--alpha, 0.15); }
  85% { opacity: var(--alpha, 0.15); }
  100% { transform: translateY(-100px) scale(1.3); opacity: 0; }
}
.hero { position: relative; }
.hero-grid { position: relative; z-index: 1; }

/* Search pulse ring */
@keyframes search-pulse {
  0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(14, 165, 233, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}
[data-search-pulse] {
  animation: search-pulse 1.4s ease-out 1s 2;
}
[data-search-pulse]:focus { animation: none; box-shadow: 0 0 0 3px rgba(14,165,233,0.3); }

/* Search validation states */
.search-row { position: relative; }
.input-wrap { position: relative; flex: 1; }
.input-wrap input { width: 100%; }
.search-row.s-valid .input-wrap input { border-color: #15b67a; box-shadow: 0 0 0 2px rgba(21,182,122,0.18); }
.search-row.s-invalid .input-wrap input { border-color: #e74c3c; box-shadow: 0 0 0 2px rgba(231,76,60,0.15); }
.validation-icon {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: 14px; font-weight: 700;
  pointer-events: none;
}
.search-row.s-valid .validation-icon { color: #15b67a; }
.search-row.s-invalid .validation-icon { color: #e74c3c; }

/* Search button spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.btn-spinner {
  display: inline-block;
  width: 13px; height: 13px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.55s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}

/* Animated step connector */
.process-grid {
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 38px;
  left: 30%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  border-radius: 1px;
  transition: width 1s ease 0.2s;
  z-index: 0;
}
.process-grid.connector-on::before { width: 40%; }
.process-step { position: relative; z-index: 1; }
@media (max-width: 760px) {
  .process-grid::before { display: none; }
}

/* Nav indicator */
.nav-links { position: relative; }
.nav-indicator {
  position: absolute;
  bottom: -5px; left: 0;
  height: 2px; width: 0;
  background: var(--accent);
  border-radius: 1px;
  transition: left 0.22s ease, width 0.22s ease;
  pointer-events: none;
}

/* Sticky download bar */
#sticky-download {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--primary);
  color: #fff;
  padding: 13px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  z-index: 600;
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: 0 -4px 28px rgba(0,0,0,0.28);
}
#sticky-download.show { transform: translateY(0); }
#sticky-download p { margin: 0; font-size: 14px; font-weight: 600; opacity: 0.9; }
#sticky-download .sticky-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* Status badge pop */
@keyframes badge-pop {
  0% { transform: scale(0.55); opacity: 0; }
  70% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}
[data-result-status].badge-animated {
  animation: badge-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Test row stagger reveal */
.test.reveal {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s ease var(--delay, 0ms), transform 0.4s ease var(--delay, 0ms);
}
.test.reveal.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* ===============================================================
   THEME TOGGLE BUTTON
   =============================================================== */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.22s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: rotate(18deg);
}
/* Show moon in light mode (invite user to go dark), sun in dark mode */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ===============================================================
   DARK MODE — variable overrides
   =============================================================== */
:root[data-theme="dark"] {
  --surface:       #0d1c2f;
  --surface-soft:  #091524;
  --surface-tint:  #0c1b2e;
  --text:          #dde6f2;
  --text-muted:    #7a90aa;
  --border:        #1c3352;
  --shadow:        0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-soft:   0 12px 30px rgba(0, 0, 0, 0.38);
}

/* Body background */
html[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left,  rgba(20, 58, 102, 0.28), transparent 32%),
    radial-gradient(circle at top right, rgba(21, 182, 122, 0.08), transparent 28%),
    linear-gradient(180deg, #07101d 0%, #08121f 50%, #060e1b 100%);
}

/* Grid overlay – lighten slightly for dark bg */
html[data-theme="dark"] body::before {
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  opacity: 0.55;
}

/* Cards */
html[data-theme="dark"] .card {
  background: #0d1c30;
  border-color: #1c3352;
}
html[data-theme="dark"] .card.is-soft {
  background: linear-gradient(180deg, #0e1d31, #0b1828);
}

/* Metric cards */
html[data-theme="dark"] .metric-card {
  background: linear-gradient(180deg, #0e1d31, #0b1929);
  border-color: #1c3352;
}
html[data-theme="dark"] .metric-card strong {
  color: #c8d8ea;
}

/* Process steps */
html[data-theme="dark"] .process-step {
  background: linear-gradient(180deg, #0e1d31, #0b1929);
  border-color: #1c3352;
}

/* Inputs */
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] textarea {
  background: #09162a;
  border-color: #1c3352;
  color: #dde6f2;
}
html[data-theme="dark"] input[type="text"]::placeholder,
html[data-theme="dark"] input[type="email"]::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: #4a6480;
}

/* Search panel (inside hero – already dark, but inline-search on results page uses it) */
html[data-theme="dark"] .search-panel {
  background: rgba(9, 22, 42, 0.98);
  color: var(--text);
}
html[data-theme="dark"] .search-panel .hint { color: var(--text-muted); }

/* Secondary button */
html[data-theme="dark"] .btn-secondary {
  background: #0e1e33;
  color: #94aabf;
  border-color: #1c3352;
}
html[data-theme="dark"] .btn-secondary:hover {
  background: #122540;
  color: #c8d8ea;
}

/* Badge row */
html[data-theme="dark"] .badge-row span {
  background: #0c1e34;
  color: #8caac5;
  border-color: #1c3352;
}

/* Tests accordion */
html[data-theme="dark"] .test {
  background: #0d1c30;
  border-color: #1c3352;
}
html[data-theme="dark"] .test-body {
  border-top-color: #1c3352;
}


/* Contact item */
html[data-theme="dark"] .contact-item {
  background: #091524;
  border-color: #1c3352;
}

/* Success / error boxes */
html[data-theme="dark"] .success-box {
  background: rgba(6, 78, 59, 0.25);
  border-color: rgba(52, 211, 153, 0.25);
  color: #6ee7b7;
}
html[data-theme="dark"] .error-box {
  background: rgba(127, 29, 29, 0.2);
  border-color: rgba(252, 165, 165, 0.2);
  color: #fca5a5;
}

/* Status badges – brighter for dark bg */
html[data-theme="dark"] .status-pass        { background: rgba(16, 185, 129, 0.15); color: #34d399; }
html[data-theme="dark"] .status-fail        { background: rgba(239, 68, 68, 0.15);  color: #f87171; }
html[data-theme="dark"] .status-conditional { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
html[data-theme="dark"] .status-pending     { background: rgba(148, 163, 184, 0.1); color: #94a3b8; }

/* Result-page status badge animation – adjust for dark */
html[data-theme="dark"] [data-result-status].badge-animated {
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.04);
}

/* Nav indicator (active page underline) needs to stay visible */
html[data-theme="dark"] .nav-indicator {
  background: linear-gradient(90deg, #15b67a, #0ea5e9);
}

/* Smooth theme transition on key surfaces */
body,
.card, .metric-card, .process-step,
.test, .contact-item,
.btn-secondary, .badge-row span,
input[type="text"], input[type="email"], textarea {
  transition:
    background 0.28s ease,
    border-color 0.28s ease,
    color 0.18s ease;
}

/* ===============================================================
   GRADIENT TEXT
   =============================================================== */
.gradient-text {
  background: linear-gradient(135deg, #15b67a 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Fallback: if -webkit-text-fill-color isn't supported keep white */
@supports not (-webkit-text-fill-color: transparent) {
  .gradient-text { color: #15b67a; }
}

/* ===============================================================
   SKELETON LOADER
   =============================================================== */
@keyframes sk-shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}
.skeleton {
  --sk-base:  rgba(0,0,0,0.06);
  --sk-shine: rgba(0,0,0,0.12);
  background: linear-gradient(90deg, var(--sk-base) 25%, var(--sk-shine) 50%, var(--sk-base) 75%);
  background-size: 1200px 100%;
  animation: sk-shimmer 1.6s infinite linear;
  border-radius: 8px;
}
html[data-theme="dark"] .skeleton {
  --sk-base:  rgba(255,255,255,0.04);
  --sk-shine: rgba(255,255,255,0.09);
}
.sk-line  { height: 14px; margin-bottom: 10px; }
.sk-line.w-80  { width: 80%; }
.sk-line.w-55  { width: 55%; }
.sk-line.w-35  { width: 35%; }
.sk-line.w-65  { width: 65%; }
.sk-title { height: 26px; width: 60%; margin-bottom: 16px; border-radius: 8px; }
.sk-badge { height: 34px; width: 100px; border-radius: 999px; }
.sk-grid  { display: grid; grid-template-columns: 180px 1fr; gap: 10px 14px; margin-top: 18px; }
@media (max-width: 760px) { .sk-grid { grid-template-columns: 1fr; } }

/* ===============================================================
   RECENTLY SEARCHED CHIPS
   =============================================================== */
.recent-searches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.recent-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.recent-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  font-family: "Consolas","Courier New",monospace;
  cursor: pointer;
  background: rgba(21,182,122,0.08);
  border: 1px solid rgba(21,182,122,0.22);
  color: #0e9e62;
  transition: background 0.15s, transform 0.12s;
}
.recent-chip:hover { background: rgba(21,182,122,0.16); transform: translateY(-1px); }
html[data-theme="dark"] .recent-chip { background: rgba(21,182,122,0.1); color: #2ed573; border-color: rgba(46,213,115,0.22); }
html[data-theme="dark"] .recent-chip:hover { background: rgba(21,182,122,0.18); }

/* ===============================================================
   QR CODE SECTION
   =============================================================== */
.qr-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.qr-info { flex: 1; }
.qr-info p { margin: 0 0 4px; font-size: 13px; font-weight: 700; }
.qr-info span { font-size: 12px; color: var(--text-muted); }
.qr-code-img {
  display: block;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 6px;
  background: #fff;
  flex-shrink: 0;
}

/* ===============================================================
   COUNTDOWN TIMER
   =============================================================== */
.countdown-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  margin-left: 8px;
  vertical-align: middle;
  background: rgba(21,182,122,0.1);
  border: 1px solid rgba(21,182,122,0.22);
  color: #0e9e62;
  font-variant-numeric: tabular-nums;
}
.countdown-chip.warn  { background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.25); color: #b45309; }
.countdown-chip.expired { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.22); color: #b91c1c; }
html[data-theme="dark"] .countdown-chip         { color: #2ed573; border-color: rgba(46,213,115,0.22); }
html[data-theme="dark"] .countdown-chip.warn    { color: #fbbf24; border-color: rgba(251,191,36,0.25); }
html[data-theme="dark"] .countdown-chip.expired { color: #f87171; border-color: rgba(248,113,113,0.25); }

/* ===============================================================
   HERO PARALLAX ORBS
   =============================================================== */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  transition: transform 0.08s linear;
  z-index: 0;
}
.hero-orb-1 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(21,182,122,0.2), transparent 68%);
  top: -80px; right: 8%;
}
.hero-orb-2 {
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(14,165,233,0.24), transparent 68%);
  bottom: -50px; left: 4%;
}
.hero-orb-3 {
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(108,92,231,0.18), transparent 68%);
  top: 35%; left: 28%;
}

/* ===============================================================
   CONFETTI CANVAS
   =============================================================== */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

/* ===============================================================
   EMAIL CERTIFICATE & EXPIRY REMINDER
   =============================================================== */
.notify-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 24px 0;
}
.notify-panel {
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.notify-panel:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}
.notify-panel-info {
  flex: 0 0 38%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 24px;
  background: var(--surface-soft);
  border-right: 1px solid var(--border);
}
html[data-theme="dark"] .notify-panel-info { background: #091524; border-right-color: #1c3352; }
.notify-panel-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notify-panel-icon--email { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); }
.notify-panel-icon--bell  { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.notify-panel-icon svg { width: 20px; height: 20px; stroke: #fff; fill: none; }
.notify-panel-title {
  margin: 0 0 3px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.notify-panel-desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
}
.notify-panel-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px;
  justify-content: center;
}
.notify-field {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.notify-field::placeholder { color: var(--text-muted); opacity: 1; }
.notify-field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(21,182,122,0.1);
}
html[data-theme="dark"] .notify-field { background: #09162a; border-color: #1c3352; color: #dde6f2; }
html[data-theme="dark"] .notify-field::placeholder { color: #4a6280; }
.notify-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 20px;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}
.notify-cta:hover { opacity: 0.88; }
.notify-cta:active { transform: scale(0.98); }
.notify-cta:disabled { opacity: 0.5; cursor: not-allowed; }
.notify-cta--email { background: linear-gradient(90deg, var(--accent), var(--accent-strong)); }
.notify-cta--bell  { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.notify-cta svg { width: 15px; height: 15px; stroke: #fff; fill: none; flex-shrink: 0; }
.notify-status {
  font-size: 13px;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0;
}
.notify-ok { background: rgba(16,185,129,0.1); color: #047857; border: 1px solid rgba(16,185,129,0.2); }
.notify-err { background: rgba(239,68,68,0.08); color: #b91c1c; border: 1px solid rgba(239,68,68,0.15); }
html[data-theme="dark"] .notify-ok { background: rgba(16,185,129,0.12); color: #34d399; border-color: rgba(52,211,153,0.2); }
html[data-theme="dark"] .notify-err { background: rgba(239,68,68,0.1); color: #f87171; border-color: rgba(248,113,113,0.2); }
.notify-privacy { margin: 4px 0 0; font-size: 11px; color: var(--text-muted); }
.notify-privacy a { color: var(--accent); text-decoration: none; }
.notify-privacy a:hover { text-decoration: underline; }

/* Privacy policy page */
.privacy-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 12px; }
.privacy-table th { text-align: left; padding: 10px 14px; background: var(--surface-soft); color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--border); }
.privacy-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text); }
.privacy-table tr:last-child td { border-bottom: none; }
.privacy-list { padding-left: 18px; margin: 8px 0; }
.privacy-list li { margin-bottom: 6px; font-size: 14px; color: var(--text); line-height: 1.6; }
.footer-privacy-link { color: var(--accent); text-decoration: none; opacity: 0.85; }
.footer-privacy-link:hover { opacity: 1; text-decoration: underline; }
.privacy-contact-link { color: var(--accent); font-weight: 600; }

/* ===============================================================
   NiNAS ACCREDITATION BADGE
   =============================================================== */
.naas-badge-wrap {
  display: inline-block;
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
  line-height: 0;
}
.naas-badge {
  display: block;
  max-width: 150px;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.footer-accred-text {
  margin: 0 0 5px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

/* ===============================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS
   =============================================================== */

/* Smooth scrolling & touch polish */
html { scroll-behavior: smooth; }
a, button, [role="button"], .btn, .notify-cta, .hist-link, .nav-toggle, .theme-toggle {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ── 900px: tablet/large phone ── */
@media (max-width: 900px) {
  .notify-panel { flex-direction: column; }
  .notify-panel-info {
    flex: none;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 20px 20px;
  }
  html[data-theme="dark"] .notify-panel-info { border-bottom-color: #1c3352; }
  .notify-panel-form { padding: 18px 20px; }
}

/* ── 760px: phones ── */
@media (max-width: 760px) {
  /* Layout */
  .page-shell { padding: 8px 0 44px; }
  .section { margin-top: 16px; }

  /* Card */
  .card { padding: 16px 14px; border-radius: 16px; }
  .card h2 { font-size: 17px; margin-bottom: 8px; }

  /* Page banner */
  .page-banner {
    margin-top: 12px;
    padding: 18px 16px;
    border-radius: 18px;
  }
  .page-banner .section-title { font-size: clamp(17px, 5.5vw, 22px); line-height: 1.35; }
  .page-banner .section-copy  { font-size: 13px; }
  .banner-chips { display: none; }

  /* KV — label above value with subtle separator */
  .kv { grid-template-columns: 1fr; gap: 0; }
  .kv dt {
    margin-top: 10px;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
  }
  .kv dt:first-child { margin-top: 0; }
  .kv dd {
    margin: 2px 0 8px;
    font-size: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
  }
  .kv dd:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

  /* Action buttons: Download full-width, rest 2-col */
  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
  }
  .actions .btn:first-child { grid-column: 1 / -1; }

  /* Notify section */
  .notify-section { gap: 14px; margin: 16px 0 20px; }
  .notify-panel-info { padding: 16px; }
  .notify-panel-form { padding: 16px; }
  .notify-panel-title { font-size: 14px; }
  .notify-panel-desc { font-size: 12px; margin-bottom: 14px; }
  .notify-cta { font-size: 13px; padding: 10px 16px; }

  /* History timeline */
  .timeline { padding-left: 22px; }
  .timeline::before { left: 5px; }
  .hist-dot { left: -22px; width: 12px; height: 12px; top: 22px; }
  .hist-item { padding: 14px 0; }
  .hist-date { font-size: 13px; }
  .hist-header { flex-wrap: wrap; gap: 4px; }
  .hist-badges { margin-left: 0; width: 100%; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
  .hist-cert { font-size: 11.5px; }
  .hist-meta { flex-direction: column; gap: 3px; font-size: 11.5px; margin-bottom: 6px; }
  .hist-link { font-size: 12px; }
  .hist-empty { padding: 24px 12px; font-size: 13px; }

  /* Search */
  .search-row { flex-direction: column; }
  .search-row .btn { min-width: 0; width: 100%; }

  /* QR section */
  .qr-section { padding: 12px 0; }

  /* Section title global */
  .section-title { font-size: clamp(20px, 5vw, 28px); }

  /* Status badge font */
  .status-badge { font-size: 11px; padding: 5px 10px; }
}

/* ── 480px: small phones ── */
@media (max-width: 480px) {
  .container { width: min(100%, calc(100% - 1.25rem)); }
  .page-banner .section-title { font-size: 17px; }
  .card { padding: 14px 12px; }
  .btn { font-size: 13px; min-height: 46px; }
  .actions { gap: 7px; }
  .notify-panel-icon { width: 38px; height: 38px; border-radius: 11px; }
  .notify-panel-icon svg { width: 17px; height: 17px; }
  .brand span { font-size: 13px; letter-spacing: 0; }
}

/* ===============================================================
   PREFERS REDUCED MOTION — disable all animations
   =============================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #confetti-canvas { display: none; }
}
