/* ===============================
   Theme tokens (dark = default, light = override)
================================ */
:root {
  --gw-bg-gradient: radial-gradient(
      circle at 20% 20%,
      rgba(99, 102, 241, 0.25),
      transparent 40%
    ),
    radial-gradient(circle at 80% 30%, rgba(236, 72, 153, 0.2), transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(34, 197, 94, 0.15), transparent 40%),
    #05070f;
  --gw-body-color: #e5e7eb;
  --gw-heading-color: #f9fafb;
  --gw-text-color: #9ca3af;
  --gw-muted-color: #9ca3af;
  --gw-text-secondary: #d1d5db;
  --gw-hero-overlay: linear-gradient(
    180deg,
    rgba(5, 7, 15, 0.2),
    rgba(5, 7, 15, 0.85)
  );
  --gw-glass-card-bg: rgba(var(--gw-mix-rgb), 0.08);
  --gw-glass-card-border: rgba(var(--gw-mix-rgb), 0.15);
  --gw-glass-card-text: #e5e7eb;
  --gw-glass-card-muted: #cbd5f5;
  --gw-glass-card-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  --gw-glass-card-shadow-hover: 0 30px 70px rgba(0, 0, 0, 0.55);
  --gw-nav-bg: rgba(5, 7, 15, 0.65);
  --gw-nav-border: rgba(var(--gw-mix-rgb), 0.08);
  --gw-nav-link-color: #e5e7eb;
  --gw-dropdown-bg: rgba(15, 17, 26, 0.95);
  --gw-dropdown-item-color: #e5e7eb;
  --gw-dropdown-item-hover-bg: rgba(99, 102, 241, 0.15);
  --gw-dropdown-item-hover-color: #fff;

  /* Generic "white-ish tint" used across dozens of translucent glass
     surfaces/borders/soft-text (rgba(255,255,255,X)). Swapping the base
     RGB channel per theme lets a single rgba(var(--gw-mix-rgb), X) rule
     look right on both a dark and a light page background. */
  --gw-mix-rgb: 255, 255, 255;
  --gw-body-base: #05070f;
  --gw-modal-bg: rgba(20, 20, 40, 0.92);
  --gw-option-bg: #1e2435;
}

[data-bs-theme="light"] {
  --gw-bg-gradient: radial-gradient(
      circle at 20% 20%,
      rgba(99, 102, 241, 0.12),
      transparent 40%
    ),
    radial-gradient(circle at 80% 30%, rgba(236, 72, 153, 0.1), transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(34, 197, 94, 0.08), transparent 40%),
    #f6f7fb;
  --gw-body-color: #1f2937;
  --gw-heading-color: #0f172a;
  --gw-text-color: #4b5563;
  --gw-muted-color: #6b7280;
  --gw-text-secondary: #334155;
  --gw-hero-overlay: linear-gradient(
    180deg,
    rgba(246, 247, 251, 0.2),
    rgba(246, 247, 251, 0.85)
  );
  --gw-glass-card-bg: rgba(255, 255, 255, 0.75);
  --gw-glass-card-border: rgba(15, 23, 42, 0.08);
  --gw-glass-card-text: #1f2937;
  --gw-glass-card-muted: #475569;
  --gw-glass-card-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  --gw-glass-card-shadow-hover: 0 30px 60px rgba(15, 23, 42, 0.12);
  --gw-nav-bg: rgba(255, 255, 255, 0.85);
  --gw-nav-border: rgba(15, 23, 42, 0.08);
  --gw-nav-link-color: #1f2937;
  --gw-dropdown-bg: rgba(255, 255, 255, 0.97);
  --gw-dropdown-item-color: #1f2937;
  --gw-dropdown-item-hover-bg: rgba(99, 102, 241, 0.12);
  --gw-dropdown-item-hover-color: #111827;

  /* Invert the generic white-ish tint to a dark-ish tint so every
     rgba(var(--gw-mix-rgb), X) surface/border/soft-text below reads
     correctly against the light page background. */
  --gw-mix-rgb: 15, 23, 42;
  --gw-body-base: #f6f7fb;
  --gw-modal-bg: rgba(255, 255, 255, 0.94);
  --gw-option-bg: #ffffff;
}

/* ===============================
   Global Reset & Base
================================ */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  background: var(--gw-bg-gradient);
  color: var(--gw-body-color);
  overflow-x: hidden;
  transition: background-color 0.2s ease, color 0.2s ease;
}


body {
  padding-top: 60px; 
}

/* ===============================
   Typography
================================ */
h1,
h2,
h3,
h4,
h5 {
  color: var(--gw-heading-color);
}

p {
  color: var(--gw-text-color);
}

/* Override Bootstrap's text-muted for the current theme */
.text-muted {
  color: var(--gw-muted-color) !important;
}

/* Bootstrap's .text-white forces #fff in both themes. Some pages (FAQ
   accordions on driving-theory/career-suite, mock-test timer) use it to sit
   on a glass-card that IS theme-adaptive, so it must flip with the theme
   instead of staying hardcoded white. Higher specificity than .text-white
   alone wins regardless of source order since both use !important. */
.accordion-button.text-white,
#timer-display.text-white {
  color: var(--gw-heading-color) !important;
}

.lead {
  max-width: 760px;
  margin-inline: auto;
}

/* ===============================
   Hero Section
================================ */
.hero {
  position: relative;
  padding: 6rem 1rem;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gw-hero-overlay);
  z-index: -1; /* FIX: behind content */
  pointer-events: none; /* FIX: allow clicks */
}

.hero .container {
  position: relative;
  z-index: 2;
}

