@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Sora:wght@400;500;600;700&display=swap");

:root {
  --color-dark-navy: #060b14;
  --color-mid-navy: #0f172a;
  --color-accent-blue: #38bdf8;
  --color-accent-lime: #60a5fa;
  --color-accent-sun: #f59e0b;
  --color-text-light: #f8fafc;
  --color-text-faded: #94a3b8;
  --color-border: rgba(148, 163, 184, 0.2);
  --color-card: rgba(10, 16, 28, 0.92);
  --color-card-strong: rgba(15, 23, 42, 0.96);
  --color-surface: rgba(10, 16, 28, 0.72);
  --color-glow: rgba(56, 189, 248, 0.3);
  --font-primary: "Manrope", "Sora", sans-serif;
  --font-display: "Sora", "Manrope", sans-serif;
}

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

body {
  font-family: var(--font-primary);
  background:
    radial-gradient(1200px 700px at 8% -10%, rgba(29, 78, 216, 0.32), transparent 60%),
    radial-gradient(920px 620px at 82% 12%, rgba(37, 99, 235, 0.22), transparent 55%),
    radial-gradient(960px 720px at 12% 85%, rgba(56, 189, 248, 0.16), transparent 60%),
    var(--color-dark-navy);
  color: var(--color-text-light);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--color-dark-navy);
  position: relative;
  overflow-x: hidden;
  z-index: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.25;
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: -30% -10%;
  background:
    radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.2), transparent 45%),
    radial-gradient(circle at 70% 20%, rgba(37, 99, 235, 0.2), transparent 50%),
    radial-gradient(circle at 50% 75%, rgba(96, 165, 250, 0.16), transparent 55%);
  opacity: 0.65;
  pointer-events: none;
  z-index: -3;
}

html {
  background: var(--color-dark-navy);
}

a {
  color: var(--color-text-light);
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
  color: var(--color-accent-blue);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 30px;
  background: linear-gradient(120deg, #1d4ed8, #38bdf8 55%, #60a5fa);
  color: #031217;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-display);
  transition: transform 0.2s ease, box-shadow 0.3s ease, filter 0.3s ease;
  text-transform: none;
  letter-spacing: 0.04em;
  text-align: center;
  border: 1px solid rgba(34, 211, 238, 0.45);
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 18px 36px rgba(34, 211, 238, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 45px rgba(34, 211, 238, 0.35);
  filter: brightness(1.04);
}

.btn-primary:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.9);
  outline-offset: 3px;
}

.btn-outline {
  display: inline-block;
  padding: 14px 30px;
  background: rgba(34, 211, 238, 0.08);
  color: var(--color-text-light);
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-display);
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease,
    border-color 0.3s ease, color 0.3s ease;
  text-transform: none;
  letter-spacing: 0.04em;
  text-align: center;
  border: 1px solid rgba(34, 211, 238, 0.5);
  cursor: pointer;
  font-size: 14px;
}

.btn-outline:hover {
  background: rgba(34, 211, 238, 0.16);
  border-color: rgba(34, 211, 238, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(34, 211, 238, 0.25);
}

.btn-outline:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.9);
  outline-offset: 3px;
}

.btn-ghost {
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 500;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.2);
  color: var(--color-text-light);
  cursor: pointer;
  font-size: 14px;
}

.btn-ghost:hover {
  border-color: rgba(34, 211, 238, 0.8);
}

.btn-ghost:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.9);
  outline-offset: 3px;
}

.main-header {
  background: rgba(6, 11, 20, 0.78);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.45);
}

.top-strip {
  background: linear-gradient(90deg, #1d4ed8, #38bdf8 55%, #60a5fa);
  color: #041319;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 6px 10px;
  overflow: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease, max-height 0.4s ease, padding 0.4s ease;
}

.top-strip-hidden {
  opacity: 0;
  transform: translateY(-100%);
  max-height: 0;
  padding: 0;
  pointer-events: none;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  gap: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 22px;
  position: relative;
  font-family: var(--font-display);
}

.logo span:last-child {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
}

.logo-mark {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.logo-mark::before {
  content: "X";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: 0.06em;
  font-family: var(--font-display);
  color: #3b82f6;
  text-shadow:
    0 0 10px rgba(59, 130, 246, 0.75),
    0 0 24px rgba(29, 78, 216, 0.45);
  animation: xf-mark-glow 3.5s ease-in-out infinite;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
  font-size: 14px;
}

.main-nav a {
  color: rgba(226, 232, 240, 0.78);
}

.main-nav a:hover {
  color: var(--color-text-light);
}

.main-nav a.nav-active {
  color: var(--color-text-light);
  border-bottom: 2px solid rgba(34, 211, 238, 0.9);
  padding-bottom: 4px;
}

.auth-buttons {
  display: flex;
  gap: 10px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(34, 211, 238, 0.4);
  background: rgba(2, 6, 23, 0.5);
  cursor: pointer;
  color: var(--color-text-light);
  flex: 0 0 auto;
}

.nav-toggle:hover {
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.28);
  border-color: rgba(34, 211, 238, 0.85);
}

.nav-toggle:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.9);
  outline-offset: 3px;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.btn-login {
  padding: 8px 22px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.35);
  color: var(--color-text-light);
  font-size: 14px;
}

.btn-register {
  padding: 8px 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.25), rgba(74, 222, 128, 0.22));
  color: var(--color-text-light);
  font-weight: 600;
  border: 1px solid rgba(34, 211, 238, 0.35);
  font-size: 14px;
}

.hero-section {
  position: relative;
  padding: 140px 0 110px;
  overflow: hidden;
  text-align: center;
  min-height: 85vh;
  isolation: isolate;
}

.xf-hero.hero-section {
  text-align: left;
}

.xf-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}

.xf-hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  align-items: center;
}

.xf-hero-metrics {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.xf-metric {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 14px 16px;
  backdrop-filter: blur(12px);
}

.xf-metric-num {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: var(--font-display);
}

.xf-metric-label {
  font-size: 12px;
  color: var(--color-text-faded);
  margin-top: 4px;
}

.xf-hero-visual {
  position: relative;
  padding: 8px;
}

.xf-hero-panel {
  position: relative;
  border-radius: 24px;
  padding: 20px;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.85), rgba(3, 7, 18, 0.95));
  border: 1px solid rgba(34, 211, 238, 0.25);
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.75);
  overflow: hidden;
}

.xf-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/frontend/assets/hero-circuit.svg");
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  pointer-events: none;
}

