/* ============================================================
   هالة - واجهة مميزة مشتركة
   ============================================================ */

:root {
  color-scheme: light;
  --primary: #0b5f78;
  --primary-soft: #3d8aa8;
  --secondary: #0d6b75;
  --teal: #5eb8b0;
  --accent: #0b5f78;
  --error: #b42318;
  --success: #0f766e;
  /* Premium light default — warm cream + slate */
  --surface: #f9fbfc;
  --surface-elevated: #ffffff;
  --on-bg: #1e293b;
  --muted: #64748b;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.9);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --shadow-soft: 0 10px 40px rgba(30, 41, 59, 0.06);
  --shadow-glass:
    0 14px 44px rgba(30, 41, 59, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 1px rgba(30, 41, 59, 0.05);
  --shadow-glow: 0 0 28px rgba(190, 140, 120, 0.22);
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-enter: 600ms;
  --dur-fast: 150ms;
  --dur-med: 300ms;
  --dur-slow: 500ms;
  --stagger-step: 80ms;
  /* LTR default: enter from left (inline-start) */
  --motion-inline-enter: -8px;
}

[dir="rtl"] {
  /* RTL: enter from right (inline-start) */
  --motion-inline-enter: 8px;
}

[dir="ltr"] {
  --motion-inline-enter: -8px;
}

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--surface);
  color: var(--on-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  user-select: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #e8eef2;
}
::-webkit-scrollbar-thumb {
  background: #b0bcc6;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #7a8894;
}

/* ── Glassmorphism (true glass with refraction edge) ── */
.glass-panel {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.18)),
    var(--glass-bg);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
}

.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.5), transparent 42%);
  z-index: 0;
}

.glass-card {
  position: relative;
  isolation: isolate;
  /* Premium light glass — crisp white edge + soft slate depth */
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.68)),
    rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 16px 48px rgba(30, 41, 59, 0.08),
    0 0 0 1px rgba(30, 41, 59, 0.05);
  border-radius: var(--radius-xl);
  overflow: hidden;
  color: #1e293b;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(ellipse at 20% -10%, rgba(255, 255, 255, 0.9), transparent 55%);
}

html[data-theme="dark"] .glass-card {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(30, 40, 50, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 16px 48px rgba(0, 0, 0, 0.22);
  color: inherit;
}

html[data-theme="dark"] .glass-card::before {
  background: radial-gradient(ellipse at 20% -10%, rgba(255, 255, 255, 0.12), transparent 50%);
}

.glass-dark {
  background: rgba(22, 30, 38, 0.78);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 40px rgba(0, 0, 0, 0.28);
}

@media (prefers-reduced-transparency: reduce) {
  .glass-panel,
  .glass-card,
  .glass-dark {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .glass-panel {
    background: #ffffff;
  }
  .glass-card,
  .glass-dark {
    background: #1a2229;
  }
}

/* Gradients & buttons */
.ai-gradient-text {
  background: linear-gradient(105deg, #0b5f78 0%, #0d6b75 50%, #3d8aa8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-primary-gradient {
  background: linear-gradient(105deg, #0b5f78 0%, #3d8aa8 55%, #4fa8b4 100%);
  color: #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  box-shadow: 0 4px 16px rgba(11, 95, 120, 0.25);
}
.btn-primary-gradient:hover {
  box-shadow: 0 8px 28px rgba(11, 95, 120, 0.38);
  transform: translateY(-2px);
  filter: brightness(1.05);
}
.btn-primary-gradient:active {
  transform: translateY(0) scale(0.98);
}
.btn-primary-gradient:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  filter: none;
  box-shadow: none;
}

.btn-trial {
  background: linear-gradient(105deg, #0f766e 0%, #0b5f78 100%);
  color: #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 18px rgba(15, 118, 110, 0.3);
}
.btn-trial:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(15, 118, 110, 0.4);
}
.btn-trial:active {
  transform: scale(0.98);
}

.whatsapp-bg {
  background-color: #1f9e57;
}
.whatsapp-hover:hover {
  background-color: #178a49;
}

/* Floating glow */
.floating-widget-glow,
.ai-glow {
  box-shadow: var(--shadow-glow);
  animation: pulse-glow 2.4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 14px rgba(61, 138, 168, 0.35);
  }
  50% {
    box-shadow: 0 0 28px rgba(61, 138, 168, 0.6);
  }
}

/* ============================================================
   REDUCED MOTION — kill ambient animations (PR5)
   Two separate blocks; never comma-join selector + @media.
   Do NOT set transition: none globally — progress needs width/dash.
   ============================================================ */

/* Path A: FOUC / in-app attribute */
html[data-reduce-motion="1"] * {
  animation: none !important;
}

/* Path B: OS preference when user has not forced motion on */
@media (prefers-reduced-motion: reduce) {
  html:not([data-reduce-motion="0"]) * {
    animation: none !important;
  }
}

/* Exceptions: progress feedback — BOTH paths (attr + media) */
html[data-reduce-motion="1"] .scanner-ring-progress,
html[data-reduce-motion="1"] .progress-bar-fill,
html[data-reduce-motion="1"] [data-allow-motion="progress"] {
  transition: stroke-dashoffset 0.3s linear, width 0.3s linear !important;
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-reduce-motion="0"]) .scanner-ring-progress,
  html:not([data-reduce-motion="0"]) .progress-bar-fill,
  html:not([data-reduce-motion="0"]) [data-allow-motion="progress"] {
    transition: stroke-dashoffset 0.3s linear, width 0.3s linear !important;
    animation: none !important;
  }
}

/* Optional: short opacity only — BOTH paths */
html[data-reduce-motion="1"] .motion-opacity-ok {
  transition: opacity 0.15s ease !important;
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-reduce-motion="0"]) .motion-opacity-ok {
    transition: opacity 0.15s ease !important;
  }
}