/* Gradient heading text */
.gradient-text {
  background: linear-gradient(
    90deg,
    #6366f1,
    #22d3ee,
    #a855f7
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===============================
   Buttons
================================ */
.btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}

.btn-outline-light {
  border-color: rgba(var(--gw-mix-rgb), 0.3);
  color: var(--gw-heading-color);
}

.btn-outline-light:hover {
  background: rgba(var(--gw-mix-rgb), 0.08);
}

.social-auth-icon {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(var(--gw-mix-rgb), 0.24);
  border-radius: 50%;
  background: rgba(var(--gw-mix-rgb), 0.05);
  color: var(--gw-heading-color);
  font-size: 1.15rem;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.social-auth-icon:hover {
  background: rgba(var(--gw-mix-rgb), 0.12);
  border-color: rgba(var(--gw-mix-rgb), 0.5);
  transform: translateY(-1px);
}

.social-auth-icon:focus-visible {
  outline: 3px solid rgba(13, 110, 253, 0.45);
  outline-offset: 3px;
}

.social-auth-icon:disabled {
  cursor: wait;
  opacity: 0.55;
  transform: none;
}

/* ===============================
   Sections
================================ */
.section {
  padding: 6rem 1rem;
}

/* ===============================
   Glass Cards
================================ */

.glass-card,
.glass-card p,
.glass-card span {
  color: var(--gw-glass-card-text); /* readable in both themes */
}

.glass-card .text-muted {
  color: var(--gw-glass-card-muted) !important; /* soft but visible */
}

.glass-card {
  background: var(--gw-glass-card-bg);
  backdrop-filter: blur(18px);
  border-radius: 18px;
  border: 1px solid var(--gw-glass-card-border);
  box-shadow: var(--gw-glass-card-shadow);
  transition: transform 0.25s ease, background-color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease;
}


.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--gw-glass-card-shadow-hover);
}

.home-buddy-promo {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(var(--gw-mix-rgb), 0.18);
  background:
    linear-gradient(135deg, rgba(var(--gw-mix-rgb), 0.07), rgba(var(--gw-mix-rgb), 0.03)),
    radial-gradient(circle at top right, rgba(167, 139, 250, 0.22), transparent 38%),
    radial-gradient(circle at bottom left, rgba(34, 211, 238, 0.16), transparent 42%);
  box-shadow: 0 24px 70px rgba(var(--gw-mix-rgb), 0.12);
}

.home-buddy-hero {
  margin-bottom: 0.75rem;
}

.home-buddy-promo::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 27px;
  border: 1px solid rgba(var(--gw-mix-rgb), 0.08);
  pointer-events: none;
}

.home-buddy-promo__visual {
  position: relative;
  min-height: 100%;
  border-radius: 24px;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(var(--gw-mix-rgb), 0.1), rgba(var(--gw-mix-rgb), 0.03)),
    radial-gradient(circle at 30% 20%, rgba(167, 139, 250, 0.22), transparent 35%),
    radial-gradient(circle at 70% 80%, rgba(34, 211, 238, 0.16), transparent 34%);
}

.home-buddy-promo__visual img {
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  display: block;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(var(--gw-mix-rgb), 0.2);
  border: 1px solid rgba(var(--gw-mix-rgb), 0.08);
}

.home-buddy-promo__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(var(--gw-mix-rgb), 0.08);
  border: 1px solid rgba(var(--gw-mix-rgb), 0.12);
  color: var(--gw-body-color);
  font-size: 0.8rem;
  backdrop-filter: blur(12px);
}

.home-buddy-promo__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.14);
  border: 1px solid rgba(167, 139, 250, 0.22);
  color: #ddd6fe;
  font-size: 0.8rem;
}

.home-buddy-promo__list {
  display: grid;
  gap: 0.55rem;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.home-buddy-promo__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--gw-body-color);
  line-height: 1.45;
}

.home-buddy-promo__list i {
  color: #22d3ee;
  margin-top: 0.2rem;
}

[data-bs-theme="light"] .home-buddy-promo__pill {
  color: #5733ff;
}

[data-bs-theme="light"] .home-buddy-promo__list i {
  color: #017b8e;
}

.home-buddy-promo__cta .btn {
  border-radius: 999px;
}

@media (max-width: 991.98px) {
  .home-buddy-promo {
    border-radius: 24px;
  }

  .home-buddy-promo__visual {
    min-height: 0;
  }
}

@media (max-width: 575.98px) {
  .home-buddy-promo {
    border-radius: 22px;
  }

  .home-buddy-promo__badge,
  .home-buddy-promo__pill {
    width: 100%;
    justify-content: center;
  }

  .home-buddy-promo__cta .btn {
    width: 100%;
  }
}

.buddy-usage-card {
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(8, 11, 20, 0.92));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.buddy-usage-meter {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.buddy-usage-meter__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22d3ee, #a78bfa);
  transition: width 0.25s ease;
}

.buddy-locked-state {
  border-radius: 18px;
  border: 1px solid rgba(248, 113, 113, 0.2);
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.18), rgba(31, 41, 55, 0.9));
}

/* Glass card text */
.glass-text {
  color: var(--gw-body-color); /* bright readable text */
  opacity: 0.95;
}

.glass-card .lead {
  font-size: 1.25rem;
}

/* ===============================
   Header / Footer
================================ */
#header,
#footer {
  position: relative;
  z-index: 999;
}

/* ===============================
   Glass Navbar (CRITICAL FIX)
================================ */
.glass-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1050; /* FIX: above hero & overlays */
  background: var(--gw-nav-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gw-nav-border);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.navbar-brand {
  letter-spacing: 0.5px;
}

.nav-link {
  color: var(--gw-nav-link-color) !important;
  opacity: 0.85;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  opacity: 1;
}

