:root {
  --bg: #0b1220;
  --bg-2: #0f1a2e;
  --panel: #ffffff;
  --ink: #0f172a;
  --ink-soft: #475569;
  --line: #e2e8f0;
  --brand: #0d9488;
  --brand-2: #0f766e;
  --brand-ink: #134e4a;
  --accent: #14b8a6;
  --warn-bg: #fff7ed;
  --warn-line: #fed7aa;
  --warn-ink: #9a3412;
  --radius: 16px;
  --shadow: 0 20px 50px -12px rgba(15, 23, 42, 0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }

/* ---------- Brand ---------- */
.brand-mark {
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: #e2e8f0;
}
.brand-mark.small { font-size: 20px; color: var(--ink); }
.brand-accent { color: var(--accent); }

/* ---------- Entry Gate ---------- */
.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(20,184,166,0.18), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(13,148,136,0.16), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
.gate-card {
  width: 100%;
  max-width: 560px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 24px;
  padding: 44px 40px;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.brand { margin-bottom: 22px; }
.gate-title {
  color: #f8fafc;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.gate-sub { color: #94a3b8; font-size: 16px; margin: 0 0 26px; }

.welcome-video { margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; }
.welcome-video .video-box { border-color: rgba(255,255,255,0.12); }

.gate-warn {
  display: flex;
  gap: 12px;
  text-align: left;
  background: rgba(251,146,60,0.10);
  border: 1px solid rgba(251,146,60,0.35);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 26px;
}
.gate-warn p { margin: 0; color: #fed7aa; font-size: 13.5px; line-height: 1.55; }
.warn-icon { font-size: 18px; }

.btn-enter {
  width: 100%;
  border: none;
  cursor: pointer;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  color: #04211d;
  background: linear-gradient(135deg, var(--accent), var(--brand));
  box-shadow: 0 12px 30px -8px rgba(20,184,166,0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-enter:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(20,184,166,0.7); }

.gate-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0 8px;
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
}
.trust-item strong { color: var(--accent); font-size: 15px; }
.trust-item span { color: #94a3b8; font-size: 11px; }

.disclaimer { margin-top: 20px; text-align: left; }
.disclaimer summary {
  cursor: pointer;
  color: #94a3b8;
  font-size: 12.5px;
  list-style: none;
}
.disclaimer summary::-webkit-details-marker { display: none; }
.disclaimer p { color: #7c8aa0; font-size: 12px; line-height: 1.6; }

/* ---------- Portal ---------- */
.portal { min-height: 100vh; background: #f1f5f9; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.mainnav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.navlink {
  border: none; background: transparent; cursor: pointer;
  color: var(--ink-soft); font-size: 13.5px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px; white-space: nowrap;
  font-family: inherit; transition: all 0.15s;
}
.navlink:hover { color: var(--brand); background: #f1f5f9; }
.navlink.active { color: var(--brand); background: rgba(13,148,136,0.10); font-weight: 600; }
.nav-toggle { display: none; border: none; background: transparent; font-size: 22px; cursor: pointer; color: var(--ink); }

.search-wrap {
  flex: 1;
  position: relative;
  max-width: 520px;
}
.portal-search { margin: 14px 0 20px; max-width: 100%; }
.search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--ink-soft); font-size: 18px;
}
#search {
  width: 100%;
  padding: 11px 14px 11px 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  background: #f8fafc;
  outline: none;
  transition: border 0.15s, box-shadow 0.15s;
}
#search:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(13,148,136,0.15); background: #fff; }
.topbar-link {
  margin-left: auto; color: var(--ink-soft); text-decoration: none;
  font-size: 13px; font-weight: 500; white-space: nowrap;
}
.topbar-link:hover { color: var(--brand); }

.content { max-width: 1120px; margin: 0 auto; padding: 34px 20px 60px; }
.content-head h2 { margin: 0; font-size: 26px; letter-spacing: -0.02em; }
.content-sub { color: var(--ink-soft); margin: 6px 0 18px; font-size: 14.5px; }

.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.cat {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.cat:hover { border-color: var(--brand); color: var(--brand); }
.cat.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(15,23,42,0.35); border-color: transparent; }
.card-top { height: 8px; }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-cat { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.card-name { font-size: 18px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.card-tag { color: var(--ink-soft); font-size: 13px; line-height: 1.5; margin: 0; flex: 1; }
.card-dose {
  margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink);
}
.card-dose span { color: var(--ink-soft); display: block; font-size: 11px; margin-bottom: 2px; }
.card-cta { color: var(--brand); font-size: 13px; font-weight: 600; margin-top: 10px; }

.empty { text-align: center; color: var(--ink-soft); padding: 60px 0; }

/* ---------- Static tabs ---------- */
.sub-h { font-size: 18px; margin: 32px 0 14px; letter-spacing: -0.01em; }

.gs-hero { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.gs-title { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; color: var(--brand-ink); margin: 6px 0 10px; line-height: 1.1; }
.gs-sub { color: var(--ink-soft); font-size: 15px; line-height: 1.6; margin: 0 0 22px; }
.gs-hero .video-box { text-align: left; }
.gs-warn {
  display: flex; gap: 12px; text-align: left; margin-top: 20px;
  background: var(--warn-bg); border: 1px solid var(--warn-line);
  border-radius: 12px; padding: 14px 16px;
}
.gs-warn p { margin: 0; color: var(--warn-ink); font-size: 13.5px; line-height: 1.55; }
.gs-center { text-align: center; }
.gs-center-text { text-align: center; max-width: 680px; margin-left: auto; margin-right: auto; }
.gs-steps { max-width: 940px; margin: 0 auto; }
.gs-script { max-width: 780px; margin: 0 auto; }

.quicklinks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.quicklink {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; cursor: pointer; text-align: left; font-family: inherit;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.quicklink:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -18px rgba(15,23,42,0.35); border-color: transparent; }
.ql-icon { font-size: 24px; }
.ql-title { font-size: 16px; font-weight: 700; color: var(--ink); }
.ql-body { font-size: 13px; color: var(--ink-soft); line-height: 1.5; flex: 1; }
.ql-cta { font-size: 13px; font-weight: 600; color: var(--brand); margin-top: 6px; }

.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.step-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; border-left: 4px solid var(--brand);
}
.step-card h3 { margin: 0 0 8px; font-size: 16px; }
.step-card p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }

.script-list { display: flex; flex-direction: column; gap: 8px; }
.script-row {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px;
}
.script-time {
  flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--brand-ink);
  background: rgba(13,148,136,0.10); padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  margin-top: 2px;
}
.script-line { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.6; }

.guide-video-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin: 0 auto 8px; max-width: 680px;
}
.guide-video-card .video-box { border-color: var(--line); }
.guide-caption { margin: 14px 4px 4px; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }

.guide-steps { display: flex; flex-direction: column; align-items: center; gap: 28px; margin-top: 8px; }
.guide-step { max-width: 680px; width: 100%; }
[data-tab="shipping"] .content-head,
[data-tab="shipping"] .sub-h { max-width: 680px; margin-left: auto; margin-right: auto; }
[data-tab="shipping"] .sub-h { width: 100%; }
.guide-step-title {
  font-size: 18px; margin: 0 0 14px; padding-left: 12px;
  border-left: 4px solid var(--brand); color: var(--brand-ink); line-height: 1.3;
}
.guide-step-photo {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.guide-step-photo img { width: 100%; height: auto; display: block; }
.guide-step-photo .photo-empty { border: none; border-radius: 0; aspect-ratio: 4/3; }
.guide-step-body {
  background: #fff; border: 1px solid var(--line); border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  margin: 0; padding: 18px 22px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.65;
}

.info-list { display: flex; flex-direction: column; gap: 12px; }
.info-row {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
}
.info-row h3 { margin: 0 0 6px; font-size: 15.5px; color: var(--brand-ink); }
.info-row p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }

.pharm-list { display: flex; flex-direction: column; gap: 20px; }
.pharm-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.pharm-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; background: rgba(13,148,136,0.06); border-bottom: 1px solid var(--line);
}
.pharm-head h3 { margin: 0; font-size: 18px; color: var(--brand-ink); }
.tier-badge {
  background: var(--brand-ink); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.pharm-photo { padding: 20px; }
.photo-empty {
  aspect-ratio: 16/10; border: 2px dashed var(--line); border-radius: 12px;
  display: grid; place-items: center; text-align: center; color: var(--ink-soft); padding: 20px;
  background: #f8fafc;
}
.photo-empty span { font-size: 34px; display: block; margin-bottom: 8px; opacity: 0.6; }
.photo-empty small { font-size: 12px; }
.pharm-main {
  width: 100%; max-height: 460px; object-fit: contain; border-radius: 12px;
  display: block; background: #f8fafc; border: 1px solid var(--line);
}
.pharm-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pharm-thumb {
  width: 64px; height: 64px; object-fit: cover; border-radius: 8px; cursor: pointer;
  border: 2px solid var(--line); background: #f8fafc; transition: border-color 0.15s;
}
.pharm-thumb:hover { border-color: var(--brand); }
.pharm-thumb.active { border-color: var(--brand); }

.pharm-rows { padding: 0 20px; }
.pharm-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 14px 0; border-top: 1px dashed var(--line);
}
.pharm-row span { color: var(--ink-soft); font-size: 14px; }
.pharm-row strong { font-size: 14px; text-align: right; }
.pharm-unavail { color: #dc2626; font-weight: 600; }

.pharm-pack { padding: 18px 20px 22px; }
.pharm-pack h4 { margin: 0 0 8px; font-size: 15px; }
.pharm-pack p { margin: 0 0 14px; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.pharm-note {
  border-left: 3px solid var(--brand); background: #f8fafc; border-radius: 0 8px 8px 0;
  padding: 12px 14px; color: var(--ink-soft); font-size: 13px; font-style: italic; line-height: 1.5;
}

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px;
}
.faq-item summary {
  cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 14.5px; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--brand); font-size: 20px; font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0 0 16px; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }

.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.help-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}
.help-card h3 { margin: 0 0 8px; font-size: 16px; }
.help-card p { margin: 0 0 14px; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.help-cta { font-weight: 600; color: var(--brand); font-size: 14px; }

@media (max-width: 820px) {
  .topbar-inner { flex-wrap: wrap; gap: 12px; }
  .brand-mark.small { order: 1; }
  .nav-toggle { display: block; order: 2; margin-left: auto; padding: 4px 8px; }
  .mainnav {
    order: 4; flex-basis: 100%; flex-direction: column; gap: 2px;
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease; flex-wrap: nowrap;
  }
  .mainnav.open { max-height: 520px; margin-top: 4px; }
  .navlink { width: 100%; text-align: left; padding: 13px 14px; font-size: 15px; border-radius: 10px; }
  .topbar-link {
    order: 5; flex-basis: 100%; display: none; margin-left: 0;
    padding: 13px 14px; font-size: 15px; border-top: 1px solid var(--line);
  }
  .mainnav.open ~ .topbar-link { display: block; }
}

.footer { background: var(--bg); }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 44px 20px 32px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.footer-col h4 {
  color: #cbd5e1; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; margin: 0 0 12px;
}
.footer-col p { color: #7c8aa0; font-size: 12.5px; line-height: 1.65; margin: 0; }
.footer-links {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  margin: 32px 0 16px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-links a { color: #94a3b8; text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: var(--accent); }
.footer-links span { color: #475569; }
.footer-copy { color: #64748b; font-size: 12px; text-align: center; margin: 0; line-height: 1.6; }

/* ---------- Detail Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 50; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(2,6,23,0.55); backdrop-filter: blur(2px); }
.drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(560px, 100%);
  background: #fff;
  overflow-y: auto;
  box-shadow: -20px 0 60px -20px rgba(2,6,23,0.5);
  animation: slidein 0.25s ease;
}
@keyframes slidein { from { transform: translateX(40px); opacity: 0.4; } to { transform: none; opacity: 1; } }

.d-hero { padding: 26px 28px 22px; color: #fff; }
.d-close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.2); color: #fff;
  font-size: 18px; cursor: pointer; line-height: 1;
}
.d-close:hover { background: rgba(255,255,255,0.35); }
.d-cat { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.9; }
.d-name { font-size: 30px; font-weight: 800; margin: 6px 0 6px; letter-spacing: -0.02em; }
.d-tag { font-size: 14px; opacity: 0.92; margin: 0; }

.d-body { padding: 22px 28px 40px; }
.d-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.fact { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.fact span { display: block; font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.fact strong { font-size: 13.5px; font-weight: 600; }
.fact.wide { grid-column: 1 / -1; }

.d-section { margin-bottom: 22px; }
.d-section h4 { font-size: 14px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.d-section p { color: var(--ink-soft); font-size: 14px; line-height: 1.6; margin: 0; }
.d-list { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }

.d-dose-banner {
  background: var(--warn-bg); border: 1px solid var(--warn-line);
  color: var(--warn-ink); border-radius: 12px; padding: 12px 14px;
  font-size: 12.5px; line-height: 1.5; margin-bottom: 22px;
}

.d-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 20px; margin-bottom: 16px;
}
.d-card h4 { margin: 0 0 12px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.d-conc { margin: 0 0 12px; font-size: 13px; color: var(--ink-soft); }
.d-conc strong { color: var(--ink); }
.dose-table { width: 100%; border-collapse: collapse; margin-bottom: 6px; }
.dose-table th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-soft); padding: 8px 10px; background: #f8fafc; border-bottom: 1px solid var(--line);
}
.dose-table td { padding: 11px 10px; font-size: 14px; border-bottom: 1px solid var(--line); }
.dose-table tr:last-child td { border-bottom: none; }
.dose-table td:first-child { font-weight: 600; }
.d-video-wrap { margin-top: 14px; }
.d-kv { list-style: none; margin: 0; padding: 0; }
.d-kv li { font-size: 14px; padding: 7px 0; border-bottom: 1px dashed var(--line); color: var(--ink); }
.d-kv li:last-child { border-bottom: none; }
.d-kv li span { font-weight: 600; color: var(--ink-soft); margin-right: 6px; }
.coa-select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; font-family: inherit; background: #f8fafc; color: var(--ink);
}
.coa-select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(13,148,136,0.15); background: #fff; }
.coa-result { margin: 12px 0 0; font-size: 13px; color: var(--brand-ink); line-height: 1.5; }

.video-box { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #0b1220; }
.video-box video { width: 100%; display: block; background: #0b1220; }
.video-embed { position: relative; aspect-ratio: 16/9; }
.video-embed iframe,
.video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-empty {
  aspect-ratio: 16/9; display: grid; place-items: center; text-align: center;
  color: #94a3b8; padding: 20px;
  background: linear-gradient(135deg, #0f1a2e, #0b1220);
}
.video-empty .play { font-size: 34px; margin-bottom: 8px; opacity: 0.6; }
.video-empty small { display: block; margin-top: 6px; font-size: 11px; opacity: 0.7; }

@media (max-width: 520px) {
  .gate-card { padding: 32px 22px; }
  .gate-title { font-size: 32px; }
  .d-facts { grid-template-columns: 1fr; }
}
