:root {
  /* ──── Teal Cream Core Palette ──── */
  --teal-primary: #0D9488;
  --teal-deep: #0F766E;
  --teal-glow: #14B8A6;
  --teal-soft: #99F6E4;

  --cream-bg: #FDFBF7;
  --cream-surface: #FAF7F2;
  --cream-border: #EBE4D8;
  --cream-dark: #DCD0BC;

  --text-main: #1A2E2A;
  --text-muted: #4A5D59;
  --text-on-teal: #FFFFFF;

  /* ──── Legacy Mapping (Internal) ──── */
  --obsidian: var(--cream-bg);
  --obsidian-light: var(--cream-surface);
  --obsidian-mid: var(--cream-border);

  --purple-refract: var(--teal-primary);
  --purple-deep: var(--teal-deep);
  --purple-glow: var(--teal-glow);
  --purple-magenta: var(--teal-soft);

  --white: var(--text-main);
  --success: #059669;
  --danger: #DC2626;
  --pure-white: #FFFFFF;

  /* ──── Multimodal Vision Palette (Obsidian/Purple) ──── */
  --obsidian-deep: #0D0D1A;
  --purple-refract: #8B2FC9;
  --purple-glow: #A855F7;
}

/* ──────────── RESET & BASE ──────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  overscroll-behavior: none;
  overflow-x: hidden;
  position: relative;
  width: 100%;
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--obsidian);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

@media (min-width: 768px) {
  .container {
    padding: 0 48px;
  }
}

/* ──────────── UTILITIES ──────────── */
.hidden {
  display: none !important;
}

.desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .desktop-only {
    display: flex;
  }

  .mobile-only {
    display: none;
  }
}

.text-gradient {
  background: linear-gradient(to right, var(--teal-deep), var(--teal-glow), var(--teal-primary));
  -webkit-background-clip: text;
  color: transparent;
}

/* ──────────── BUTTONS ──────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.btn-accent {
  background: var(--teal-primary);
  color: var(--text-on-teal);
  box-shadow: 0 10px 15px -3px rgba(13, 148, 136, 0.25);
  padding: 16px 32px;
  font-size: 14px;
}

.btn-accent:hover {
  background: var(--teal-deep);
  transform: scale(1.02);
}

.btn-ghost {
  background: rgba(13, 148, 136, 0.08);
  color: var(--teal-deep);
  backdrop-filter: blur(4px);
  padding: 16px 32px;
  font-size: 14px;
  border: 1px solid rgba(13, 148, 136, 0.1);
}

.btn-ghost:hover {
  background: rgba(13, 148, 136, 0.12);
}

/* ──────────── NAVIGATION ──────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #050505;
  /* Noir Pure */
  border-bottom: 1px solid #1a1a1a;
  padding: 16px 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--pure-white);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 22px;
}

.brand-image {
  height: 32px;
  width: auto;
}

.brand-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--pure-white);
}

/* ──────────── CONTACT NAV BUTTON ──────────── */
.btn-contact-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-contact-nav i {
  width: 14px;
  height: 14px;
  color: var(--teal-primary);
  transition: transform 0.4s ease;
}

.btn-contact-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-contact-nav:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(13, 148, 136, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(13, 148, 136, 0.1);
}

.btn-contact-nav:hover i {
  transform: rotate(-10deg) scale(1.1);
  color: var(--teal-glow);
}

.btn-contact-nav:hover::before {
  transform: translateX(100%);
}

@media (max-width: 480px) {
  .nav-brand {
    font-size: 18px;
    gap: 8px;
  }
  .brand-image {
    height: 24px;
  }
  .brand-text {
    font-size: 18px;
  }
  .btn-contact-nav {
    padding: 8px 16px;
    font-size: 10px;
  }
  .btn-contact-nav i {
    width: 12px;
    height: 12px;
  }
}