/* ===============================
   Mobile menu toggler (theme-aware)
   The nav is hardcoded to Bootstrap's `.navbar-dark` variant (see
   partials/header.html) so its default hamburger icon is always the
   light/white SVG. That's invisible once the light theme flips
   --gw-nav-bg to a near-white background. Override the icon + border
   per theme instead of relying on Bootstrap's dark/light navbar variant.
================================ */
.navbar-toggler {
  border-color: var(--gw-nav-border);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.35);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(229, 231, 235, 0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-bs-theme='light'] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(31, 41, 55, 0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===============================
   Dropdown (FIXED)
================================ */
.dropdown-menu {
  z-index: 1100; /* FIX: clickable */
}

.glass-dropdown {
  background: var(--gw-dropdown-bg);
  backdrop-filter: blur(16px);
  border-radius: 14px;
}

.dropdown-item {
  color: var(--gw-dropdown-item-color);
}

.dropdown-item:hover {
  background: var(--gw-dropdown-item-hover-bg);
  color: var(--gw-dropdown-item-hover-color);
}

/* ===============================
   Theme toggle button
================================ */
.theme-toggle {
  color: var(--gw-nav-link-color) !important;
  border: none;
  background: transparent;
  line-height: 1;
}

.theme-toggle:hover,
.theme-toggle:focus {
  opacity: 1;
  color: var(--gw-nav-link-color) !important;
}

/* ===============================
   Animations
================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1,
.hero p,
.hero .btn {
  animation: fadeUp 0.8s ease forwards;
}

/* ===============================
   Responsive
================================ */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .section {
    padding: 4rem 1rem;
  }
}



/* ===============================
   About Page — Enhanced 2026
================================ */
.glass-text {
  color: var(--gw-body-color);
  opacity: 0.95;
}

/* Hero */
.about-hero {
  padding-top: 5rem;
  text-align: center;
}

/* Badges (pill labels) */
.about-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .35rem 1rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 500;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
}

/* Section label pill */
.about-section-label {
  display: inline-block;
  padding: .3rem 1rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #818cf8;
}

/* Stats */
.about-stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .4rem;
}

.about-stat-label {
  font-size: .82rem;
  color: var(--gw-muted-color);
  font-weight: 500;
}

/* Value cards */
.about-value-card {
  transition: transform .25s ease, box-shadow .25s ease;
}
.about-value-card:hover {
  transform: translateY(-6px);
}

.about-value-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* Timeline */
.about-timeline {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding-left: 2.5rem;
}

.about-timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg,
    rgba(99,102,241,0.6),
    rgba(34,211,238,0.4),
    rgba(168,85,247,0.4),
    rgba(74,222,128,0.6)
  );
}

.about-timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.about-timeline-dot {
  position: absolute;
  left: -2.1rem;
  top: 1.2rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid var(--gw-body-base);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
}

.about-timeline-card {
  transition: transform .2s ease;
}
.about-timeline-card:hover {
  transform: translateX(4px);
}

/* Product cards */
.about-product-card {
  transition: transform .25s ease, box-shadow .25s ease;
}
.about-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.about-product-icon {
  font-size: 2rem;
  margin-bottom: .75rem;
  display: block;
}

.about-product-link {
  color: #818cf8;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
  transition: color .15s;
}
.about-product-link:hover {
  color: #a5b4fc;
}

/* Founder cards */
.about-founder-card {
  transition: transform .25s ease;
}
.about-founder-card:hover {
  transform: translateY(-8px);
}

.about-founder-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}

.about-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--gw-mix-rgb), 0.07);
  border: 1px solid rgba(var(--gw-mix-rgb), 0.12);
  color: var(--gw-muted-color);
  font-size: 1rem;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.about-social-link:hover {
  background: rgba(99,102,241,0.2);
  color: #a5b4fc;
}

/* Marketplace spotlight */
.about-marketplace-spotlight {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(10, 14, 26, 0.94)),
    radial-gradient(circle at top right, rgba(74, 222, 128, 0.15), transparent 45%),
    radial-gradient(circle at bottom left, rgba(34, 211, 238, 0.1), transparent 45%);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 24px;
  padding: 3.5rem;
  position: relative;
  overflow: hidden;
}

.about-marketplace-spotlight::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 23px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.about-marketplace-feat {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
  color: #d1d5db;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: .5rem .75rem;
}

.about-marketplace-stat-card {
  transition: transform .2s ease;
}
.about-marketplace-stat-card:hover {
  transform: translateY(-4px);
}

/* CTA Banner */
.about-cta-banner {
  background:
    linear-gradient(135deg, rgba(99,102,241,0.18), rgba(168,85,247,0.12)),
    rgba(var(--gw-mix-rgb), 0.04);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.about-cta-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.12), transparent 70%);
  pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
  .about-marketplace-spotlight {
    padding: 2rem 1.25rem;
  }
  .about-timeline {
    padding-left: 2rem;
  }
}

/* ===============================
   Sticky Footer Fix
================================ */
html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#app {
  flex: 1;
  padding-top: 72px; /* navbar height if fixed */
}


#doc-x-upload .glass-card {
  margin-top: 2rem;
  text-align: left;
}

#doc-x-upload .form-label {
  color: var(--gw-body-color);
}

#doc-x-upload textarea,
#doc-x-upload input[type="file"] {
  background: rgba(var(--gw-mix-rgb), 0.08);
  color: var(--gw-body-color);
  border: 1px solid rgba(var(--gw-mix-rgb), 0.2);
}

#doc-x-upload button.btn-primary {
  width: 100%;
}

#doc-x-upload pre {
  color: var(--gw-heading-color);
  white-space: pre-wrap;
}

