/* ValuePeak theme toggle — bright (light) vs dark */

html[data-vp-theme="light"] body {
  color: #1c1f26 !important;
  background: #f3f5f8 !important;
}

html[data-vp-theme="light"] #app {
  background: #f3f5f8;
}

/* Core dark surfaces → light */
html[data-vp-theme="light"] .bg-black,
html[data-vp-theme="light"] .navbar-modern,
html[data-vp-theme="light"] .starting-page,
html[data-vp-theme="light"] .vp-profile-sheet,
html[data-vp-theme="light"] [class*="min-h-screen"].bg-black {
  background-color: #f3f5f8 !important;
  color: #1c1f26 !important;
}

html[data-vp-theme="light"] .navbar-modern {
  background: #ffffff !important;
  border-bottom-color: #e2e6ee !important;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.06);
}

html[data-vp-theme="light"] .bg-gray-900,
html[data-vp-theme="light"] .bg-gray-800,
html[data-vp-theme="light"] .bg-\[\#1e1e1e\],
html[data-vp-theme="light"] .bg-\[\#1a1f2e\],
html[data-vp-theme="light"] .bg-\[\#2a2a2a\],
html[data-vp-theme="light"] .bg-\[\#141414\] {
  background-color: #ffffff !important;
}

html[data-vp-theme="light"] .from-gray-900,
html[data-vp-theme="light"] .from-gray-800,
html[data-vp-theme="light"] .to-gray-800,
html[data-vp-theme="light"] .to-black,
html[data-vp-theme="light"] .to-gray-900,
html[data-vp-theme="light"] .from-slate-700,
html[data-vp-theme="light"] .to-slate-800,
html[data-vp-theme="light"] .from-gray-800\/30,
html[data-vp-theme="light"] .via-gray-700\/30,
html[data-vp-theme="light"] .to-gray-800\/30 {
  --tw-gradient-from: #ffffff !important;
  --tw-gradient-to: #f0f2f6 !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

html[data-vp-theme="light"] .bg-gradient-to-br.from-white\/10,
html[data-vp-theme="light"] .bg-gradient-to-br.from-gray-900,
html[data-vp-theme="light"] .bg-gradient-to-b.from-gray-900,
html[data-vp-theme="light"] .bg-gradient-to-r.from-gray-800 {
  background: #ffffff !important;
}

html[data-vp-theme="light"] .text-white {
  color: #1c1f26 !important;
}

html[data-vp-theme="light"] .text-gray-300,
html[data-vp-theme="light"] .text-gray-400,
html[data-vp-theme="light"] .text-\[\#888\] {
  color: #5b6472 !important;
}

html[data-vp-theme="light"] .text-gray-500,
html[data-vp-theme="light"] .text-gray-600 {
  color: #6b7280 !important;
}

html[data-vp-theme="light"] .border-gray-800,
html[data-vp-theme="light"] .border-gray-700,
html[data-vp-theme="light"] .border-gray-600,
html[data-vp-theme="light"] .border-white\/10,
html[data-vp-theme="light"] .border-white\/20,
html[data-vp-theme="light"] .border-white\/5,
html[data-vp-theme="light"] .border-white\/15,
html[data-vp-theme="light"] .border-slate-600 {
  border-color: #d8dee8 !important;
}

html[data-vp-theme="light"] .bg-black\/40,
html[data-vp-theme="light"] .bg-black\/60,
html[data-vp-theme="light"] .bg-black\/70,
html[data-vp-theme="light"] .bg-gray-800\/80,
html[data-vp-theme="light"] .bg-gray-800\/60,
html[data-vp-theme="light"] .bg-gray-800\/50,
html[data-vp-theme="light"] .bg-gray-900\/60,
html[data-vp-theme="light"] .bg-gray-900\/40,
html[data-vp-theme="light"] .bg-white\/10 {
  background-color: #eef1f6 !important;
}

html[data-vp-theme="light"] .hover\:bg-white\/20:hover {
  background-color: #e2e8f0 !important;
}

/* Register / login / home custom surfaces */
html[data-vp-theme="light"] .dark-panel {
  background: #ffffff !important;
  background-image: none !important;
  border-color: #d8dee8 !important;
  color: #1c1f26 !important;
}

html[data-vp-theme="light"] .field-input {
  color: #1c1f26 !important;
  background: #ffffff !important;
  border-color: #cfd6e2 !important;
}

html[data-vp-theme="light"] .glass-effect {
  background: #ffffff !important;
  border-color: #d8dee8 !important;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08) !important;
}

html[data-vp-theme="light"] .gradient-lime {
  background: none !important;
  -webkit-text-fill-color: var(--vp-accent-text, #4d6b00) !important;
  color: var(--vp-accent-text, #4d6b00) !important;
}

html[data-vp-theme="light"] .placeholder-gray-500::placeholder,
html[data-vp-theme="light"] .placeholder-gray-600::placeholder {
  color: #9aa3b2 !important;
}

html[data-vp-theme="light"] input,
html[data-vp-theme="light"] textarea,
html[data-vp-theme="light"] select {
  color: #1c1f26 !important;
  background-color: #ffffff !important;
  border-color: #cfd6e2 !important;
}

html[data-vp-theme="light"] .vp-profile-sheet {
  background: #ffffff !important;
  color: #1c1f26 !important;
  box-shadow: 0 12px 40px rgba(16, 24, 40, 0.14) !important;
}

html[data-vp-theme="light"] .vp-profile-sheet .rounded-lg.p-2.text-center,
html[data-vp-theme="light"] .vp-profile-sheet [class*="bg-[#2a2a2a]"] {
  background-color: #f0f2f6 !important;
}

html[data-vp-theme="light"] .fixed.inset-0.z-\[1100\] {
  background: rgba(15, 23, 42, 0.35);
}

html[data-vp-theme="light"] .menu-item:hover,
html[data-vp-theme="light"] .hover\:bg-gray-800:hover,
html[data-vp-theme="light"] .hover\:bg-gray-700:hover {
  background-color: #eef1f6 !important;
}

html[data-vp-theme="light"] .user-avatar-btn {
  background-color: #e8ecf3 !important;
}

/* Brand fill stays vivid; text/icons use a darker accent for contrast */
html[data-vp-theme="light"] {
  --bg-color: #c4e612;
  --vp-accent-text: #4d6b00;
}

/* Hero gradient titles are white→gray clipped text — force solid dark in light mode */
html[data-vp-theme="light"] .gradient-text,
html[data-vp-theme="light"] .gradient-headline,
html[data-vp-theme="light"] .hero-title,
html[data-vp-theme="light"] .bg-clip-text.text-transparent,
html[data-vp-theme="light"] [class*="bg-clip-text"][class*="text-transparent"] {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #0f172a !important;
  color: #0f172a !important;
}

/* Accent-colored copy/icons (username, wallet figures, menu icons, feature titles) */
html[data-vp-theme="light"] .text-\[var\(--bg-color\)\],
html[data-vp-theme="light"] [class*="text-[var(--bg-color)]"] {
  color: var(--vp-accent-text) !important;
}

html[data-vp-theme="light"] .text-white {
  color: #1c1f26 !important;
  --tw-text-opacity: 1 !important;
}

/* Profile sheet: hard-coded dark-mode colors */
html[data-vp-theme="light"] .vp-profile-sheet .vp-profile-score-label,
html[data-vp-theme="light"] .vp-profile-sheet .vp-profile-pct {
  color: #1c1f26 !important;
}

html[data-vp-theme="light"] .vp-profile-sheet .vp-profile-vip-label,
html[data-vp-theme="light"] .vp-profile-sheet .vp-theme-menu-ico {
  color: var(--vp-accent-text) !important;
}

html[data-vp-theme="light"] .vp-profile-sheet .vp-profile-bar {
  background: #d8dee8 !important;
}

html[data-vp-theme="light"] .vp-profile-sheet .menu-item .text-\[var\(--bg-color\)\],
html[data-vp-theme="light"] .vp-profile-sheet .menu-item [class*="text-[var(--bg-color)]"] {
  color: var(--vp-accent-text) !important;
}

html[data-vp-theme="light"] .vp-profile-sheet .menu-item span.text-white,
html[data-vp-theme="light"] .vp-profile-sheet .menu-item .text-white {
  color: #1c1f26 !important;
}

/* Legal / T&C / Agree CMS HTML (scoped dark colors) */
html[data-vp-theme="light"] .legal-content,
html[data-vp-theme="light"] .legal-content p,
html[data-vp-theme="light"] .legal-content li,
html[data-vp-theme="light"] .legal-content ul,
html[data-vp-theme="light"] .legal-content ol,
html[data-vp-theme="light"] .legal-content span,
html[data-vp-theme="light"] .legal-content div {
  color: #374151 !important;
}

html[data-vp-theme="light"] .legal-content strong,
html[data-vp-theme="light"] .legal-content b,
html[data-vp-theme="light"] .legal-content h1,
html[data-vp-theme="light"] .legal-content h2,
html[data-vp-theme="light"] .legal-content h3 {
  color: #0f172a !important;
}

/* Catch inline CMS colors that stay white/gray on light bg */
html[data-vp-theme="light"] .legal-content [style*="color"] {
  color: #1c1f26 !important;
}

/* Theme toggle control */
.vp-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #daff45;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.vp-theme-toggle:hover {
  transform: scale(1.05);
  background: rgba(218, 255, 69, 0.16);
}

.vp-theme-toggle:active {
  transform: scale(0.96);
}

.vp-theme-toggle svg {
  width: 16px;
  height: 16px;
  display: block;
}

html[data-vp-theme="light"] .vp-theme-toggle {
  border-color: #d0d7e3;
  background: #ffffff;
  color: #0f766e;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

@media (min-width: 768px) {
  .vp-theme-toggle {
    width: 44px;
    height: 44px;
  }
  .vp-theme-toggle svg {
    width: 20px;
    height: 20px;
  }
}

/* Profile menu theme row */
.vp-theme-menu-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px 8px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font-size: 12px;
}

.vp-theme-menu-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

html[data-vp-theme="light"] .vp-theme-menu-btn:hover {
  background: #eef1f6;
}

.vp-theme-menu-btn .vp-theme-menu-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.vp-theme-menu-btn .vp-theme-menu-ico {
  color: var(--bg-color, #daff45);
  font-size: 15px;
  line-height: 1;
}

.vp-theme-menu-btn .vp-theme-menu-switch {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #3a3a3a;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.vp-theme-menu-btn .vp-theme-menu-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #daff45;
  transition: transform 0.2s ease;
}

html[data-vp-theme="light"] .vp-theme-menu-btn .vp-theme-menu-switch {
  background: #c4e612;
}

html[data-vp-theme="light"] .vp-theme-menu-btn .vp-theme-menu-switch::after {
  transform: translateX(16px);
  background: #111;
}

/* Accent lime on pale marketing panels is unreadable — always use dark green there */
.from-gray-100 [class*="text-[var(--bg-color)]"],
.from-gray-100 .text-\[var\(--bg-color\)\],
.to-white [class*="text-[var(--bg-color)]"],
.to-gray-50 [class*="text-[var(--bg-color)]"],
.from-white [class*="text-[var(--bg-color)]"],
.bg-white [class*="text-[var(--bg-color)]"],
.bg-gradient-to-b.from-gray-100 [class*="text-[var(--bg-color)]"],
.bg-gradient-to-br.from-gray-100 [class*="text-[var(--bg-color)]"],
.bg-gradient-to-b.from-white [class*="text-[var(--bg-color)]"] {
  color: #4d6b00 !important;
}

.from-gray-100 [class*="bg-clip-text"][class*="text-transparent"],
.to-white [class*="bg-clip-text"][class*="text-transparent"],
.from-white [class*="bg-clip-text"][class*="text-transparent"],
.bg-white [class*="bg-clip-text"][class*="text-transparent"] {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #0f172a !important;
  color: #0f172a !important;
}

/* Footer tagline + links: keep readable in light mode */
html[data-vp-theme="light"] footer .text-gray-500,
html[data-vp-theme="light"] .text-gray-500.text-\[11px\] {
  color: #5b6472 !important;
}

/* Mobile navbar: keep Start Work + theme + avatar from overflowing */
@media (max-width: 390px) {
  .navbar-modern .navbar-container {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  .navbar-modern [class*="bg-[var(--bg-color)]"] {
    padding-left: 10px !important;
    padding-right: 10px !important;
    font-size: 12px !important;
    gap: 4px !important;
  }
  .vp-theme-toggle {
    width: 30px !important;
    height: 30px !important;
  }
  .user-avatar-btn {
    width: 30px !important;
    height: 30px !important;
  }
}

/* Footer country strip: keep flags visible in light mode */
html[data-vp-theme="light"] .marquee-track img {
  opacity: 0.95 !important;
}
html[data-vp-theme="light"] .from-gray-800\/30,
html[data-vp-theme="light"] .via-gray-700\/30,
html[data-vp-theme="light"] .to-gray-800\/30 {
  background: #eef1f6 !important;
}

/* Starting page light: keep product grid cards crisp */
html[data-vp-theme="light"] .starting-page .sl-grid-cell {
  background: #fff !important;
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.08) !important;
}

/* Wheel center stays charcoal in both themes for lime contrast */
html[data-vp-theme="light"] .starting-page .sl-start-grid .sl-grid-center,
.starting-page .sl-start-grid .sl-grid-center {
  background: #141414 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 4px 18px rgba(0, 0, 0, 0.18) !important;
}

/* VIP cards — defined surfaces in light mode */
html[data-vp-theme="light"] .vip-content {
  color: #4b5563 !important;
}
html[data-vp-theme="light"] .vip-content strong {
  color: #0f172a !important;
}
html[data-vp-theme="light"] [class*="from-white/10"],
html[data-vp-theme="light"] [class*="from-white\/10"] {
  background: #ffffff !important;
  border-color: #d8dee8 !important;
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.06) !important;
}

/* Cert / legal image pages */
html[data-vp-theme="light"] .cert-content,
html[data-vp-theme="light"] .legal-content {
  color: #374151 !important;
}
html[data-vp-theme="light"] .cert-content img,
html[data-vp-theme="light"] .legal-content img {
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(16, 24, 40, 0.1);
  background: #fff;
}

/* Salary accordion cards */
html[data-vp-theme="light"] .salary-card,
html[data-vp-theme="light"] [class*="border-white/10"].rounded-2xl {
  background: #fff !important;
  border-color: #d8dee8 !important;
}

/* Navbar Start Work CTA — keep lime readable on white bar */
html[data-vp-theme="light"] .navbar-modern .start-btn,
html[data-vp-theme="light"] .navbar-modern [class*="bg-[var(--bg-color)]"] {
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

/* Soften heavy black page shells on tablet+ in light mode */
@media (min-width: 768px) {
  html[data-vp-theme="light"] .page-shell,
  html[data-vp-theme="light"] #app > div {
    background-color: #f3f5f8;
  }
}

/* FAQ / list rows */
html[data-vp-theme="light"] .faq-item,
html[data-vp-theme="light"] details,
html[data-vp-theme="light"] .rounded-xl.border {
  background: #fff !important;
  border-color: #d8dee8 !important;
}

/* Deposit / withdraw form cards */
html[data-vp-theme="light"] .rounded-2xl.border.border-gray-700,
html[data-vp-theme="light"] .rounded-2xl.border.border-gray-600 {
  background: #fff !important;
  border-color: #d8dee8 !important;
}

/* CS floating button — keep brand lime */
html[data-vp-theme="light"] .fixed.right-3.bottom-6 {
  color: #111 !important;
  box-shadow: 0 6px 20px rgba(16, 24, 40, 0.16) !important;
}

/* Reduce harsh pure-black text blocks on marketing footers */
html[data-vp-theme="light"] footer {
  background: #eef1f6 !important;
  border-top: 1px solid #d8dee8;
}
html[data-vp-theme="light"] footer a {
  color: #334155 !important;
}
html[data-vp-theme="light"] footer a:hover {
  color: var(--vp-accent-text, #4d6b00) !important;
}

/* Tablet: slightly roomier legal/cert reading column */
@media (min-width: 768px) and (max-width: 1024px) {
  .legal-content,
  .cert-content {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
  }
}
