
/* ── shared masterclass styles ── */

:root {
  --bg-primary: #0D0C0A;
  --bg-card: #1E1C18;
  --bg-card-hover: #2A2620;
  --sand: #F0B800;
  --sand-light: #FFD000;
  --sand-dim: rgba(240,184,0,0.12);
  --amber: #F0B800;
  --red-alert: #C04030;
  --green: #2E7D52;
  --text-primary: #FFFFFF;
  --text-secondary: #9A9088;
  --text-dim: #6B6458;
  --border: rgba(240,184,0,0.10);
  --border-active: rgba(240,184,0,0.50);
}

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

body {
  font-family: 'Barlow', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ═══ SCREEN SYSTEM ═══ */
.screen { display: none; min-height: 100vh; position: relative; }
.screen.active { display: flex; flex-direction: column; }

/* ═══ WELCOME SCREEN ═══ */
#welcome {
  justify-content: center;
  align-items: center;
  text-align: center;
  background:
    radial-gradient(ellipse at 30% 80%, rgba(240,184,0,0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 20%, rgba(240,184,0,0.03) 0%, transparent 50%),
    var(--bg-primary);
  padding: 2rem;
}

.welcome-content { max-width: 560px; }

.brand-mark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 12vw, 7rem);
  letter-spacing: 0.08em;
  line-height: 0.9;
  color: var(--text-primary);
  margin-bottom: 0.1em;
  animation: fadeUp 1s ease-out;
}

.brand-sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 400;
  font-size: clamp(0.85rem, 2.5vw, 1.05rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 2.5rem;
  animation: fadeUp 1s ease-out 0.15s both;
}

.brand-tagline {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 3rem;
  animation: fadeUp 1s ease-out 0.3s both;
}

.brand-tagline strong {
  color: var(--text-primary);
  font-weight: 500;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: transparent;
  border: 1.5px solid var(--sand);
  color: var(--sand);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s ease;
  animation: fadeUp 1s ease-out 0.5s both;
}

.btn-primary:hover {
  background: var(--sand);
  color: var(--bg-primary);
  box-shadow: 0 0 30px rgba(240,184,0,0.25);
}

.btn-primary .arrow { transition: transform 0.3s ease; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.welcome-callout {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
  padding: 0.6rem 1.5rem;
  border: 1px solid rgba(240,184,0,0.25);
  background: rgba(240,184,0,0.04);
  margin: 1.2rem auto;
  max-width: 420px;
  text-align: center;
  animation: fadeUp 0.8s ease-out 0.4s both;
}

.moterr-creed {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: clamp(0.6rem, 1.8vw, 0.72rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 2.5rem;
  animation: fadeUp 1s ease-out 0.65s both;
}

.welcome-footer {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
  animation: fadeUp 1s ease-out 0.7s both;
}

/* ═══ INTAKE SCREEN ═══ */
#intake {
  padding: 2rem;
  align-items: center;
}

.intake-header {
  text-align: center;
  padding: 2rem 0 1rem;
  max-width: 600px;
}

.intake-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.intake-header p {
  font-weight: 300;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.questions-container {
  width: 100%;
  max-width: 680px;
  padding: 1rem 0 2rem;
}

.question-block {
  margin-bottom: 2rem;
  animation: fadeUp 0.6s ease-out both;
}

.question-block:nth-child(2) { animation-delay: 0.05s; }
.question-block:nth-child(3) { animation-delay: 0.1s; }
.question-block:nth-child(4) { animation-delay: 0.15s; }
.question-block:nth-child(5) { animation-delay: 0.2s; }
.question-block:nth-child(6) { animation-delay: 0.25s; }
.question-block:nth-child(7) { animation-delay: 0.3s; }

.q-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--sand);
  margin-bottom: 0.4rem;
}

.q-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.q-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.q-option {
  padding: 0.6rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 2px;
  user-select: none;
}

.q-option:hover {
  border-color: var(--border-active);
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.q-option.selected {
  border-color: var(--sand);
  background: var(--sand-dim);
  color: var(--sand-light);
}

.q-option-multi.selected {
  border-color: var(--amber);
  background: rgba(240,184,0,0.12);
  color: var(--amber);
}

.intake-submit-wrap {
  text-align: center;
  padding: 1rem 0 3rem;
}

.btn-submit {
  padding: 1rem 3rem;
  background: var(--sand);
  border: none;
  color: var(--bg-primary);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.35;
  pointer-events: none;
}

.btn-submit.ready {
  opacity: 1;
  pointer-events: auto;
}

.btn-submit.ready:hover {
  background: var(--sand-light);
  box-shadow: 0 0 40px rgba(240,184,0,0.25);
  transform: translateY(-1px);
}

/* ═══ CALCULATING SCREEN ═══ */
#calculating {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.calc-content h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.calc-bar-wrap {
  width: 300px;
  height: 3px;
  background: var(--border);
  margin: 0 auto 1.5rem;
  overflow: hidden;
  border-radius: 2px;
}

.calc-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--sand), var(--amber));
  transition: width 0.3s ease;
  border-radius: 2px;
}

.calc-steps {
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--text-secondary);
  min-height: 1.5em;
}

/* ═══ RESULTS SCREEN ═══ */
#results {
  padding: 2rem;
  align-items: center;
}

.results-header {
  text-align: center;
  padding: 2rem 0;
  max-width: 600px;
}