.xf-hero-illustration {
  width: 100%;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.55);
  background: rgba(2, 6, 23, 0.35);
  position: relative;
  z-index: 2;
}

.xf-hero-stream {
  position: absolute;
  inset: 18% 10% 18% 10%;
  width: 80%;
  height: 64%;
  opacity: 0.7;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
}

.xf-hero-orbit {
  position: absolute;
  right: 16px;
  top: 18px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.4);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.35);
  z-index: 3;
  animation: orbitPulse 4s ease-in-out infinite;
  background: rgba(2, 6, 23, 0.7);
}

.xf-hero-orbit::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(34, 211, 238, 0.85), rgba(14, 116, 144, 0.35));
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.35);
}

.xf-hero-orbit::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 12px;
  background-image: url("/frontend/assets/frosty-mark.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.9;
}

.xf-hero-signal {
  position: absolute;
  left: -12px;
  top: 18%;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.78);
  border: 1px solid rgba(34, 211, 238, 0.28);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.6);
  font-size: 12px;
  color: var(--color-text-faded);
  width: min(210px, 70%);
  z-index: 4;
  animation: floatCard 8s ease-in-out infinite;
}

.xf-hero-signal strong {
  display: block;
  color: var(--color-text-light);
  font-size: 13px;
  margin-bottom: 4px;
}

.xf-hero-signal span {
  display: block;
  font-size: 11px;
  margin-top: 2px;
}

.xf-hero-signal.secondary {
  left: auto;
  right: -16px;
  top: auto;
  bottom: 18%;
  animation-delay: 1.2s;
}

.xf-float-card {
  position: absolute;
  right: -6px;
  bottom: -14px;
  width: min(260px, 78%);
  background: rgba(2, 6, 23, 0.82);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  animation: floatCard 7s ease-in-out infinite;
}

.xf-float-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: var(--color-text-faded);
}

.xf-float-title {
  font-weight: 600;
  color: var(--color-text-light);
  margin-top: 6px;
  font-size: 13px;
}

.xf-float-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: #cffafe;
}

.xf-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
}

.xf-proof-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: var(--color-text-faded);
  font-size: 12px;
}

.xf-proof-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.95);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.6);
}

.video-background {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
  filter: contrast(1.1) saturate(1.2);
}

.video-background::before,
.video-background::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.18), transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(99, 102, 241, 0.18), transparent 50%),
    linear-gradient(120deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.6));
  opacity: 0.7;
  animation: heroDrift 18s ease-in-out infinite;
}

.video-background::after {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(30, 64, 175, 0.12)),
    radial-gradient(circle at 60% 80%, rgba(45, 212, 191, 0.16), transparent 60%);
  animation: heroPulse 14s ease-in-out infinite;
  mix-blend-mode: screen;
}

@keyframes heroDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-3%, -2%, 0) scale(1.02);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes heroPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translate3d(2%, 2%, 0) scale(1.04);
  }
}

.hero-content {
  position: relative;
  z-index: 3;
  animation: hero-rise 0.9s ease-out;
}

.welcome-text {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
  margin-bottom: 10px;
}

.main-heading {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700;
  margin-bottom: 10px;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.sub-text {
  font-size: 16px;
  color: var(--color-text-faded);
  margin-bottom: 26px;
}

.start-trading-btn {
  margin-top: 6px;
  animation: glowPulse 1.8s ease-out infinite;
}

.hero-illustration {
  display: block;
  width: min(920px, 92vw);
  max-width: 100%;
  margin: 26px auto 0;
  border-radius: 22px;
  border: 1px solid rgba(129, 140, 248, 0.38);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.65);
  background: rgba(2, 6, 23, 0.35);
}

.feature-strip {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 70px;
  padding: 24px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.35);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-faded);
}

.tutor-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

/* Hide the old Tutor cards on the landing page and use a single CTA instead. */
#tutor-preview .tutor-preview-grid {
  display: none;
}

/* On the main landing, keep the Tutor section copy-only. */
#tutor-preview .tutor-preview-grid {
  display: none;
}

.icon-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.35), rgba(56, 189, 248, 0.12));
  border: 1px solid rgba(34, 211, 238, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.section-title {
  font-size: 32px;
  margin-bottom: 10px;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.section-sub {
  font-size: 15px;
  color: var(--color-text-faded);
  max-width: 560px;
  margin: 0 auto;
}

.account-types-section {
  padding: 80px 0;
  text-align: center;
}

.account-cards-grid {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}

.account-card {
  background-color: var(--color-card);
  border-radius: 18px;
  padding: 32px 26px;
  min-height: 260px;
  text-align: left;
  max-width: 320px;
  box-shadow: 0 22px 50px rgba(2, 6, 23, 0.55);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.account-card h3 {
  margin-bottom: 6px;
}

.card-desc {
  font-size: 14px;
  color: var(--color-text-faded);
  margin-bottom: 12px;
}

.card-info {
  margin-top: 14px;
}

.info-label {
  font-size: 13px;
  color: var(--color-text-faded);
}

.info-value {
  font-size: 18px;
  font-weight: 600;
}

.raw-card-highlight {
  background: radial-gradient(circle at top, rgba(34, 211, 238, 0.2), rgba(15, 23, 42, 0.9));
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.3);
  transform: translateY(-10px);
}

.info-value-raw {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-accent-blue);
}

.steps-section {
  padding: 80px 0 100px;
  text-align: center;
}

.billing-toggle {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 18px auto 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.billing-toggle .btn-outline {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
}

.billing-toggle .btn-outline.active {
  background: var(--color-accent-blue);
  border-color: rgba(34, 211, 238, 0.5);
  color: #0b102a;
}

.steps-grid {
  display: grid;
  gap: 24px;
  justify-content: center;
  margin-top: 48px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.pricing-grid .step-card {
  text-align: left;
}

.steps-grid.pricing-grid {
  gap: 18px;
  margin-top: 34px;
}

.pricing-grid .step-card {
  padding: 18px 16px;
  border-radius: 16px;
  max-width: 270px;
}

.pricing-card .step-icon {
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(34, 211, 238, 0.3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  text-align: center;
  min-width: 120px;
}

.pricing-amount {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  align-items: center;
}

.pricing-amount-main {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
  white-space: nowrap;
}

.pricing-amount-original {
  font-size: 12px;
  color: var(--color-text-faded);
  text-decoration: line-through;
}

.pricing-amount-discount {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-accent-blue);
  background: rgba(34, 211, 238, 0.15);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 999px;
  padding: 2px 8px;
  width: fit-content;
  align-self: center;
}

.pricing-amount-original:empty,
.pricing-amount-discount:empty {
  display: none;
}

.pricing-card .card-desc {
  font-size: 12px;
  margin-top: 6px;
  margin-bottom: 8px;
}

.pricing-list {
  list-style: none;
  padding-left: 0;
  margin: 6px 0 10px;
  font-size: 12px;
  color: var(--color-text-faded);
}

.pricing-list li::before {
  content: "* ";
  color: var(--color-accent-lime);
}

.pricing-btn {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
}

.step-card {
  background-color: var(--color-card);
  border-radius: 18px;
  padding: 24px 20px;
  max-width: 320px;
  text-align: left;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.payment-method-card {
  border-radius: 16px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  background: rgba(2, 6, 23, 0.65);
  padding: 14px;
  text-align: left;
  color: var(--color-text-light);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.payment-method-card strong {
  display: block;
  font-size: 14px;
}

.payment-method-card span {
  display: block;
  font-size: 12px;
  color: var(--color-text-faded);
  margin-top: 4px;
}

.payment-method-card.active {
  border-color: rgba(34, 211, 238, 0.85);
  box-shadow: 0 16px 36px rgba(34, 211, 238, 0.3);
  transform: translateY(-2px);
}

.payment-method-card.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.2);
}

.checkout-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.checkout-price-main {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.checkout-price-original {
  font-size: 12px;
  color: var(--color-text-faded);
  text-decoration: line-through;
  margin-right: 6px;
}

.checkout-price-discount {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-accent-blue);
  background: rgba(34, 211, 238, 0.15);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 999px;
  padding: 2px 8px;
}

.checkout-price-original:empty,
.checkout-price-discount:empty {
  display: none;
}

.checkout-method-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--color-text-faded);
}

.partner-card {
  border-top: 3px solid transparent;
}

.partner-card-studio {
  border-top-color: var(--color-accent-blue);
}

.partner-card-deriv {
  border-top-color: #e11d48;
}

.partner-card-paystack {
  border-top-color: #4ade80;
}

.partner-card-ctrader {
  border-top-color: #6366f1;
}

.partner-card-nowpayments {
  border-top-color: #14b8a6;
}

.partner-card-kora {
  border-top-color: #f97316;
}

.partner-card-openai {
  border-top-color: #38bdf8;
}

.step-icon {
  font-size: 18px;
  margin-bottom: 6px;
}

.feature-item,
.account-card,
.step-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.feature-item:hover,
.account-card:hover,
.step-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.75);
}

