/* ==========================================================================
   MEDVONE.COM — DUAL THEME (WHITE & BLACK + BALANCED DARK EMERALD)
   Light Mode: Crisp White (#ffffff) + Jet Black (#090c0b) + ~22% Dark Emerald (#064e3b / #047857)
   Dark Mode:  Jet Black (#060908) + Crisp White (#f8faf9) + ~15% Dark Emerald (#065f46 / #10b981)
   Typography: AR (Amiri + Cairo) | EN / FR (Cormorant Garamond + Plus Jakarta Sans + JetBrains Mono)
   ========================================================================== */

:root,
html[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #edf4f1;
  --bg-elev: #ffffff;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-soft: #e6f0ec;
  --surface-glass: rgba(255, 255, 255, 0.90);
  --border: rgba(6, 78, 59, 0.22);
  --border-soft: rgba(9, 12, 11, 0.08);
  --border-strong: #064e3b;

  --text: #090c0b;
  --text-2: #31413c;
  --text-muted: #5a6d67;

  --ink-btn-bg: #090c0b;
  --ink-btn-fg: #ffffff;
  --emerald-deep: #064e3b;
  --emerald-accent: #047857;
  --emerald-soft: rgba(6, 78, 59, 0.13);
  --emerald-glow: rgba(6, 78, 59, 0.22);
  --gold-muted: #9a6e17;

  --hero-scrim-rtl: radial-gradient(circle at 82% 45%, rgba(255, 255, 255, 0.96) 0%, rgba(237, 244, 241, 0.72) 45%, rgba(255, 255, 255, 0.05) 75%);
  --hero-scrim-ltr: radial-gradient(circle at 18% 45%, rgba(255, 255, 255, 0.96) 0%, rgba(237, 244, 241, 0.72) 45%, rgba(255, 255, 255, 0.05) 75%);
  --shadow-lux: 0 20px 54px rgba(6, 78, 59, 0.09);
  --shadow-dock: 0 14px 38px rgba(6, 78, 59, 0.14), 0 0 0 1px rgba(6, 78, 59, 0.18);
  --footer-bg: #07120f;
  --footer-fg: #f3f6f5;
  --footer-muted: #9bb1aa;
}

html[data-theme="dark"] {
  --bg: #060908;
  --bg-alt: #0b110f;
  --bg-elev: #0f1614;
  --surface: rgba(15, 22, 20, 0.92);
  --surface-soft: #131e1b;
  --surface-glass: rgba(8, 13, 12, 0.88);
  --border: rgba(16, 185, 129, 0.20);
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(52, 211, 153, 0.45);

  --text: #f8faf9;
  --text-2: #b8c6c2;
  --text-muted: #7c8d88;

  --ink-btn-bg: #f8faf9;
  --ink-btn-fg: #060908;
  --emerald-deep: #064e3b;
  --emerald-accent: #10b981;
  --emerald-soft: rgba(6, 95, 70, 0.17);
  --emerald-glow: rgba(16, 185, 129, 0.20);
  --gold-muted: #d4af37;

  --hero-scrim-rtl: radial-gradient(circle at 82% 45%, rgba(6, 9, 8, 0.92) 0%, rgba(6, 9, 8, 0.58) 45%, rgba(6, 9, 8, 0.05) 75%);
  --hero-scrim-ltr: radial-gradient(circle at 18% 45%, rgba(6, 9, 8, 0.92) 0%, rgba(6, 9, 8, 0.58) 45%, rgba(6, 9, 8, 0.05) 75%);
  --shadow-lux: 0 26px 70px rgba(0, 0, 0, 0.65);
  --shadow-dock: 0 18px 46px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(16, 185, 129, 0.20);
  --footer-bg: #030605;
  --footer-fg: #f8faf9;
  --footer-muted: #8b9a96;
}