.results-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.results-header .profile-summary {
  font-weight: 300;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.results-grid {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 3rem;
}

/* ── Result Card ── */
.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
  animation: fadeUp 0.7s ease-out both;
}

.result-card:nth-child(1) { animation-delay: 0.1s; }
.result-card:nth-child(2) { animation-delay: 0.3s; }
.result-card:nth-child(3) { animation-delay: 0.5s; }

.card-top {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
}

.card-rank {
  width: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
  padding: 1rem 0;
}

.rank-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--sand);
}

.rank-label {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.card-main {
  flex: 1;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card-title-area h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}

.card-specs {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 0.3rem;
}

.spec-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}

.match-score {
  text-align: right;
}

.score-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--green);
}

.score-label {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

@media (max-width: 640px) {
  .card-body { grid-template-columns: 1fr; }
}

.card-section {
  padding: 1.2rem 1.5rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.card-section:nth-child(even) { border-right: none; }
.card-section:last-child, .card-section:nth-last-child(2):nth-child(odd) { border-bottom: none; }

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 0.6rem;
}

.section-content {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
}

.section-content li {
  margin-bottom: 0.3rem;
  list-style: none;
  padding-left: 1rem;
  position: relative;
}

.section-content li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--sand);
  font-weight: 600;
}

.watchout li::before {
  content: '!';
  color: var(--amber);
}

/* ── Dobinsons Kit Section ── */
.dobinsons-section {
  grid-column: 1 / -1;
  background: rgba(240,184,0,0.03);
  border-top: 1px solid var(--border);
  padding: 1.2rem 1.5rem;
}

.dob-product-visual {
  width: 100%;
  margin: 0.6rem 0 0.3rem;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.dob-product-visual img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.65;
  transition: opacity 0.4s ease;
  border-radius: 4px;
}

.dob-product-visual:hover img { opacity: 0.9; }

.dob-product-visual .dob-vis-label {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.5);
  padding: 2px 8px;
  border-radius: 2px;
}

body.rtl .dob-product-visual .dob-vis-label { right: auto; left: 10px; }

/* Article inline product visual */
.art-product-break {
  margin: 1.5rem 0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.art-product-break img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.5;
  border-radius: 4px;
  transition: opacity 0.4s ease;
}

.art-product-break:hover img { opacity: 0.8; }

.art-product-break .art-vis-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  text-align: right;
}

.dobinsons-section .section-label {
  color: var(--amber);
  font-size: 0.75rem;
}

.kit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.kit-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  padding: 0.6rem 0.8rem;
  border-radius: 2px;
}

.kit-item-type {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}

.kit-item-sku {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.kit-item-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.kit-item-price {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--sand);
  margin-top: 0.25rem;
}

.dob-footer {
  margin-top: 0.9rem;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--border);
}

.dob-disclaimer {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 0.4rem;
}

.dob-cta {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.dob-cta strong {
  color: var(--sand);
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* ── Upgrade Path ── */
.upgrade-path {
  grid-column: 1 / -1;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
}

.upgrade-steps {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.upgrade-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
}

.upgrade-step::after {
  content: '→';
  color: var(--text-dim);
  margin: 0 0.6rem;
  font-size: 0.8rem;
}

.upgrade-step:last-child::after { display: none; }

.step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sand-dim);
  color: var(--sand);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ── Reset Button ── */
.results-footer {
  text-align: center;
  padding: 1rem 0 3rem;
}

.btn-reset {
  padding: 0.8rem 2rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-reset:hover {
  border-color: var(--sand);
  color: var(--sand);
}

/* ── Compare Button ── */
.btn-compare {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  background: var(--sand);
  border: 1.5px solid var(--sand);
  color: var(--bg-primary);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 0.8rem;
}

.btn-compare:hover {
  background: var(--sand-light);
  box-shadow: 0 0 30px rgba(240,184,0,0.2);
  transform: translateY(-1px);
}

.btn-compare .compare-icon {
  font-size: 1.1em;
}

/* ── Comparison Table ── */
.compare-section {
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
  animation: fadeUp 0.6s ease-out;
}

.compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.compare-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.compare-table thead th {
  background: var(--bg-card);
  padding: 0.9rem 1rem;
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  border-bottom: 2px solid var(--sand);
  position: sticky;
  top: 0;
}

.compare-table thead th:first-child {
  text-align: left;
  color: var(--sand);
  width: 160px;
  min-width: 140px;
}

body.rtl .compare-table thead th:first-child { text-align: right; }

.compare-table thead th .th-score {
  display: block;
  font-size: 0.75rem;
  color: var(--sand);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 2px;
}

.compare-table tbody td {
  padding: 0.65rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  vertical-align: middle;
}

.compare-table tbody td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--sand);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: 'Barlow Condensed', sans-serif;
  white-space: nowrap;
}

body.rtl .compare-table tbody td:first-child { text-align: right; }

.compare-table tbody tr:last-child td { border-bottom: none; }

.compare-table tbody tr:hover td { background: rgba(240,184,0,0.03); }

/* Section group rows */
.compare-table .section-row td {
  background: rgba(240,184,0,0.06);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
  padding: 0.5rem 1rem;
  text-align: left;
}

body.rtl .compare-table .section-row td { text-align: right; }