.account-card::before,
.step-card::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: inherit;
  background: radial-gradient(
    circle at 0% 0%,
    rgba(34, 211, 238, 0.22),
    rgba(34, 211, 238, 0.08) 38%,
    transparent 70%
  );
  opacity: 0;
  transform: scale(1);
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.account-card:hover::before,
.step-card:hover::before {
  opacity: 1;
}

.hero-ticks {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.hero-tick-bar {
  width: 3px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(to top, #4ade80, #22d3ee);
  opacity: 0.8;
  animation: tickBar 1.1s ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
}

.main-footer {
  background-color: rgba(6, 11, 20, 0.92);
  padding: 50px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 13px;
  color: var(--color-text-faded);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
}

.footer-logo {
  font-weight: 700;
  font-size: 18px;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.footer-socials a {
  color: var(--color-text-faded);
  text-decoration: none;
  font-size: 12px;
}

.footer-socials a:hover {
  color: var(--color-accent-blue);
}

/* Auth pages */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background:
    radial-gradient(circle at top, rgba(34, 211, 238, 0.35), rgba(2, 6, 23, 0.95)),
    #050816;
}

.auth-card {
  background-color: var(--color-card-strong);
  padding: 40px 32px;
  border-radius: 16px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 20px 48px rgba(2, 6, 23, 0.7);
}

.auth-title {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 6px;
  font-family: var(--font-display);
}

.auth-sub {
  font-size: 14px;
  color: var(--color-text-faded);
  margin-bottom: 20px;
}

.auth-card label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.auth-card input,
.auth-card select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background-color: rgba(2, 6, 23, 0.7);
  color: var(--color-text-light);
  font-size: 14px;
  margin-bottom: 14px;
}

.auth-card input:focus,
.auth-card select:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.85);
}

.xf-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(2, 6, 23, 0.7);
  color: var(--color-text-light);
  font-size: 14px;
}

.checkout-card {
  background: rgba(6, 11, 20, 0.92);
  border: 1px solid rgba(34, 211, 238, 0.22);
  box-shadow: 0 22px 60px rgba(2, 6, 23, 0.65);
}

.checkout-field {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(30, 64, 175, 0.25);
  background: rgba(3, 7, 18, 0.8);
}

.checkout-input {
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(2, 6, 23, 0.85);
}

.step-card input,
.step-card select,
.step-card textarea {
  background: rgba(2, 6, 23, 0.7);
  color: var(--color-text-light);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 10px;
}

.step-card input:focus,
.step-card select:focus,
.step-card textarea:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.85);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.18);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--color-text-light);
  box-shadow: 0 0 0 1000px rgba(2, 6, 23, 0.9) inset;
  transition: background-color 9999s ease-in-out 0s;
}

.xf-input::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

.xf-input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.85);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.18);
}

.auth-error-text {
  margin-top: 8px;
  font-size: 13px;
  color: #ffb4c2;
}

.auth-success-text {
  margin-top: 8px;
  font-size: 13px;
  color: #86efac;
}

.auth-small {
  margin-top: 14px;
  font-size: 13px;
  color: var(--color-text-faded);
}

.auth-small a {
  color: var(--color-accent-blue);
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: transparent;
  border-bottom: none;
}

.auth-header .logo {
  font-size: 20px;
}

.xf-auth-page {
  padding: 30px 16px;
}

.xf-auth-shell {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: rgba(2, 6, 23, 0.35);
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.7);
}

.xf-auth-aside {
  position: relative;
  padding: 44px 42px;
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.45), rgba(2, 6, 23, 0.96));
}

.xf-auth-aside::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at 20% 30%, rgba(34, 211, 238, 0.25), transparent 40%),
    radial-gradient(circle at 70% 20%, rgba(59, 130, 246, 0.2), transparent 45%),
    radial-gradient(circle at 50% 70%, rgba(16, 185, 129, 0.18), transparent 50%);
  filter: blur(10px);
  opacity: 0.9;
  pointer-events: none;
}

.xf-auth-aside > * {
  position: relative;
  z-index: 1;
}

.xf-auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.88);
}