/* ──────────── CONTACT PAGE LAYOUT ──────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  max-width: 600px;
}

/* ──── Feature Cards ──── */
.contact-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.contact-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  background: var(--pure-white);
  border: 1px solid var(--cream-border);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.contact-feature-card:hover {
  background: var(--teal-ultra-light, #f0fdfa);
  border-color: var(--teal-primary);
  transform: translateX(4px);
}

/* ──── Truth Report Card (Obsidian/Purple) ──── */
.truth-report {
  background: var(--obsidian-deep) !important;
  border-color: var(--purple-refract) !important;
  box-shadow: 0 0 30px rgba(139, 47, 201, 0.2) !important;
}

.truth-report .result-title {
  color: var(--purple-glow) !important;
}

.truth-report .data-label {
  color: rgba(168, 85, 247, 0.6) !important;
}

.truth-report .detail-title {
  color: var(--purple-refract) !important;
}

.truth-report .result-icon-box {
  background: rgba(139, 47, 201, 0.2) !important;
}

.truth-report .result-icon {
  color: var(--purple-glow) !important;
}

.manual-review {
  border-color: #EAB308 !important;
  /* Yellow-500 */
  box-shadow: 0 0 30px rgba(234, 179, 8, 0.2) !important;
}

.manual-review .result-title {
  color: #EAB308 !important;
}

.feature-icon-box {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(139, 47, 201, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon-box svg {
  width: 20px;
  height: 20px;
  color: var(--teal-primary);
}

.feature-content {
  flex: 1;
  min-width: 0;
}

.feature-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.feature-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ──── Contact Form Card ──── */
.contact-form-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.contact-form-card {
  width: 100%;
  max-width: 480px;
  background: var(--pure-white);
  border: 1px solid var(--cream-border);
  border-radius: 24px;
  padding: 36px;
  backdrop-filter: blur(20px);
  box-shadow: 0 32px 64px -16px rgba(13, 148, 136, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.form-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--cream-border);
}

.form-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(139, 47, 201, 0.25), rgba(196, 37, 90, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-card-icon svg {
  width: 22px;
  height: 22px;
  color: var(--teal-primary);
}

.form-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.form-card-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

/* ──── Form Elements ──── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  z-index: 2;
  pointer-events: none;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  opacity: 0.5;
  transition: color 0.3s ease;
}

.textarea-icon {
  top: 14px;
  align-self: flex-start;
}

.form-input {
  width: 100%;
  padding: 14px 14px 14px 42px;
  background: var(--cream-surface);
  border: 1px solid var(--cream-border);
  border-radius: 12px;
  color: var(--text-main);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  outline: none;
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: var(--text-muted);
  opacity: 0.4;
}

.form-input:focus {
  border-color: var(--teal-primary);
  background: var(--pure-white);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.form-input:focus~.input-icon,
.input-wrapper:focus-within .input-icon {
  color: var(--teal-primary);
  opacity: 1;
}

.form-input.input-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(13,148,136,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-select option {
  background: var(--cream-surface);
  color: var(--text-main);
  padding: 8px;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  padding-top: 14px;
  line-height: 1.6;
}

/* ──── Submit Button ──── */
.btn-submit {
  width: 100%;
  margin-top: 8px;
  padding: 18px 32px !important;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

.btn-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn-submit:hover::after {
  transform: translateX(100%);
}

.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(13, 148, 136, 0.2);
  border-top-color: var(--teal-primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ──── Success State ──── */
.form-success {
  text-align: center;
  padding: 40px 20px;
}

.success-icon-ring {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  border: 2px solid rgba(34, 197, 94, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon-ring svg {
  width: 32px;
  height: 32px;
  color: var(--success);
}

.success-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.success-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.btn-back-home {
  display: inline-flex;
  padding: 14px 28px;
}

/* ──────────── APP MAIN & GRID ──────────── */
.app-main {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  padding: 24px 0 48px;
  z-index: 10;
}

@media (min-width: 768px) {
  .app-main {
    padding: 40px 0 80px;
  }
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media(min-width: 1024px) {
  .app-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

/* ──────────── LEFT COLUMN: INFO ──────────── */
.app-info {
  display: flex;
  flex-direction: column;
  max-width: 600px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

@media(min-width: 768px) {
  .hero-title {
    font-size: 52px;
    margin-bottom: 24px;
  }
}

@media(min-width: 1024px) {
  .hero-title {
    font-size: 68px;
  }
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 48px;
}

.trust-panel {
  padding: 20px;
  background: var(--pure-white);
  border-radius: 16px;
  border: 1px solid var(--cream-border);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.trust-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(139, 47, 201, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-icon svg {
  width: 24px;
  height: 24px;
  color: var(--teal-primary);
}

.trust-info {
  flex: 1;
  min-width: 0;
}

.trust-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.trust-score {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.trust-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(34, 197, 94, 0.2);
  color: var(--success);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trust-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.audit-panel {
  padding: 24px;
  background: var(--cream-surface);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid var(--cream-border);
}

.audit-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.audit-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 4px;
}

.audit-item {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--cream-border);
  background: var(--pure-white);
  display: flex;
  align-items: center;
  gap: 12px;
}

.audit-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.audit-item-info {
  flex: 1;
}

.audit-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.audit-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
}

.audit-item-badge {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 600;
}

.audit-item-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ──────────── RIGHT COLUMN: SCANNER ──────────── */
.app-scanner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.scanner-device {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 9/16;
  max-height: 75vh;
  margin: 0 auto;
  background: var(--obsidian-mid);
  border-radius: 48px;
  box-shadow: 0 40px 80px -20px rgba(13, 148, 136, 0.1), 0 0 0 1px var(--cream-border), 0 0 0 12px rgba(0, 0, 0, 0.02);
  padding: 8px;
}

.scanner-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 40px;
  overflow: hidden;
  background: #000;
}

.scanner-video-container {
  position: absolute;
  inset: 0;
}

.scanner-video,
.scanner-upload-preview,
.scanner-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.scanner-video {
  opacity: 0;
  z-index: 2;
}

.scanner-video.is-active {
  opacity: 1;
}

.scanner-upload-preview {
  z-index: 5;
}

.scanner-placeholder {
  opacity: 0.3;
  filter: grayscale(50%);
  z-index: 1;
}

.scanner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(253, 251, 247, 0.1);
}

.verification-zone {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 200px;
  border: 2px dashed rgba(13, 148, 136, 0.5);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 15;
}

.verification-zone::after {
  content: 'PLACE MEDICATION HERE';
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--teal-primary);
  opacity: 0.8;
}


.scanner-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 32px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.scanner-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scanner-brand-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(13, 148, 136, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.scanner-brand-icon svg {
  width: 14px;
  height: 14px;
  color: var(--teal-primary);
}

.scanner-brand-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--pure-white);
  letter-spacing: 0.05em;
}

.scanner-status {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.scanner-prompt {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  pointer-events: none;
}

.prompt-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.prompt-icon svg {
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.8);
}

.prompt-text {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.scanner-controls-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 20px;
  display: flex;
  gap: 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.btn-scan-live,
.btn-scan-upload {
  flex: 1;
  padding: 14px 10px !important;
  font-size: 11px !important;
  white-space: nowrap;
}

/* ──────────── TRUTH REPORT: PREMIUM UI ──────────── */
.result-card {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 50;
  border-radius: 28px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(30px) saturate(150%);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  max-height: 85%;
  overflow-y: auto;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.result-status {
  display: flex;
  align-items: center;
  gap: 16px;
}

.result-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

.result-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.result-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.result-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #EF4444;
}

/* Data Grid Layout */
.result-data {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 32px;
}

.data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.data-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
}

.data-value {
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  text-align: right;
}

/* Clinical Intelligence Blocks */
.result-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-block {
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.detail-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-primary);
  margin-bottom: 12px;
}

.detail-text {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}

/* Status Variants (Auras) */
.truth-report.authentic {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(16, 185, 129, 0.1);
}
.truth-report.authentic .result-icon-box { border-color: rgba(16, 185, 129, 0.4); color: #10B981; }

.truth-report.manual-review {
  border-color: rgba(234, 179, 8, 0.3);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(234, 179, 8, 0.1);
}
.truth-report.manual-review .result-icon-box { border-color: rgba(234, 179, 8, 0.4); color: #EAB308; }

.truth-report.unverified {
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(239, 68, 68, 0.1);
}
.truth-report.unverified .result-icon-box { border-color: rgba(239, 68, 68, 0.4); color: #EF4444; }

/* ──────────── CONTACT FORM ACTIONS ──────────── */
.form-actions-dual {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.btn-dual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  border-radius: 100px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-dual i {
  width: 18px !important;
  height: 18px !important;
}

.btn-whatsapp-alt {
  background: rgba(37, 211, 102, 0.05);
  border: 1.5px solid rgba(37, 211, 102, 0.2);
  color: #128c7e !important;
}

.btn-whatsapp-alt:hover {
  background: #25d366;
  color: white !important;
  border-color: #25d366;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

/* ──────────── BACKGROUND PATTERNS ──────────── */
.grid-texture {
  background-image:
    linear-gradient(rgba(13, 148, 136, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 148, 136, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ──────────── LIGHT LEAKS ──────────── */
.bg-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow-left {
  position: absolute;
  bottom: -20%;
  left: -20%;
  width: 50%;
  height: 80%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--cream-border);
  margin-top: auto;
}

.clinical-disclaimer {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 13px;
  color: #777777;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.01);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .clinical-disclaimer {
    margin: 0 auto 60px;
    padding: 32px 40px;
    font-size: 14px;
    border-radius: 20px;
  }
}

.clinical-disclaimer p {
  margin: 0;
  letter-spacing: 0.01em;
}

.clinical-disclaimer strong {
  color: var(--pure-white);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  margin-right: 8px;
}

.disclaimer-title {
  display: block;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--teal-primary);
  margin-bottom: 16px;
  font-size: 10px;
  opacity: 0.8;
}


/* ──────────── TICKER BANNER ──────────── */
/* ──────────── TICKER BANNER (Teal Strap) ──────────── */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--teal-primary);
  padding: 16px 0;
  display: flex;
  position: relative;
  z-index: 100;
  margin-bottom: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.ticker-content {
  display: flex;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}

.ticker-item {
  display: flex;
  align-items: center;
  padding: 0 20px;
  color: var(--pure-white);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .ticker-item {
    padding: 0 40px;
    font-size: 14px;
  }
}

.ticker-item i {
  margin-right: 12px;
  color: var(--purple-glow);
}

.ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-primary);
  margin: 0 20px;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ──────────── SIDEBAR METRICS ──────────── */
.sidebar-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.sidebar-metric-card {
  background: var(--pure-white);
  border: 1px solid var(--cream-border);
  padding: 16px;
  border-radius: 16px;
  text-align: left;
  transition: all 0.3s ease;
}

.sidebar-metric-card:hover {
  border-color: var(--teal-primary);
  background: var(--teal-ultra-light);
}

.sidebar-metric-value {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--teal-deep);
  margin-bottom: 4px;
}

.sidebar-metric-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-metric-card i {
  color: var(--teal-primary);
  margin-bottom: 8px;
  display: block;
  opacity: 0.7;
}

.site-footer {
  background: #050505;
  border-top: 1px solid #1a1a1a;
  padding: 60px 0 40px;
  margin-top: 0;
  color: #e0e0e0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr 1.2fr;
    gap: 60px;
    margin-bottom: 60px;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

@media (min-width: 1024px) {
  .footer-brand {
    align-items: flex-start;
    text-align: left;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--pure-white);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 24px;
}

.footer-desc {
  color: #888888;
  line-height: 1.6;
  font-size: 14px;
}

.footer-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-style: italic;
  font-weight: 400;
  color: var(--pure-white);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  text-align: center;
}

@media (min-width: 1024px) {
  .footer-title {
    text-align: left;
  }
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

@media (min-width: 1024px) {
  .social-links {
    justify-content: flex-start;
  }
}

.social-item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  color: #888888;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.social-item svg {
  width: 18px;
  height: 18px;
  transition: all 0.4s ease;
  z-index: 2;
}

.social-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--brand-color, #fff) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.social-item:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--pure-white) !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.social-item:hover svg {
  transform: scale(1.1);
}

.social-item:hover::after {
  opacity: 0.15;
}

/* Individual Brand Glows */
.social-item[title*="X"] {
  --brand-color: #ffffff;
}

.social-item[title*="WhatsApp"] {
  --brand-color: #25D366;
}

.social-item[title*="Instagram"] {
  --brand-color: #E4405F;
}

.social-item[title*="Email"] {
  --brand-color: var(--teal-primary);
}

.social-item[title*="LinkedIn"] {
  --brand-color: #0A66C2;
}

.map-container {
  width: 100%;
  height: 200px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #1a1a1a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@media (min-width: 1024px) {
  .map-container {
    height: 180px;
  }
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.footer-bottom {
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

@media (min-width: 1024px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    padding: 48px 0;
    gap: 32px;
  }
}

.footer-bottom p {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #666666;
  font-weight: 600;
  margin: 0 !important;
}

.status-hub {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-indicator {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 10px #22c55e;
}

.status-indicator::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #22c55e;
  animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.33);
    opacity: 1;
  }

  80%,
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.status-text {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #aaaaaa;
  font-weight: 700;
}










/* ──────────── ANIMATIONS ──────────── */
.scanner-beam {
  position: absolute;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal-primary), var(--teal-glow), var(--teal-primary), transparent);
  box-shadow: 0 0 15px rgba(13, 148, 136, 0.4), 0 0 40px rgba(13, 148, 136, 0.2);
  animation: scannerBeam 3s ease-in-out infinite;
  z-index: 10;
}

@keyframes scannerBeam {

  0%,
  100% {
    top: 15%;
    opacity: 0;
  }

  5% {
    opacity: 1;
  }

  50% {
    top: 85%;
    opacity: 1;
  }

  55% {
    opacity: 0;
  }

  60% {
    top: 15%;
    opacity: 0;
  }
}

.holo-shimmer {
  background: linear-gradient(90deg, rgba(13, 148, 136, 0) 0%, rgba(13, 148, 136, 0.08) 25%, rgba(13, 148, 136, 0.05) 50%, rgba(13, 148, 136, 0.08) 75%, rgba(13, 148, 136, 0) 100%);
  background-size: 200% 100%;
  animation: holoShimmer 2s linear infinite;
}

.intelligence-glow {
  background: linear-gradient(90deg, transparent, var(--purple-refract), var(--purple-glow), var(--purple-refract), transparent) !important;
  box-shadow: 0 0 20px rgba(139, 47, 201, 0.6), 0 0 50px rgba(139, 47, 201, 0.3) !important;
}

@keyframes holoShimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.scan-corner {
  position: absolute;
  width: 32px;
  height: 32px;
  border-color: var(--teal-glow);
  z-index: 5;
}

.scan-corner.tl {
  top: 12%;
  left: 8%;
  border-top: 3px solid;
  border-left: 3px solid;
  border-radius: 6px 0 0 0;
}

.scan-corner.tr {
  top: 12%;
  right: 8%;
  border-top: 3px solid;
  border-right: 3px solid;
  border-radius: 0 6px 0 0;
}

.scan-corner.bl {
  bottom: 12%;
  left: 8%;
  border-bottom: 3px solid;
  border-left: 3px solid;
  border-radius: 0 0 0 6px;
}

.scan-corner.br {
  bottom: 12%;
  right: 8%;
  border-bottom: 3px solid;
  border-right: 3px solid;
  border-radius: 0 0 6px 0;
}

.status-pulse {
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
}

.status-pulse.offline {
  animation: statusPulseOffline 2s ease-in-out infinite;
}

@keyframes statusPulseOffline {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
}

.slide-up {
  animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ──────────── RESULT CARD: SCROLLABLE & ENRICHED ──────────── */
.result-card {
  max-height: 85%;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(139,47,201,0.3) transparent;
}

.result-card::-webkit-scrollbar {
  width: 4px;
}

.result-card::-webkit-scrollbar-track {
  background: transparent;
}

.result-card::-webkit-scrollbar-thumb {
  background: rgba(139,47,201,0.3);
  border-radius: 2px;
}

/* Unverified / danger state */
.truth-report.unverified {
  border-color: var(--danger) !important;
  box-shadow: 0 0 30px rgba(220, 38, 38, 0.2) !important;
}

.truth-report.unverified .result-title {
  color: var(--danger) !important;
}

.truth-report.unverified .result-icon-box {
  background: rgba(220, 38, 38, 0.15) !important;
}

/* Detail title icon alignment */
.detail-title {
  display: flex;
  align-items: center;
  gap: 5px;
}

.detail-title svg,
.detail-title i {
  flex-shrink: 0;
  vertical-align: middle;
}

/* Detail block: warning variant */
.detail-block {
  border-left: 2px solid transparent;
  padding-left: 8px;
  transition: border-color 0.2s;
}

/* data-value with icon (WHO badge) */
.data-value i,
.data-value svg {
  vertical-align: middle;
}

/* ══════════════════════════════════════════════════════════
   SIDEBAR + APP CONTAINER LAYOUT
══════════════════════════════════════════════════════════ */

.app-container {
  display: flex;
  min-height: 100vh;
}

/* ─── Left Sidebar ─── */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 260px;
  background: rgba(8, 8, 18, 0.65);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  z-index: 1050;
  box-shadow: 4px 0 32px rgba(0, 0, 0, 0.4);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.sidebar.sidebar-open {
  transform: translateX(0);
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 16px;
}

.sidebar-brand .brand-image {
  height: 28px;
  width: auto;
}

.sidebar-brand .brand-text {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  font-family: 'Playfair Display', serif;
}

/* ─── Sidebar Navigation ─── */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 12px;
  flex: 1;
}

.sidebar-nav .nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.sidebar-nav .nav-item i,
.sidebar-nav .nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: color 0.2s;
}

.sidebar-nav .nav-item:hover {
  background: rgba(139, 47, 201, 0.1);
  color: rgba(255, 255, 255, 0.75);
}

.sidebar-nav .nav-item.active {
  background: linear-gradient(135deg, rgba(139, 47, 201, 0.25), rgba(168, 85, 247, 0.12));
  color: #A855F7;
  border: 1px solid rgba(139, 47, 201, 0.25);
}

.sidebar-nav .nav-item.active i,
.sidebar-nav .nav-item.active svg {
  color: #A855F7;
}

.sidebar-nav .nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  background: linear-gradient(to bottom, #8B2FC9, #A855F7);
  border-radius: 0 2px 2px 0;
}

/* ─── Sidebar Footer ─── */
.sidebar-footer {
  padding: 16px 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.active-member-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: 10px;
}

.member-avatar-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0D9488, #14B8A6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.member-name-mini {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.member-role-mini {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sync-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  padding: 0 4px 8px;
}

.sync-status i,
.sync-status svg {
  width: 14px;
  height: 14px;
  color: #10B981;
}

/* ─── Main wrapper (offset sidebar) ─── */
.main-wrapper {
  margin-left: 0;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ─── Hamburger Button ─── */
.btn-hamburger {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s;
  margin-right: 12px;
}

.btn-hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-hamburger i, .btn-hamburger svg {
  width: 24px;
  height: 24px;
}

/* ══════════════════════════════════════════════════════════
   MOBILE BOTTOM NAVIGATION
══════════════════════════════════════════════════════════ */

.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  background: rgba(8, 8, 18, 0.96);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(139, 47, 201, 0.2);
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.mobile-nav-item i,
.mobile-nav-item svg {
  width: 22px;
  height: 22px;
  transition: transform 0.2s, color 0.2s;
}

.mobile-nav-item.active {
  color: #A855F7;
}

.mobile-nav-item.active i,
.mobile-nav-item.active svg {
  color: #A855F7;
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  .main-wrapper { margin-left: 0; padding-bottom: 70px; }
  .mobile-bottom-nav { display: flex; }
  .app-container { display: block; }
}

/* ══════════════════════════════════════════════════════════
   VIEW SECTIONS
══════════════════════════════════════════════════════════ */

.view-section {
  padding-top: 32px;
  padding-bottom: 48px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════
   DASHBOARD SHARED COMPONENTS
══════════════════════════════════════════════════════════ */

.dashboard-header {
  margin-bottom: 32px;
}

.dashboard-header-flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.6;
}

.subsection-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ─── Panel Cards ─── */
.panel-card {
  background: var(--pure-white);
  border: 1px solid var(--cream-border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease;
}

.panel-card:hover {
  box-shadow: 0 8px 40px rgba(13, 148, 136, 0.08);
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--cream-border);
}

.card-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(13, 148, 136, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon {
  width: 20px;
  height: 20px;
  color: var(--teal-primary);
}

.questions-icon-wrapper { background: rgba(234, 179, 8, 0.1); }
.questions-icon { color: #D97706; }
.biomarkers-icon-wrapper { background: rgba(139, 47, 201, 0.1); }
.biomarkers-icon { color: #8B2FC9; }

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.card-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── Placeholder States ─── */
.placeholder-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}

.empty-state-content {
  text-align: center;
  color: var(--text-muted);
}

.large-icon {
  width: 40px;
  height: 40px;
  opacity: 0.3;
  margin-bottom: 12px;
}

.empty-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

/* ─── Selectors grid ─── */
.selectors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

@media (min-width: 640px) {
  .selectors-grid { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════════════════════
   HEALTH INTELLIGENCE DASHBOARD
══════════════════════════════════════════════════════════ */

.health-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 1024px) {
  .health-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: start;
  }
}

.health-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ─── Report Reader ─── */
.report-reader-content {
  background: var(--cream-surface);
  border: 1px solid var(--cream-border);
  border-radius: 12px;
  padding: 20px;
  min-height: 200px;
  line-height: 1.9;
  font-size: 14px;
  color: var(--text-main);
}

.report-reader-content.placeholder-state {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Jargon term highlights */
.jargon-term {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: var(--teal-primary);
  text-underline-offset: 3px;
  color: var(--teal-deep);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 2px;
  padding: 0 2px;
}

.jargon-term:hover {
  background: rgba(13, 148, 136, 0.1);
  color: var(--teal-primary);
}

/* Report sections */
.report-section {
  margin-bottom: 20px;
}

.report-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.report-section-text {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.8;
}

/* ─── Doctor Questions ─── */
.doctor-questions-box {
  min-height: 120px;
}

.question-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--cream-border);
}

.question-item:last-child { border-bottom: none; }

.question-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #D97706;
  flex-shrink: 0;
  margin-top: 1px;
}

.question-text {
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.6;
}

/* ─── Biomarkers Tracker ─── */
.biomarkers-tracker-box {
  min-height: 100px;
}

.biomarker-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.biomarker-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(139, 47, 201, 0.08);
  border: 1px solid rgba(139, 47, 201, 0.2);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  color: #8B2FC9;
  font-family: 'JetBrains Mono', monospace;
}

.biomarker-chip i,
.biomarker-chip svg {
  width: 12px;
  height: 12px;
}

/* ══════════════════════════════════════════════════════════
   FAMILY VAULT DASHBOARD
══════════════════════════════════════════════════════════ */

.family-dashboard-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.family-profiles-section {
  width: 100%;
}

/* ─── Family profile cards grid ─── */
.family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.family-profile-card {
  background: var(--pure-white);
  border: 1px solid var(--cream-border);
  border-radius: 16px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  position: relative;
}

.family-profile-card:hover {
  border-color: var(--teal-primary);
  box-shadow: 0 8px 32px rgba(13, 148, 136, 0.12);
  transform: translateY(-3px);
}

.family-profile-card.active-profile {
  border-color: var(--teal-primary);
  background: rgba(13, 148, 136, 0.04);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-primary), var(--teal-glow));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
  flex-shrink: 0;
}

.profile-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.profile-relation {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.profile-record-count {
  font-size: 11px;
  color: var(--teal-primary);
  font-weight: 600;
  background: rgba(13, 148, 136, 0.08);
  padding: 3px 10px;
  border-radius: 9999px;
}

/* ─── Active Vault Section ─── */
.active-vault-section {
  background: var(--pure-white);
  border: 1px solid var(--cream-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.vault-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--cream-surface);
  border-bottom: 1px solid var(--cream-border);
  gap: 16px;
  flex-wrap: wrap;
}

.vault-member-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.vault-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-primary), var(--teal-glow));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.vault-member-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
}