:root {
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-ar-sans: 'Cairo', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-ar-serif: 'Amiri', 'Cairo', Georgia, serif;
  --container-w: 1320px;
  --transition: 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; background: var(--bg); color: var(--text); transition: background-color 0.3s ease, color 0.3s ease; }

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 15% 0%, var(--emerald-soft), transparent 64%),
    radial-gradient(ellipse 70% 45% at 88% 12%, var(--emerald-soft), transparent 60%);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.68;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

main#appRoot { flex: 1; transition: opacity 0.18s ease, transform 0.18s ease, filter 0.18s ease; }
main#appRoot.is-dispersing { opacity: 0; transform: scale(0.978) translateY(-10px); filter: blur(5px); }

h1, h2, .hero-title, .sec-title, .display-serif { font-family: var(--font-display); line-height: 1.15; }
h3, h4, .btn, input, select, textarea { font-family: var(--font-sans); }

html[lang="ar"] body { font-family: var(--font-ar-sans); line-height: 1.82; }
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] .hero-title,
html[lang="ar"] .sec-title,
html[lang="ar"] .display-serif {
  font-family: var(--font-ar-serif);
  letter-spacing: 0 !important;
  line-height: 1.24;
}
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] .btn,
html[lang="ar"] input,
html[lang="ar"] select,
html[lang="ar"] textarea { font-family: var(--font-ar-sans); }

.mono { font-family: var(--font-mono); }
.wrap { max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }

/* Scattered Bio-Convergence Transition */
.bio-pulse-veil {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 42%, var(--emerald-soft), var(--bg) 74%);
  backdrop-filter: blur(5px);
  transition: opacity 0.2s ease;
}
.bio-pulse-veil.active { opacity: 0.72; }

@keyframes bioConverge {
  0% { opacity: 0; transform: translate3d(var(--sx, 0px), var(--sy, 32px), 0) rotate(var(--srot, 0deg)) scale(0.92); filter: blur(6px); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg) scale(1); filter: blur(0); }
}
.bio-converge { animation: bioConverge 0.65s cubic-bezier(0.16, 1, 0.3, 1) var(--sdelay, 0ms) both; }

/* ==========================================================================
   FLOATING CAPSULE HEADER & WIDE 2-COLUMN SPECIALTY MEGA-DROPDOWNS
   ========================================================================== */
.floating-header-wrap { position: sticky; top: 12px; z-index: 150; padding: 0 16px; pointer-events: none; }

.capsule-nav {
  max-width: 1360px; margin: 0 auto; padding: 8px 18px; border-radius: 999px;
  background: var(--surface-glass); backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid var(--border); box-shadow: var(--shadow-dock);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  pointer-events: auto; user-select: none; -webkit-user-select: none;
}

.brand-link { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); font-weight: 800; white-space: nowrap; flex-shrink: 0; }
.brand-crest { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--emerald-soft); border: 1px solid var(--border); color: var(--emerald-accent); }
.brand-wordmark { font-size: 17.5px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }

.nav-menu { display: flex; align-items: center; gap: clamp(4px, 0.65vw, 12px); list-style: none; min-width: 0; }
.nav-item { position: relative; }

.nav-trigger, .nav-direct-link {
  background: transparent; border: none; text-decoration: none; color: var(--text-2);
  font-family: inherit; font-size: 12.6px; font-weight: 700; padding: 7px 9px; border-radius: 999px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; transition: all 0.2s ease;
}
.nav-trigger:hover, .nav-direct-link:hover, .nav-item.is-active > .nav-trigger, .nav-item.is-active > .nav-direct-link {
  color: var(--emerald-accent); background: var(--emerald-soft);
}
.caret { font-size: 10px; opacity: 0.75; transition: transform 0.2s ease; }
.nav-item:hover .caret, .nav-item.open .caret { transform: rotate(180deg); color: var(--emerald-accent); }