/* Rating bars */
.rating-bar-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.rating-bar {
  width: 60px;
  height: 6px;
  background: var(--bg-card);
  border-radius: 3px;
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--sand);
  transition: width 0.6s ease;
}

.rating-bar-num {
  font-size: 0.75rem;
  color: var(--text-secondary);
  min-width: 18px;
}

/* Winner highlight */
.compare-table .winner-cell {
  color: var(--sand);
  font-weight: 600;
}

/* Close compare */
.compare-close-wrap {
  text-align: center;
  margin-top: 1.2rem;
}

.btn-compare-close {
  padding: 0.6rem 1.8rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-compare-close:hover {
  border-color: var(--sand);
  color: var(--sand);
}

@media (max-width: 600px) {
  .compare-table { min-width: 580px; font-size: 0.78rem; }
  .compare-table thead th { padding: 0.7rem 0.6rem; font-size: 0.85rem; }
  .compare-table tbody td { padding: 0.5rem 0.6rem; }
  .compare-table tbody td:first-child { min-width: 110px; }
  .rating-bar { width: 40px; }
}

/* ── Deep Dive Articles ── */
.deepdive-section {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}

.deepdive-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
  text-align: center;
  margin-bottom: 0.4rem;
}

.deepdive-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 1.5rem;
}

.deepdive-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dd-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.dd-card:hover {
  border-color: var(--sand);
  background: var(--bg-card-hover);
}

.dd-card.active {
  border-color: var(--sand);
  box-shadow: 0 0 20px rgba(240,184,0,0.1);
}

.dd-card-rank {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

.dd-card-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.dd-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand);
  background: none;
  border: 1px solid var(--sand);
  padding: 0.4rem 1rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dd-card-btn:hover, .dd-card.active .dd-card-btn {
  background: var(--sand);
  color: var(--bg-primary);
}

.dd-card-btn .dd-arrow {
  transition: transform 0.3s ease;
  font-size: 0.7em;
}

.dd-card.active .dd-card-btn .dd-arrow {
  transform: rotate(180deg);
}

/* Article panel */
.dd-article-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1rem;
  animation: fadeUp 0.4s ease-out;
}

.dd-article-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(240,184,0,0.04);
  border-bottom: 1px solid var(--border);
}

.dd-article-header h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--sand);
  letter-spacing: 0.05em;
}

.dd-article-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  transition: color 0.3s;
  line-height: 1;
}

.dd-article-close:hover { color: var(--sand); }

.dd-article-body {
  padding: 1.5rem 2rem 2rem;
  max-height: 70vh;
  overflow-y: auto;
  line-height: 1.75;
  color: var(--text-primary);
  font-size: 0.92rem;
}

.dd-article-body::-webkit-scrollbar { width: 4px; }
.dd-article-body::-webkit-scrollbar-thumb { background: var(--sand); border-radius: 2px; }

.dd-article-body .art-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--sand);
  letter-spacing: 0.04em;
  margin: 1.8rem 0 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
}

.dd-article-body .art-heading:first-child { margin-top: 0; }

.dd-article-body .art-para {
  margin-bottom: 0.9rem;
  color: var(--text-primary);
  font-weight: 300;
}

.dd-article-body .art-para strong {
  font-weight: 600;
  color: var(--text-primary);
}

.dd-article-body .art-note {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.dd-article-badge {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg-primary);
  background: var(--sand);
  padding: 0.15rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 0.5rem;
}

@media (max-width: 600px) {
  .deepdive-cards { grid-template-columns: 1fr; }
  .dd-article-body { padding: 1rem 1.2rem 1.5rem; max-height: 60vh; }
  .dd-article-header { padding: 0.8rem 1.2rem; }
}

/* ── Tire Recommendation in Cards ── */
.tire-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 0.8rem;
}

.tire-banner img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.55;
  transition: opacity 0.4s ease;
  filter: grayscale(20%);
}

.tire-banner:hover img { opacity: 0.8; }

.tire-banner .tire-banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.4rem 0.8rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.tire-banner .tire-banner-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.tire-banner .tire-banner-sponsor {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand);
  opacity: 0.6;
}

.tire-section {
  grid-column: 1 / -1;
  background: rgba(240,184,0,0.02);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
}

.tire-section .section-label {
  color: var(--sand);
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.tire-rec {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.tire-badge {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: rgba(240,184,0,0.06);
}

.tire-info { flex: 1; }

.tire-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.tire-type {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.1rem;
}

.tire-tagline {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
  font-style: italic;
  font-weight: 300;
}

.tire-size-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  padding: 0.25rem 0.6rem;
  background: rgba(240,184,0,0.06);
  border: 1px solid rgba(240,184,0,0.12);
  border-radius: 3px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--sand);
}

.tire-size-label {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

@media (max-width: 600px) {
  .tire-rec { flex-direction: column; align-items: center; text-align: center; }
}

/* ── Tire Advice Section ── */
.tire-advice-section {
  max-width: 800px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
  animation: fadeUp 0.6s ease-out;
}

.btn-tire-advice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.8rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-tire-advice:hover {
  border-color: var(--sand);
  color: var(--sand);
}

.btn-tire-advice.active {
  border-color: var(--sand);
  color: var(--sand);
}

.btn-tire-advice .ta-arrow {
  transition: transform 0.3s ease;
  font-size: 0.7em;
}

.btn-tire-advice.active .ta-arrow {
  transform: rotate(180deg);
}

.tire-advice-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-top: 1rem;
  overflow: hidden;
  animation: fadeUp 0.4s ease-out;
}