/* Page enter */
.page-enter {
  animation: pageEnter 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.45s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.slide-up {
  animation: slideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stagger-1 {
  animation-delay: 0.08s;
}
.stagger-2 {
  animation-delay: 0.16s;
}
.stagger-3 {
  animation-delay: 0.24s;
}
.stagger-4 {
  animation-delay: 0.32s;
}
.stagger-5 {
  animation-delay: 0.4s;
}

/* Counter roll */
.counter-wrapper {
  display: inline-block;
  overflow: hidden;
  height: 1.2em;
  vertical-align: bottom;
  position: relative;
}
.counter-inner {
  display: inline-flex;
  flex-direction: column;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.number-rollup {
  animation: rollup 1.8s ease-out forwards;
}
@keyframes rollup {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseBreathing {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.88;
  }
}
.animate-breathing {
  animation: pulseBreathing 2.2s ease-in-out infinite;
}

@keyframes floatBtn {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
.floating-container {
  animation: floatBtn 3.2s ease-in-out infinite;
  width: 100%;
  z-index: 10;
}

.stagger-card {
  opacity: 0;
}
.stagger-card.animate-in {
  animation: slideUp 0.55s ease-out forwards;
}

/* Marquee — LTR / RTL reverse (PR5) */
@keyframes marquee-ltr {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes marquee-rtl {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(50%);
  }
}
.marquee-track {
  animation: marquee-ltr 24s linear infinite;
}
[dir="rtl"] .marquee-track {
  animation-name: marquee-rtl;
}

/* Motion enter utilities (PR5) */
.motion-enter {
  animation: motionEnterY var(--dur-enter, 600ms) var(--ease-standard, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

@keyframes motionEnterY {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.motion-stagger > * {
  animation: motionEnterY var(--dur-enter, 600ms) var(--ease-standard, cubic-bezier(0.22, 1, 0.36, 1)) both;
}
.motion-stagger > *:nth-child(1) {
  animation-delay: calc(var(--stagger-step, 80ms) * 0);
}
.motion-stagger > *:nth-child(2) {
  animation-delay: calc(var(--stagger-step, 80ms) * 1);
}
.motion-stagger > *:nth-child(3) {
  animation-delay: calc(var(--stagger-step, 80ms) * 2);
}
.motion-stagger > *:nth-child(4) {
  animation-delay: calc(var(--stagger-step, 80ms) * 3);
}
.motion-stagger > *:nth-child(5) {
  animation-delay: calc(var(--stagger-step, 80ms) * 4);
}
/* nth-child follows DOM order. In RTL, DOM is already reading order — do NOT invert delays. */

.motion-enter-inline {
  opacity: 0;
  transform: translateX(var(--motion-inline-enter));
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.motion-enter-inline.is-in {
  opacity: 1;
  transform: translateX(0);
}

/* Scanner */
.scanner-ring {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}
.scanner-ring-bg {
  stroke: #e0e6eb;
}
.scanner-ring-progress {
  stroke: url(#scannerGradient);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.4s ease;
  filter: drop-shadow(0 0 8px rgba(61, 138, 168, 0.4));
}

.progress-bar-fill {
  transition: width 0.3s ease;
}

.scan-log-item {
  opacity: 0;
  transform: translateX(var(--motion-inline-enter));
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.scan-log-item.visible {
  opacity: 1;
  transform: translateX(0);
}
.scan-log-item.done {
  color: var(--success);
}
.scan-log-item.active {
  color: var(--primary);
  font-weight: 600;
}

@keyframes orbPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.12);
    opacity: 0.85;
  }
}
.orb-pulse {
  animation: orbPulse 2.2s ease-in-out infinite;
}

/* Onboarding */
.onboard-step {
  display: none;
  animation: pageEnter 0.42s ease both;
}
.onboard-step.active {
  display: block;
}

.platform-card {
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.platform-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(11, 95, 120, 0.12);
}
.platform-card.selected {
  border-color: var(--primary);
  background: rgba(11, 95, 120, 0.05);
  box-shadow: 0 0 0 4px rgba(11, 95, 120, 0.1);
}

/* ── In-page mock redirect (replaces OAuth popup) ── */
.redirect-stage {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  min-height: 380px;
  background: linear-gradient(165deg, #0c1a22 0%, #132a36 45%, #0b5f78 140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 64px rgba(11, 40, 55, 0.28);
}

.redirect-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.redirect-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.redirect-dot:nth-child(1) {
  background: #ff5f57;
}
.redirect-dot:nth-child(2) {
  background: #febc2e;
}
.redirect-dot:nth-child(3) {
  background: #28c840;
}

.redirect-url-bar {
  flex: 1;
  margin-inline-start: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  direction: ltr;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, "Cascadia Code", monospace;
}

.redirect-body {
  padding: 28px 24px 32px;
  color: #e8f0f4;
  text-align: center;
}

.redirect-phase {
  display: none;
  animation: pageEnter 0.4s ease both;
}
.redirect-phase.active {
  display: block;
}

.redirect-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: #4fa8b4;
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.redirect-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(15, 118, 110, 0.25);
  border: 2px solid rgba(52, 211, 153, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #34d399;
}

.redirect-progress-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 24px;
}
.redirect-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3d8aa8, #4fa8b4);
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* ── API key visual guides ── */
.api-guide {
  background: linear-gradient(180deg, #f8fafb 0%, #eef3f6 100%);
  border: 1px solid rgba(11, 95, 120, 0.1);
  border-radius: var(--radius-xl);
  padding: 20px;
  text-align: right;
}

.api-guide-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.api-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
}

.api-step-num {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(145deg, #0b5f78, #3d8aa8);
  color: white;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(11, 95, 120, 0.25);
  flex-shrink: 0;
}

.api-step-content h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--on-bg);
  margin: 0 0 4px;
}

.api-step-content p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* Illustrated UI mock frames */
.ui-mock {
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid #d0d9e0;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 40, 55, 0.06);
}

.ui-mock-bar {
  background: #eef2f5;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #e0e6eb;
  font-size: 11px;
  color: #6b7785;
}

.ui-mock-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ui-mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f6f8fa;
  font-size: 12px;
  color: #3d4a55;
}

.ui-mock-row.highlight {
  background: rgba(11, 95, 120, 0.08);
  border: 1.5px dashed var(--primary);
  position: relative;
}

.ui-mock-row.highlight::after {
  content: "انسخ من هنا";
  position: absolute;
  left: 8px;
  top: -10px;
  background: var(--primary);
  color: white;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.ui-mock-key {
  font-family: ui-monospace, monospace;
  letter-spacing: 0.04em;
  color: var(--primary);
  font-weight: 600;
  direction: ltr;
}

.api-key-input-wrap {
  position: relative;
}
.api-key-input-wrap input {
  width: 100%;
  border-radius: 12px;
  border: 1.5px solid #cfd8df;
  background: #fff;
  padding: 14px 16px 14px 48px;
  font-size: 15px;
  direction: ltr;
  text-align: left;
  font-family: ui-monospace, "Cascadia Code", monospace;
  transition: border-color 0.2s, box-shadow 0.2s;
  /* Mask sensitive values; -webkit-text-security as extra belt for edge cases */
  -webkit-text-security: disc;
}
.api-key-input-wrap input[type="text"] {
  -webkit-text-security: none;
}
.api-key-input-wrap input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(11, 95, 120, 0.12);
}
.api-key-input-wrap .cred-reveal-btn {
  position: absolute;
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--outline, #70787e);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.api-key-input-wrap .cred-reveal-btn:hover,
.api-key-input-wrap .cred-reveal-btn:focus-visible {
  background: rgba(11, 95, 120, 0.08);
  color: var(--primary, #0b5f78);
  outline: none;
}
.api-key-input-wrap .cred-reveal-btn[aria-pressed="true"] {
  color: var(--primary, #0b5f78);
}
.credential-form {
  margin: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── PDPL consent ── */
.pdpl-box {
  border: 1.5px solid rgba(11, 95, 120, 0.18);
  background: linear-gradient(145deg, rgba(11, 95, 120, 0.04), rgba(255, 255, 255, 0.9));
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.pdpl-box:has(input:checked) {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 95, 120, 0.1);
}

.pdpl-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  text-align: right;
}

.pdpl-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
  border-radius: 4px;
}

.pdpl-check .pdpl-label {
  font-size: 14px;
  line-height: 1.65;
  color: var(--on-bg);
}

.pdpl-check .pdpl-label strong {
  color: var(--primary);
}

.pdpl-meta {
  margin-top: 8px;
  margin-inline-start: 32px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* Step dots */
.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #bfc8ce;
  transition: all 0.3s ease;
}
.step-dot.active {
  width: 28px;
  background: var(--primary);
}
.step-dot.done {
  background: var(--success);
}

/* Image comparison */
.img-compare {
  position: relative;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}
.img-compare .after-layer {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 50%);
}
.img-compare .slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: white;
  transform: translateX(-50%);
  z-index: 5;
  cursor: ew-resize;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}
.img-compare .slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: white;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e3e5;
}

/* Chat panel */
.chat-panel {
  position: fixed;
  bottom: 100px;
  left: 32px;
  width: min(360px, calc(100vw - 32px));
  max-height: 480px;
  z-index: 60;
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.chat-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  animation: slideUp 0.3s ease both;
}
.chat-msg.bot {
  background: #e4f1f6;
  color: #151a1d;
  border-bottom-right-radius: 4px;
  margin-right: auto;
}
.chat-msg.user {
  background: linear-gradient(105deg, #0b5f78, #3d8aa8);
  color: white;
  border-bottom-left-radius: 4px;
  margin-left: auto;
}

/* Shimmer */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
.shimmer {
  background: linear-gradient(90deg, #e8eef2 25%, #f7f9fb 50%, #e8eef2 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Product scan cards */
.product-scan-card {
  transition: all 0.4s ease;
}
.product-scan-card.scanning {
  border-color: var(--primary-soft);
  box-shadow: 0 0 0 2px rgba(61, 138, 168, 0.2);
}
.product-scan-card.done {
  border-color: #86c9a8;
  background: #f0faf4;
}

/* Page out */
.page-transition-out {
  animation: pageOut 0.32s ease forwards;
}
@keyframes pageOut {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(280px, 85vw);
  background: #161d24;
  color: #e8eef2;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-drawer.open .mobile-drawer-panel {
  transform: translateX(0);
}

/* ── Dashboard glass charts ── */
.chart-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.chart-line {
  fill: none;
  stroke: url(#chartLineGrad);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawLine 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.chart-area {
  fill: url(#chartAreaGrad);
  opacity: 0;
  animation: fadeIn 0.8s ease 0.6s forwards;
}

.chart-dot {
  fill: #4fa8b4;
  stroke: #0f1a22;
  stroke-width: 2;
  opacity: 0;
  animation: fadeIn 0.4s ease 1.2s forwards;
}

.chart-grid line {
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1;
}

.chart-label {
  fill: rgba(232, 238, 242, 0.45);
  font-size: 10px;
  font-family: var(--font);
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

.spark-bar {
  transform-origin: bottom;
  transform: scaleY(0);
  animation: barGrow 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes barGrow {
  to {
    transform: scaleY(1);
  }
}

.ring-chart-progress {
  transition: stroke-dashoffset 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Dark dashboard refinements */
html.dark body {
  background: #0c1116;
  color: #e8eef2;
}
html.dark .dash-panel {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(28, 36, 44, 0.72);
  border-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 40px rgba(0, 0, 0, 0.2);
}
html.dark .dash-muted {
  color: #93a1ad;
}
html.dark .dash-title {
  color: #f2f6f8;
}
html.dark nav.side-nav {
  background: linear-gradient(180deg, #121920 0%, #0e141a 100%);
  border-color: rgba(255, 255, 255, 0.06);
}
html.dark .mobile-top {
  background: rgba(12, 17, 22, 0.88);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Brand wordmark */
.brand-ar {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--primary);
}

/* ============================================================
   LANDING — Premium light-first (dark is opt-in via data-theme)
   Scoped to body.landing-dark so other pages stay intact
   ============================================================ */

body.landing-dark {
  /* Light-first defaults — warm cream luxury (all chrome reads these vars) */
  --ld-bg: #f9fbfc;
  --ld-cyan: #0b5f78;
  --ld-teal: #0d9488;
  --ld-indigo: #be8c78;
  --ld-indigo-deep: #e8c4b0;
  --ld-text: #1e293b;
  --ld-muted: #64748b;
  --ld-placeholder: #94a3b8;
  --ld-glass: rgba(255, 255, 255, 0.78);
  --ld-glass-border: rgba(30, 41, 59, 0.08);
  --ld-glass-highlight: rgba(255, 255, 255, 0.98);
  --ld-glass-sheen: rgba(255, 255, 255, 0.55);
  --ld-radius: 1.25rem;
  --ld-ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Surfaces built from glass tokens */
  --ld-nav-bg:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78)),
    var(--ld-glass);
  --ld-nav-border: var(--ld-glass-border);
  --ld-nav-shadow:
    0 0 0 1px rgba(30, 41, 59, 0.055),
    inset 0 1px 0 var(--ld-glass-highlight),
    0 16px 44px rgba(30, 41, 59, 0.09),
    0 4px 12px rgba(30, 41, 59, 0.04);
  --ld-nav-shadow-hover:
    0 0 0 1px rgba(190, 140, 120, 0.28),
    inset 0 1px 0 var(--ld-glass-highlight),
    0 18px 48px rgba(30, 41, 59, 0.1),
    0 0 28px rgba(160, 210, 205, 0.2);

  --ld-announce-color: var(--ld-text);
  --ld-announce-bg: linear-gradient(
    90deg,
    rgba(232, 180, 160, 0.35),
    rgba(255, 255, 255, 0.7),
    rgba(160, 210, 205, 0.4)
  );
  --ld-announce-border: var(--ld-glass-border);

  --ld-cta-color: var(--ld-cyan);
  --ld-cta-bg: rgba(255, 255, 255, 0.65);
  --ld-cta-border: rgba(11, 95, 120, 0.28);
  --ld-cta-shadow: 0 4px 16px rgba(30, 41, 59, 0.06);
  --ld-cta-hover-bg: rgba(11, 95, 120, 0.08);
  --ld-cta-hover-color: var(--ld-cyan);
  --ld-cta-hover-shadow: 0 8px 24px rgba(11, 95, 120, 0.12);

  --ld-badge-color: var(--ld-cyan);
  --ld-badge-bg: rgba(255, 255, 255, 0.75);
  --ld-badge-border: var(--ld-glass-border);
  --ld-badge-shadow: 0 8px 24px rgba(30, 41, 59, 0.05);

  --ld-title-shadow: none;
  --ld-title-glow: linear-gradient(105deg, #0b5f78 0%, #be8c78 42%, #0d9488 100%);
  --ld-title-glow-filter: none;

  --ld-scanner-bg:
    linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.7)),
    var(--ld-glass);
  --ld-scanner-border: var(--ld-glass-border);
  --ld-input-color: var(--ld-text);

  --ld-panel-bg:
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78)),
    rgba(255, 255, 255, 0.82);
  --ld-panel-border: rgba(255, 255, 255, 1);
  --ld-panel-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 18px 48px rgba(30, 41, 59, 0.08),
    0 4px 12px rgba(30, 41, 59, 0.04),
    0 0 0 1px rgba(30, 41, 59, 0.045);
  --ld-footer-bg: rgba(255, 255, 255, 0.65);
  --ld-footer-border: rgba(30, 41, 59, 0.08);
  --ld-ticker-bg: rgba(255, 255, 255, 0.55);
  --ld-ticker-border: rgba(30, 41, 59, 0.08);
  --ld-ghost-color: var(--ld-text);
  --ld-ghost-bg: rgba(255, 255, 255, 0.65);
  --ld-ghost-border: rgba(30, 41, 59, 0.12);
  --ld-scan-btn-color: #ffffff;
  --ld-scan-btn-bg: linear-gradient(105deg, #0b5f78 0%, #0d9488 55%, #3d8aa8 100%);
  --ld-scan-btn-shadow:
    0 6px 24px rgba(11, 95, 120, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  --ld-heading-color: var(--ld-text);
  --ld-neon-border: linear-gradient(
    135deg,
    rgba(232, 180, 160, 0.75),
    rgba(160, 210, 205, 0.65),
    rgba(190, 140, 120, 0.7)
  );
  --ld-neon-border-shadow:
    0 0 0 1px rgba(30, 41, 59, 0.06),
    0 16px 48px rgba(30, 41, 59, 0.08);
  --ld-neon-anim: none;

  --primary: #0b5f78;
  --primary-soft: #3d8aa8;
  --secondary: #0d9488;
  --surface: #f9fbfc;
  --on-bg: #1e293b;
  --muted: #64748b;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.9);
  --shadow-glow: 0 0 32px rgba(190, 140, 120, 0.25);
  background-color: var(--ld-bg);
  color: var(--ld-text);
  min-height: 100dvh;
}

/* Dark mode restores space-neon tokens */
html[data-theme="dark"] body.landing-dark {
  --ld-bg: #080b10;
  --ld-cyan: #22d3ee;
  --ld-teal: #14b8a6;
  --ld-indigo: #4338ca;
  --ld-indigo-deep: #1e1b4b;
  --ld-text: #f1f5f9;
  --ld-muted: #94a3b8;
  --ld-placeholder: #64748b;
  --ld-glass: rgba(12, 18, 28, 0.55);
  --ld-glass-border: rgba(34, 211, 238, 0.28);
  --ld-glass-highlight: rgba(255, 255, 255, 0.12);
  --ld-glass-sheen: rgba(255, 255, 255, 0.08);

  --ld-nav-bg:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(8, 11, 16, 0.62);
  --ld-nav-border: rgba(255, 255, 255, 0.08);
  --ld-nav-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.35),
    0 0 24px rgba(34, 211, 238, 0.12),
    inset 0 1px 0 var(--ld-glass-highlight),
    0 16px 48px rgba(0, 0, 0, 0.35);
  --ld-nav-shadow-hover:
    0 0 0 1px rgba(34, 211, 238, 0.55),
    0 0 36px rgba(34, 211, 238, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 20px 56px rgba(0, 0, 0, 0.4);

  --ld-announce-color: #e0f2fe;
  --ld-announce-bg: linear-gradient(
    90deg,
    rgba(8, 145, 178, 0.35),
    rgba(67, 56, 202, 0.4),
    rgba(20, 184, 166, 0.35)
  );
  --ld-announce-border: rgba(34, 211, 238, 0.25);

  --ld-cta-color: var(--ld-cyan);
  --ld-cta-bg: rgba(34, 211, 238, 0.06);
  --ld-cta-border: rgba(34, 211, 238, 0.45);
  --ld-cta-shadow: 0 0 16px rgba(34, 211, 238, 0.1);
  --ld-cta-hover-bg: rgba(34, 211, 238, 0.16);
  --ld-cta-hover-color: #ffffff;
  --ld-cta-hover-shadow: 0 0 28px rgba(34, 211, 238, 0.28);

  --ld-badge-color: var(--ld-cyan);
  --ld-badge-bg: rgba(34, 211, 238, 0.08);
  --ld-badge-border: var(--ld-glass-border);
  --ld-badge-shadow: 0 0 20px rgba(34, 211, 238, 0.08);

  --ld-title-shadow: 0 0 40px rgba(34, 211, 238, 0.15);
  --ld-title-glow: linear-gradient(105deg, #22d3ee 0%, #67e8f9 35%, #a78bfa 70%, #22d3ee 100%);
  --ld-title-glow-filter: drop-shadow(0 0 28px rgba(34, 211, 238, 0.45));

  --ld-scanner-bg:
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(8, 11, 16, 0.88);
  --ld-scanner-border: transparent;
  --ld-input-color: var(--ld-text);

  --ld-panel-bg:
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    rgba(12, 18, 28, 0.65);
  --ld-panel-border: rgba(255, 255, 255, 0.08);
  --ld-panel-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 40px rgba(0, 0, 0, 0.25);
  --ld-footer-bg: rgba(5, 8, 12, 0.7);
  --ld-footer-border: rgba(34, 211, 238, 0.1);
  --ld-ticker-bg: rgba(8, 11, 16, 0.55);
  --ld-ticker-border: rgba(34, 211, 238, 0.12);
  --ld-ghost-color: #e2e8f0;
  --ld-ghost-bg: rgba(255, 255, 255, 0.03);
  --ld-ghost-border: rgba(255, 255, 255, 0.12);
  --ld-scan-btn-color: #041016;
  --ld-scan-btn-bg: linear-gradient(105deg, #22d3ee 0%, #2dd4bf 50%, #67e8f9 100%);
  --ld-scan-btn-shadow:
    0 4px 20px rgba(34, 211, 238, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  --ld-heading-color: #f8fafc;
  --ld-neon-border: linear-gradient(
    135deg,
    rgba(34, 211, 238, 0.7),
    rgba(67, 56, 202, 0.5),
    rgba(20, 184, 166, 0.7)
  );
  --ld-neon-border-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.25),
    0 0 32px rgba(34, 211, 238, 0.18),
    0 0 64px rgba(67, 56, 202, 0.12);
  --ld-neon-anim: neonBorderPulse 3.2s ease-in-out infinite;

  --primary: #22d3ee;
  --primary-soft: #67e8f9;
  --secondary: #14b8a6;
  --surface: #080b10;
  --on-bg: #f1f5f9;
  --muted: #94a3b8;
  --glass-bg: rgba(12, 18, 28, 0.6);
  --glass-border: rgba(34, 211, 238, 0.22);
  --shadow-glow: 0 0 32px rgba(34, 211, 238, 0.35);
  background-color: var(--ld-bg);
  color: var(--ld-text);
}

body.landing-dark .brand-ar {
  color: var(--ld-cyan);
  text-shadow: none;
}

html[data-theme="dark"] body.landing-dark .brand-ar {
  text-shadow: 0 0 24px rgba(34, 211, 238, 0.35);
}

/* ── Aurora / neon blobs (dark only) ── */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #080b10;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.55s;
}

html[data-theme="dark"] .aurora-bg {
  opacity: 1;
  visibility: visible;
  background: var(--ld-bg, #080b10);
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
  opacity: 0.55;
}

.aurora-blob-teal {
  width: min(55vw, 560px);
  height: min(55vw, 560px);
  background: radial-gradient(circle, rgba(20, 184, 166, 0.7) 0%, rgba(20, 184, 166, 0) 70%);
  top: -8%;
  right: -5%;
  animation: blobDriftA 18s ease-in-out infinite;
}

.aurora-blob-indigo {
  width: min(60vw, 620px);
  height: min(60vw, 620px);
  background: radial-gradient(circle, rgba(67, 56, 202, 0.65) 0%, rgba(30, 27, 75, 0.2) 45%, transparent 70%);
  bottom: 5%;
  left: -10%;
  animation: blobDriftB 22s ease-in-out infinite;
}

.aurora-blob-cyan {
  width: min(40vw, 420px);
  height: min(40vw, 420px);
  background: radial-gradient(circle, rgba(34, 211, 238, 0.45) 0%, transparent 68%);
  top: 42%;
  left: 38%;
  animation: blobDriftC 16s ease-in-out infinite;
}

.aurora-noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

@keyframes blobDriftA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-8%, 12%) scale(1.08); }
  66% { transform: translate(6%, -6%) scale(0.94); }
}

@keyframes blobDriftB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(12%, -10%) scale(1.1); }
  70% { transform: translate(-6%, 8%) scale(0.92); }
}

@keyframes blobDriftC {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-14%, 10%) scale(1.15); }
}

/* ── Announcement bar ── */
body.landing-dark .announcement-neon {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ld-announce-color);
  background: var(--ld-announce-bg);
  border-bottom: 1px solid var(--ld-announce-border);
  cursor: pointer;
  transition: filter 0.3s var(--ld-ease), letter-spacing 0.3s ease, color 0.3s ease, background 0.35s ease, border-color 0.3s ease;
}

body.landing-dark .announcement-neon:hover {
  filter: brightness(1.12);
}

body.landing-dark .announcement-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ld-cyan);
  box-shadow: 0 0 10px var(--ld-cyan);
  animation: pulse-glow 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── Floating frosted nav ── */
body.landing-dark .nav-shell {
  position: sticky;
  top: 0.75rem;
  z-index: 40;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  pointer-events: none;
}

body.landing-dark .nav-glass {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
  max-height: 72px;
  padding: 0 1.25rem;
  border-radius: 999px;
  background: var(--ld-nav-bg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--ld-nav-border);
  box-shadow: var(--ld-nav-shadow);
  transition: box-shadow 0.35s var(--ld-ease), transform 0.35s var(--ld-ease), background 0.35s ease, border-color 0.3s ease;
}

body.landing-dark .nav-glass:hover {
  box-shadow: var(--ld-nav-shadow-hover);
}

body.landing-dark .nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  transition: transform 0.25s var(--ld-ease);
}

body.landing-dark .nav-brand:hover {
  transform: scale(1.04);
}

body.landing-dark .nav-logo {
  height: 2.1rem;
  width: 2.1rem;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 4px 16px rgba(30, 41, 59, 0.1);
}

html[data-theme="dark"] body.landing-dark .nav-logo {
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.25);
}

body.landing-dark .nav-brand-text {
  font-size: 1.15rem;
  display: none;
}

@media (min-width: 768px) {
  body.landing-dark .nav-brand-text {
    display: block;
  }
}

body.landing-dark .nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  body.landing-dark .nav-links {
    display: flex;
  }
}