.xf-auth-title {
  margin-top: 14px;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
  font-weight: 700;
}

.xf-auth-copy {
  margin-top: 10px;
  max-width: 46ch;
  color: rgba(226, 232, 240, 0.82);
  font-size: 14px;
}

.xf-auth-list {
  margin-top: 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  max-width: 52ch;
}

.xf-auth-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(226, 232, 240, 0.88);
  font-size: 13px;
}

.xf-auth-list li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
  flex: 0 0 18px;
  margin-top: 1px;
}

.xf-auth-form {
  padding: 34px 30px;
  background: rgba(2, 6, 23, 0.65);
  backdrop-filter: blur(14px);
}

.xf-auth-card {
  max-width: none;
  width: 100%;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

@media (max-width: 900px) {
  .xf-auth-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .xf-auth-aside {
    padding: 34px 26px;
  }
  .xf-auth-form {
    padding: 28px 20px;
  }
}

/* Legal / long-form pages */

.legal-main .steps-section {
  text-align: left;
}

.legal-container {
  max-width: 900px;
  text-align: left;
}

.legal-container .section-sub {
  margin-left: 0;
  max-width: 760px;
  text-align: left;
}

.legal-container p {
  text-align: justify;
}

.legal-heading {
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 18px;
}

.legal-list {
  padding-left: 18px;
  margin: 10px 0 16px;
}

.legal-list li {
  margin-bottom: 8px;
}

/* Registration broker choice */

.step-row {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.step-card-option {
  flex: 1 1 140px;
  border-radius: 14px;
  background: #0d1740;
  border: 1px solid #283366;
  padding: 9px 11px;
  cursor: pointer;
}

.step-card-option.selected {
  border-color: var(--color-accent-blue);
  box-shadow: 0 0 0 1px rgba(75, 114, 247, 0.4);
}

.step-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-faded);
  margin-bottom: 4px;
}

.step-title {
  font-size: 14px;
  font-weight: 600;
}

.step-hint {
  font-size: 12px;
  color: var(--color-text-faded);
  margin-top: 4px;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(75, 114, 247, 0.7);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(75, 114, 247, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(75, 114, 247, 0);
  }
}

@keyframes tickGlow {
  from {
    box-shadow: 0 0 0 0 rgba(75, 114, 247, 0.6);
  }
  to {
    box-shadow: 0 0 12px 0 rgba(75, 114, 247, 0);
  }
}

/* Scroll reveal animations */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.from-left {
  transform: translateX(-26px);
}

.reveal.from-right {
  transform: translateX(26px);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.visible.from-left,
.reveal.visible.from-right {
  transform: translateX(0);
}

.btn-clicked {
  transform: scale(0.96);
  opacity: 0.9;
}

@keyframes tickBar {
  from {
    transform: scaleY(0.4);
    opacity: 0.5;
  }
  to {
    transform: scaleY(1.3);
    opacity: 1;
  }
}

.hero-chart-layer {
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  width: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.75;
}

.hero-chart-layer canvas {
  max-width: min(780px, 90vw);
  width: 100%;
}

.chat-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border-radius: 0;
  border: none;
  background: transparent;
  color: #7dd3fc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-family: var(--font-display);
  text-shadow:
    0 0 12px rgba(56, 189, 248, 0.75),
    0 0 26px rgba(59, 130, 246, 0.45);
  cursor: pointer;
  z-index: 80;
  transition: transform 0.2s ease;
  animation: xf-mark-float 4.2s ease-in-out infinite;
  box-shadow: none;
}

.chat-launcher::before {
  content: "X";
}

.chat-launcher:hover {
  transform: translateY(-2px) scale(1.04);
}

.chat-panel {
  position: fixed;
  right: 16px;
  top: 70px;
  bottom: 20px;
  width: 380px;
  max-width: 95vw;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
  border: 1px solid #e5e7eb;
  padding: 0;
  font-size: 13px;
  color: #0f172a;
  z-index: 79;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.chat-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.chat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 600;
  font-size: 13px;
}

.chat-panel-header button {
  background: transparent;
  border: none;
  color: #6b7280;
  cursor: pointer;
  font-size: 18px;
}

.chat-panel-body {
  background: #ffffff;
  color: #0f172a;
  padding: 12px 14px 10px;
  height: calc(100% - 118px);
  overflow-y: auto;
}

.chat-panel-body .chat-message {
  margin-bottom: 6px;
  display: inline-flex;
  max-width: 90%;
  padding: 6px 10px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.4;
}
.chat-home-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #6b7280;
  padding: 12px 10px;
}
.chat-home-icon {
  font-size: 32px;
  margin-bottom: 6px;
}
.chat-home-title {
  font-weight: 600;
  margin-bottom: 4px;
  color: #111827;
}
.chat-home-sub {
  font-size: 12px;
  max-width: 260px;
}
.chat-home-button {
  margin-top: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: #2563eb;
  color: #f9fafb;
  font-size: 12px;
  cursor: pointer;
}
.chat-home-button:hover {
  background: #1d4ed8;
}

@keyframes logoGlow {
  0%,
  100% {
    text-shadow: 0 0 14px rgba(96, 165, 250, 0.9);
  }
  50% {
    text-shadow: 0 0 26px rgba(96, 165, 250, 1);
  }
}
.chat-messages-view.hidden {
  display: none;
}
.chat-tabs {
  display: flex;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}
.chat-tab {
  flex: 1;
  padding: 8px 0;
  border: none;
  background: transparent;
  font-size: 12px;
  cursor: pointer;
  color: #6b7280;
}
.chat-tab.active {
  color: #2563eb;
  font-weight: 600;
}

.chat-panel-body .chat-message.user {
  background: #2563eb;
  color: #ffffff;
  margin-left: auto;
  justify-content: flex-end;
}

.chat-panel-body .chat-message.bot,
.chat-panel-body .chat-message.admin {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e5e7eb;
  margin-right: auto;
  justify-content: flex-start;
}

.chat-timestamp {
  font-size: 10px;
  color: #9ca3af;
  margin: 2px 4px 8px;
}

.chat-timestamp.user {
  text-align: right;
  margin-left: auto;
  display: block;
}

.chat-timestamp.bot,
.chat-timestamp.admin {
  text-align: left;
  margin-right: auto;
  display: block;
}

.chat-panel-body .chat-message.typing {
  background: #e5e7eb;
  color: transparent;
}

.typing-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #4b5563;
  margin-right: 3px;
  animation: typing-bounce 1s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.15s;
}
.typing-dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing-bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  40% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

