/* Compatibility rules for native PHP links, tabs, and dialogs. Original theme CSS is unchanged. */
a[href]{cursor:pointer!important;pointer-events:auto!important}[hidden]{display:none!important}.php-dialog{border:0;padding:0;background:transparent;color:inherit;max-width:min(94vw,1000px);max-height:90vh}.php-dialog::backdrop{background:rgba(0,0,0,.75);backdrop-filter:blur(5px)}.php-dialog>.modal{position:relative;inset:auto;transform:none;max-height:85vh;overflow:auto;width:min(90vw,600px)}.php-dialog>.modal.wide{width:min(90vw,960px)}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.tabs>a,.settings-nav>a{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;background:transparent;color:var(--muted);border-bottom:1px solid transparent}.tabs>a.active{color:var(--cyan);border-bottom-color:var(--cyan)}.settings-nav>a.active{color:var(--cyan);background:rgba(0,185,242,.07)}a.filter-link{display:flex;justify-content:space-between}.toast-area{position:fixed;bottom:24px;left:24px;z-index:9999;max-width:min(440px,90vw)}.php-toast{background:#111821;border:1px solid #00b9f2;padding:16px 22px;border-radius:10px;margin-top:10px;color:#fff}.php-toast.error{border-color:#e34b65}.gallery-edit-row{display:grid;grid-template-columns:60px 1fr 1fr auto;gap:12px;align-items:center;margin:12px 0}.gallery-edit-row img{width:60px;height:60px;object-fit:cover}.summary-line{display:flex;justify-content:space-between;gap:16px;margin:15px 0}.summary-line.total{font-size:1.3rem;padding-top:16px;border-top:1px solid #28303b}.checkout-section{margin-bottom:20px}.multi-picker{border:0}.media-card input{max-width:100%}.payment-option{display:flex;gap:12px;margin:12px 0}.cart-symbol img{width:100%;height:100%;object-fit:cover}.cart-item-info small{display:block}.php-dialog img.zoom-image{max-height:70vh;object-fit:contain}.editor-fields>.field small{margin-top:6px}.sidebar-overlay[hidden]{display:none}.admin-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.admin-heading p{color:#87909c}.admin-panel .order-details.panel{border:0;padding:0}.settings-nav a{border:0}.order-status{display:flex;gap:10px}.media-grid button.media-card{color:inherit;text-align:left}.media-grid button.media-card img{width:100%}fieldset.field legend{margin-bottom:10px}@media(max-width:700px){.gallery-edit-row{grid-template-columns:50px 1fr}.admin-heading{flex-direction:column}.tabs>a{padding:12px}.php-dialog>.modal{padding:20px}}@media print{.admin-sidebar,.admin-topbar,.no-print,.button-row,.site-header,.site-footer,.whatsapp-float{display:none!important}.admin-main{margin-left:0}.admin-content{padding:0}}
.preview-notice{max-width:1280px;margin:0 auto;padding:12px 24px;border-bottom:1px solid rgba(255,255,255,.12);color:#a7b0b7;font:600 11px/1.4 Manrope,sans-serif;letter-spacing:.12em}.preview-notice.inline{margin:0 0 28px;border:1px solid rgba(255,255,255,.12)}.preview-notice code{color:#fff;font-family:ui-monospace,SFMono-Regular,monospace;letter-spacing:0}

/* ==========================================================================
   HOMEPAGE ENHANCEMENTS: Quality, Pathways, Custody & Age Verification Gate
   ========================================================================== */

/* --- 1. Quality & HPLC Verification Section --- */
.quality-section {
  background: radial-gradient(ellipse at 85% 20%, rgba(0, 185, 232, 0.06), transparent 50%), #090d13;
  border-bottom: 1px solid #1c2733;
}
.quality-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 35px;
  align-items: stretch;
}
.telemetry-card {
  background: linear-gradient(145deg, #0f1620, #0a0e15);
  border: 1px solid #233446;
  border-radius: 10px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}
.telemetry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00b9e8, transparent);
}
.telemetry-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #1d2c3b;
}
.telemetry-status {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 700 9px/1 monospace;
  letter-spacing: 0.14em;
  color: #7da5b8;
}
.pulse-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00b9e8;
  box-shadow: 0 0 10px #00b9e8;
  animation: pulseGlow 2s infinite ease-in-out;
  flex-shrink: 0;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 10px #00b9e8; }
  50% { opacity: 0.45; transform: scale(0.85); box-shadow: 0 0 3px #00b9e8; }
}
.telemetry-tag {
  font: 8px monospace;
  letter-spacing: 0.12em;
  color: #00b9e8;
  background: rgba(0, 185, 232, 0.1);
  border: 1px solid rgba(0, 185, 232, 0.3);
  padding: 4px 8px;
  border-radius: 3px;
}
.telemetry-data-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}
.telemetry-data-row small {
  display: block;
  font: 8px monospace;
  letter-spacing: 0.15em;
  color: #637788;
  margin-bottom: 6px;
}
.telemetry-data-row b {
  font-size: 13px;
  color: #e2ebf2;
  font-family: Manrope, sans-serif;
  letter-spacing: -0.01em;
}
.chromatogram-box {
  background: #06090e;
  border: 1px solid #1c2836;
  border-radius: 6px;
  padding: 18px 20px 14px;
  margin-bottom: 24px;
}
.chromatogram-labels {
  display: flex;
  justify-content: space-between;
  font: 8px monospace;
  color: #5c7080;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.chromatogram-svg {
  width: 100%;
  height: 95px;
  display: block;
  overflow: visible;
}
.peak-dot {
  filter: drop-shadow(0 0 6px #00b9e8);
}
.chromatogram-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  margin-top: 10px;
  border-top: 1px solid #15222f;
  font: 9px monospace;
  color: #7b91a2;
}
.chromatogram-meta b {
  color: #00b9e8;
}
.telemetry-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stat-pill {
  background: #090e15;
  border: 1px solid #1b2837;
  border-radius: 6px;
  padding: 12px 14px;
  text-align: center;
}
.stat-val {
  display: block;
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #e2ebf2;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.stat-lbl {
  display: block;
  font-size: 9px;
  color: #697d8f;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}
.capability-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.cap-card {
  background: linear-gradient(135deg, #0e141d, #0a0e14);
  border: 1px solid #1f2b38;
  border-radius: 8px;
  padding: 22px 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.cap-card:hover {
  transform: translateY(-2px);
  border-color: #38566f;
}
.cap-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 7px;
  background: #111a24;
  border: 1px solid #223446;
  color: #00b9e8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cap-content {
  flex: 1;
  min-width: 0;
}
.cap-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.cap-top h4 {
  font-size: 15px;
  margin: 0;
  color: #e1ebf4;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.cap-badge {
  font: 8px monospace;
  letter-spacing: 0.12em;
  padding: 3px 7px;
  background: rgba(0, 185, 232, 0.08);
  border: 1px solid rgba(0, 185, 232, 0.25);
  border-radius: 3px;
  color: #79bbd2;
  white-space: nowrap;
}
.cap-content p {
  font-size: 12px;
  line-height: 1.65;
  color: #7d8e9f;
  margin: 0;
}

/* --- 2. Pathways Section --- */
.pathways-section {
  background: #080c10;
  border-top: 1px solid #1c2734;
  border-bottom: 1px solid #1c2734;
}
.pathways-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pathway-card {
  background: linear-gradient(145deg, #10161f 0%, #0a0e14 100%);
  border: 1px solid #1f2c39;
  border-radius: 8px;
  padding: 28px 24px 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.pathway-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #00b9e8, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pathway-card:hover {
  transform: translateY(-4px);
  border-color: #3b6078;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 185, 232, 0.08);
}
.pathway-card:hover::after {
  opacity: 1;
}
.pathway-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.pathway-code {
  font: 8px monospace;
  letter-spacing: 0.16em;
  color: #647a8c;
}
.pathway-icon {
  color: #70a4bc;
  transition: transform 0.3s ease, color 0.3s ease;
}
.pathway-card:hover .pathway-icon {
  transform: rotate(15deg) scale(1.08);
  color: #00b9e8;
}
.pathway-card h3 {
  font-size: 18px;
  margin: 0 0 12px;
  color: #e5edf5;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.pathway-card p {
  font-size: 12px;
  line-height: 1.7;
  color: #7e90a0;
  margin: 0 0 22px;
  flex: 1;
}
.pathway-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}
.ptag {
  font: 9px monospace;
  letter-spacing: 0.06em;
  color: #8da4b6;
  background: #111a24;
  border: 1px solid #223242;
  padding: 4px 8px;
  border-radius: 4px;
}
.pathway-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #1c2836;
  padding-top: 14px;
  font-size: 11px;
  font-weight: 700;
  color: #7ca7be;
  transition: color 0.2s ease;
}
.pathway-card:hover .pathway-footer {
  color: #00b9e8;
}
.pathway-footer svg {
  transition: transform 0.2s ease;
}
.pathway-card:hover .pathway-footer svg {
  transform: translateX(3px);
}

/* --- 3. Custody & Storage Protocol Section --- */
.custody-section {
  padding-block: 80px;
}
.custody-banner {
  background: radial-gradient(ellipse at 85% 50%, rgba(0, 185, 232, 0.08), transparent 60%), linear-gradient(135deg, #101620, #090d13);
  border: 1px solid #243445;
  border-radius: 10px;
  padding: 55px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.custody-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 45px;
  padding-bottom: 30px;
  border-bottom: 1px solid #1f2d3d;
}
.custody-head h2 {
  margin-bottom: 12px;
}
.custody-head p {
  font-size: 13px;
  max-width: 550px;
  margin-bottom: 0;
}
.custody-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  position: relative;
}
.custody-step {
  display: flex;
  flex-direction: column;
}
.step-num {
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: #00b9e8;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 12px;
  text-shadow: 0 0 20px rgba(0, 185, 232, 0.35);
}
.step-line {
  height: 2px;
  background: linear-gradient(90deg, #00b9e8, rgba(0, 185, 232, 0.15));
  margin-bottom: 18px;
}
.step-content h4 {
  font-size: 15px;
  color: #e0eaf3;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.step-content p {
  font-size: 12px;
  line-height: 1.65;
  color: #7b8c9d;
  margin: 0;
}

/* --- 4. Age Verification Popup Modal --- */
body.age-gate-locked {
  overflow: hidden !important;
  touch-action: none;
}
dialog.age-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  max-width: min(540px, 92vw);
  margin: auto;
  position: fixed;
  inset: 0;
  z-index: 99999;
}
dialog.age-dialog::backdrop {
  background: rgba(4, 7, 12, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.age-modal-box {
  background: linear-gradient(150deg, #111823 0%, #080c12 100%);
  border: 1px solid #2b3e52;
  border-radius: 14px;
  padding: 38px 34px 30px;
  text-align: center;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85), 0 0 50px rgba(0, 185, 232, 0.14);
  animation: ageModalPop 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.age-modal-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00b9e8, transparent);
}
@keyframes ageModalPop {
  0% { opacity: 0; transform: scale(0.94) translateY(12px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
dialog.age-dialog.age-fade-out {
  animation: ageFadeOut 0.28s ease-in forwards;
}
@keyframes ageFadeOut {
  to { opacity: 0; transform: scale(0.96) translateY(-8px); }
}
.age-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 9px/1 monospace;
  letter-spacing: 0.18em;
  color: #79a7bc;
  background: rgba(0, 185, 232, 0.08);
  border: 1px solid rgba(0, 185, 232, 0.28);
  border-radius: 20px;
  padding: 6px 14px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.age-modal-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 185, 232, 0.16), transparent 70%);
  border: 1px solid rgba(0, 185, 232, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(0, 185, 232, 0.2);
}
.age-modal-box h2 {
  font-size: clamp(24px, 3.2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #eff5fa;
  margin-bottom: 12px;
}
.age-lead {
  font-size: 13.5px;
  line-height: 1.7;
  color: #92a4b5;
  margin: 0 auto 20px;
  max-width: 440px;
}
.age-lead strong {
  color: #00b9e8;
  font-weight: 800;
}
.age-disclaimer-card {
  background: #080c12;
  border: 1px solid #1f2f40;
  border-radius: 7px;
  padding: 14px 16px;
  text-align: left;
  margin-bottom: 20px;
}
.disclaimer-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 8px monospace;
  letter-spacing: 0.14em;
  color: #00b9e8;
  margin-bottom: 7px;
}
.age-disclaimer-card p {
  font-size: 11px;
  line-height: 1.65;
  color: #728495;
  margin: 0;
}
.age-disclaimer-card strong {
  color: #c0ceda;
}
.age-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  font-size: 11.5px;
  line-height: 1.6;
  color: #b0c0cf;
  cursor: pointer;
  margin-bottom: 22px;
  user-select: none;
}
.age-checkbox-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: #00b9e8;
  flex-shrink: 0;
  cursor: pointer;
}
.age-checkbox-label strong {
  color: #e5edf5;
}
.age-error-msg {
  background: rgba(226, 74, 112, 0.15);
  border: 1px solid #e24a70;
  color: #ffb7c8;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 11px;
  margin-bottom: 16px;
  text-align: center;
}
.age-error-msg.shake {
  animation: shakeError 0.4s ease-in-out;
}
@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
.age-denied-box {
  background: rgba(226, 74, 112, 0.2);
  border: 1px solid #e24a70;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 18px;
  text-align: center;
}
.age-denied-box h4 {
  color: #ff9cb3;
  margin: 0 0 6px;
  font-size: 15px;
}
.age-denied-box p {
  color: #e5edf5;
  font-size: 12px;
  margin: 0;
}
.age-buttons-row {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.age-btn-enter {
  flex: 1.3;
  padding: 16px 20px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: #00b9e8;
  color: #02121a;
  border-color: #00b9e8;
  box-shadow: 0 0 25px rgba(0, 185, 232, 0.25);
  border-radius: 5px;
}
.age-btn-enter:hover {
  background: #46d2f3;
  box-shadow: 0 0 35px rgba(0, 185, 232, 0.4);
}
.age-btn-exit {
  flex: 1;
  padding: 16px 18px;
  font-size: 12px;
  border-color: #313d4b;
  color: #8c9ba9;
  border-radius: 5px;
}
.age-btn-exit:hover {
  border-color: #e24a70;
  color: #ff8fa7;
  background: rgba(226, 74, 112, 0.08);
}
.age-footnote {
  margin-top: 18px;
  font-size: 9.5px;
  color: #556677;
  letter-spacing: 0.04em;
}

/* --- Responsive Adjustments for New Sections --- */
@media (max-width: 1024px) {
  .quality-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .pathways-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .custody-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .custody-banner {
    padding: 38px 30px;
  }
}
@media (max-width: 768px) {
  .pathways-grid {
    grid-template-columns: 1fr;
  }
  .custody-timeline {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .custody-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
  }
  .custody-banner {
    padding: 30px 22px;
  }
  .telemetry-card {
    padding: 22px 18px;
  }
  .telemetry-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .age-modal-box {
    padding: 28px 20px 22px;
  }
  .age-buttons-row {
    flex-direction: column;
  }
  .age-btn-enter, .age-btn-exit {
    width: 100%;
    flex: unset;
  }
}