body.landing-dark .nav-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ld-muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.25s ease;
}

body.landing-dark .nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ld-cyan), var(--ld-teal));
  box-shadow: 0 0 8px var(--ld-cyan);
  transition: width 0.3s var(--ld-ease);
}

body.landing-dark .nav-link:hover,
body.landing-dark .nav-link.is-active {
  color: var(--ld-cyan);
}

body.landing-dark .nav-link:hover::after,
body.landing-dark .nav-link.is-active::after {
  width: 100%;
}

body.landing-dark .nav-cta {
  font-size: 12px;
  font-weight: 700;
  color: var(--ld-cta-color);
  text-decoration: none;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--ld-cta-border);
  background: var(--ld-cta-bg);
  box-shadow: var(--ld-cta-shadow);
  transition: transform 0.25s var(--ld-ease), background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

body.landing-dark .nav-cta:hover {
  transform: scale(1.05);
  background: var(--ld-cta-hover-bg);
  box-shadow: var(--ld-cta-hover-shadow);
  color: var(--ld-cta-hover-color);
}

body.landing-dark .nav-cta:active {
  transform: scale(0.97);
}

/* ── Main layout ── */
body.landing-dark .landing-main {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1rem 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 768px) {
  body.landing-dark .landing-main {
    padding: 2rem 2rem 7rem;
  }
}

/* ── Hero ── */
body.landing-dark .hero-section {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  min-height: calc(100dvh - 140px);
  padding-top: 0.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 1024px) {
  body.landing-dark .hero-section {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem 3rem;
    padding-top: 0;
    margin-bottom: 4rem;
  }
}

body.landing-dark .hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
  gap: 1.25rem;
  /* Mobile: copy first. Desktop RTL grid: copy lands on visual left */
  order: 1;
}

@media (min-width: 1024px) {
  body.landing-dark .hero-copy {
    order: 2;
  }
}

body.landing-dark .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ld-badge-color, var(--ld-cyan));
  background: var(--ld-badge-bg);
  border: 1px solid var(--ld-badge-border, var(--ld-glass-border));
  box-shadow: var(--ld-badge-shadow);
  transition: color 0.3s ease, background 0.35s ease, border-color 0.3s ease, box-shadow 0.35s ease;
}

body.landing-dark .hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ld-teal);
  box-shadow: 0 0 8px color-mix(in srgb, var(--ld-teal) 55%, transparent);
  animation: pulse-glow 2s ease-in-out infinite;
}

body.landing-dark .hero-title {
  font-size: clamp(2rem, 5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ld-text);
  text-wrap: balance;
  max-width: 16ch;
  text-shadow: var(--ld-title-shadow);
  transition: color 0.3s ease, text-shadow 0.35s ease;
}

body.landing-dark .hero-title-glow {
  display: block;
  margin-top: 0.15em;
  background: var(--ld-title-glow);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite;
  filter: var(--ld-title-glow-filter);
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

body.landing-dark .hero-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ld-muted);
  max-width: 36ch;
}

body.landing-dark .hero-loss-num {
  color: #f87171;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(248, 113, 113, 0.4);
  vertical-align: bottom;
}

/* Scanner card */
body.landing-dark .scanner-card {
  width: 100%;
  max-width: 34rem;
  margin-top: 0.25rem;
  position: relative;
  border-radius: 1.25rem;
  padding: 2px;
}

body.landing-dark .neon-pulse-border {
  background: var(--ld-neon-border);
  background-size: 200% 200%;
  animation: var(--ld-neon-anim);
  box-shadow: var(--ld-neon-border-shadow);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

body.landing-dark .neon-pulse-border-soft {
  position: relative;
}

body.landing-dark .neon-pulse-border-soft::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--ld-neon-border);
  background-size: 200% 200%;
  animation: var(--ld-neon-anim);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes neonBorderPulse {
  0%, 100% {
    background-position: 0% 50%;
    box-shadow:
      0 0 0 1px rgba(34, 211, 238, 0.25),
      0 0 24px rgba(34, 211, 238, 0.15),
      0 0 48px rgba(67, 56, 202, 0.1);
  }
  50% {
    background-position: 100% 50%;
    box-shadow:
      0 0 0 1px rgba(34, 211, 238, 0.55),
      0 0 40px rgba(34, 211, 238, 0.35),
      0 0 80px rgba(20, 184, 166, 0.2);
  }
}

body.landing-dark .scanner-card-inner {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.65rem;
  border-radius: calc(1.25rem - 2px);
  background: var(--ld-scanner-bg);
  border: 1px solid var(--ld-scanner-border);
  box-shadow: inset 0 1px 0 var(--ld-glass-highlight);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  transition: background 0.35s ease, border-color 0.3s ease, box-shadow 0.35s ease;
}

@media (min-width: 640px) {
  body.landing-dark .scanner-card-inner {
    flex-direction: row;
    align-items: center;
  }
}

body.landing-dark .scanner-input-row {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.75rem;
  min-width: 0;
}

body.landing-dark .scanner-icon {
  color: var(--ld-cyan);
  opacity: 0.85;
  flex-shrink: 0;
}

body.landing-dark .scanner-input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: none;
  box-shadow: none;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--ld-input-color, var(--ld-text));
  padding: 0.85rem 0;
  transition: color 0.3s ease;
}

body.landing-dark .scanner-input::placeholder {
  color: var(--ld-placeholder);
}

body.landing-dark .scanner-input:focus {
  outline: none;
  box-shadow: none;
}

body.landing-dark .btn-scan-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  white-space: nowrap;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 0.9rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ld-scan-btn-color);
  cursor: pointer;
  text-decoration: none;
  background: var(--ld-scan-btn-bg);
  box-shadow: var(--ld-scan-btn-shadow);
  transition: transform 0.25s var(--ld-ease), box-shadow 0.25s ease, filter 0.25s ease, background 0.3s ease, color 0.3s ease;
}

body.landing-dark .btn-scan-now:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 8px 32px rgba(34, 211, 238, 0.55),
    0 0 40px rgba(34, 211, 238, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  filter: brightness(1.05);
}

body.landing-dark .btn-scan-now:active {
  transform: scale(0.97);
}

body.landing-dark .scanner-hint {
  font-size: 12px;
  color: var(--ld-muted);
  text-align: center;
  margin: 0.55rem 0 0;
  padding: 0 0.5rem 0.35rem;
}

@media (min-width: 640px) {
  body.landing-dark .scanner-hint {
    text-align: right;
  }
}

body.landing-dark .btn-trial-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ld-ghost-color);
  text-decoration: none;
  border: 1px solid var(--ld-ghost-border);
  background: var(--ld-ghost-bg);
  transition: transform 0.25s var(--ld-ease), border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

body.landing-dark .btn-trial-ghost:hover {
  transform: scale(1.03);
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.08);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.15);
}

body.landing-dark .btn-trial-ghost:active {
  transform: scale(0.98);
}

/* ── Hero visual stage ── */
body.landing-dark .hero-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  aspect-ratio: 1;
  /* Mobile: after copy. Desktop RTL grid: image lands on visual right */
  order: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  body.landing-dark .hero-stage {
    order: 1;
    max-width: none;
    margin: 0;
  }
}

body.landing-dark .hero-orbit {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 1px dashed rgba(34, 211, 238, 0.18);
  animation: spinSlow 28s linear infinite;
  pointer-events: none;
}