.chat-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 14px;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
}

.chat-input-row input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #cbd5f5;
  font-size: 13px;
  background: #f9fafb;
  color: #0f172a;
  flex: 1 1 auto;
}

.chat-input-row button {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
}

.chat-input-row button:hover {
  background: #1d4ed8;
}

.chat-header-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #4b72f7, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.9);
}

.chat-title {
  font-size: 13px;
  font-weight: 600;
}

.chat-status-text {
  font-size: 11px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: chat-online-pulse 1.6s ease-out infinite;
}

@keyframes chat-online-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.chat-topic-btn {
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  padding: 4px 10px;
  cursor: pointer;
}

.chat-topic-btn:hover {
  background: #dbeafe;
}

/* -------------------------------------------------------------------------- */
/* Tutor page                                                                 */
/* -------------------------------------------------------------------------- */

.tutor-body {
  background: radial-gradient(circle at top, #111827, #020617);
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #020617;
  color: var(--color-text-light);
}

.tutor-main {
  padding-bottom: 60px;
}

.tutor-hero {
  padding: 80px 0 40px;
  background: radial-gradient(circle at top left, #1d4ed8 0, #020617 50%);
}

.tutor-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.3fr);
  gap: 40px;
  align-items: center;
}

.tutor-kicker {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-faded);
  margin-bottom: 8px;
}

.tutor-title {
  font-size: clamp(32px, 4vw, 40px);
  margin-bottom: 10px;
}

.tutor-sub {
  font-size: 15px;
  color: var(--color-text-faded);
  max-width: 520px;
}

.tutor-sub-small {
  font-size: 13px;
  color: var(--color-text-faded);
  margin-top: 6px;
}

.tutor-progress-panel {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 18px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(129, 140, 248, 0.4);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.7);
}

.tutor-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--color-text-faded);
  margin-bottom: 12px;
}

.tutor-progress-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.tutor-pill-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-faded);
}

.tutor-progress-count {
  font-size: 22px;
  font-weight: 600;
}

.tutor-progress-total {
  font-size: 13px;
  color: var(--color-text-faded);
  margin-left: 4px;
}

.tutor-ring-wrapper {
  position: relative;
  width: 70px;
  height: 70px;
}

.tutor-ring {
  width: 70px;
  height: 70px;
  transform: rotate(-90deg);
}

.tutor-ring-bg {
  fill: none;
  stroke: rgba(148, 163, 255, 0.2);
  stroke-width: 4;
}

.tutor-ring-fg {
  fill: none;
  stroke: #4b72f7;
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.3s ease-out;
}

.tutor-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.tutor-auth-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--color-text-faded);
}

.tutor-auth-logged-in {
  color: #a5b4fc;
}

.tutor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 2.2fr);
  gap: 32px;
  margin-top: 26px;
}

.tutor-sidebar {
  align-self: flex-start;
}

.tutor-sidebar-header h2 {
  font-size: 20px;
  margin-top: 4px;
}

.tutor-stages-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tutor-stage-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(75, 85, 99, 0.7);
}

.tutor-stage-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.tutor-stage-title {
  font-size: 13px;
  font-weight: 600;
}

.tutor-stage-meta {
  display: flex;
  gap: 6px;
}

.tutor-stage-tagline {
  font-size: 12px;
  color: var(--color-text-faded);
  margin-top: 4px;
}

.tutor-lessons-list {
  list-style: none;
  margin-top: 8px;
}

.tutor-lesson-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 7px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--color-text-light);
  font-size: 12px;
  cursor: pointer;
  text-align: left;
}

.tutor-lesson-link:hover {
  background: rgba(30, 64, 175, 0.55);
}

.tutor-lesson-link.locked {
  opacity: 0.5;
  cursor: default;
}

.tutor-lesson-link.passed {
  background: rgba(16, 185, 129, 0.15);
}

.tutor-lesson-link.active {
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.6);
}

.tutor-lesson-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(148, 163, 255, 0.85);
  color: #0b1120;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex: 0 0 22px;
}

.tutor-lesson-link.passed .tutor-lesson-dot {
  background: #22c55e;
  color: #0b1120;
}

.tutor-lesson-link.locked .tutor-lesson-dot {
  background: #6b7280;
  color: #e5e7eb;
}

.tutor-lesson-text {
  flex: 1;
}

.tutor-content {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 18px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  text-align: left;
}

.tutor-lesson-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.tutor-lesson-stage-label {
  font-size: 12px;
  color: var(--color-text-faded);
}

.tutor-lesson-title {
  font-size: 20px;
}

.tutor-lesson-tagline {
  font-size: 13px;
  color: var(--color-text-faded);
}

.tutor-lesson-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.tutor-pill-level,
.tutor-pill-time {
  font-size: 11px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 255, 0.5);
  padding: 2px 8px;
}

.tutor-status-chip {
  font-size: 11px;
  border-radius: 999px;
  padding: 2px 10px;
  border: 1px solid rgba(156, 163, 175, 0.7);
}

.tutor-status-chip.passed {
  border-color: #22c55e;
  color: #bbf7d0;
}

.tutor-status-chip.in-progress {
  border-color: #fbbf24;
  color: #fef9c3;
}

.tutor-locked-banner {
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px dashed rgba(248, 250, 252, 0.2);
  font-size: 12px;
}

.tutor-locked-banner.hidden {
  display: none;
}

#tutor-select .steps-grid {
  margin-top: 12px;
}

.tutor-chat-card.hidden {
  display: none;
}

.tutor-lesson-body p {
  font-size: 14px;
  margin-bottom: 6px;
  text-align: justify;
}

.tutor-lesson-loading {
  font-size: 13px;
  color: var(--color-text-faded);
}

.tutor-lesson-video {
  margin-bottom: 12px;
}

.tutor-video-player {
  width: 100%;
  max-height: 260px;
  border-radius: 14px;
  border: 1px solid rgba(30, 64, 175, 0.6);
  background-color: #020617;
}

/* Blog / insights */

.blog-hero {
  padding: 72px 0 40px;
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.22), rgba(2, 6, 23, 0.95));
}

.blog-news-grid,
.blog-list-layout,
.blog-post-layout {
  text-align: left;
}

.blog-news-link {
  display: inline-block;
  color: var(--color-text-light);
  font-weight: 600;
  text-decoration: none;
}

.blog-news-link:hover {
  color: var(--color-accent-blue);
}

.blog-news-summary {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-faded);
}

.blog-post-body,
.blog-post-body p,
.blog-news-summary {
  text-align: left;
}