.ta-header {
  padding: 0;
  background: rgba(240,184,0,0.04);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.ta-header-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.ta-header-banner img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.4;
  filter: grayscale(10%);
}

.ta-header-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.5rem 1rem;
  background: linear-gradient(transparent, rgba(10,10,10,0.85) 60%);
}

.ta-header-text h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--sand);
  letter-spacing: 0.05em;
}

.ta-header-text p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.2rem;
  font-weight: 300;
}

.ta-body {
  padding: 1.5rem 2rem 2rem;
  max-height: 65vh;
  overflow-y: auto;
  line-height: 1.75;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.ta-body::-webkit-scrollbar { width: 4px; }
.ta-body::-webkit-scrollbar-thumb { background: var(--sand); border-radius: 2px; }

.ta-body .ta-section {
  margin-bottom: 1.5rem;
}

.ta-body .ta-section h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--sand);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
}

.ta-body .ta-section p {
  margin-bottom: 0.6rem;
  font-weight: 300;
}

.ta-body .ta-highlight {
  padding: 0.7rem 1rem;
  background: rgba(240,184,0,0.04);
  border-left: 3px solid var(--sand);
  margin: 0.8rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
}

body.rtl .ta-body .ta-highlight { border-left: none; border-right: 3px solid var(--sand); }

.ta-tire-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 0.8rem 0;
}

.ta-tire-card {
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(255,255,255,0.02);
}

.ta-tire-card.recommended {
  border-color: var(--sand);
  background: rgba(240,184,0,0.04);
}

.ta-tire-card .ttc-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.ta-tire-card .ttc-type {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.ta-tire-card .ttc-use {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
  font-weight: 300;
}

.ta-tire-card .ttc-rec-badge {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg-primary);
  background: var(--sand);
  padding: 1px 6px;
  border-radius: 2px;
  margin-top: 0.3rem;
}

@media (max-width: 600px) {
  .ta-tire-grid { grid-template-columns: 1fr; }
  .ta-body { padding: 1rem 1.2rem 1.5rem; }
}

/* ── Contact / Get In Touch Section ── */
.contact-section {
  max-width: 720px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  animation: fadeUp 0.6s ease-out;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.contact-accent {
  height: 3px;
  background: linear-gradient(90deg, var(--sand), transparent);
}

body.rtl .contact-accent { background: linear-gradient(-90deg, var(--sand), transparent); }

.contact-header {
  padding: 1.8rem 2rem 0.6rem;
}

.contact-header h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.contact-header p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.6;
}

.contact-body {
  padding: 0.8rem 2rem 1.5rem;
}

.contact-email-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  padding: 0.8rem 1rem;
  background: rgba(240,184,0,0.05);
  border: 1px solid rgba(240,184,0,0.15);
  border-radius: 4px;
}

.contact-email-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-email-addr {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--sand);
  letter-spacing: 0.03em;
  word-break: break-all;
}

.contact-checklist-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.7rem;
}

.contact-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
  margin-bottom: 1.2rem;
}

.contact-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--text-primary);
  font-weight: 300;
  line-height: 1.5;
}

.contact-check-item .ck {
  color: var(--sand);
  font-size: 0.7rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.contact-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  background: rgba(240,184,0,0.04);
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 300;
}