.nav-dropdown-panel {
  position: absolute; top: calc(100% + 12px); inset-inline-start: 0; min-width: 300px;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 20px; padding: 10px;
  box-shadow: var(--shadow-lux);
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(0.98); pointer-events: none;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1); z-index: 220;
}
.nav-dropdown-panel.mega-grid {
  min-width: 570px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.nav-dropdown-panel.mega-grid .mega-span-full { grid-column: 1 / -1; background: var(--emerald-soft); border-color: var(--border); }

.portal-drop-wrap .nav-dropdown-panel { inset-inline-start: auto; inset-inline-end: 0; min-width: 330px; }
.nav-dropdown-panel::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 18px; }
.nav-item:hover .nav-dropdown-panel,
.nav-item:focus-within .nav-dropdown-panel,
.nav-item.open .nav-dropdown-panel { opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto; }

.drop-link { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 13px; text-decoration: none; color: var(--text); border: 1px solid transparent; transition: all 0.16s ease; }
.drop-link:hover, .drop-link.is-active { background: var(--emerald-soft); border-color: var(--border); }
.drop-link-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.6px; font-weight: 700; }
.badge-ver { font-family: var(--font-mono); font-size: 9.8px; color: var(--emerald-accent); background: var(--emerald-soft); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.badge-soon { font-family: var(--font-mono); font-size: 9.8px; color: var(--gold-muted); background: rgba(154, 110, 23, 0.14); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.drop-link small { font-size: 11px; color: var(--text-muted); }

/* Header Tools */
.nav-tools { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.lang-group { display: inline-flex; border: 1px solid var(--border); background: var(--bg-alt); border-radius: 999px; padding: 2px; }
.lang-chip { background: transparent; border: none; color: var(--text-2); padding: 4px 7px; border-radius: 999px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; cursor: pointer; }
.lang-chip.active { background: var(--emerald-deep); color: #ffffff; }
html[data-theme="dark"] .lang-chip.active { background: var(--emerald-accent); color: #04120e; }

.curr-select { height: 29px; background: var(--bg-alt); color: var(--text); border: 1px solid var(--border); padding: 0 7px; border-radius: 999px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; cursor: pointer; outline: none; }
.icon-tool { height: 29px; padding: 0 10px; border: 1px solid var(--border); background: var(--bg-alt); color: var(--text); border-radius: 999px; font-size: 11px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.icon-tool:hover { border-color: var(--emerald-accent); color: var(--emerald-accent); }
.mobile-toggle { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 24px; border-radius: 999px; font-size: 13.5px; font-weight: 800;
  text-decoration: none; cursor: pointer; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); transition: all var(--transition); white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); border-color: var(--emerald-accent); color: var(--emerald-accent); }
.btn-sm { padding: 6px 12px; font-size: 11.5px; }

.btn-cta {
  background: var(--emerald-deep);
  border-color: var(--emerald-deep);
  color: #ffffff;
  box-shadow: 0 10px 26px var(--emerald-glow);
}
.btn-cta:hover { background: var(--emerald-accent); border-color: var(--emerald-accent); color: #ffffff; }
html[data-theme="dark"] .btn-cta { background: var(--emerald-accent); border-color: var(--emerald-accent); color: #031510; }
html[data-theme="dark"] .btn-cta:hover { background: #34d399; color: #031510; }

.btn-portal-trigger {
  background: var(--bg-alt); border: 1px solid var(--border); color: var(--text);
  padding: 6px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px; font-family: inherit; white-space: nowrap;
}
.btn-portal-trigger:hover { border-color: var(--emerald-accent); color: var(--emerald-accent); }

.mobile-drawer {
  display: none; max-width: 1360px; margin: 10px auto 0; border-radius: 22px;
  border: 1px solid var(--border); background: var(--bg-elev); padding: 18px 24px 22px;
  box-shadow: var(--shadow-lux); pointer-events: auto; max-height: 80vh; overflow-y: auto;
}
.mobile-drawer.open { display: block; }
.mob-group-title { font-family: var(--font-mono); font-size: 10.5px; color: var(--emerald-accent); margin: 14px 0 6px; text-transform: uppercase; }
.mobile-drawer a { display: flex; justify-content: space-between; padding: 9px 0; text-decoration: none; color: var(--text); font-weight: 600; font-size: 13.5px; border-bottom: 1px solid var(--border-soft); }

/* ==========================================================================
   FULL-BLEED 9-SPECIALTY 3D ANATOMICAL ATLAS HERO
   ========================================================================== */
.hero-stage {
  position: relative; min-height: 88vh; margin-top: -76px; padding-top: 118px; padding-bottom: 42px;
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  cursor: grab; user-select: none; -webkit-user-select: none;
}
.hero-stage.dragging { cursor: grabbing; }
.hero-stage.can-click { cursor: pointer; }

#medvoneBioCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
.hero-scrim { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: var(--hero-scrim-rtl); }
html[dir="ltr"] .hero-scrim { background: var(--hero-scrim-ltr); }

.hero-foreground { position: relative; z-index: 3; width: 100%; pointer-events: none; }
.hero-copy-col { max-width: 710px; }

.hero-pill-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 15px; border-radius: 999px;
  background: var(--emerald-soft); border: 1px solid var(--border); color: var(--emerald-accent);
  font-size: 12px; font-weight: 700; margin-bottom: 20px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald-accent); animation: pulseDot 2s infinite; }
@keyframes pulseDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.75); } }

.hero-title { font-size: clamp(2.5rem, 4.9vw, 4.15rem); font-weight: 800; margin-bottom: 18px; color: var(--text); }
.hero-title .accent { color: var(--emerald-accent); }
.hero-lead { font-size: clamp(1rem, 1.32vw, 1.14rem); color: var(--text-2); max-width: 640px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; pointer-events: auto; }
.hero-spec-pills { display: flex; flex-wrap: wrap; gap: 8px; pointer-events: auto; }

.pill-tag { font-family: var(--font-mono); font-size: 11px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 600; unicode-bidi: plaintext; }

.vital-dock-wrap { position: relative; z-index: 3; margin-top: 40px; pointer-events: none; }
.vital-dock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; pointer-events: auto; }
.vital-pod { background: var(--surface); backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: 22px; padding: 18px 20px; box-shadow: var(--shadow-lux); transition: transform 0.25s ease, border-color 0.25s ease; }
.vital-pod:hover { transform: translateY(-4px); border-color: var(--emerald-accent); }
.vital-pod small { display: block; font-family: var(--font-mono); font-size: 10.5px; color: var(--emerald-accent); font-weight: 700; margin-bottom: 5px; }
.vital-pod strong { display: block; font-size: 1.2rem; font-weight: 800; color: var(--text); margin-bottom: 5px; }
.vital-pod p { font-size: 12.8px; color: var(--text-2); line-height: 1.5; }

/* Sections & Portals */
.section-band { padding: 72px 0; position: relative; }
.section-band.alt { background: var(--bg-alt); border-block: 1px solid var(--border-soft); }
.sec-header-center { text-align: center; max-width: 780px; margin: 0 auto 42px; }
.sec-pill { display: inline-flex; padding: 5px 14px; border-radius: 999px; background: var(--emerald-soft); border: 1px solid var(--border); color: var(--emerald-accent); font-size: 11.5px; font-weight: 700; margin-bottom: 12px; }
.sec-title { font-size: clamp(1.9rem, 3.3vw, 2.85rem); font-weight: 800; margin-bottom: 10px; color: var(--text); }
.sec-desc { color: var(--text-2); font-size: 1rem; }

.dual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dual-portal { border-radius: 28px; padding: 30px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-lux); display: flex; flex-direction: column; justify-content: space-between; }
.dual-portal.cloud-glow { border-top: 4px solid var(--emerald-deep); }
.dual-portal.offline-glow { border-top: 4px solid var(--gold-muted); }
.dual-portal h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.dual-portal > div > p { color: var(--text-2); font-size: 0.94rem; margin-bottom: 18px; }
.portal-suite-list { display: grid; gap: 9px; margin-bottom: 20px; }
.suite-row-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 15px; border-radius: 15px; text-decoration: none; background: var(--bg-alt); border: 1px solid var(--border-soft); color: var(--text); transition: all 0.2s ease; }
.suite-row-link:hover { transform: translateY(-2px); border-color: var(--emerald-accent); }
.suite-row-link strong { display: block; font-size: 13.8px; }
.suite-row-link small { font-size: 11.5px; color: var(--text-muted); }
.suite-price-tag { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; color: var(--emerald-accent); white-space: nowrap; }