.blog-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 32px;
  align-items: center;
}

.blog-hero-card {
  background: rgba(6, 11, 20, 0.92);
  border-radius: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.7);
}

.blog-hero-card .section-sub {
  max-width: 100%;
  margin: 0;
  text-align: left;
}

.blog-featured-image {
  width: 100%;
  height: 140px;
  border-radius: 16px;
  margin: 10px 0 12px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(34, 211, 238, 0.18);
  position: relative;
  overflow: hidden;
}

.blog-featured-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(2, 6, 23, 0.75),
    rgba(2, 6, 23, 0.18)
  );
  pointer-events: none;
}

.blog-featured-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-hero-card.blog-featured-animate {
  animation: blogFeaturedSwap 0.32s ease both;
}

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

.blog-hero-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-faded);
  margin-bottom: 6px;
}

.blog-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.blog-card {
  min-height: 160px;
}

.promo-card {
  border-color: rgba(34, 197, 94, 0.5);
}

  .blog-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
  }
  
  .blog-news-column h3 {
    font-size: 16px;
    margin-bottom: 6px;
  }
  
  .blog-news-list {
    list-style: none;
    padding-left: 0;
    margin: 12px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .blog-news-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
  }

  .blog-news-page {
    flex: 1;
    text-align: center;
    font-size: 11px;
    color: var(--color-text-faded);
  }

  .blog-news-nav {
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1;
    border-radius: 999px;
  }

.blog-news-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.blog-news-item.no-thumb {
  grid-template-columns: minmax(0, 1fr);
}

.blog-news-thumb {
  width: 74px;
  height: 74px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(34, 211, 238, 0.2);
  background-color: rgba(2, 6, 23, 0.6);
}

.blog-news-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

  .blog-news-meta {
    margin-top: 6px;
    font-size: 11px;
    color: var(--color-text-faded);
  }

.blog-news-summary {
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

  .blog-news-animate .blog-news-item {
    animation: blogNewsSlideIn 0.25s ease both;
  }

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

  .blog-category-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .blog-category-list li {
    margin: 0;
  }
  
  .category-chip {
    display: inline-block;
    padding: 6px 12px;
    margin: 4px 4px 4px 0;
    border-radius: 999px;
    border: 1px solid rgba(129, 140, 248, 0.7);
    background: transparent;
    color: var(--color-text-light);
    font-size: 12px;
    cursor: pointer;
  }
  
  .category-chip:hover {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(96, 165, 250, 0.9);
  }

  .category-chip.active {
    background: rgba(37, 99, 235, 0.4);
    border-color: rgba(96, 165, 250, 1);
  }

  .blog-list-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1.5fr);
    gap: 24px;
    margin-top: 18px;
  }

  .blog-list-sidebar h3 {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .blog-list-card {
    min-height: 0;
  }

  .blog-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
  }

  .blog-list-link {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
  }

  .blog-list-thumb {
    width: 80px;
    min-width: 80px;
    height: 80px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-color: #020617;
  }

  .blog-list-content {
    flex: 1;
  }

  .blog-list-meta {
    font-size: 11px;
    color: var(--color-text-faded);
    margin-bottom: 4px;
  }

  .blog-list-title {
    font-size: 16px;
    margin: 0 0 4px;
  }

  .blog-list-summary {
    font-size: 13px;
    color: var(--color-text-faded);
    margin: 0;
  }

.blog-post-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1.4fr);
  gap: 30px;
  align-items: start;
}

  .blog-post-meta {
    font-size: 13px;
    color: var(--color-text-faded);
    margin-bottom: 8px;
  }

.blog-post-body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--color-text-light);
}

  .blog-post-body p {
    margin-bottom: 12px;
  }

  .blog-post-hero-image {
    max-width: 100%;
    border-radius: 16px;
    margin-bottom: 16px;
  }

.tutor-quiz-section {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
}

.tutor-quiz-header h3 {
  font-size: 15px;
}

/* Generic button loading state + spinner (landing/auth/blog) */

.btn-primary.loading,
.btn-ghost.loading,
button.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.8;
}

.btn-primary.loading::after,
.btn-ghost.loading::after,
button.loading::after {
  content: "";
  border-radius: 999px;
  border: 2px solid rgba(148, 163, 184, 0.6);
  border-top-color: #e5e7eb;
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Blog footer */

.site-footer {
  background-color: rgba(6, 11, 20, 0.92);
  padding: 30px 0 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 13px;
  color: var(--color-text-faded);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.footer-bottom-left .footer-logo {
  font-size: 18px;
  font-weight: 700;
}

.footer-tagline {
  margin-top: 4px;
  max-width: 360px;
}

.footer-bottom-right {
  text-align: right;
}

.footer-bottom-right .footer-links {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-bottom: 4px;
}

.footer-bottom-right .footer-links a {
  color: var(--color-text-faded);
  text-decoration: none;
  font-size: 13px;
}

.footer-bottom-right .footer-links a:hover {
  color: var(--color-accent-blue);
}

.footer-bottom-right .footer-socials {
  justify-content: flex-end;
}

.tutor-quiz-header p {
  font-size: 12px;
  color: var(--color-text-faded);
}

.tutor-question {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.9);
}

.tutor-question h4 {
  font-size: 13px;
  margin-bottom: 6px;
}

.tutor-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tutor-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.tutor-option input {
  accent-color: #4b72f7;
}

.tutor-quiz-actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tutor-quiz-status {
  font-size: 12px;
  color: var(--color-text-faded);
  flex: 1;
}

.tutor-quiz-status.success {
  color: #4ade80;
}

.tutor-quiz-status.warn {
  color: #fde68a;
}

.tutor-quiz-status.error {
  color: #fecaca;
}

.tutor-search {
  margin: 10px 0 12px;
}

.tutor-search input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(30, 41, 59, 0.9);
  background: rgba(2, 6, 23, 0.9);
  color: var(--color-text-light);
  padding: 10px 12px;
  font-size: 13px;
}

.tutor-search input::placeholder {
  color: var(--color-text-faded);
}

.tutor-option {
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(30, 41, 59, 0.6);
  background: rgba(2, 6, 23, 0.6);
}

.tutor-option.selected {
  border-color: rgba(59, 130, 246, 0.7);
  background: rgba(59, 130, 246, 0.12);
}

.tutor-option.correct {
  border-color: rgba(34, 197, 94, 0.7);
  background: rgba(34, 197, 94, 0.12);
}