body.landing-dark .hero-glow-ring {
  position: absolute;
  inset: 10%;
  border-radius: 28% 72% 45% 55% / 55% 40% 60% 45%;
  background: radial-gradient(circle at 40% 40%, rgba(34, 211, 238, 0.22), rgba(67, 56, 202, 0.15) 45%, transparent 70%);
  filter: blur(20px);
  animation: morphBlob 10s ease-in-out infinite;
  pointer-events: none;
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

@keyframes morphBlob {
  0%, 100% { border-radius: 28% 72% 45% 55% / 55% 40% 60% 45%; transform: scale(1) rotate(0deg); }
  50% { border-radius: 55% 45% 60% 40% / 40% 55% 45% 60%; transform: scale(1.06) rotate(8deg); }
}

body.landing-dark .hero-image-frame {
  position: relative;
  z-index: 2;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 1.75rem;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.25);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(34, 211, 238, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.5s var(--ld-ease), box-shadow 0.5s ease;
}

body.landing-dark .hero-image-frame:hover {
  transform: scale(1.025) translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.35),
    0 32px 80px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(34, 211, 238, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

body.landing-dark .hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.landing-dark .hero-image-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    transparent 30%,
    rgba(255, 255, 255, 0.08) 45%,
    transparent 60%
  );
  background-size: 200% 200%;
  animation: sheenSweep 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sheenSweep {
  0%, 100% { background-position: 100% 0; opacity: 0.4; }
  50% { background-position: 0% 100%; opacity: 0.8; }
}

/* Floating 3D glass cards */
body.landing-dark .float-card {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  max-width: 240px;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  background: var(--ld-panel-bg);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--ld-panel-border);
  box-shadow: var(--ld-panel-shadow);
  transform: translateZ(0);
  animation: floatCard 5.5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.7s);
  transition: transform 0.35s var(--ld-ease), box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

body.landing-dark .float-card:hover {
  transform: scale(1.06) translateY(-4px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 48px rgba(0, 0, 0, 0.5),
    0 0 36px rgba(34, 211, 238, 0.2);
  animation-play-state: paused;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

body.landing-dark .float-card-whatsapp {
  top: 6%;
  left: 0;
}

body.landing-dark .float-card-dialect {
  bottom: 14%;
  left: -2%;
  max-width: 260px;
}

body.landing-dark .float-card-stats {
  top: 18%;
  right: -2%;
  max-width: 180px;
  flex-direction: column;
}

@media (max-width: 640px) {
  body.landing-dark .float-card {
    max-width: 170px;
    padding: 0.65rem 0.7rem;
  }
  body.landing-dark .float-card-dialect {
    max-width: 190px;
    bottom: 8%;
    left: 0;
  }
  body.landing-dark .float-card-stats {
    top: 8%;
    right: 0;
  }
  body.landing-dark .float-card-meta,
  body.landing-dark .dialect-row.before {
    display: none;
  }
}

body.landing-dark .float-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

body.landing-dark .wa-icon {
  background: linear-gradient(145deg, #25d366, #128c7e);
  box-shadow: 0 0 16px rgba(37, 211, 102, 0.4);
}

body.landing-dark .dialect-icon {
  background: linear-gradient(145deg, #6366f1, #4338ca);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.4);
}

body.landing-dark .stats-icon {
  background: linear-gradient(145deg, #22d3ee, #14b8a6);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.4);
}

body.landing-dark .float-card-body {
  min-width: 0;
  flex: 1;
}

body.landing-dark .float-card-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--ld-muted);
  margin: 0 0 0.15rem;
}

body.landing-dark .float-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ld-heading-color, var(--ld-text));
  margin: 0;
  line-height: 1.35;
  transition: color 0.3s ease;
}

body.landing-dark .float-card-meta {
  font-size: 11px;
  color: #86efac;
  margin: 0.25rem 0 0;
}

body.landing-dark .float-card-status {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  font-size: 9px;
  font-weight: 700;
  color: #86efac;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
}

body.landing-dark .float-card-whatsapp .float-card-body {
  padding-left: 1.5rem;
}

body.landing-dark .dialect-compare {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.2rem;
}

body.landing-dark .dialect-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 11px;
  line-height: 1.4;
  color: var(--ld-muted);
}

body.landing-dark .dialect-row.after {
  color: var(--ld-cyan);
  font-weight: 600;
}

body.landing-dark .dialect-tag {
  font-size: 9px;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  flex-shrink: 0;
}

body.landing-dark .dialect-row.before .dialect-tag {
  background: rgba(248, 113, 113, 0.15);
  color: #fca5a5;
}

body.landing-dark .dialect-row.after .dialect-tag {
  background: rgba(34, 211, 238, 0.15);
  color: #67e8f9;
}

body.landing-dark .float-card-stat {
  font-size: 1.65rem;
  font-weight: 700;
  margin: 0.1rem 0 0.4rem;
  background: linear-gradient(105deg, #22d3ee, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

body.landing-dark .mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
}

body.landing-dark .mini-bars span {
  flex: 1;
  height: var(--h, 50%);
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #22d3ee, #14b8a6);
  opacity: 0.85;
  animation: barPulse 2.4s ease-in-out infinite;
  animation-delay: calc(var(--h) * 0.01s);
}

@keyframes barPulse {
  0%, 100% { opacity: 0.7; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.08); }
}

/* ── Ticker ── */
body.landing-dark .ticker-section {
  position: relative;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  margin-bottom: 4rem;
  padding: 0.85rem 0;
  overflow: hidden;
  border-block: 1px solid var(--ld-ticker-border);
  background: var(--ld-ticker-bg);
  backdrop-filter: blur(12px);
  transition: background 0.35s ease, border-color 0.3s ease;
}

body.landing-dark .ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

body.landing-dark .ticker-item {
  display: inline-block;
  margin-inline: 2rem;
  font-size: 12px;
  font-weight: 500;
  color: var(--ld-muted);
}

body.landing-dark .ticker-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4rem;
  z-index: 2;
  pointer-events: none;
}

body.landing-dark .ticker-fade-start {
  right: 0;
  background: linear-gradient(to left, var(--ld-bg), transparent);
}

body.landing-dark .ticker-fade-end {
  left: 0;
  background: linear-gradient(to right, var(--ld-bg), transparent);
}

/* ── Features ── */
body.landing-dark .features-section {
  width: 100%;
  margin-bottom: 4.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.landing-dark .section-head {
  text-align: center;
  max-width: 32rem;
  margin-bottom: 2.5rem;
}

body.landing-dark .section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--ld-heading-color, var(--ld-text));
  margin: 0 0 0.65rem;
  text-shadow: var(--ld-title-shadow);
  transition: color 0.3s ease;
}

body.landing-dark .section-sub {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ld-muted);
  margin: 0;
}

body.landing-dark .features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  width: 100%;
}

@media (min-width: 768px) {
  body.landing-dark .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  body.landing-dark .features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

body.landing-dark .feature-card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: var(--ld-panel-bg);
  border: 1px solid var(--ld-panel-border);
  box-shadow: var(--ld-panel-shadow);
  transition: transform 0.35s var(--ld-ease), border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

body.landing-dark .feature-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 70%);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

body.landing-dark .feature-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 24px 56px rgba(0, 0, 0, 0.35),
    0 0 32px rgba(34, 211, 238, 0.12);
}

body.landing-dark .feature-card:hover::before {
  transform: scale(1.3);
  opacity: 1.2;
}

body.landing-dark .feature-card-accent {
  border-color: rgba(34, 211, 238, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 40px rgba(0, 0, 0, 0.25),
    0 0 28px rgba(34, 211, 238, 0.08);
}

body.landing-dark .feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  color: var(--ld-cyan);
  background: color-mix(in srgb, var(--ld-cyan) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--ld-cyan) 20%, transparent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--ld-cyan) 12%, transparent);
  transition: transform 0.3s var(--ld-ease), box-shadow 0.3s ease, color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

body.landing-dark .feature-card:hover .feature-icon {
  transform: scale(1.08);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.3);
}

body.landing-dark .feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ld-heading-color, var(--ld-text));
  margin: 0 0 0.5rem;
  transition: color 0.3s ease;
}

body.landing-dark .feature-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ld-muted);
  margin: 0 0 1rem;
}

body.landing-dark .feature-chip {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--ld-teal);
  background: color-mix(in srgb, var(--ld-teal) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--ld-teal) 28%, transparent);
  padding: 0.25rem 0.55rem;
  border-radius: 0.4rem;
}

/* ── Trial ── */
body.landing-dark .trial-section {
  width: 100%;
  margin-bottom: 2rem;
}

body.landing-dark .trial-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 1.75rem;
  background: var(--ld-panel-bg);
  border: 1px solid var(--ld-panel-border);
  box-shadow: var(--ld-panel-shadow);
  transition: background 0.35s ease, border-color 0.3s ease, box-shadow 0.35s ease;
}

html[data-theme="dark"] body.landing-dark .trial-panel {
  background:
    linear-gradient(165deg, rgba(34, 211, 238, 0.06), rgba(67, 56, 202, 0.08)),
    rgba(10, 14, 22, 0.75);
  border: 1px solid rgba(34, 211, 238, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 64px rgba(0, 0, 0, 0.35),
    0 0 48px rgba(34, 211, 238, 0.06);
}

body.landing-dark .trial-heading {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ld-muted);
  margin: 0 0 1.5rem;
}

body.landing-dark .platform-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  opacity: 0.55;
}

body.landing-dark .platform-logos span {
  font-size: 1.5rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: -0.02em;
  transition: color 0.25s ease, text-shadow 0.25s ease, opacity 0.25s ease;
}

body.landing-dark .platform-logos span:hover {
  color: var(--ld-cyan);
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
  opacity: 1;
}

body.landing-dark .trial-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  max-width: 36rem;
  margin-bottom: 2rem;
}

body.landing-dark .trial-stat {
  flex: 1 1 140px;
  padding: 1.25rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s var(--ld-ease), border-color 0.3s ease, box-shadow 0.3s ease;
}

body.landing-dark .trial-stat:hover {
  transform: scale(1.04);
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.12);
}

body.landing-dark .trial-stat-num {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--ld-cyan);
  margin: 0 0 0.35rem;
  text-shadow: 0 0 24px rgba(34, 211, 238, 0.35);
  font-variant-numeric: tabular-nums;
}

body.landing-dark .trial-stat-num.teal {
  color: #2dd4bf;
  text-shadow: 0 0 24px rgba(45, 212, 191, 0.35);
}

body.landing-dark .trial-stat-label {
  font-size: 0.95rem;
  color: var(--ld-muted);
  margin: 0;
}

body.landing-dark .btn-trial-lg {
  margin-top: 0.25rem;
}

body.landing-dark .trial-fine {
  font-size: 12px;
  color: var(--ld-muted);
  margin: 0.85rem 0 0;
}

/* ── Footer ── */
body.landing-dark .landing-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  border-top: 1px solid var(--ld-footer-border);
  background: var(--ld-footer-bg);
  backdrop-filter: blur(12px);
  transition: background 0.35s ease, border-color 0.3s ease;
}

@media (min-width: 768px) {
  body.landing-dark .landing-footer {
    flex-direction: row;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding-inline: 2rem;
  }
}

body.landing-dark .footer-brand {
  font-size: 1.15rem;
}

body.landing-dark .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
}

body.landing-dark .footer-links a {
  font-size: 12px;
  color: var(--ld-muted);
  text-decoration: none;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

body.landing-dark .footer-links a:hover {
  color: var(--ld-cyan);
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.35);
}

body.landing-dark .footer-copy {
  font-size: 0.9rem;
  color: var(--ld-muted);
  text-align: center;
}

/* ── AI FAB ── */
body.landing-dark .ai-fab-wrap {
  position: fixed;
  bottom: 1.75rem;
  left: 1.75rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

body.landing-dark .ai-chat-bubble {
  max-width: 250px;
  padding: 1rem;
  border-radius: 1rem 1rem 1rem 0.25rem;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.4s var(--ld-ease), transform 0.4s var(--ld-ease);
  border: 1px solid rgba(34, 211, 238, 0.25) !important;
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.12), 0 16px 40px rgba(0, 0, 0, 0.4) !important;
}

body.landing-dark .ai-chat-bubble.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

body.landing-dark .ai-chat-bubble p {
  font-size: 0.9rem;
  color: var(--ld-text);
  margin: 0 0 0.5rem;
  position: relative;
  z-index: 1;
}

body.landing-dark .ai-chat-bubble button {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  color: var(--ld-cyan);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 1;
  transition: text-shadow 0.25s ease;
}

body.landing-dark .ai-chat-bubble button:hover {
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
}

body.landing-dark .ai-fab {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  border: 2px solid rgba(34, 211, 238, 0.4);
  background: linear-gradient(145deg, #0e7490, #14b8a6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s var(--ld-ease), box-shadow 0.3s ease;
  padding: 0;
}

body.landing-dark .ai-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.5);
}

body.landing-dark .ai-fab:active {
  transform: scale(0.96);
}

body.landing-dark .ai-fab img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.2rem;
}

body.landing-dark .ai-fab-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f87171;
  border: 2px solid var(--ld-bg);
  animation: pulse-glow 1.6s ease-in-out infinite;
}