.arc-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.arc-timeline::before { content: ""; position: absolute; top: 28px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--emerald-deep), var(--emerald-accent), var(--emerald-deep)); opacity: 0.28; }
.arc-step { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 24px 18px; text-align: center; box-shadow: var(--shadow-lux); }
.arc-circle { width: 50px; height: 50px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 800; font-size: 14px; color: #ffffff; background: var(--emerald-deep); }
.arc-step h4 { font-size: 1.02rem; margin-bottom: 6px; }
.arc-step p { font-size: 13px; color: var(--text-2); }

.mandate-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mandate-card { border-radius: 26px; padding: 28px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-lux); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }

/* Inner Banner, Pricing & Calculator */
.inner-banner { padding: 52px 0 38px; text-align: center; border-bottom: 1px solid var(--border-soft); background: var(--bg-alt); }
.page-crumb { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 5px 15px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); margin-bottom: 16px; }
.page-crumb a { color: var(--emerald-accent); text-decoration: none; }
.subpage-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.sub-pill { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); text-decoration: none; font-size: 12.6px; font-weight: 700; transition: all 0.2s; }
.sub-pill:hover { border-color: var(--emerald-accent); color: var(--emerald-accent); }
.sub-pill.active { background: var(--emerald-deep); border-color: var(--emerald-deep); color: #ffffff; }
html[data-theme="dark"] .sub-pill.active { background: var(--emerald-accent); border-color: var(--emerald-accent); color: #04120e; }

.catalog-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 11px 22px; margin-bottom: 26px; }
.cat-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--border); gap: 4px; }
.cat-btn { padding: 7px 17px; border-radius: 999px; border: none; background: transparent; color: var(--text-2); font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit; }
.cat-btn.active { background: var(--emerald-deep); color: #ffffff; }
html[data-theme="dark"] .cat-btn.active { background: var(--emerald-accent); color: #04120e; }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 20px; align-items: stretch; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: 26px; padding: 26px 22px; box-shadow: var(--shadow-lux); display: flex; flex-direction: column; justify-content: space-between; transition: transform var(--transition), border-color var(--transition); }
.price-card:hover { transform: translateY(-4px); border-color: var(--emerald-accent); }
.price-card.flagship { border: 2px solid var(--emerald-deep); background: linear-gradient(160deg, var(--surface) 0%, var(--emerald-soft) 100%); }
.flagship-tag { display: inline-block; align-self: flex-start; margin-bottom: 10px; background: var(--emerald-deep); color: #ffffff; font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.soon-tag { display: inline-block; align-self: flex-start; margin-bottom: 10px; background: rgba(154, 110, 23, 0.16); color: var(--gold-muted); border: 1px solid var(--gold-muted); font-family: var(--font-mono); font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.pc-name { font-size: 1.25rem; font-weight: 800; margin-bottom: 4px; }
.pc-sub { font-size: 0.84rem; color: var(--text-2); margin-bottom: 14px; min-height: 36px; }
.pc-price-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 14px; }
.pc-amount { font-size: 2.1rem; font-weight: 800; font-family: var(--font-mono); color: var(--text); }
.pc-period { font-size: 0.82rem; color: var(--text-muted); font-weight: 700; }

.hw-box { background: var(--bg-alt); border: 1px solid var(--border-soft); border-radius: 16px; padding: 12px; margin-bottom: 16px; display: grid; gap: 7px; }
.hw-line { display: flex; justify-content: space-between; font-size: 0.76rem; font-family: var(--font-mono); font-weight: 700; color: var(--text-2); }
.hw-line strong { color: var(--text); }
.meter-track { width: 100%; height: 5px; border-radius: 999px; background: var(--border); overflow: hidden; }
.meter-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--emerald-deep), var(--emerald-accent)); }