/* ===============================
   Doc-X — Chat Bubbles (legacy, kept for ask component)
================================ */
#chat-messages-legacy {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 1rem;
}
/* Old bubble styles removed — new styles live in doc-x.html */

/* ===============================
   Processing Status Indicator
================================ */
#processing-status {
  animation: fadeUp 0.3s ease;
}

/* ===============================
   Dashboard Tabs
================================ */
.nav-tabs-dark .nav-link {
  color: rgba(var(--gw-mix-rgb), 0.6);
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0.6rem 1.2rem;
  transition: color 0.2s, border-color 0.2s;
}
.nav-tabs-dark .nav-link:hover {
  color: var(--gw-heading-color);
  border-bottom-color: rgba(var(--gw-mix-rgb), 0.3);
}
.nav-tabs-dark .nav-link.active {
  color: var(--gw-heading-color);
  border-bottom-color: var(--bs-primary, #0d6efd);
  background: transparent;
}
.nav-tabs {
  border-bottom: 1px solid rgba(var(--gw-mix-rgb), 0.15);
}

/* ===============================
   Status Badges
================================ */
.status-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  white-space: nowrap;
}

/* ===============================
   FutureWise Gradient Text
================================ */
.gradient-text {
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===============================
   Drop Zone
================================ */
#drop-zone {
  transition: background 0.2s, border-color 0.2s;
}
#drop-zone.drag-over {
  background: rgba(13, 110, 253, 0.12) !important;
  border-color: #0d6efd !important;
}
#drop-zone:hover {
  background: rgba(var(--gw-mix-rgb), 0.04);
  cursor: pointer;
}

/* ===============================
   Reminder Cards
================================ */
.reminder-card {
  transition: transform 0.15s;
}
.reminder-card:hover {
  transform: translateY(-2px);
}

/* ===============================
   Doc Card Hover
================================ */
.doc-card {
  transition: transform 0.15s, box-shadow 0.15s;
}
.doc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* ===============================
   Stats Tiles
================================ */
#stats-row .glass-card {
  border: 1px solid rgba(var(--gw-mix-rgb), 0.1);
  transition: transform 0.15s;
}
#stats-row .glass-card:hover {
  transform: translateY(-2px);
}

/* ===============================
   Modal Glass Override
================================ */
.modal-content.glass-card {
  background: var(--gw-modal-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--gw-body-color);
}

/* ===============================
   Form Inputs (dark theme)
================================ */
.form-control, .form-select {
  background: rgba(var(--gw-mix-rgb), 0.07);
  color: var(--gw-body-color);
  border: 1px solid rgba(var(--gw-mix-rgb), 0.18);
}
.form-control:focus, .form-select:focus {
  background: rgba(var(--gw-mix-rgb), 0.1);
  color: var(--gw-heading-color);
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}
.form-control::placeholder {
  color: rgba(var(--gw-mix-rgb), 0.4);
}
/* Select dropdown options need a solid background so text is readable
   (native <option> elements ignore backdrop-filter/opacity, so pick a
   solid, theme-matched color rather than the translucent surfaces used
   elsewhere). */
.form-select option {
  background: var(--gw-option-bg);
  color: var(--gw-body-color);
}
/* Input group addon (icon container) should match input style */
.input-group-text {
  background: rgba(var(--gw-mix-rgb), 0.07);
  border: 1px solid rgba(var(--gw-mix-rgb), 0.18);
  color: rgba(var(--gw-mix-rgb), 0.6);
}
/* Search bar card — slightly stronger contrast */
.marketplace-search-card,
#marketplace-search-results + .card,
.container > .card {
  background: rgba(var(--gw-mix-rgb), 0.06);
  border: 1px solid rgba(var(--gw-mix-rgb), 0.12);
}
/* Ensure select arrow is visible on dark backgrounds */
.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23adb5bd' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 16px 12px;
}