.contact-tip .tip-icon {
  color: var(--sand);
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.contact-tip strong { color: var(--text-primary); font-weight: 500; }

.contact-moterr-badge {
  text-align: center;
  padding: 1rem 2rem 1.4rem;
  border-top: 1px solid var(--border);
  background: rgba(240,184,0,0.02);
}

.contact-moterr-badge p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-moterr-badge strong {
  color: var(--sand);
  font-weight: 700;
}

.contact-moterr-creed {
  margin-top: 0.8rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
}

@media (max-width: 600px) {
  .contact-header { padding: 1.4rem 1.2rem 0.5rem; }
  .contact-body { padding: 0.6rem 1.2rem 1.2rem; }
  .contact-checklist { grid-template-columns: 1fr; }
  .contact-moterr-badge { padding: 0.8rem 1.2rem 1.2rem; }
  .contact-header h3 { font-size: 1.5rem; }
}

/* ═══ GLOBAL COPYRIGHT ═══ */
.global-copyright {
  text-align: center;
  padding: 1rem 0 1.2rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0.5;
}

/* ═══ ANIMATIONS ═══ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 640px) {
  .card-top { flex-direction: column; }
  .card-rank {
    width: 100%;
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .card-main { padding: 1rem 1.2rem; }
  .kit-grid { grid-template-columns: 1fr 1fr; }
  .upgrade-steps { flex-direction: column; }
  .upgrade-step::after { display: none; }
}

.lang-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s;
  cursor: pointer;
  user-select: none;
}

.lang-label.active { color: var(--sand); }

.lang-switch {
  position: relative;
  width: 40px;
  height: 20px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-active);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: var(--sand);
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.lang-switch.ar::after { transform: translateX(20px); }

/* ═══ RTL SUPPORT ═══ */
body.rtl {
  direction: rtl;
  text-align: right;
  font-family: 'Noto Sans Arabic', 'Barlow', sans-serif;
}

body.rtl .brand-mark { font-family: 'Bebas Neue', sans-serif; }
body.rtl .brand-sub { font-family: 'Barlow Condensed', 'Noto Sans Arabic', sans-serif; }
body.rtl .card-top { flex-direction: row-reverse; }
body.rtl .card-rank { border-right: none; border-left: 3px solid var(--sand); }
body.rtl .card-main { flex-direction: row-reverse; }
body.rtl .card-specs { justify-content: flex-end; }
body.rtl .kit-item { text-align: right; }
body.rtl .upgrade-step { flex-direction: row-reverse; text-align: right; }
body.rtl .upgrade-step::after { content: '←'; }
body.rtl .btn-primary .arrow { display: inline-block; transform: scaleX(-1); }
body.rtl .btn-primary:hover .arrow { transform: scaleX(-1) translateX(-4px); }
body.rtl .results-header div[style] { border-left: none; border-right: 3px solid #F0B800; }
body.rtl ul { padding-right: 1.1rem; padding-left: 0; }
body.rtl .section-label.watchout-label { text-align: right; }
body.rtl .welcome-content { text-align: center; }

@media (max-width: 600px) {
  .lang-toggle { top: 0.8rem; right: 1rem; }
  body.rtl .lang-toggle { left: 1rem; right: auto; }
  body.rtl .card-top { flex-direction: column-reverse; }
  body.rtl .card-rank { border-left: none; border-bottom: 1px solid var(--border); }
}

/* ═══════════════════════════════════════════════════════
   MOTERR SUSPENSION COURSE — Integrated Styles
   Theme remapped to CARVIS color system
   ═══════════════════════════════════════════════════════ */
<style>



* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

#course { 
  font-size: 16px; 
  background: var(--bg-primary);
  /* overflow managed by parent */
  /* height managed by parent */
}

#course .crs-app {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  /* height managed by parent */
  /* overflow managed by parent */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============ APP SHELL ============ */
#course .crs-app {
  /* height managed by parent */
  display: flex;
  flex-direction: column;
}

/* ============ TOP NAV ============ */
#course .top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20,20,20,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top, 0px);
}

.top-nav-inner {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 14px;
}

.nav-back {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--sand);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.nav-back:hover { background: var(--sand-dim); }
.nav-back svg { width: 20px; height: 20px; }

.nav-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
  /* overflow managed by parent */
  text-overflow: ellipsis;
  flex: 1;
}

.nav-progress-wrap {
  width: 48px;
  height: 4px;
  background: var(--sand-dim);
  border-radius: 2px;
  /* overflow managed by parent */
  flex-shrink: 0;
}
.nav-progress-bar {
  /* height managed by parent */
  background: var(--sand);
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* ============ MAIN SCROLL ============ */
#course .main-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* ============ SCREENS ============ */
.crs-screen {
  display: none;
  min-/* height managed by parent */
}
.crs-screen.active { display: block; }

/* ============ HOME SCREEN ============ */
.home-hero {
  padding: 48px 24px 40px;
  position: relative;
  /* overflow managed by parent */
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(240,184,0,0.08), transparent),
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(240,184,0,0.02) 3px, rgba(240,184,0,0.02) 4px);
  pointer-events: none;
}

.home-brand {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red-alert);
  margin-bottom: 20px;
  position: relative;
}

.home-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 8vw, 48px);
  line-height: 1.0;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 16px;
  position: relative;
}
.home-title span { color: var(--sand); display: block; }

.home-subtitle {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-size: 17px;
  color: #D4A810;
  line-height: 1.5;
  max-width: 340px;
  position: relative;
}

.home-meta {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  position: relative;
}
.home-meta-item {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}
.home-meta-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sand);
  opacity: 0.6;
}

/* Week cards */
.weeks-section {
  padding: 0 16px 32px;
}

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0 8px;
  margin-bottom: 16px;
}

.week-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 12px;
  /* overflow managed by parent */
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.week-card:active { background: var(--bg-card-hover); }

.week-card-header {
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.week-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: var(--sand);
  line-height: 1;
  min-width: 36px;
  opacity: 0.7;
}

.week-info { flex: 1; }

.week-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 6px;
}

.week-sessions {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.week-arrow {
  color: var(--text-dim);
  flex-shrink: 0;
  margin-top: 4px;
}
.week-arrow svg { width: 16px; height: 16px; }

.week-card.locked { opacity: 0.4; pointer-events: none; }
.week-card.locked .week-title::after {
  content: ' — Coming Soon';
  color: var(--text-dim);
  font-weight: 400;
  font-size: 13px;
  text-transform: none;
}

/* ============ WEEK SCREEN ============ */
.week-hero {
  padding: 32px 24px 28px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.week-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 80% at 20% 0%, rgba(240,184,0,0.06), transparent);
  pointer-events: none;
}

.week-hero-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 48px;
  color: var(--sand);
  opacity: 0.2;
  line-height: 1;
  position: relative;
}
.week-hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 26px;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.15;
  margin-top: -8px;
  position: relative;
}