.feat-list { list-style: none; display: grid; gap: 7px; margin-bottom: 18px; }
.feat-item { display: flex; align-items: flex-start; gap: 7px; font-size: 0.84rem; color: var(--text-2); font-weight: 600; }
.chk { color: var(--emerald-accent); font-weight: 900; }

/* Pulse Node Full-Capability Calculator */
.calc-master-box { margin-top: 38px; background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 30px; box-shadow: var(--shadow-lux); }
.calc-layout { display: grid; grid-template-columns: 1.55fr 0.85fr; gap: 26px; align-items: start; }
.calc-group { background: var(--bg-alt); border: 1px solid var(--border-soft); border-radius: 20px; padding: 20px; margin-bottom: 18px; }
.calc-group-title { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-size: 1rem; font-weight: 800; }
.do-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.quota-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }

.ctrl-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 14px; padding: 11px 13px; }
.ctrl-card label { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.ctrl-card select, .ctrl-card input[type="number"] {
  width: 100%; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--bg-alt); color: var(--text); font-family: var(--font-mono); font-size: 12.2px; font-weight: 700;
}
.ctrl-card input[type="range"] { width: 100%; accent-color: var(--emerald-deep); cursor: pointer; }

.mod-toggle { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 13px; border: 1px solid var(--border); background: var(--bg-elev); cursor: pointer; font-size: 12.2px; font-weight: 700; }
.mod-toggle.active { border-color: var(--emerald-accent); background: var(--emerald-soft); }