.tutor-option.incorrect {
  border-color: rgba(248, 113, 113, 0.8);
  background: rgba(248, 113, 113, 0.12);
}

.tutor-question.missed {
  border: 1px dashed rgba(251, 191, 36, 0.7);
}

.tutor-explanation {
  margin-top: 6px;
  font-size: 12px;
  color: var(--color-text-faded);
}

.tutor-explanation.hidden {
  display: none;
}

.tutor-quiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.tutor-quiz-grid {
  display: grid;
  gap: 14px;
}

.tutor-quiz-card {
  background: rgba(2, 6, 23, 0.92);
  border: 1px solid rgba(30, 41, 59, 0.9);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tutor-quiz-card h3 {
  margin: 0;
  font-size: 16px;
}

.tutor-quiz-tagline {
  margin: 0;
  font-size: 12px;
  color: var(--color-text-faded);
}

.tutor-quiz-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-text-faded);
}

.tutor-quiz-count {
  margin-left: auto;
}

.tutor-quiz-panel {
  background: rgba(2, 6, 23, 0.92);
  border: 1px solid rgba(30, 41, 59, 0.9);
  border-radius: 18px;
  padding: 18px;
}

.tutor-glossary-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tutor-glossary-section h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.tutor-glossary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tutor-glossary-card {
  background: rgba(2, 6, 23, 0.92);
  border: 1px solid rgba(30, 41, 59, 0.9);
  border-radius: 14px;
  padding: 12px;
}

.tutor-glossary-term {
  font-size: 14px;
  font-weight: 600;
}

.tutor-glossary-def {
  font-size: 12px;
  color: var(--color-text-faded);
  margin-top: 6px;
}

@media (max-width: 900px) {
  .tutor-quiz-layout {
    grid-template-columns: 1fr;
  }
}

.tutor-chat-card {
  margin-top: 16px;
  border-radius: 16px;
  background: #020617;
  border: 1px solid #111827;
  padding: 10px 10px 12px;
}

.tutor-chat-header {
  padding-bottom: 6px;
  border-bottom: 1px solid #111827;
  margin-bottom: 8px;
}

.tutor-chat-messages {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
  font-size: 12px;
}

.tutor-chat-messages .chat-message {
  margin-bottom: 6px;
  padding: 6px 8px;
  border-radius: 10px;
}

.tutor-chat-messages .chat-message.user {
  background: #2563eb;
  margin-left: auto;
}

.tutor-chat-messages .chat-message.bot {
  background: #111827;
}

.tutor-chat-input-row {
  margin-top: 8px;
  display: flex;
  gap: 6px;
}

.tutor-chat-input-row input {
  flex: 1;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid #1f2937;
  background: #020617;
  color: var(--color-text-light);
  font-size: 12px;
}

.tutor-chat-input-row button {
  border-radius: 999px;
  border: none;
  padding: 6px 14px;
  background: #2563eb;
  color: #f9fafb;
  font-size: 12px;
  cursor: pointer;
}

.tutor-chat-input-row button:hover {
  background: #1d4ed8;
}

/* Floating chat widgets for landing, tutor and blog */

.xf-landing-launcher,
.xf-tutor-launcher,
.xf-blog-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border-radius: 0;
  border: none;
  background: transparent;
  color: #7dd3fc;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  z-index: 80;
  animation: xf-mark-float 4.2s ease-in-out infinite;
}

.xf-tutor-launcher,
.xf-blog-launcher {
  color: #38bdf8;
}

.xf-landing-launcher::before,
.xf-tutor-launcher::before,
.xf-blog-launcher::before {
  content: "X";
  text-shadow:
    0 0 12px rgba(59, 130, 246, 0.75),
    0 0 26px rgba(29, 78, 216, 0.45);
}

.xf-tutor-launcher::before,
.xf-blog-launcher::before {
  text-shadow:
    0 0 12px rgba(56, 189, 248, 0.75),
    0 0 24px rgba(37, 99, 235, 0.45);
}

.xf-landing-widget,
.xf-tutor-widget,
.xf-blog-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(380px, 100% - 32px);
  max-height: 520px;
  border-radius: 22px;
  background: #020617;
  border: 1px solid #1f2937;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.9);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 79;
}

.xf-landing-widget.open,
.xf-tutor-widget.open,
.xf-blog-widget.open {
  display: flex;
}

.xf-landing-header,
.xf-tutor-header,
.xf-blog-header {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: radial-gradient(circle at top left, #4b72f733, #020617);
}

.xf-blog-header {
  background: radial-gradient(circle at top left, #0ea5e933, #020617);
}

.xf-landing-title,
.xf-tutor-title,
.xf-blog-title {
  font-size: 14px;
  font-weight: 600;
}

.xf-landing-subtitle,
.xf-tutor-subtitle,
.xf-blog-subtitle {
  font-size: 11px;
  color: #9ca3af;
}

.xf-landing-header button,
.xf-tutor-header button,
.xf-blog-header button {
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  font-size: 16px;
}

.xf-landing-header button svg,
.xf-tutor-header button svg,
.xf-blog-header button svg {
  width: 18px;
  height: 18px;
}

.xf-social-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 13px;
  color: rgba(226, 232, 240, 0.8);
}

.xf-social-strip.xf-social-strip-block {
  justify-content: center;
  margin-top: 22px;
}

.xf-social-strip a {
  color: #7dd3fc;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.xf-social-strip a:hover {
  color: #38bdf8;
}

.xf-landing-messages,
.xf-tutor-messages,
.xf-blog-messages {
  padding: 10px 12px;
  flex: 1 1 auto;
  background: #020617;
  overflow-y: auto;
  font-size: 13px;
}

.xf-landing-messages .chat-message,
.xf-tutor-messages .chat-message,
.xf-blog-messages .chat-message {
  margin-bottom: 6px;
  padding: 6px 10px;
  border-radius: 12px;
  max-width: 86%;
}

.xf-landing-messages .chat-message.user,
.xf-tutor-messages .chat-message.user,
.xf-blog-messages .chat-message.user {
  background: #2563eb;
  color: #f9fafb;
  margin-left: auto;
}

.xf-landing-messages .chat-message.bot,
.xf-tutor-messages .chat-message.bot,
.xf-blog-messages .chat-message.bot {
  background: #111827;
  color: #e5e7eb;
  margin-right: auto;
}

.xf-landing-messages .chat-message.typing,
.xf-tutor-messages .chat-message.typing,
.xf-blog-messages .chat-message.typing {
  opacity: 0.85;
}

.xf-landing-quick {
  margin-top: 8px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #1f2937;
  font-size: 11px;
}

.xf-landing-quick-label {
  margin-bottom: 4px;
  color: #9ca3af;
}

#xf-landing-select {
  width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #1f2937;
  background: #020617;
  color: #e5e7eb;
  font-size: 11px;
}