.session-card {
  margin: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  /* overflow managed by parent */
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.session-card:active { background: var(--bg-card-hover); }

.session-card-inner {
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.session-num-badge {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 12px;
  color: var(--sand);
  background: rgba(240,184,0,0.1);
  border: 1px solid rgba(240,184,0,0.2);
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.session-info { flex: 1; }

.session-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 6px;
}

.session-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.session-time {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 8px;
  letter-spacing: 0.5px;
}

/* ============ SESSION / CONTENT SCREEN ============ */
.content-screen {
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
}

.content-hero {
  padding: 28px 24px 24px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.content-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 100% at 80% 0%, rgba(240,184,0,0.05), transparent);
  pointer-events: none;
}

.content-session-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 8px;
  position: relative;
}

.content-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.15;
  position: relative;
}

.content-time {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 10px;
  letter-spacing: 0.5px;
  position: relative;
}

/* Objectives */
.objectives-box {
  margin: 20px 16px;
  background: rgba(240,184,0,0.06);
  border: 1px solid rgba(240,184,0,0.15);
  border-radius: 6px;
  padding: 20px;
}
.objectives-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 10px;
}
.objectives-list {
  list-style: none;
}
.objectives-list li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding: 4px 0 4px 18px;
  position: relative;
}
.objectives-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sand);
  opacity: 0.5;
}

/* Content sections */
.content-body {
  padding: 0 20px;
}

.content-section {
  margin: 24px 0;
}

.content-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  user-select: none;
  -webkit-user-select: none;
}

.content-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  flex: 1;
}

.chevron {
  width: 18px;
  height: 18px;
  color: var(--text-dim);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.content-section.open .chevron {
  transform: rotate(180deg);
}

.content-section-body {
  display: none;
  padding: 16px 0;
}
.content-section.open .content-section-body {
  display: block;
  animation: fadeSlide 0.3s ease;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Content typography */
.content-body p {
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 14px 0;
}

.content-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.content-body em {
  color: #D4A810;
  font-style: italic;
}

/* Equations */
.equation-block {
  background: #1A1A1A;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  margin: 16px 0;
  text-align: center;
  overflow-x: auto;
}

.equation-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.equation-note {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 10px;
  text-align: left;
  line-height: 1.5;
}

/* Callouts */
.callout {
  border-radius: 4px;
  padding: 18px 20px;
  margin: 18px 0;
  border-left: 3px solid;
}
.callout.desert {
  background: rgba(192,57,43,0.06);
  border-color: var(--red-alert);
}
.callout.tech {
  background: rgba(74,144,184,0.06);
  border-color: #4A90B8;
}
.callout.tip {
  background: rgba(240,184,0,0.06);
  border-color: var(--sand);
}
.callout-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.callout.desert .callout-title { color: var(--red-alert); }
.callout.tech .callout-title { color: #4A90B8; }
.callout.tip .callout-title { color: var(--sand); }
.callout p {
  font-size: 14.5px !important;
  margin: 4px 0 !important;
}

/* Tables */
.table-wrap {
  margin: 16px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 1.5;
  min-width: 480px;
}

.table-wrap thead th {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: #1A1A1A;
  color: #D4A810;
  padding: 12px 14px;
  text-align: left;
  white-space: nowrap;
  position: sticky;
  top: 0;
}

.table-wrap tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
}

.table-wrap tbody tr:last-child td { border-bottom: none; }
.table-wrap tbody tr:nth-child(even) { background: rgba(245,230,200,0.02); }

.table-wrap tbody td:first-child {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-primary);
  white-space: nowrap;
}

.table-scroll-hint {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  color: var(--text-dim);
  text-align: right;
  letter-spacing: 0.5px;
  margin-top: 4px;
  opacity: 0.6;
}

/* Lab & Assignment boxes */
.activity-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin: 20px 0;
  /* overflow managed by parent */
}

.activity-header {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
}

.activity-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
}
.activity-badge.lab { background: rgba(74,144,184,0.15); color: #4A90B8; }
.activity-badge.assignment { background: rgba(240,184,0,0.15); color: var(--sand); }
.activity-badge.quiz { background: rgba(192,57,43,0.15); color: var(--red-alert); }

.activity-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-primary);
  flex: 1;
}

.activity-body {
  padding: 16px 18px;
  display: none;
}
.activity-box.open .activity-body { 
  display: block; 
  animation: fadeSlide 0.3s ease;
}
.activity-box.open .activity-chevron { transform: rotate(180deg); }

.activity-chevron {
  width: 16px;
  height: 16px;
  color: var(--text-dim);
  transition: transform 0.3s ease;
}

.activity-body p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 6px 0;
}

.activity-body ul {
  list-style: none;
  padding: 0;
}
.activity-body ul li {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 4px 0 4px 16px;
  position: relative;
}
.activity-body ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-dim);
}