/* Glass on landing — inherits theme via --ld-* (light default) */
body.landing-dark .glass-panel,
body.landing-dark .glass-card {
  background: var(--ld-panel-bg);
  border-color: var(--ld-panel-border);
  box-shadow: var(--ld-panel-shadow);
  color: var(--ld-text);
}

html[data-theme="dark"] body.landing-dark .glass-panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(12, 18, 28, 0.7);
  border-color: rgba(34, 211, 238, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 12px 40px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] body.landing-dark .glass-card {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
    rgba(10, 14, 22, 0.75);
  border-color: rgba(255, 255, 255, 0.1);
}

body.landing-dark .ai-gradient-text {
  background: var(--ld-title-glow);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.landing-dark .btn-primary-gradient {
  background: var(--ld-scan-btn-bg);
  color: var(--ld-scan-btn-color);
  box-shadow: var(--ld-scan-btn-shadow);
}

body.landing-dark .btn-trial {
  background: linear-gradient(105deg, var(--ld-teal) 0%, var(--ld-cyan) 100%);
  color: #fff;
  box-shadow: 0 4px 18px color-mix(in srgb, var(--ld-teal) 35%, transparent);
}

/* Dark-only neon button treatment */
html[data-theme="dark"] body.landing-dark .btn-primary-gradient {
  background: linear-gradient(105deg, #22d3ee 0%, #14b8a6 55%, #67e8f9 100%);
  color: #041016;
  box-shadow: 0 4px 20px rgba(34, 211, 238, 0.35);
}

html[data-theme="dark"] body.landing-dark .btn-trial {
  background: linear-gradient(105deg, #14b8a6 0%, #0e7490 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(20, 184, 166, 0.35);
}

/* Scrollbar for landing — theme-adaptive */
body.landing-dark::-webkit-scrollbar-track {
  background: color-mix(in srgb, var(--ld-bg) 88%, var(--ld-muted));
}
body.landing-dark::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--ld-muted) 55%, var(--ld-bg));
}
body.landing-dark::-webkit-scrollbar-thumb:hover {
  background: var(--ld-cyan);
}

html[data-theme="dark"] body.landing-dark::-webkit-scrollbar-track {
  background: #0a0e14;
}
html[data-theme="dark"] body.landing-dark::-webkit-scrollbar-thumb {
  background: #334155;
}

/* Reduced motion for landing extras */
@media (prefers-reduced-motion: reduce) {
  body.landing-dark .aurora-blob,
  body.landing-dark .hero-title-glow,
  body.landing-dark .neon-pulse-border,
  body.landing-dark .neon-pulse-border-soft::before,
  body.landing-dark .hero-orbit,
  body.landing-dark .hero-glow-ring,
  body.landing-dark .hero-image-sheen,
  body.landing-dark .float-card,
  body.landing-dark .mini-bars span,
  body.landing-dark .announcement-pulse,
  body.landing-dark .hero-badge-dot {
    animation: none !important;
  }

  body.landing-dark .float-card:hover,
  body.landing-dark .feature-card:hover,
  body.landing-dark .btn-scan-now:hover {
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  body.landing-dark .nav-glass,
  body.landing-dark .scanner-card-inner,
  body.landing-dark .float-card,
  body.landing-dark .feature-card,
  body.landing-dark .trial-panel {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--ld-bg);
  }
}

/* ============================================================
   THEME PREFS — tri-state select + reduce-motion (PR2)
   ============================================================ */

.hala-prefs {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  flex-shrink: 0;
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
}

.hala-prefs--compact {
  gap: 0.4rem;
}

.hala-prefs-field {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  cursor: pointer;
}

.hala-prefs-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted, #40484d);
  white-space: nowrap;
}

html[data-theme="dark"] .hala-prefs-label {
  color: rgba(226, 232, 240, 0.75);
}

.hala-theme-select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 36px;
  min-width: 5.5rem;
  padding: 0.35rem 1.75rem 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(30, 41, 59, 0.12);
  background-color: rgba(255, 255, 255, 0.85);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2340484d' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E"),
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.7));
  background-repeat: no-repeat, no-repeat;
  background-position: left 0.55rem center, 0 0;
  background-size: 12px, auto;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  color: #1e293b;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 4px 14px rgba(30, 41, 59, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hala-theme-select:hover,
.hala-theme-select:focus-visible {
  border-color: rgba(11, 95, 120, 0.35);
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 0 0 3px rgba(11, 95, 120, 0.12);
}

html[data-theme="dark"] .hala-theme-select {
  border-color: rgba(255, 255, 255, 0.14);
  background-color: rgba(15, 23, 42, 0.45);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23e2e8f0' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E"),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  background-repeat: no-repeat, no-repeat;
  background-position: left 0.55rem center, 0 0;
  background-size: 12px, auto;
  color: #e2e8f0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 4px 14px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .hala-theme-select:hover,
html[data-theme="dark"] .hala-theme-select:focus-visible {
  border-color: rgba(79, 168, 180, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 0 3px rgba(79, 168, 180, 0.18);
}

.hala-prefs-motion {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  min-height: 36px;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(30, 41, 59, 0.1);
  background: rgba(255, 255, 255, 0.55);
  color: #40484d;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

html[data-theme="dark"] .hala-prefs-motion {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.35);
  color: rgba(226, 232, 240, 0.85);
}

.hala-prefs-motion input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #0b5f78;
  cursor: pointer;
}

.hala-prefs-motion--icon .hala-prefs-motion-short {
  font-size: 11px;
}

/* Marketing / landing shell dark chrome */
body.landing-dark .hala-prefs-label,
html[data-shell="marketing"][data-theme="dark"] .hala-prefs-label {
  color: rgba(226, 232, 240, 0.75);
}

body.landing-dark .hala-theme-select,
html[data-shell="marketing"][data-theme="dark"] .hala-theme-select {
  border-color: rgba(255, 255, 255, 0.14);
  background-color: rgba(15, 23, 42, 0.45);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23e2e8f0' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E"),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  background-repeat: no-repeat, no-repeat;
  background-position: left 0.55rem center, 0 0;
  background-size: 12px, auto;
  color: #e2e8f0;
}

body.landing-dark .hala-prefs-motion,
html[data-shell="marketing"][data-theme="dark"] .hala-prefs-motion {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.35);
  color: rgba(226, 232, 240, 0.85);
}

/* Screen-reader only helper for compact labels */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Nav cluster for CTA + theme prefs */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

/* Legacy theme-toggle kept minimal for any residual markup */
.theme-toggle {
  display: none;
}

/* ============================================================
   LIGHT THEME — واجهة فاتحة (warm luxury cream)
   ============================================================ */

html:not([data-theme="dark"]) {
  color-scheme: light;
}

html:not([data-theme="dark"]) body {
  --primary: #0b5f78;
  --primary-soft: #3d8aa8;
  --secondary: #0d6b75;
  --teal: #5eb8b0;
  --surface: #f9fbfc;
  --surface-elevated: #ffffff;
  --on-bg: #1e293b;
  --muted: #64748b;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.85);
  --shadow-soft: 0 10px 40px rgba(30, 41, 59, 0.06);
  --shadow-glass:
    0 12px 40px rgba(30, 41, 59, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 1px rgba(30, 41, 59, 0.06);
  --shadow-glow: 0 0 28px rgba(190, 140, 120, 0.22);
  background-color: #f9fbfc;
  color: #1e293b;
}

html:not([data-theme="dark"]) ::-webkit-scrollbar-track {
  background: #eef2f5;
}
html:not([data-theme="dark"]) ::-webkit-scrollbar-thumb {
  background: #c5d0d8;
}
html:not([data-theme="dark"]) ::-webkit-scrollbar-thumb:hover {
  background: #9aadb8;
}

/* Soft pastel gradient blobs — default (light-first) */
.light-aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.6s;
}

html[data-theme="dark"] .light-aurora {
  opacity: 0;
  visibility: hidden;
}

.light-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform;
  opacity: 0.62;
}

.light-blob-rose {
  width: min(62vw, 620px);
  height: min(62vw, 620px);
  background: radial-gradient(
    circle,
    rgba(236, 190, 172, 0.78) 0%,
    rgba(220, 168, 148, 0.32) 40%,
    transparent 72%
  );
  top: -14%;
  right: -10%;
  animation: blobDriftA 22s ease-in-out infinite;
}

.light-blob-teal {
  width: min(58vw, 560px);
  height: min(58vw, 560px);
  background: radial-gradient(
    circle,
    rgba(168, 216, 210, 0.75) 0%,
    rgba(140, 196, 188, 0.28) 42%,
    transparent 72%
  );
  bottom: -8%;
  left: -12%;
  animation: blobDriftB 26s ease-in-out infinite;
}

.light-blob-gold {
  width: min(42vw, 440px);
  height: min(42vw, 440px);
  background: radial-gradient(
    circle,
    rgba(244, 220, 192, 0.62) 0%,
    rgba(232, 200, 168, 0.22) 48%,
    transparent 72%
  );
  top: 38%;
  left: 40%;
  animation: blobDriftC 20s ease-in-out infinite;
}

/* Frosted-glass panels — light */
html:not([data-theme="dark"]) .glass-panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.55)),
    rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 14px 44px rgba(30, 41, 59, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 0 0 1px rgba(30, 41, 59, 0.05);
}

html:not([data-theme="dark"]) .glass-card {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.62)),
    rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 16px 48px rgba(30, 41, 59, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 0 0 1px rgba(30, 41, 59, 0.055);
  color: #1e293b;
}

html:not([data-theme="dark"]) .glass-card::before {
  background: radial-gradient(ellipse at 20% -10%, rgba(255, 255, 255, 0.9), transparent 55%);
}

html:not([data-theme="dark"]) .glass-dark {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(30, 41, 59, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 16px 48px rgba(30, 41, 59, 0.1);
  color: #1e293b;
}

/* ── Landing page light overrides ──
   Base body.landing-dark tokens are already light-first.
   This block re-asserts core vars (belt-and-suspenders for cascade)
   and keeps fine-tuned polish where needed. */
html:not([data-theme="dark"]) body.landing-dark {
  --ld-bg: #f9fbfc;
  --ld-cyan: #0b5f78;
  --ld-teal: #0d9488;
  --ld-indigo: #be8c78;
  --ld-indigo-deep: #e8c4b0;
  --ld-text: #1e293b;
  --ld-muted: #64748b;
  --ld-placeholder: #94a3b8;
  --ld-glass: rgba(255, 255, 255, 0.78);
  --ld-glass-border: rgba(30, 41, 59, 0.08);
  --ld-heading-color: #1e293b;
  --ld-input-color: #1e293b;
  --primary: #0b5f78;
  --primary-soft: #3d8aa8;
  --secondary: #0d9488;
  --surface: #f9fbfc;
  --on-bg: #1e293b;
  --muted: #64748b;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.9);
  --shadow-glow: 0 0 32px rgba(190, 140, 120, 0.25);
  background-color: var(--ld-bg);
  color: var(--ld-text);
}

html:not([data-theme="dark"]) body.landing-dark .aurora-bg {
  opacity: 0;
  visibility: hidden;
}

html:not([data-theme="dark"]) body.landing-dark .brand-ar {
  color: #0b5f78;
  text-shadow: none;
}

html:not([data-theme="dark"]) body.landing-dark .announcement-neon {
  color: #1e293b;
  background: linear-gradient(
    90deg,
    rgba(232, 180, 160, 0.35),
    rgba(255, 255, 255, 0.7),
    rgba(160, 210, 205, 0.4)
  );
  border-bottom: 1px solid rgba(30, 41, 59, 0.08);
}

html:not([data-theme="dark"]) body.landing-dark .announcement-pulse {
  background: #0d9488;
  box-shadow: 0 0 10px rgba(13, 148, 136, 0.45);
}

html:not([data-theme="dark"]) body.landing-dark .nav-glass {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78)),
    rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 1);
  box-shadow:
    0 0 0 1px rgba(30, 41, 59, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 16px 44px rgba(30, 41, 59, 0.09),
    0 4px 12px rgba(30, 41, 59, 0.04);
}