.calc-summary-sticky { position: sticky; top: 96px; background: var(--bg-alt); border: 2px solid var(--emerald-deep); border-radius: 24px; padding: 24px; box-shadow: var(--shadow-lux); }
.sum-line { display: flex; justify-content: space-between; align-items: center; font-size: 12.8px; padding: 8px 0; border-bottom: 1px solid var(--border-soft); }
.rate-strip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; margin-bottom: 16px; }
.rate-mini-box { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; padding: 9px 11px; }
.rate-mini-box small { display: block; font-size: 10.5px; color: var(--text-muted); font-weight: 700; }
.rate-mini-box strong { font-family: var(--font-mono); font-size: 12.5px; color: var(--emerald-accent); }

/* Sovereign Terms & Conditions Layout */
.terms-notice-bar {
  background: var(--emerald-soft); border: 1px solid var(--emerald-deep); border-radius: 18px;
  padding: 16px 20px; margin-bottom: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
}
.terms-layout { display: grid; grid-template-columns: 310px 1fr; gap: 24px; align-items: start; }
.terms-toc {
  position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 14px; max-height: 75vh; overflow-y: auto; display: grid; gap: 6px;
}
.terms-toc-btn {
  text-align: start; background: transparent; border: 1px solid transparent; border-radius: 11px;
  padding: 8px 11px; font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--text-2); cursor: pointer;
}
.terms-toc-btn:hover { background: var(--emerald-soft); color: var(--emerald-accent); }
.terms-chapter-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 26px; margin-bottom: 20px; box-shadow: var(--shadow-lux); }
.terms-article { padding: 16px 0; border-bottom: 1px solid var(--border-soft); }
.terms-article:last-child { border-bottom: none; padding-bottom: 0; }
.terms-article h4 { font-size: 1.06rem; font-weight: 800; color: var(--emerald-accent); margin-bottom: 8px; }
.terms-article p, .terms-article li { font-size: 0.93rem; color: var(--text-2); margin-bottom: 6px; }
.terms-article ol, .terms-article ul { padding-inline-start: 22px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lux-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 26px; box-shadow: var(--shadow-lux); }
.lux-card.gold-top { border-top: 3px solid var(--gold-muted); }
.lux-card.emerald-top { border-top: 3px solid var(--emerald-deep); }