/* ===============================
   Career Suite
================================ */
.career-resume-list { display: grid; gap: .5rem; }
.career-resume-item {
  width: 100%; text-align: left; border: 1px solid rgba(var(--gw-mix-rgb), .1);
  background: rgba(var(--gw-mix-rgb), .04); color: var(--gw-heading-color); border-radius: 12px; padding: .8rem 1rem;
}
.resume-select-button { width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; }
.career-resume-item small { display: block; color: rgba(var(--gw-mix-rgb), .55); margin-top: .2rem; }
.career-resume-item:hover, .career-resume-item.active { border-color: #0d6efd; background: rgba(13,110,253,.12); }
.career-tabs { gap: .4rem; }
.career-tabs .nav-link { color: rgba(var(--gw-mix-rgb), .65); border: 1px solid rgba(var(--gw-mix-rgb), .12); }
.career-tabs .nav-link.active { color: #fff; background: #0d6efd; }
.match-score {
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.65rem; font-weight: 800; color: #fff;
  background: conic-gradient(#0d6efd 0 75%, rgba(var(--gw-mix-rgb), .1) 75% 100%);
  border: 6px solid rgba(var(--gw-mix-rgb), .08); margin-bottom: 1rem;
}
.career-toast-container { z-index: 1090; margin-top: 72px; }
.resume-section { scroll-margin-top: 100px; }
.career-entry-card {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: .8rem 0; border-top: 1px solid rgba(var(--gw-mix-rgb), .1);
}
.career-entry-actions { display: flex; gap: .4rem; flex-shrink: 0; }
.career-empty-state {
  color: rgba(var(--gw-mix-rgb), .45); border: 1px dashed rgba(var(--gw-mix-rgb), .15);
  border-radius: 10px; padding: 1rem; text-align: center; margin-bottom: 0;
}
.photo-preview-wrap {
  width: 150px; height: 150px; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(var(--gw-mix-rgb), .16); background: rgba(var(--gw-mix-rgb), .04);
}
.photo-preview-wrap img { width: 100%; height: 100%; object-fit: cover; }
.photo-empty { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; color: rgba(var(--gw-mix-rgb), .45); }
.photo-empty span { font-size: .8rem; }
.skill-confirmation .evidence { transition: opacity .2s; }
.resume-template-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.resume-template-card {
  min-height: 340px;
  overflow: hidden; border: 1px solid rgba(var(--gw-mix-rgb), .13); border-radius: 16px;
  background: rgba(var(--gw-mix-rgb), .035); transition: transform .18s, border-color .18s, box-shadow .18s;
}
.resume-template-card:hover { transform: translateY(-3px); border-color: rgba(13,110,253,.8); box-shadow: 0 14px 30px rgba(0,0,0,.22); }
.resume-template-card.selected { border-color: #0d6efd; box-shadow: 0 0 0 2px rgba(13,110,253,.22); }
.template-card-preview {
  position: relative; height: 238px; margin: 14px; overflow: hidden;
  background: #d7dce3; border-radius: 9px; box-shadow: 0 10px 25px rgba(0,0,0,.28);
}
.template-mock { height: 210px; margin: 14px; padding: 20px; background: #fff; color: #172033; border-radius: 5px; }
.template-card-frame {
  width: 794px; height: 1123px; border: 0; background: white; pointer-events: none;
  transform: scale(.285); transform-origin: top left;
}
.mock-photo { float: right; width: 34px; height: 34px; border-radius: 50%; background: #dbeafe; border: 3px solid var(--mock-accent); }
.mock-header { height: 9px; width: 100%; background: var(--mock-accent); margin-bottom: 14px; }
.mock-name { height: 12px; width: 52%; background: #172033; margin-bottom: 8px; }
.mock-line { height: 5px; width: 66%; background: #cbd5e1; margin: 5px 0; }
.mock-line.wide { width: 88%; }
.mock-heading { height: 7px; width: 34%; background: var(--mock-accent); margin: 18px 0 7px; }
.mock-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mock-columns span { height: 35px; background: #e5e7eb; }
.template-mock-photo-header { background: linear-gradient(145deg, #fff 0 72%, color-mix(in srgb, var(--mock-accent) 12%, white) 72%); }
.template-mock-dense { padding: 14px; }
.template-mock-timeline { border-left: 7px solid var(--mock-accent); }
.template-section-order { display: grid; gap: .45rem; }
.template-section-row {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .55rem .7rem; border: 1px solid rgba(var(--gw-mix-rgb), .12); border-radius: 9px; background: rgba(var(--gw-mix-rgb), .035);
}
.resume-preview-frame-wrap { min-height: 640px; background: #d7dce3; padding: 12px; border-radius: 14px; overflow: hidden; }
.resume-preview-frame-wrap iframe { width: 100%; height: 616px; border: 0; background: white; border-radius: 7px; }
.resume-preview-frame-wrap.modal-preview { min-height: 75vh; }
.resume-preview-frame-wrap.modal-preview iframe { height: 72vh; }
.selected-template-summary {
  display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem;
  border: 1px solid rgba(13,110,253,.45); background: rgba(13,110,253,.1); border-radius: 12px;
}
.selected-template-summary i { font-size: 1.5rem; color: #6ea8fe; }
.selected-template-summary small { display: block; color: rgba(var(--gw-mix-rgb), .6); }
.career-autocomplete { position: relative; }
.career-autocomplete-menu {
  position: absolute; z-index: 1080; top: calc(100% + 4px); left: 0; right: 0;
  max-height: 240px; overflow-y: auto; padding: .35rem;
  background: #171b2c; border: 1px solid rgba(var(--gw-mix-rgb), .18); border-radius: 10px;
  box-shadow: 0 14px 35px rgba(0,0,0,.45);
}
.career-autocomplete-option {
  width: 100%; display: flex; justify-content: space-between; gap: .75rem;
  padding: .6rem .7rem; border: 0; border-radius: 7px; background: transparent; color: #f8fafc; text-align: left;
}
.career-autocomplete-option:hover, .career-autocomplete-option.active { background: rgba(13,110,253,.22); }
.career-autocomplete-option small { color: #93c5fd; }
.career-autocomplete-state { padding: .7rem; color: var(--gw-muted-color); font-size: .875rem; }
@media (max-width: 991px) {
  .resume-template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 576px) {
  .career-entry-card { flex-direction: column; }
  .career-entry-actions { width: 100%; justify-content: flex-end; }
  .photo-preview-wrap { margin-inline: auto; }
  .resume-template-grid { grid-template-columns: 1fr; }
  .resume-preview-frame-wrap { min-height: 520px; padding: 6px; }
  .resume-preview-frame-wrap iframe { height: 508px; }
}

/* ===============================
   Privacy Policy & Terms Pages
================================ */
.privacy-section {
  margin-bottom: 3rem;
}

.privacy-heading {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gw-heading-color);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(var(--gw-mix-rgb), 0.08);
}

.privacy-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  flex-shrink: 0;
}

.privacy-list {
  color: var(--gw-muted-color);
  line-height: 1.9;
  padding-left: 1.25rem;
  margin: 0;
}
.privacy-list li {
  margin-bottom: .2rem;
}
.privacy-list strong {
  color: var(--gw-text-secondary);
}

.privacy-link {
  color: #818cf8;
  text-decoration: none;
}
.privacy-link:hover {
  color: #a5b4fc;
  text-decoration: underline;
}

.privacy-infobox {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: .92rem;
  color: var(--gw-text-secondary);
  line-height: 1.9;
  margin-top: .75rem;
}

.privacy-toc {
  border-color: rgba(var(--gw-mix-rgb), 0.1);
}
.privacy-toc-link {
  color: var(--gw-muted-color);
  text-decoration: none;
  transition: color .15s;
}
.privacy-toc-link:hover {
  color: #a5b4fc;
}

.privacy-table {
  font-size: .88rem;
  color: var(--gw-muted-color);
  border-color: rgba(var(--gw-mix-rgb), 0.1) !important;
}
.privacy-table th {
  color: var(--gw-text-secondary);
  background: rgba(var(--gw-mix-rgb), 0.04);
  border-color: rgba(var(--gw-mix-rgb), 0.1) !important;
  font-weight: 600;
}
.privacy-table td {
  border-color: rgba(var(--gw-mix-rgb), 0.07) !important;
}

/* ===============================
   Register — account type tabs
================================ */
.reg-type-btn {
  border-radius: 10px;
  padding: .6rem 1rem;
  font-weight: 600;
  font-size: .92rem;
  border: 1px solid transparent;
  color: var(--gw-muted-color);
  background: transparent;
  transition: all .2s ease;
}
.reg-type-btn:hover {
  color: var(--gw-body-color);
  background: rgba(var(--gw-mix-rgb), 0.06);
}
.reg-type-btn.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(99,102,241,0.4);
}

/* ────────────────────────────────────────────────────────────
   Buyer Dashboard & Order Pages
──────────────────────────────────────────────────────────── */
#buyer-stats .card {
  background: rgba(var(--gw-mix-rgb), .06);
  border: 1px solid rgba(var(--gw-mix-rgb), .12);
  border-radius: 12px;
  transition: transform .15s ease;
}
#buyer-stats .card:hover { transform: translateY(-2px); }
#buyer-stats .display-6 { font-size: 2rem; }

#buyer-recent-orders .card,
#buyer-orders-list .card {
  background: rgba(var(--gw-mix-rgb), .05);
  border: 1px solid rgba(var(--gw-mix-rgb), .1);
  border-radius: 12px;
  transition: box-shadow .15s ease;
}
#buyer-recent-orders .card:hover,
#buyer-orders-list .card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}

/* ────────────────────────────────────────────────────────────
   Marketplace Search Bar
──────────────────────────────────────────────────────────── */
#marketplace-search-results {}

.card#marketplace-search-results,
.card .row { /* search filters card */ }

#search-summary {
  font-size: .85rem;
}

/* ===============================
   Light theme — inline style safety net
   Many pages set text colors via inline `style="color:#..."`
   attributes (badges, muted captions, icon accents) that were
   chosen for readability on the dark theme only (near-white/pale
   pastel tones). Since inline styles can't be reached with a class
   selector, override them by matching the literal style text and
   swap in a darker, equally-hued color that stays readable on the
   light background. Keeps the same color coding (green stays
   green, cyan stays cyan, etc.) so meaning is preserved.
================================ */
[data-bs-theme="light"] [style*="color:#10b981" i],
[data-bs-theme="light"] [style*="color: #10b981" i] {
  color: #027d55 !important;
}
[data-bs-theme="light"] [style*="color:#22c55e" i],
[data-bs-theme="light"] [style*="color: #22c55e" i] {
  color: #0d8138 !important;
}
[data-bs-theme="light"] [style*="color:#22d3ee" i],
[data-bs-theme="light"] [style*="color: #22d3ee" i] {
  color: #017b8e !important;
}
[data-bs-theme="light"] [style*="color:#38bdf8" i],
[data-bs-theme="light"] [style*="color: #38bdf8" i] {
  color: #0075a8 !important;
}
[data-bs-theme="light"] [style*="color:#4ade80" i],
[data-bs-theme="light"] [style*="color: #4ade80" i] {
  color: #0f8038 !important;
}
[data-bs-theme="light"] [style*="color:#667eea" i],
[data-bs-theme="light"] [style*="color: #667eea" i] {
  color: #4060f2 !important;
}
[data-bs-theme="light"] [style*="color:#67e8f9" i],
[data-bs-theme="light"] [style*="color: #67e8f9" i] {
  color: #007a8a !important;
}
[data-bs-theme="light"] [style*="color:#6ee7b7" i],
[data-bs-theme="light"] [style*="color: #6ee7b7" i] {
  color: #0c7e51 !important;
}
[data-bs-theme="light"] [style*="color:#7dd3fc" i],
[data-bs-theme="light"] [style*="color: #7dd3fc" i] {
  color: #0075ad !important;
}
[data-bs-theme="light"] [style*="color:#86efac" i],
[data-bs-theme="light"] [style*="color: #86efac" i] {
  color: #088234 !important;
}
[data-bs-theme="light"] [style*="color:#93c5fd" i],
[data-bs-theme="light"] [style*="color: #93c5fd" i] {
  color: #006ae0 !important;
}
[data-bs-theme="light"] [style*="color:#94a3b8" i],
[data-bs-theme="light"] [style*="color: #94a3b8" i] {
  color: #5a7191 !important;
}
[data-bs-theme="light"] [style*="color:#9ca3af" i],
[data-bs-theme="light"] [style*="color: #9ca3af" i] {
  color: #656f81 !important;
}
[data-bs-theme="light"] [style*="color:#a1a1aa" i],
[data-bs-theme="light"] [style*="color: #a1a1aa" i] {
  color: #6f6f7c !important;
}
[data-bs-theme="light"] [style*="color:#a5b4fc" i],
[data-bs-theme="light"] [style*="color: #a5b4fc" i] {
  color: #3356ff !important;
}
[data-bs-theme="light"] [style*="color:#a78bfa" i],
[data-bs-theme="light"] [style*="color: #a78bfa" i] {
  color: #6633ff !important;
}
[data-bs-theme="light"] [style*="color:#a7f3d0" i],
[data-bs-theme="light"] [style*="color: #a7f3d0" i] {
  color: #09814a !important;
}
[data-bs-theme="light"] [style*="color:#bbf7d0" i],
[data-bs-theme="light"] [style*="color: #bbf7d0" i] {
  color: #067e30 !important;
}
[data-bs-theme="light"] [style*="color:#c084fc" i],
[data-bs-theme="light"] [style*="color: #c084fc" i] {
  color: #962eff !important;
}
[data-bs-theme="light"] [style*="color:#c4b5fd" i],
[data-bs-theme="light"] [style*="color: #c4b5fd" i] {
  color: #5d33ff !important;
}
[data-bs-theme="light"] [style*="color:#c7d2fe" i],
[data-bs-theme="light"] [style*="color: #c7d2fe" i] {
  color: #335cff !important;
}
[data-bs-theme="light"] [style*="color:#cbd5e1" i],
[data-bs-theme="light"] [style*="color: #cbd5e1" i] {
  color: #517299 !important;
}
[data-bs-theme="light"] [style*="color:#cffafe" i],
[data-bs-theme="light"] [style*="color: #cffafe" i] {
  color: #007985 !important;
}
[data-bs-theme="light"] [style*="color:#d1d5db" i],
[data-bs-theme="light"] [style*="color: #d1d5db" i] {
  color: #637083 !important;
}
[data-bs-theme="light"] [style*="color:#d1fae5" i],
[data-bs-theme="light"] [style*="color: #d1fae5" i] {
  color: #058041 !important;
}
[data-bs-theme="light"] [style*="color:#d8b4fe" i],
[data-bs-theme="light"] [style*="color: #d8b4fe" i] {
  color: #9633ff !important;
}
[data-bs-theme="light"] [style*="color:#dcfce7" i],
[data-bs-theme="light"] [style*="color: #dcfce7" i] {
  color: #027d2c !important;
}
[data-bs-theme="light"] [style*="color:#ddd6fe" i],
[data-bs-theme="light"] [style*="color: #ddd6fe" i] {
  color: #5733ff !important;
}
[data-bs-theme="light"] [style*="color:#e2e8f0" i],
[data-bs-theme="light"] [style*="color: #e2e8f0" i] {
  color: #4c72a4 !important;
}
[data-bs-theme="light"] [style*="color:#e5e7eb" i],
[data-bs-theme="light"] [style*="color: #e5e7eb" i] {
  color: #646f87 !important;
}
[data-bs-theme="light"] [style*="color:#e9d5ff" i],
[data-bs-theme="light"] [style*="color: #e9d5ff" i] {
  color: #9433ff !important;
}
[data-bs-theme="light"] [style*="color:#f1f5f9" i],
[data-bs-theme="light"] [style*="color: #f1f5f9" i] {
  color: #3e73a8 !important;
}
[data-bs-theme="light"] [style*="color:#f3f4f6" i],
[data-bs-theme="light"] [style*="color: #f3f4f6" i] {
  color: #626f89 !important;
}
[data-bs-theme="light"] [style*="color:#f59e0b" i],
[data-bs-theme="light"] [style*="color: #f59e0b" i] {
  color: #9e6300 !important;
}
[data-bs-theme="light"] [style*="color:#f87171" i],
[data-bs-theme="light"] [style*="color: #f87171" i] {
  color: #e00000 !important;
}
[data-bs-theme="light"] [style*="color:#f8fafc" i],
[data-bs-theme="light"] [style*="color: #f8fafc" i] {
  color: #3e73a8 !important;
}
[data-bs-theme="light"] [style*="color:#f9a8d4" i],
[data-bs-theme="light"] [style*="color: #f9a8d4" i] {
  color: #d60074 !important;
}
[data-bs-theme="light"] [style*="color:#facc15" i],
[data-bs-theme="light"] [style*="color: #facc15" i] {
  color: #856a00 !important;
}
[data-bs-theme="light"] [style*="color:#fbbf24" i],
[data-bs-theme="light"] [style*="color: #fbbf24" i] {
  color: #8f6700 !important;
}
[data-bs-theme="light"] [style*="color:#fca5a5" i],
[data-bs-theme="light"] [style*="color: #fca5a5" i] {
  color: #e00000 !important;
}
[data-bs-theme="light"] [style*="color:#fcd34d" i],
[data-bs-theme="light"] [style*="color: #fcd34d" i] {
  color: #8a6900 !important;
}
[data-bs-theme="light"] [style*="color:#fce7f3" i],
[data-bs-theme="light"] [style*="color: #fce7f3" i] {
  color: #d50c7f !important;
}
[data-bs-theme="light"] [style*="color:#fdba74" i],
[data-bs-theme="light"] [style*="color: #fdba74" i] {
  color: #ad5900 !important;
}
[data-bs-theme="light"] [style*="color:#fde047" i],
[data-bs-theme="light"] [style*="color: #fde047" i] {
  color: #806b00 !important;
}
[data-bs-theme="light"] [style*="color:#fde68a" i],
[data-bs-theme="light"] [style*="color: #fde68a" i] {
  color: #856a00 !important;
}
[data-bs-theme="light"] [style*="color:#fecaca" i],
[data-bs-theme="light"] [style*="color: #fecaca" i] {
  color: #e00000 !important;
}
[data-bs-theme="light"] [style*="color:#fee2e2" i],
[data-bs-theme="light"] [style*="color: #fee2e2" i] {
  color: #e00000 !important;
}
[data-bs-theme="light"] [style*="color:#fef3c7" i],
[data-bs-theme="light"] [style*="color: #fef3c7" i] {
  color: #856a00 !important;
}
[data-bs-theme="light"] [style*="color:#fef9c3" i],
[data-bs-theme="light"] [style*="color: #fef9c3" i] {
  color: #7a7000 !important;
}
[data-bs-theme="light"] [style*="color:#fff" i],
[data-bs-theme="light"] [style*="color: #fff" i] {
  color: #707070 !important;
}
[data-bs-theme="light"] [style*="color:#ffffff" i],
[data-bs-theme="light"] [style*="color: #ffffff" i] {
  color: #707070 !important;
}

/* ===============================
   Light theme — exemptions for always-dark spotlight panels
   A handful of promo/summary panels (AI Buddy promo, buddy usage
   meter, buddy locked-state, marketplace spotlight) keep a fixed
   dark gradient background in BOTH themes by design (see the
   matching rules above). Their inline `style="color:#..."` text
   was tuned for that permanently-dark background, so the sitewide
   safety net above must NOT re-darken it for light mode — these
   descendant selectors have higher specificity and restore the
   original literal colors.
================================ */
[data-bs-theme="light"] .buddy-usage-card [style*="color:#cbd5e1" i],
[data-bs-theme="light"] .buddy-usage-card [style*="color: #cbd5e1" i] {
  color: #cbd5e1 !important;
}
[data-bs-theme="light"] .buddy-locked-state [style*="color:#fca5a5" i],
[data-bs-theme="light"] .buddy-locked-state [style*="color: #fca5a5" i] {
  color: #fca5a5 !important;
}
[data-bs-theme="light"] .buddy-locked-state [style*="color:#fecaca" i],
[data-bs-theme="light"] .buddy-locked-state [style*="color: #fecaca" i] {
  color: #fecaca !important;
}
[data-bs-theme="light"] .about-marketplace-spotlight [style*="color:#86efac" i],
[data-bs-theme="light"] .about-marketplace-spotlight [style*="color: #86efac" i] {
  color: #86efac !important;
}
[data-bs-theme="light"] .about-marketplace-spotlight [style*="color:#9ca3af" i],
[data-bs-theme="light"] .about-marketplace-spotlight [style*="color: #9ca3af" i] {
  color: #9ca3af !important;
}
[data-bs-theme="light"] .about-marketplace-spotlight [style*="color:#a5b4fc" i],
[data-bs-theme="light"] .about-marketplace-spotlight [style*="color: #a5b4fc" i] {
  color: #a5b4fc !important;
}
[data-bs-theme="light"] .about-marketplace-spotlight [style*="color:#67e8f9" i],
[data-bs-theme="light"] .about-marketplace-spotlight [style*="color: #67e8f9" i] {
  color: #67e8f9 !important;
}
[data-bs-theme="light"] .about-marketplace-spotlight [style*="color:#d8b4fe" i],
[data-bs-theme="light"] .about-marketplace-spotlight [style*="color: #d8b4fe" i] {
  color: #d8b4fe !important;
}
[data-bs-theme="light"] .about-marketplace-spotlight [style*="color:#e5e7eb" i],
[data-bs-theme="light"] .about-marketplace-spotlight [style*="color: #e5e7eb" i] {
  color: #e5e7eb !important;
}
[data-bs-theme="light"] .about-marketplace-spotlight [style*="color:#fff" i],
[data-bs-theme="light"] .about-marketplace-spotlight [style*="color: #fff" i] {
  color: #fff !important;
}

/* ===============================
   Light theme — pin dark-mode tokens inside always-dark panels
   Headings, body text, muted text, and glass-card text all read a
   themed CSS variable (--gw-heading-color, --gw-muted-color, etc.)
   that flips to a DARK value in light mode. That's correct for the
   page at large, but a handful of panels intentionally keep a fixed
   dark gradient background in both themes (AI Buddy promo, buddy
   usage/locked-state cards, marketplace spotlight, the "About
   GuideWisey" spotlight card, and the site footer). Inside those
   panels the page-level light-mode variable flip makes text go
   dark-on-dark and disappear. Re-declaring the dark-mode variable
   values directly on each container pins every descendant (including
   plain <h1>-<h6> tags and .text-muted, which have no inline style to
   catch) back to the readable dark-mode values regardless of the
   site-wide theme.
================================ */
.buddy-usage-card,
.buddy-locked-state,
.about-marketplace-spotlight,
.dt-quick-dialog,
footer.bg-dark {
  --gw-heading-color: #f9fafb;
  --gw-body-color: #e5e7eb;
  --gw-text-color: #9ca3af;
  --gw-muted-color: #9ca3af;
  --gw-text-secondary: #d1d5db;
  --gw-glass-card-text: #e5e7eb;
  --gw-glass-card-muted: #cbd5f5;
  --gw-mix-rgb: 255, 255, 255;
}

/* ===============================
   Light theme — extend the inline-style safety net exemptions to the
   site footer (see the variable-pinning block above for why it stays
   dark).
================================ */
[data-bs-theme="light"] footer.bg-dark [style*="color:#9ca3af" i],
[data-bs-theme="light"] footer.bg-dark [style*="color: #9ca3af" i] {
  color: #9ca3af !important;
}
[data-bs-theme="light"] .dt-quick-dialog [style*="color:#c7d2fe" i],
[data-bs-theme="light"] .dt-quick-dialog [style*="color: #c7d2fe" i] {
  color: #c7d2fe !important;
}
[data-bs-theme="light"] .dt-quick-dialog [style*="color:#a7f3d0" i],
[data-bs-theme="light"] .dt-quick-dialog [style*="color: #a7f3d0" i] {
  color: #a7f3d0 !important;
}