html:not([data-theme="dark"]) body.landing-dark .nav-glass:hover {
  box-shadow:
    0 0 0 1px rgba(190, 140, 120, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 18px 48px rgba(30, 41, 59, 0.1),
    0 0 28px rgba(160, 210, 205, 0.2);
}

html:not([data-theme="dark"]) body.landing-dark .nav-logo {
  box-shadow: 0 4px 16px rgba(30, 41, 59, 0.1);
}

html:not([data-theme="dark"]) body.landing-dark .nav-link {
  color: #64748b;
}

html:not([data-theme="dark"]) body.landing-dark .nav-link:hover,
html:not([data-theme="dark"]) body.landing-dark .nav-link.is-active {
  color: #0b5f78;
}

html:not([data-theme="dark"]) body.landing-dark .nav-link::after {
  background: linear-gradient(90deg, #be8c78, #0d9488);
  box-shadow: none;
}

html:not([data-theme="dark"]) body.landing-dark .nav-cta {
  color: #0b5f78;
  border: 1px solid rgba(11, 95, 120, 0.28);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 4px 16px rgba(30, 41, 59, 0.06);
}

html:not([data-theme="dark"]) body.landing-dark .nav-cta:hover {
  background: rgba(11, 95, 120, 0.08);
  box-shadow: 0 8px 24px rgba(11, 95, 120, 0.12);
  color: #0b5f78;
}

html:not([data-theme="dark"]) body.landing-dark .hero-badge {
  color: #0b5f78;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(11, 95, 120, 0.15);
  box-shadow: 0 8px 24px rgba(30, 41, 59, 0.05);
}

html:not([data-theme="dark"]) body.landing-dark .hero-badge-dot {
  background: #0d9488;
  box-shadow: 0 0 8px rgba(13, 148, 136, 0.4);
}

html:not([data-theme="dark"]) body.landing-dark .hero-title {
  color: #1e293b;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-shadow: none;
  text-wrap: balance;
}

html:not([data-theme="dark"]) body.landing-dark .hero-title-glow {
  background: linear-gradient(105deg, #0b5f78 0%, #be8c78 42%, #0d9488 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: none;
  animation: heroGlowShift 8s ease-in-out infinite;
}

@keyframes heroGlowShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

html:not([data-theme="dark"]) body.landing-dark .hero-sub {
  color: #64748b;
}

html:not([data-theme="dark"]) body.landing-dark .hero-loss-num {
  color: #c2410c;
  text-shadow: none;
}

html:not([data-theme="dark"]) body.landing-dark .neon-pulse-border {
  background: linear-gradient(
    135deg,
    rgba(232, 180, 160, 0.75),
    rgba(160, 210, 205, 0.65),
    rgba(190, 140, 120, 0.7)
  );
  box-shadow:
    0 0 0 1px rgba(30, 41, 59, 0.06),
    0 16px 48px rgba(30, 41, 59, 0.08);
  animation: none;
}

html:not([data-theme="dark"]) body.landing-dark .neon-pulse-border-soft::before {
  background: linear-gradient(
    135deg,
    rgba(232, 180, 160, 0.55),
    rgba(160, 210, 205, 0.45),
    rgba(190, 140, 120, 0.5)
  );
  animation: none;
}

html:not([data-theme="dark"]) body.landing-dark .scanner-card-inner {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.7)),
    rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1);
}

html:not([data-theme="dark"]) body.landing-dark .scanner-icon {
  color: #0b5f78;
}

html:not([data-theme="dark"]) body.landing-dark .scanner-input {
  color: #1e293b;
}

html:not([data-theme="dark"]) body.landing-dark .scanner-input::placeholder {
  color: #94a3b8;
}

html:not([data-theme="dark"]) body.landing-dark .btn-scan-now {
  color: #ffffff;
  background: linear-gradient(105deg, #0b5f78 0%, #0d9488 55%, #3d8aa8 100%);
  box-shadow:
    0 6px 24px rgba(11, 95, 120, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

html:not([data-theme="dark"]) body.landing-dark .btn-scan-now:hover {
  box-shadow:
    0 10px 32px rgba(11, 95, 120, 0.35),
    0 0 24px rgba(13, 148, 136, 0.15);
}

html:not([data-theme="dark"]) body.landing-dark .scanner-hint {
  color: #64748b;
}

html:not([data-theme="dark"]) body.landing-dark .btn-trial-ghost {
  color: #1e293b;
  border: 1px solid rgba(30, 41, 59, 0.12);
  background: rgba(255, 255, 255, 0.65);
}

html:not([data-theme="dark"]) body.landing-dark .btn-trial-ghost:hover {
  border-color: rgba(11, 95, 120, 0.3);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 28px rgba(30, 41, 59, 0.08);
}

html:not([data-theme="dark"]) body.landing-dark .hero-orbit {
  border-color: rgba(11, 95, 120, 0.12);
}

html:not([data-theme="dark"]) body.landing-dark .hero-glow-ring {
  background: radial-gradient(
    circle at 40% 40%,
    rgba(232, 180, 160, 0.35),
    rgba(160, 210, 205, 0.25) 45%,
    transparent 70%
  );
}

html:not([data-theme="dark"]) body.landing-dark .hero-image-frame {
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 0 0 1px rgba(30, 41, 59, 0.06),
    0 24px 64px rgba(30, 41, 59, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

html:not([data-theme="dark"]) body.landing-dark .hero-image-frame:hover {
  box-shadow:
    0 0 0 1px rgba(190, 140, 120, 0.3),
    0 32px 72px rgba(30, 41, 59, 0.14),
    0 0 40px rgba(160, 210, 205, 0.2);
}

html:not([data-theme="dark"]) body.landing-dark .float-card {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.78)),
    rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 20px 50px rgba(30, 41, 59, 0.1),
    0 6px 16px rgba(30, 41, 59, 0.05),
    0 0 0 1px rgba(30, 41, 59, 0.05);
}

html:not([data-theme="dark"]) body.landing-dark .float-card:hover {
  border-color: rgba(190, 140, 120, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 20px 48px rgba(30, 41, 59, 0.12),
    0 0 28px rgba(160, 210, 205, 0.18);
}

html:not([data-theme="dark"]) body.landing-dark .float-card-label {
  color: #64748b;
}

html:not([data-theme="dark"]) body.landing-dark .float-card-title {
  color: #1e293b;
}

html:not([data-theme="dark"]) body.landing-dark .float-card-meta {
  color: #0d9488;
}

html:not([data-theme="dark"]) body.landing-dark .dialect-row {
  color: #475569;
}

html:not([data-theme="dark"]) body.landing-dark .dialect-row.after {
  color: #0b5f78;
}

html:not([data-theme="dark"]) body.landing-dark .float-card-stat {
  background: linear-gradient(105deg, #0b5f78, #0d9488);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html:not([data-theme="dark"]) body.landing-dark .mini-bars span {
  background: linear-gradient(180deg, #be8c78, #0d9488);
}

html:not([data-theme="dark"]) body.landing-dark .ticker-section {
  border-block-color: rgba(30, 41, 59, 0.08);
  background: rgba(255, 255, 255, 0.55);
}

html:not([data-theme="dark"]) body.landing-dark .ticker-item {
  color: #64748b;
}

html:not([data-theme="dark"]) body.landing-dark .ticker-fade-start {
  background: linear-gradient(to left, #f9fbfc, transparent);
}

html:not([data-theme="dark"]) body.landing-dark .ticker-fade-end {
  background: linear-gradient(to right, #f9fbfc, transparent);
}

html:not([data-theme="dark"]) body.landing-dark .section-title {
  color: #1e293b;
  text-shadow: none;
}

html:not([data-theme="dark"]) body.landing-dark .section-sub {
  color: #64748b;
}

html:not([data-theme="dark"]) body.landing-dark .feature-card {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78)),
    rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 18px 48px rgba(30, 41, 59, 0.08),
    0 4px 12px rgba(30, 41, 59, 0.04),
    0 0 0 1px rgba(30, 41, 59, 0.045);
}

html:not([data-theme="dark"]) body.landing-dark .feature-card::before {
  background: radial-gradient(circle, rgba(232, 180, 160, 0.35), transparent 70%);
}

html:not([data-theme="dark"]) body.landing-dark .feature-card:hover {
  border-color: rgba(190, 140, 120, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 24px 56px rgba(30, 41, 59, 0.1),
    0 0 28px rgba(160, 210, 205, 0.15);
}

html:not([data-theme="dark"]) body.landing-dark .feature-card-accent {
  border-color: rgba(13, 148, 136, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 16px 40px rgba(30, 41, 59, 0.07),
    0 0 24px rgba(13, 148, 136, 0.08);
}

html:not([data-theme="dark"]) body.landing-dark .feature-icon {
  color: #0b5f78;
  background: rgba(11, 95, 120, 0.08);
  border: 1px solid rgba(11, 95, 120, 0.12);
  box-shadow: 0 8px 20px rgba(11, 95, 120, 0.08);
}

html:not([data-theme="dark"]) body.landing-dark .feature-card:hover .feature-icon {
  box-shadow: 0 10px 28px rgba(11, 95, 120, 0.14);
}

html:not([data-theme="dark"]) body.landing-dark .feature-card h3 {
  color: #1e293b;
}

html:not([data-theme="dark"]) body.landing-dark .feature-card p {
  color: #64748b;
}

html:not([data-theme="dark"]) body.landing-dark .feature-chip {
  color: #0f766e;
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.2);
}

html:not([data-theme="dark"]) body.landing-dark .trial-panel {
  background:
    linear-gradient(165deg, rgba(232, 180, 160, 0.18), rgba(160, 210, 205, 0.2)),
    rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 24px 64px rgba(30, 41, 59, 0.08),
    0 0 0 1px rgba(30, 41, 59, 0.05);
}

html:not([data-theme="dark"]) body.landing-dark .trial-heading {
  color: #64748b;
}

html:not([data-theme="dark"]) body.landing-dark .platform-logos span {
  color: #94a3b8;
}

html:not([data-theme="dark"]) body.landing-dark .platform-logos span:hover {
  color: #0b5f78;
  text-shadow: none;
}

html:not([data-theme="dark"]) body.landing-dark .trial-stat {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(30, 41, 59, 0.08);
}

html:not([data-theme="dark"]) body.landing-dark .trial-stat:hover {
  border-color: rgba(190, 140, 120, 0.35);
  box-shadow: 0 12px 32px rgba(30, 41, 59, 0.08);
}

html:not([data-theme="dark"]) body.landing-dark .trial-stat-num {
  color: #0b5f78;
  text-shadow: none;
}

html:not([data-theme="dark"]) body.landing-dark .trial-stat-num.teal {
  color: #0d9488;
  text-shadow: none;
}

html:not([data-theme="dark"]) body.landing-dark .trial-stat-label,
html:not([data-theme="dark"]) body.landing-dark .trial-fine {
  color: #64748b;
}

html:not([data-theme="dark"]) body.landing-dark .landing-footer {
  border-top: 1px solid rgba(30, 41, 59, 0.08);
  background: rgba(255, 255, 255, 0.65);
}

html:not([data-theme="dark"]) body.landing-dark .footer-links a {
  color: #64748b;
}

html:not([data-theme="dark"]) body.landing-dark .footer-links a:hover {
  color: #0b5f78;
  text-shadow: none;
}

html:not([data-theme="dark"]) body.landing-dark .footer-copy {
  color: #64748b;
}

html:not([data-theme="dark"]) body.landing-dark .ai-chat-bubble {
  border: 1px solid rgba(30, 41, 59, 0.08) !important;
  box-shadow: 0 16px 40px rgba(30, 41, 59, 0.1) !important;
}

html:not([data-theme="dark"]) body.landing-dark .ai-chat-bubble p {
  color: #1e293b;
}

html:not([data-theme="dark"]) body.landing-dark .ai-chat-bubble button {
  color: #0b5f78;
}

html:not([data-theme="dark"]) body.landing-dark .ai-chat-bubble button:hover {
  text-shadow: none;
}

html:not([data-theme="dark"]) body.landing-dark .ai-fab {
  border: 2px solid rgba(11, 95, 120, 0.25);
  background: linear-gradient(145deg, #0b5f78, #0d9488);
  box-shadow: 0 8px 28px rgba(11, 95, 120, 0.25);
}

html:not([data-theme="dark"]) body.landing-dark .ai-fab:hover {
  box-shadow: 0 12px 36px rgba(11, 95, 120, 0.35);
}

html:not([data-theme="dark"]) body.landing-dark .ai-fab-dot {
  border-color: #f9fbfc;
}

html:not([data-theme="dark"]) body.landing-dark .glass-panel,
html:not([data-theme="dark"]) body.landing-dark .glass-card {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.65)),
    rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 16px 48px rgba(30, 41, 59, 0.08),
    0 0 0 1px rgba(30, 41, 59, 0.05);
}

/* ── Dashboard light theme ── */
html:not([data-theme="dark"]) body {
  background: #f9fbfc;
  color: #1e293b;
}

html:not([data-theme="dark"]) .dash-panel,
html:not([data-theme="dark"]) .dash-panel.glass-card {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.65)),
    rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 14px 40px rgba(30, 41, 59, 0.07),
    0 0 0 1px rgba(30, 41, 59, 0.05) !important;
}

html:not([data-theme="dark"]) .dash-muted {
  color: #64748b !important;
}

html:not([data-theme="dark"]) .dash-title {
  color: #1e293b !important;
}

html:not([data-theme="dark"]) nav.side-nav {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(249, 251, 252, 0.88)),
    #ffffff;
  border-color: rgba(30, 41, 59, 0.08);
  box-shadow: -8px 0 32px rgba(30, 41, 59, 0.04);
}

html:not([data-theme="dark"]) .mobile-top {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(30, 41, 59, 0.08);
}

html:not([data-theme="dark"]) .mobile-drawer-panel {
  background: #ffffff;
  color: #1e293b;
}

html:not([data-theme="dark"]) .mobile-drawer-panel a {
  color: #475569;
}

html:not([data-theme="dark"]) .mobile-drawer-panel a[href="dashboard.html"] {
  color: #0b5f78;
}

html:not([data-theme="dark"]) .chart-grid line {
  stroke: rgba(30, 41, 59, 0.08);
}

html:not([data-theme="dark"]) .chart-label {
  fill: rgba(30, 41, 59, 0.45);
}

html:not([data-theme="dark"]) .chart-dot {
  stroke: #ffffff;
}

html:not([data-theme="dark"]) .chat-panel.glass-dark {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(30, 41, 59, 0.1);
  color: #1e293b;
}

html:not([data-theme="dark"]) .chat-panel .border-t {
  border-color: rgba(30, 41, 59, 0.08) !important;
}

html:not([data-theme="dark"]) #chat-input {
  background: rgba(30, 41, 59, 0.05);
  color: #1e293b;
}

html:not([data-theme="dark"]) #chat-input::placeholder {
  color: #94a3b8;
}

html:not([data-theme="dark"]) .quick-reply {
  background: rgba(11, 95, 120, 0.08) !important;
  color: #0b5f78 !important;
}

html:not([data-theme="dark"]) .chat-msg.bot {
  background: #eef6f8;
  color: #1e293b;
}

html:not([data-theme="dark"]) #chat-dot {
  border-color: #f9fbfc;
}