.xf-landing-input-row,
.xf-tutor-input-row,
.xf-blog-input-row {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #1f2937;
  background: #020617;
}

#xf-landing-input,
#xf-tutor-input,
#xf-blog-input {
  flex: 1 1 auto;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #1f2937;
  background: #020617;
  color: var(--color-text-light);
  font-size: 12px;
}

#xf-landing-input::placeholder,
#xf-tutor-input::placeholder,
#xf-blog-input::placeholder {
  color: var(--color-text-faded);
}

#xf-landing-send,
#xf-tutor-send,
#xf-blog-send {
  border-radius: 999px;
  border: none;
  padding: 6px 14px;
  background: #22c55e;
  color: #022c22;
  font-size: 12px;
  cursor: pointer;
}

#xf-landing-send:hover,
#xf-tutor-send:hover,
#xf-blog-send:hover {
  background: #16a34a;
}

.tutor-chat-card {
  margin-top: 16px;
  border-radius: 16px;
  background: #020617;
  border: 1px solid #111827;
  padding: 10px 10px 12px;
}

/* Shared "XF" launcher icon for floating bots */
.xf-launcher-main {
  display: none;
}

.xf-launcher-sub {
  display: none;
}

/* Ensure key landing sections are visible when footer links are clicked */
#tutor-preview,
#engine,
#faqs,
#about,
#docs,
#terms {
  display: block;
}

.tutor-chat-header {
  padding-bottom: 6px;
  border-bottom: 1px solid #111827;
  margin-bottom: 8px;
}

.tutor-chat-messages {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
  font-size: 12px;
}

.tutor-chat-messages .chat-message {
  margin-bottom: 6px;
  padding: 6px 8px;
  border-radius: 10px;
}

.tutor-chat-messages .chat-message.user {
  background: #2563eb;
  margin-left: auto;
}

.tutor-chat-messages .chat-message.bot {
  background: #111827;
}

.tutor-chat-input-row {
  margin-top: 8px;
  display: flex;
  gap: 6px;
}

.tutor-chat-input-row input {
  flex: 1;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid #1f2937;
  background: #020617;
  color: var(--color-text-light);
  font-size: 12px;
}

.tutor-chat-input-row button {
  border-radius: 999px;
  border: none;
  padding: 6px 14px;
  background: #2563eb;
  color: #f9fafb;
  font-size: 12px;
  cursor: pointer;
}

.tutor-chat-input-row button:hover {
  background: #1d4ed8;
}

/* Simple candle + support/resistance illustrations for Tutor lessons */

.candle-strip {
  display: flex;
  gap: 16px;
  margin: 12px 0 4px;
  align-items: flex-end;
}

.candle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  color: var(--color-text-faded);
}

.candle-body {
  width: 14px;
  border-radius: 4px;
  position: relative;
  animation: candlePulse 2.4s ease-in-out infinite;
}

.candle-bull {
  height: 34px;
  background: linear-gradient(to top, #22c55e, #4ade80);
}

.candle-bear {
  height: 26px;
  background: linear-gradient(to top, #f97373, #fb7185);
}

.candle-doji {
  height: 8px;
  background: linear-gradient(to right, #e5e7eb, #9ca3af);
}

.candle-wick {
  width: 2px;
  background: #e5e7eb;
}

.candle-wick-top {
  height: 10px;
}

.candle-wick-bottom {
  height: 6px;
}

.candle-label {
  margin-top: 4px;
}

@keyframes candlePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(148, 163, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(148, 163, 255, 0);
  }
}

/* Tutor preview layout on landing */

.tutor-preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: center;
}

.tutor-preview-copy {
  text-align: left;
}

.tutor-preview-list {
  margin-top: 14px;
  padding-left: 18px;
  font-size: 13px;
  color: var(--color-text-faded);
}

.tutor-preview-image {
  max-width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(30, 64, 175, 0.7);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
}

.tutor-preview-chart-card {
  border-radius: 16px;
  padding: 12px 14px 10px;
  background: radial-gradient(circle at top left, #1d4ed8, #020617);
  border: 1px solid rgba(30, 64, 175, 0.8);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.tutor-preview-pair {
  font-size: 12px;
  color: #e5e7eb;
  margin-bottom: 6px;
}

/* Shorter landing: hide deep‑dive sections on home page */

#tutor-preview,
#engine,
#faqs,
#about,
#docs,
#terms {
  display: none;
}

@media (max-width: 900px) {
  .tutor-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tutor-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .tutor-preview-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-hero-grid,
  .blog-list-layout,
  .blog-post-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-post-sidebar {
    margin-top: 20px;
  }

  .xf-hero.hero-section {
    text-align: center;
  }

  .xf-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .xf-hero-cta {
    justify-content: center;
  }

  .xf-hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .xf-hero-visual {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .xf-hero-orbit {
    display: none;
  }

  .xf-hero-stream {
    opacity: 0.45;
  }

  .xf-hero-signal,
  .xf-hero-signal.secondary {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    animation: none;
  }

  .main-nav a {
    display: block;
    padding: 10px 0;
  }

  .nav-links {
    gap: 14px;
  }

  .btn-login,
  .btn-register {
    padding: 12px 20px;
    font-size: 15px;
  }

  .xf-float-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-content {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .nav-collapsible .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-collapsible .nav-links {
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(6, 11, 20, 0.92);
    border: 1px solid rgba(34, 211, 238, 0.2);
    box-shadow: 0 28px 60px rgba(2, 6, 23, 0.7);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 60;
  }

  .nav-collapsible.nav-open .nav-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-collapsible.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.75);
    z-index: 40;
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav-collapsible .main-nav {
    width: 100%;
  }

  .nav-collapsible .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    overflow: visible;
  }

  .nav-collapsible .auth-buttons {
    width: 100%;
  }

  .nav-collapsible .auth-buttons a {
    flex: 1;
    text-align: center;
  }

  .auth-card {
    padding: 28px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes orbitPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

/* Footer anchor targets must stay visible */
#tutor-preview,
#engine,
#faqs,
#about,
#docs,
#terms {
  display: block !important;
}

@keyframes xf-mark-glow {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.45);
  }
  50% {
    text-shadow: 0 0 16px rgba(96, 165, 250, 0.75);
  }
}

@keyframes xf-mark-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}