.guide-layout { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.guide-nav { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 10px; display: grid; gap: 6px; }
.guide-tab-btn { text-align: start; background: transparent; border: 1px solid transparent; border-radius: 12px; color: var(--text-2); padding: 11px 13px; cursor: pointer; font-family: inherit; font-size: 13.5px; font-weight: 700; }
.guide-tab-btn.active { background: var(--emerald-soft); border-color: var(--emerald-accent); color: var(--emerald-accent); }

.video-thumb { height: 148px; border-radius: 15px; background: linear-gradient(135deg, var(--emerald-deep), var(--ink-btn-bg)); color: #ffffff; display: flex; align-items: center; justify-content: center; font-size: 30px; position: relative; margin-bottom: 14px; cursor: pointer; }
.video-dur { position: absolute; bottom: 10px; inset-inline-end: 12px; font-family: var(--font-mono); font-size: 11px; background: rgba(0, 0, 0, 0.72); padding: 2px 8px; border-radius: 999px; }

.faq-list { display: grid; gap: 12px; max-width: 920px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.faq-q { width: 100%; text-align: inherit; background: transparent; color: var(--text); border: none; padding: 17px 20px; font-weight: 700; font-size: 1rem; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-family: inherit; }
.faq-a { display: none; padding: 0 20px 18px; color: var(--text-2); font-size: 0.94rem; }
.faq-item.open .faq-a { display: block; }

.field { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-alt); color: var(--text); font-family: inherit; font-size: 14px; margin-bottom: 12px; outline: none; }
.field:focus { border-color: var(--emerald-accent); }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-fg); border-top: 1px solid var(--border); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 36px; }
.footer-grid h4 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: #34d399; margin-bottom: 13px; }
.footer-grid ul { list-style: none; display: grid; gap: 9px; }
.footer-grid a { text-decoration: none; color: var(--footer-muted); font-size: 13.5px; transition: color 0.18s; }
.footer-grid a:hover { color: #ffffff; }
.footer-bottom { padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.10); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--font-mono); font-size: 11.5px; color: var(--footer-muted); }
.orbit-link { color: #34d399; font-weight: 700; text-decoration: none; }
.orbit-link:hover { text-decoration: underline; }

/* Modals */
.modal-bg { display: none; position: fixed; inset: 0; z-index: 400; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(8px); align-items: center; justify-content: center; padding: 18px; }
.modal-bg.open { display: flex; }
.modal-card { width: 100%; max-width: 560px; background: var(--bg-elev); color: var(--text); border: 1px solid var(--border); border-radius: 24px; padding: 26px; box-shadow: var(--shadow-lux); }
.hp-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 13px; border-radius: 12px; background: var(--bg-alt); border: 1px solid var(--border-soft); margin-bottom: 8px; font-size: 13px; }

/* Responsive */
@media (max-width: 1290px) {
  .capsule-nav { padding: 8px 12px; gap: 6px; }
  .nav-menu { gap: 2px; }
  .nav-trigger, .nav-direct-link { font-size: 12px; padding: 6px 7px; }
}
@media (max-width: 1140px) {
  .nav-menu, .portal-drop-wrap { display: none; }
  .mobile-toggle { display: inline-flex; }
}
@media (max-width: 1020px) {
  .vital-dock, .dual-grid, .arc-timeline, .mandate-duo, .calc-layout, .terms-layout, .guide-layout, .two-col, .three-col, .footer-grid { grid-template-columns: 1fr; }
  .do-grid, .quota-grid, .mod-grid { grid-template-columns: 1fr; }
  .arc-timeline::before { display: none; }
  .hero-stage { min-height: auto; padding-top: 104px; }
  .catalog-controls { border-radius: 22px; }
}

/* WordPress Admin Bar offset compatibility */
body.admin-bar .floating-header-wrap { top: 44px; }