html:not([data-theme="dark"]) #trial-toast > div {
  background: rgba(255, 255, 255, 0.95);
  color: #1e293b;
  border-color: rgba(13, 148, 136, 0.3);
}

html:not([data-theme="dark"]) .side-nav a.dash-muted,
html:not([data-theme="dark"]) .side-nav .dash-muted {
  color: #64748b;
}

html:not([data-theme="dark"]) .side-nav a:hover {
  background: rgba(11, 95, 120, 0.06) !important;
}

/* Dashboard light: badge / accent readability */
html:not([data-theme="dark"]) .text-\[\#87d0f6\] {
  color: #0b5f78 !important;
}

html:not([data-theme="dark"]) .bg-primary\/20 {
  background-color: rgba(11, 95, 120, 0.1) !important;
}

html:not([data-theme="dark"]) #stats .bg-white\/10,
html:not([data-theme="dark"]) .dash-panel .bg-white\/10 {
  background-color: rgba(30, 41, 59, 0.08) !important;
}

html:not([data-theme="dark"]) .mobile-drawer-panel button#mobile-close,
html:not([data-theme="dark"]) #mobile-close {
  color: #64748b !important;
}

/* Onboarding light polish */
html:not([data-theme="dark"]) .api-guide {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 251, 0.9) 100%);
  border-color: rgba(30, 41, 59, 0.08);
}

/* Dashboard dark explicit (when theme dark without relying only on html.dark) */
html[data-theme="dark"] body:not(.landing-dark) {
  background: #0c1116;
  color: #e8eef2;
}