/* Bottom nav for session */
.session-nav {
  position: sticky;
  bottom: 0;
  background: rgba(20,20,20,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex;
  gap: 10px;
}

.session-nav-btn {
  flex: 1;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.session-nav-btn.secondary {
  background: #1A1A1A;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.session-nav-btn.primary {
  background: var(--sand);
  color: var(--bg-primary);
}
.session-nav-btn:active {
  transform: scale(0.97);
}
.session-nav-btn:disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* KaTeX overrides */
#course .katex { color: var(--sand); font-size: 1.15em; }

/* Scroll hint shimmer */
@keyframes scrollHint {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* Home footer */
.home-footer {
  padding: 32px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  margin: 16px 16px 0;
}
.home-footer-brand {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.home-footer-sub {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--text-dim);
  opacity: 0.5;
  margin-top: 4px;
}

/* Stage cards (compact) */
.stage-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}
.stage-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px;
  border-left: 3px solid;
}
.stage-card.s1 { border-left-color: var(--sand); }
.stage-card.s2 { border-left-color: var(--red-alert); }
.stage-card.s3 { border-left-color: var(--text-primary); }
.stage-card-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.stage-card.s1 .stage-card-label { color: var(--sand); }
.stage-card.s2 .stage-card-label { color: var(--red-alert); }
.stage-card.s3 .stage-card-label { color: var(--text-primary); }
.stage-card p {
  font-size: 13.5px !important;
  color: var(--text-dim) !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

/* Utility */
.sr-only { position: absolute; width: 1px; height: 1px; /* overflow managed by parent */ clip: rect(0,0,0,0); }
#course .crs-lang-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.3s;
  line-height: 1;
}
#course .crs-lang-label.active { color: var(--sand); }
#course .crs-toggle-track {
  width: 40px;
  height: 22px;
  background: #1A1A1A;
  border: 1px solid rgba(240,184,0,0.25);
  border-radius: 11px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
  flex-shrink: 0;
}
#course .crs-toggle-track:hover { border-color: var(--sand); }
#course .crs-toggle-thumb {
  width: 16px;
  height: 16px;
  background: var(--sand);
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 3px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
#course .crs-toggle-track.ar #course .crs-toggle-thumb {
  transform: translateX(17px);
}

/* ============ RTL STYLES ============ */
html[dir="rtl"] #course .crs-app {
  font-family: 'Noto Naskh Arabic', 'Source Serif 4', Georgia, serif;
}
html[dir="rtl"] #course .home-brand,
html[dir="rtl"] #course .home-title,
html[dir="rtl"] #course .home-subtitle,
html[dir="rtl"] #course .nav-title,
html[dir="rtl"] #course .section-label,
html[dir="rtl"] #course .week-title,
html[dir="rtl"] #course .week-sessions,
html[dir="rtl"] #course .session-title,
html[dir="rtl"] #course .session-desc,
html[dir="rtl"] #course .session-time,
html[dir="rtl"] #course .content-session-label,
html[dir="rtl"] #course .content-title,
html[dir="rtl"] #course .content-time,
html[dir="rtl"] #course .objectives-label,
html[dir="rtl"] #course .content-section-title,
html[dir="rtl"] #course .callout-title,
html[dir="rtl"] #course .activity-badge,
html[dir="rtl"] #course .activity-title,
html[dir="rtl"] #course .session-nav-btn,
html[dir="rtl"] #course .home-meta-item,
html[dir="rtl"] #course .home-footer-brand,
html[dir="rtl"] #course .home-footer-sub,
html[dir="rtl"] #course .stage-card-label,
html[dir="rtl"] #course .equation-label,
html[dir="rtl"] #course .week-num,
html[dir="rtl"] #course .week-hero-num,
html[dir="rtl"] #course .week-hero-title,
html[dir="rtl"] #course .table-scroll-hint,
html[dir="rtl"] #course .nav-progress-wrap,
html[dir="rtl"] #course #course .crs-lang-label,
html[dir="rtl"] #course .session-num-badge {
  font-family: 'Noto Kufi Arabic', 'Barlow Condensed', sans-serif;
}
html[dir="rtl"] #course .content-body p,
html[dir="rtl"] #course .callout p,
html[dir="rtl"] #course .activity-body p,
html[dir="rtl"] #course .activity-body ul li,
html[dir="rtl"] #course .objectives-list li,
html[dir="rtl"] #course .equation-note,
html[dir="rtl"] #course .table-wrap tbody td,
html[dir="rtl"] #course .stage-card p {
  font-family: 'Noto Naskh Arabic', 'Source Serif 4', serif;
}
html[dir="rtl"] #course .callout {
  border-left: none;
  border-right: 3px solid;
}
html[dir="rtl"] #course .callout.desert { border-color: var(--red-alert); }
html[dir="rtl"] #course .callout.tech { border-color: #4A90B8; }
html[dir="rtl"] #course .callout.tip { border-color: var(--sand); }
html[dir="rtl"] #course .objectives-list li { padding: 4px 18px 4px 0; }
html[dir="rtl"] #course .objectives-list li::before { left: auto; right: 0; }
html[dir="rtl"] #course .activity-body ul li { padding: 4px 16px 4px 0; }
html[dir="rtl"] #course .activity-body ul li::before { left: auto; right: 0; }
html[dir="rtl"] #course .week-arrow svg { transform: scaleX(-1); }
html[dir="rtl"] #course .table-wrap thead th { text-align: right; }
html[dir="rtl"] #course .table-scroll-hint { text-align: left; }
html[dir="rtl"] #course .stage-card { border-left: none; border-right: 3px solid; }
html[dir="rtl"] #course .stage-card.s1 { border-right-color: var(--sand); }
html[dir="rtl"] #course .stage-card.s2 { border-right-color: var(--red-alert); }
html[dir="rtl"] #course .stage-card.s3 { border-right-color: var(--text-primary); }
html[dir="rtl"] #course .nav-back svg { transform: scaleX(-1); }
html[dir="rtl"] #course .home-title { letter-spacing: 0; }
html[dir="rtl"] #course .content-body { line-height: 1.85; }
html[dir="rtl"] #course .content-body p { line-height: 1.9; font-size: 15px; }