.vault-member-sub {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 2px;
}

.vault-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ─── Vault Records ─── */
.vault-records-list {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
}

.vault-record-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--cream-surface);
  border: 1px solid var(--cream-border);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.vault-record-item:hover {
  border-color: var(--teal-primary);
  background: rgba(13, 148, 136, 0.02);
}

.vault-record-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(13, 148, 136, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vault-record-icon i,
.vault-record-icon svg {
  width: 18px;
  height: 18px;
  color: var(--teal-primary);
}

.vault-record-info {
  flex: 1;
  min-width: 0;
}

.vault-record-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vault-record-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.vault-record-badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-weight: 600;
  white-space: nowrap;
}

.vault-record-badge.authentic {
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
}

.vault-record-badge.manual {
  background: rgba(234, 179, 8, 0.1);
  color: #D97706;
}

.vault-record-badge.unverified {
  background: rgba(220, 38, 38, 0.08);
  color: #DC2626;
}

.vault-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* ══════════════════════════════════════════════════════════
   MODALS
══════════════════════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

.modal-card {
  background: var(--pure-white);
  border: 1px solid var(--cream-border);
  border-radius: 24px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.term-modal-card {
  max-width: 420px;
}

.share-modal-card {
  max-width: 440px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--cream-border);
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cream-surface);
  border: 1px solid var(--cream-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--cream-dark);
}