html[data-theme="dark"] .dash-panel {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(28, 36, 44, 0.72);
  border-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 40px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .dash-muted {
  color: #93a1ad;
}

html[data-theme="dark"] .dash-title {
  color: #f2f6f8;
}

html[data-theme="dark"] nav.side-nav {
  background: linear-gradient(180deg, #121920 0%, #0e141a 100%);
  border-color: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .mobile-top {
  background: rgba(12, 17, 22, 0.88);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Onboarding dark mode */
html[data-theme="dark"] body:not(.landing-dark) {
  --surface: #0c1116;
  --on-bg: #e8eef2;
  --muted: #93a1ad;
}

html[data-theme="dark"] .bg-background {
  background-color: #0c1116 !important;
}

html[data-theme="dark"] .bg-surface,
html[data-theme="dark"] .bg-surface\/80 {
  background-color: rgba(18, 25, 32, 0.88) !important;
}

html[data-theme="dark"] .bg-surface-container-lowest {
  background-color: rgba(22, 30, 38, 0.92) !important;
}

html[data-theme="dark"] .bg-surface-container-low {
  background-color: rgba(28, 36, 44, 0.9) !important;
}

html[data-theme="dark"] .text-on-background,
html[data-theme="dark"] .text-on-surface {
  color: #e8eef2 !important;
}

html[data-theme="dark"] .text-on-surface-variant {
  color: #93a1ad !important;
}

html[data-theme="dark"] .border-outline-variant\/30,
html[data-theme="dark"] .border-outline-variant\/20,
html[data-theme="dark"] .border-outline-variant\/40,
html[data-theme="dark"] .border-outline-variant\/50 {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .api-guide {
  background: linear-gradient(180deg, rgba(22, 30, 38, 0.95) 0%, rgba(16, 22, 28, 0.98) 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .api-step-content h4 {
  color: #f2f6f8;
}

html[data-theme="dark"] .api-step-content p {
  color: #93a1ad;
}

html[data-theme="dark"] .ui-mock {
  background: #1a2229;
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .ui-mock-bar {
  background: #12181e;
  border-color: rgba(255, 255, 255, 0.06);
  color: #93a1ad;
}

html[data-theme="dark"] .ui-mock-row {
  background: rgba(255, 255, 255, 0.04);
  color: #c8d2da;
}

html[data-theme="dark"] .api-key-input-wrap input {
  background: #12181e;
  border-color: rgba(255, 255, 255, 0.12);
  color: #e8eef2;
}

html[data-theme="dark"] .pdpl-box {
  background: linear-gradient(145deg, rgba(11, 95, 120, 0.12), rgba(22, 30, 38, 0.9));
  border-color: rgba(79, 168, 180, 0.25);
}

html[data-theme="dark"] .pdpl-check .pdpl-label {
  color: #e8eef2;
}

html[data-theme="dark"] .product-scan-card {
  background: rgba(22, 30, 38, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .product-scan-card.done {
  background: rgba(15, 118, 110, 0.12) !important;
  border-color: rgba(52, 211, 153, 0.35) !important;
}

/* GSAP text reveal helpers */
.gsap-reveal {
  visibility: hidden;
}

.gsap-split-line {
  display: block;
  overflow: hidden;
}

.gsap-split-line > span {
  display: inline-block;
  will-change: transform, opacity;
}

/* GSAP owns transforms on parallax cards — disable CSS float animation */
.parallax-card {
  animation: none !important;
  will-change: transform;
  transform-style: preserve-3d;
}

/* AOS premium feel tweaks */
[data-aos] {
  pointer-events: auto;
}

/* AOS / GSAP play cleanly on light cream surfaces */
html:not([data-theme="dark"]) [data-aos] {
  will-change: transform, opacity;
}

html:not([data-theme="dark"]) body.landing-dark .gsap-split-line > span.hero-title-glow,
html:not([data-theme="dark"]) body.landing-dark .hero-title .hero-title-glow {
  /* preserve gradient text during GSAP opacity/y reveals */
  -webkit-background-clip: text;
  background-clip: text;
}

html:not([data-theme="dark"]) body.landing-dark .section-title,
html:not([data-theme="dark"]) body.landing-dark .feature-card h3,
html:not([data-theme="dark"]) body.landing-dark .float-card-title,
html:not([data-theme="dark"]) body.landing-dark .trial-heading {
  color: #1e293b;
}

/* Theme transition smoothness */
html.theme-animating,
html.theme-animating body,
html.theme-animating body * {
  transition:
    background-color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.45s ease !important;
}

@media (prefers-reduced-motion: reduce) {
  .light-blob,
  .theme-toggle .material-symbols-outlined,
  html:not([data-theme="dark"]) body.landing-dark .hero-title-glow {
    animation: none !important;
  }

  html.theme-animating,
  html.theme-animating body,
  html.theme-animating body * {
    transition: none !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  html:not([data-theme="dark"]) .glass-panel,
  html:not([data-theme="dark"]) .glass-card,
  html:not([data-theme="dark"]) .glass-dark,
  html:not([data-theme="dark"]) body.landing-dark .nav-glass,
  html:not([data-theme="dark"]) body.landing-dark .scanner-card-inner,
  html:not([data-theme="dark"]) body.landing-dark .float-card,
  html:not([data-theme="dark"]) body.landing-dark .feature-card,
  html:not([data-theme="dark"]) body.landing-dark .trial-panel,
  html:not([data-theme="dark"]) .dash-panel {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #ffffff !important;
  }
}

/* ═══════════════════════════════════════════
   Platform logos · store status · services · products
   Premium multi-channel UI (Salla / Zid / Trendyol)
   ═══════════════════════════════════════════ */

.platform-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-align: center;
}

.platform-logo--sm {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.platform-logo--xs {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.35rem;
  box-shadow: none;
}

.platform-logo-text {
  font-size: 0.7rem;
  font-weight: 700;
  font-family: "IBM Plex Sans Arabic", sans-serif;
  padding: 0 2px;
}

.platform-logo--sm .platform-logo-text {
  font-size: 0.55rem;
}

.platform-logo--xs .platform-logo-text {
  font-size: 0.42rem;
  transform: scale(0.95);
}

.platform-logo--salla {
  background: linear-gradient(145deg, #004d40 0%, #00796b 100%);
}

.platform-logo--zid {
  background: linear-gradient(145deg, #1a237e 0%, #3949ab 100%);
}

.platform-logo--trendyol {
  background: linear-gradient(145deg, #f27a1a 0%, #e65100 100%);
}

.platform-logo--trendyol .platform-logo-text {
  font-size: 0.48rem;
  line-height: 1.05;
}

.platform-logo--sm.platform-logo--trendyol .platform-logo-text,
.platform-logo--xs.platform-logo--trendyol .platform-logo-text {
  font-size: 0.32rem;
}

/* Store status cards */
.store-status-card {
  padding: 0.85rem 0.9rem;
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 251, 0.75));
  border: 1px solid rgba(30, 41, 59, 0.08);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.store-status-chip {
  padding: 0.25rem 0.55rem 0.25rem 0.35rem;
  border-radius: 999px;
  background: rgba(11, 95, 120, 0.06);
  border: 1px solid rgba(11, 95, 120, 0.1);
}

.store-status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: storePulse 2s ease-in-out infinite;
}

@keyframes storePulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18); }
  50% { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.08); }
}

.topbar-store {
  border: 1px solid rgba(30, 41, 59, 0.07);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.platform-status-badge {
  border: 1px solid transparent;
}

.platform-status-badge--salla {
  background: rgba(0, 121, 107, 0.1);
  color: #00695c;
  border-color: rgba(0, 121, 107, 0.18);
}

.platform-status-badge--zid {
  background: rgba(57, 73, 171, 0.1);
  color: #283593;
  border-color: rgba(57, 73, 171, 0.18);
}

.platform-status-badge--trendyol {
  background: rgba(242, 122, 26, 0.1);
  color: #e65100;
  border-color: rgba(242, 122, 26, 0.2);
}

.platform-channel {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.55rem 0.3rem 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(30, 41, 59, 0.08);
  font-size: 11px;
  font-weight: 600;
  color: #334155;
}

.platform-channel--dim {
  opacity: 0.55;
}

.platform-channel-name {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  letter-spacing: 0;
}

/* Service status cards */
.service-card {
  display: flex;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 251, 0.88));
  border: 1px solid rgba(30, 41, 59, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  border-color: rgba(11, 95, 120, 0.15);
}

.service-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(145deg, rgba(11, 95, 120, 0.1), rgba(79, 168, 180, 0.12));
  color: #0b5f78;
}

.service-card-icon .material-symbols-outlined {
  font-size: 1.25rem;
}

.service-pill {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.06);
  color: #64748b;
  white-space: nowrap;
}

.service-pill--live {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

/* Optimized product rows */
.product-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 251, 0.9));
  border: 1px solid rgba(30, 41, 59, 0.07);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-row:hover {
  border-color: rgba(11, 95, 120, 0.14);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.product-platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem 0.2rem 0.25rem;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid transparent;
  line-height: 1;
}

.product-platform-badge--salla {
  background: rgba(0, 121, 107, 0.1);
  color: #00695c;
  border-color: rgba(0, 121, 107, 0.16);
}

.product-platform-badge--zid {
  background: rgba(57, 73, 171, 0.1);
  color: #283593;
  border-color: rgba(57, 73, 171, 0.16);
}

.product-platform-badge--trendyol {
  background: rgba(242, 122, 26, 0.1);
  color: #e65100;
  border-color: rgba(242, 122, 26, 0.18);
}

.product-status-chip {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  white-space: nowrap;
}

.product-status-chip--sync {
  background: rgba(11, 95, 120, 0.1);
  color: #0b5f78;
}

/* Light theme refinements */
html:not([data-theme="dark"]) .store-status-card {
  background: linear-gradient(145deg, #ffffff, #f8fafb);
  border-color: rgba(30, 41, 59, 0.08);
}

html:not([data-theme="dark"]) .topbar-store.glass-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 251, 0.94));
}

html:not([data-theme="dark"]) .service-card-icon {
  background: linear-gradient(145deg, rgba(11, 95, 120, 0.08), rgba(79, 168, 180, 0.1));
  color: #0b5f78;
}

html:not([data-theme="dark"]) .platform-channel {
  background: #ffffff;
  border-color: rgba(30, 41, 59, 0.08);
  color: #334155;
}

html:not([data-theme="dark"]) .product-row .bg-white\/10 {
  background-color: rgba(30, 41, 59, 0.06) !important;
}

/* Dark theme counterparts */
html[data-theme="dark"] .store-status-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .store-status-chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .platform-channel {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e8eef2;
}

html[data-theme="dark"] .service-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .service-card:hover {
  border-color: rgba(135, 208, 246, 0.25);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .service-card-icon {
  background: rgba(135, 208, 246, 0.12);
  color: #87d0f6;
}

html[data-theme="dark"] .product-row {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .product-row:hover {
  border-color: rgba(135, 208, 246, 0.2);
}

html[data-theme="dark"] .platform-status-badge--salla {
  background: rgba(0, 150, 136, 0.18);
  color: #5eead4;
  border-color: rgba(0, 150, 136, 0.3);
}

html[data-theme="dark"] .platform-status-badge--zid {
  background: rgba(92, 107, 192, 0.2);
  color: #9fa8da;
  border-color: rgba(92, 107, 192, 0.35);
}

html[data-theme="dark"] .platform-status-badge--trendyol {
  background: rgba(242, 122, 26, 0.18);
  color: #ffb74d;
  border-color: rgba(242, 122, 26, 0.35);
}

html[data-theme="dark"] .product-platform-badge--salla {
  background: rgba(0, 150, 136, 0.16);
  color: #5eead4;
  border-color: rgba(0, 150, 136, 0.28);
}

html[data-theme="dark"] .product-platform-badge--zid {
  background: rgba(92, 107, 192, 0.18);
  color: #9fa8da;
  border-color: rgba(92, 107, 192, 0.3);
}

html[data-theme="dark"] .product-platform-badge--trendyol {
  background: rgba(242, 122, 26, 0.16);
  color: #ffb74d;
  border-color: rgba(242, 122, 26, 0.3);
}

html[data-theme="dark"] .product-status-chip {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}

html[data-theme="dark"] .product-status-chip--sync {
  background: rgba(135, 208, 246, 0.14);
  color: #87d0f6;
}

html[data-theme="dark"] .service-pill--live {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
}

html[data-theme="dark"] .text-emerald-600 {
  color: #6ee7b7 !important;
}

@media (prefers-reduced-motion: reduce) {
  .store-status-dot {
    animation: none;
  }
  .service-card:hover,
  .product-row:hover {
    transform: none;
  }
}

/* ============================================================
   SANDBOX MODE — تخطّي الربط + بانر عائم متوهّج
   Light-theme first, RTL, responsive
   ============================================================ */

/* Onboarding: skip CTA */
.sandbox-skip-wrap {
  width: 100%;
}

.sandbox-skip-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.sandbox-skip-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(11, 95, 120, 0.22),
    transparent
  );
}

.sandbox-skip-divider-label {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #64748b;
  white-space: nowrap;
}

.btn-sandbox-skip {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    125deg,
    #0b5f78 0%,
    #1565c0 42%,
    #0f766e 78%,
    #4fa8b4 100%
  );
  background-size: 180% 180%;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 6px 22px rgba(11, 95, 120, 0.28),
    0 0 0 1px rgba(11, 95, 120, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease,
    background-position 0.6s ease;
  animation: sandboxBtnGlow 2.8s ease-in-out infinite;
}

.btn-sandbox-skip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 70%
  );
  transform: translateX(120%);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.btn-sandbox-skip:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  background-position: 100% 50%;
  box-shadow:
    0 10px 32px rgba(11, 95, 120, 0.38),
    0 0 28px rgba(79, 168, 180, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-sandbox-skip:hover::before {
  transform: translateX(-120%);
}

.btn-sandbox-skip:active {
  transform: translateY(0) scale(0.985);
}

.btn-sandbox-skip .sandbox-skip-icon {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.45));
}

.btn-sandbox-skip-ghost {
  color: #0b5f78;
  background: rgba(11, 95, 120, 0.06);
  border: 1px dashed rgba(11, 95, 120, 0.28);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-sandbox-skip-ghost:hover {
  background: rgba(11, 95, 120, 0.1);
  border-color: rgba(11, 95, 120, 0.45);
  box-shadow: 0 0 0 3px rgba(11, 95, 120, 0.08);
  color: #084d61;
}

@keyframes sandboxBtnGlow {
  0%,
  100% {
    box-shadow:
      0 6px 22px rgba(11, 95, 120, 0.28),
      0 0 14px rgba(79, 168, 180, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }
  50% {
    box-shadow:
      0 8px 28px rgba(11, 95, 120, 0.36),
      0 0 26px rgba(79, 168, 180, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }
}

/* Floating glowing sandbox banner */
.sandbox-banner {
  position: fixed;
  top: 0.85rem;
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  z-index: 80;
  width: min(calc(100% - 1.5rem), 34rem);
  pointer-events: none;
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

.sandbox-banner.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sandbox-banner.is-hiding {
  transform: translateX(-50%) translateY(-120%);
  opacity: 0;
  pointer-events: none;
}

.sandbox-banner-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 2.4rem 0.7rem 1rem;
  border-radius: 999px;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(232, 248, 252, 0.96) 45%,
    rgba(224, 247, 244, 0.95) 100%
  );
  border: 1px solid rgba(11, 95, 120, 0.18);
  box-shadow:
    0 10px 36px rgba(11, 95, 120, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 0 24px rgba(79, 168, 180, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  animation: sandboxBannerFloat 3.2s ease-in-out infinite;
}

.sandbox-banner-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at 30% 40%,
    rgba(79, 168, 180, 0.35) 0%,
    rgba(11, 95, 120, 0.12) 35%,
    transparent 65%
  );
  animation: sandboxGlowSpin 6s linear infinite;
  pointer-events: none;
}

.sandbox-banner-icon {
  position: relative;
  z-index: 1;
  color: #0b5f78;
  font-size: 22px;
  filter: drop-shadow(0 0 8px rgba(79, 168, 180, 0.55));
  flex-shrink: 0;
}

.sandbox-banner-text {
  position: relative;
  z-index: 1;
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #0b3d4d;
  letter-spacing: 0.01em;
  text-align: center;
  line-height: 1.35;
}

.sandbox-banner-pulse {
  position: relative;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  animation: sandboxPulseDot 1.8s ease-out infinite;
  flex-shrink: 0;
}

.sandbox-banner-dismiss {
  position: absolute;
  left: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  background: rgba(15, 23, 42, 0.04);
  border: 0;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.sandbox-banner-dismiss:hover {
  background: rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

@keyframes sandboxBannerFloat {
  0%,
  100% {
    box-shadow:
      0 10px 36px rgba(11, 95, 120, 0.14),
      0 0 0 1px rgba(255, 255, 255, 0.8) inset,
      0 0 20px rgba(79, 168, 180, 0.25);
  }
  50% {
    box-shadow:
      0 14px 42px rgba(11, 95, 120, 0.2),
      0 0 0 1px rgba(255, 255, 255, 0.9) inset,
      0 0 34px rgba(79, 168, 180, 0.45);
  }
}

@keyframes sandboxGlowSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes sandboxPulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Dashboard sandbox body offset under fixed banner */
body.sandbox-mode:not(.sandbox-banner-dismissed) #dash-main,
body.sandbox-mode:not(.sandbox-banner-dismissed) main {
  padding-top: calc(var(--container-padding, 1rem) + 3.25rem);
}

@media (min-width: 768px) {
  body.sandbox-mode:not(.sandbox-banner-dismissed) #dash-main,
  body.sandbox-mode:not(.sandbox-banner-dismissed) main {
    padding-top: calc(2rem + 2.75rem);
  }
}

/* Account for mobile sticky header under banner */
@media (max-width: 767px) {
  .sandbox-banner {
    top: 4.35rem;
    width: min(calc(100% - 1rem), 28rem);
  }

  .sandbox-banner-text {
    font-size: 12px;
  }

  .sandbox-banner-inner {
    padding: 0.62rem 2.2rem 0.62rem 0.85rem;
    gap: 0.4rem;
  }

  body.sandbox-mode:not(.sandbox-banner-dismissed) #dash-main,
  body.sandbox-mode:not(.sandbox-banner-dismissed) main {
    padding-top: 1rem;
  }
}

/* Platform logo / badge — sandbox */
.platform-logo--sandbox {
  background: linear-gradient(145deg, #0b5f78 0%, #1565c0 55%, #0f766e 100%);
}

.platform-status-badge--sandbox {
  background: rgba(11, 95, 120, 0.1);
  color: #0b5f78;
  border-color: rgba(11, 95, 120, 0.2);
}

.sandbox-trial-badge {
  background: rgba(11, 95, 120, 0.12) !important;
  color: #0b5f78 !important;
}

/* Interactive mock widgets */
.sandbox-service-card,
.sandbox-product-row {
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.sandbox-service-card:hover,
.sandbox-product-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(11, 95, 120, 0.1);
}

.sandbox-service-card:focus-visible,
.sandbox-product-row:focus-visible {
  outline: 2px solid rgba(11, 95, 120, 0.45);
  outline-offset: 2px;
}

.sandbox-card-flash {
  animation: sandboxFlash 0.4s ease;
}

@keyframes sandboxFlash {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 168, 180, 0.45);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(79, 168, 180, 0.18);
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

/* Dark theme overrides for sandbox chrome */
html[data-theme="dark"] .btn-sandbox-skip {
  box-shadow:
    0 6px 22px rgba(0, 0, 0, 0.35),
    0 0 18px rgba(79, 168, 180, 0.25);
}

html[data-theme="dark"] .btn-sandbox-skip-ghost {
  color: #87d0f6;
  background: rgba(135, 208, 246, 0.08);
  border-color: rgba(135, 208, 246, 0.28);
}

html[data-theme="dark"] .btn-sandbox-skip-ghost:hover {
  background: rgba(135, 208, 246, 0.14);
  color: #b8e6fa;
}

html[data-theme="dark"] .sandbox-skip-divider-label {
  color: rgba(232, 238, 242, 0.55);
}

html[data-theme="dark"] .sandbox-banner-inner {
  background: linear-gradient(
    120deg,
    rgba(18, 28, 36, 0.94) 0%,
    rgba(14, 42, 52, 0.96) 50%,
    rgba(12, 38, 40, 0.95) 100%
  );
  border-color: rgba(79, 168, 180, 0.28);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(79, 168, 180, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .sandbox-banner-text {
  color: #e8f6fa;
}

html[data-theme="dark"] .sandbox-banner-icon {
  color: #87d0f6;
}

html[data-theme="dark"] .sandbox-banner-dismiss {
  color: rgba(232, 238, 242, 0.65);
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .sandbox-banner-dismiss:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

html[data-theme="dark"] .platform-status-badge--sandbox {
  background: rgba(79, 168, 180, 0.14);
  color: #87d0f6;
  border-color: rgba(79, 168, 180, 0.28);
}

html[data-theme="dark"] .sandbox-trial-badge {
  background: rgba(79, 168, 180, 0.14) !important;
  color: #87d0f6 !important;
}

@media (prefers-reduced-motion: reduce) {
  .btn-sandbox-skip,
  .sandbox-banner-inner,
  .sandbox-banner-glow,
  .sandbox-banner-pulse,
  .sandbox-card-flash {
    animation: none !important;
  }

  .btn-sandbox-skip::before {
    display: none;
  }
}

/* ============================================================
   Trust surfaces - forced light field for money / OAuth / KYC
   (PR7 - see docs/design-decisions/2026-07-12-hala-theme-animation-design.md)
   ============================================================ */
.surface-trust,
[data-surface="trust"] {
  color-scheme: light;
  --bg: #f7f9fb;
  --surface: #ffffff;
  --fg: #191c1e;
  --fg-muted: #40484d;
  --brand: #0b5f78;
  --border: #c5cdd3;
  background: #ffffff;
  color: #191c1e;
  border: 1px solid #c5cdd3;
}

/* Reset common Tailwind utilities inside trust (CDN era) */
.surface-trust .bg-background,
.surface-trust .bg-surface,
.surface-trust .bg-surface-container-lowest,
.surface-trust .bg-white\/5,
.surface-trust .bg-primary\/10 {
  background-color: #f7f9fb !important;
}
.surface-trust .text-on-surface,
.surface-trust .text-on-background,
.surface-trust .dash-title {
  color: #191c1e !important;
}
.surface-trust .text-on-surface-variant,
.surface-trust .dash-muted {
  color: #40484d !important;
}
.surface-trust .border-outline-variant\/30,
.surface-trust .border-white\/10 {
  border-color: #c5cdd3 !important;
}
/* Prefer migrating these blocks to var-based classes in PR6+ */