/* Course entry buttons */
.btn-course {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s ease;
  margin-top: 1rem;
}

.btn-course:hover {
  border-color: var(--sand);
  color: var(--sand);
  background: var(--sand-dim);
  box-shadow: 0 0 25px rgba(240,184,0,0.12);
}

.btn-course .course-icon {
  font-size: 1.1em;
}

/* Course back-to-carvis button */
#course .crs-back-to-carvis {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
}
#course .crs-back-to-carvis:hover {
  border-color: var(--sand);
  color: var(--sand);
}

/* Override course screen to work within CARVIS screen system */
#course {
  min-height: 100vh;
}
#course .crs-app {
  font-family: 'Source Serif 4', Georgia, 'Barlow', sans-serif;
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
#course .main-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
#course .crs-screen {
  display: none;
  min-height: 100%;
}
#course .crs-screen.active {
  display: block;
}


/* ═══ iOS-FINISH OVERLAY (added 15 May 2026) ═══ */
:root{--AR:'Noto Kufi Arabic',sans-serif}
body{font-family:-apple-system,BlinkMacSystemFont,'SF Pro Display','Barlow',sans-serif}
body.ar{font-family:var(--AR)}

/* Rounded corners — iOS conventions */
.result-card,.welcome-content > *,.calc-bar-wrap,.dob-product-visual,
.art-product-break,.psi-card,.callout,.pick-card{border-radius:16px !important}
.q-option,.btn-primary,.btn-submit,.tab-btn,.cta-btn{border-radius:12px !important}
.cmp-card,.kit-card,.card-section{border-radius:12px}

/* Safe-area insets for full-screen views */
.screen{padding-top:env(safe-area-inset-top);padding-bottom:calc(env(safe-area-inset-bottom) + 56px)}
@media (max-width:768px){
.screen{padding-bottom:calc(env(safe-area-inset-bottom) + 64px)}
}

/* Tap feedback — iOS haptic substitute */
.btn-primary,.btn-submit,.q-option,.tab-btn,.cta-btn,a.tab,
.result-card,.upgrade-step,.stage-card{
  -webkit-tap-highlight-color:transparent;
  transition:transform .12s ease,background .25s ease,border-color .25s ease,color .25s ease,opacity .25s ease;
}
.btn-primary:active,.btn-submit:active,.q-option:active,
.tab-btn:active,.cta-btn:active{transform:scale(.97)}
a.tab:active{transform:scale(.92)}

/* Backdrop blur on the bottom tab bar */
.bottom-tabs{
  display:none;
}
@media (max-width:768px){
.bottom-tabs{
  display:flex;position:fixed;bottom:0;left:0;right:0;z-index:9000;
  background:rgba(13,12,10,.86);
  backdrop-filter:blur(24px) saturate(180%);
  -webkit-backdrop-filter:blur(24px) saturate(180%);
  border-top:1px solid rgba(240,184,0,.08);
  padding-bottom:env(safe-area-inset-bottom);
  height:calc(56px + env(safe-area-inset-bottom));
}
.tab{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  padding:6px 4px;color:var(--text-secondary);
  font-family:'Barlow Condensed',sans-serif;font-weight:600;font-size:9px;letter-spacing:.06em;text-transform:uppercase;
  text-decoration:none;
}
.tab svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tab.active{color:var(--sand)}
body.ar .tab{font-family:var(--AR);letter-spacing:0;font-size:11px}
}

/* Desktop top nav strip (matches the rest of the Zetrol site) */
.cv-topnav{
  position:sticky;top:0;z-index:100;
  display:flex;align-items:center;justify-content:space-between;
  padding:0 24px;height:56px;
  background:rgba(13,12,10,.92);
  backdrop-filter:blur(20px) saturate(180%);
  -webkit-backdrop-filter:blur(20px) saturate(180%);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.cv-topnav-logo{display:flex;align-items:center}
.cv-topnav-logo img{height:34px;width:auto;display:block;transition:opacity .2s}
.cv-topnav-logo:hover img{opacity:.85}
.cv-topnav-links{display:flex;gap:28px;font-family:'Barlow Condensed',sans-serif;font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--text-secondary)}
.cv-topnav-links a{position:relative;padding:6px 0;text-decoration:none;color:inherit;transition:color .2s}
.cv-topnav-links a:hover{color:var(--sand)}
.cv-topnav-links a.active{color:var(--sand)}
.cv-topnav-links a.active::after{content:'';position:absolute;left:0;right:0;bottom:-2px;height:2px;background:var(--sand)}
@media (max-width:768px){.cv-topnav-links{display:none}}
body{padding-bottom:calc(56px + env(safe-area-inset-bottom));margin:0}
@media (min-width:769px){body{padding-bottom:0}}


/* ───────────────────────────────────────────────────────────────────
   Reset orphan lang-toggle / nav-cta styles — the chrome's nav owns
   these elements. Appended by strip_orphan_nav_css.py. !important
   needed to overpower position:fixed declarations that may slip past
   the rule-stripping pass (pseudo-classes, @media-nested, etc.).
   ─────────────────────────────────────────────────────────────────── */
nav .lang-toggle,
nav .lang-toggle:hover,
nav .lang-toggle:active,
nav .nav-cta {
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  z-index: auto !important;
  margin: 0 !important;
}