.modal-close i,
.modal-close svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

.modal-body {
  padding: 24px 28px 28px;
}

.modal-form {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.btn-submit-modal {
  width: 100%;
  margin-top: 8px;
  padding: 16px !important;
}

/* ─── Term Definition Modal ─── */
.term-definition-text {
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.8;
}

/* ══════════════════════════════════════════════════════════
   SCAN RESULT: SAVE TO PROFILE BOX
══════════════════════════════════════════════════════════ */

.result-save-profile-box select option {
  background: #1a1a2e;
  color: #fff;
}

/* ══════════════════════════════════════════════════════════
   BUTTON EXTRAS
══════════════════════════════════════════════════════════ */

.btn-sm {
  padding: 8px 16px !important;
  font-size: 12px !important;
}

.btn-add-member {
  white-space: nowrap;
  padding: 12px 24px;
  font-size: 13px;
}

/* ══════════════════════════════════════════════════════════
   MEDICAL TERM DECODER
══════════════════════════════════════════════════════════ */

.decoder-results {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
}

.decoder-term-header {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  text-align: center;
}

.decoder-definition {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.5;
}

.decoder-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.decoder-part {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  border-radius: 8px;
}

.decoder-chip {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 6px;
  width: 60px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.chip-prefix { background: rgba(56, 189, 248, 0.15); color: #38BDF8; border: 1px solid rgba(56, 189, 248, 0.3); }
.chip-root { background: rgba(168, 85, 247, 0.15); color: #A855F7; border: 1px solid rgba(168, 85, 247, 0.3); }
.chip-suffix { background: rgba(52, 211, 153, 0.15); color: #34D399; border: 1px solid rgba(52, 211, 153, 0.3); }

.decoder-part-text {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.decoder-part-meaning {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}