/* ============================================
   GENOSYS EXCHANGE - THEME SYSTEM
   Dark/Light Mode CSS Variables
   ============================================ */

/* FOUC Prevention */
html:not(.theme-loaded) body {
  visibility: hidden;
}

html.theme-loaded body {
  visibility: visible;
}

/* Prompt 12: Global Fluid Typography */
html {
  font-size: clamp(16px, 4vw, 18px);
}

/* ============================================
   DARK MODE (DEFAULT)
   ============================================ */

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  /* Background Colors */
  --bg-primary: #0a0e13;
  --bg-secondary: #111418;
  --bg-tertiary: #1a1f26;
  --bg-surface: #0d1117;
  --bg-hover: #1a1f26;
  --bg-nav: #0f1420;
  --bg-card: #151b2e;

  /* Text Colors */
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-tertiary: #6e7681;
  --text-muted: #484f58;

  /* Accent Colors */
  --accent-primary: #58a6ff;
  --accent-secondary: #1f6feb;
  --accent-tertiary: #388bfd;
  --accent-brand: #3b82f6;

  /* Status Colors */
  --success: #3fb950;
  --success-hover: #2ea043;
  --error: #f85149;
  --error-hover: #da3633;
  --warning: #d29922;
  --info: #79c0ff;

  /* Trading Colors */
  --bid-green: #0ecb81;
  --ask-red: #f6465d;
  --price-positive: #10b981;
  --price-negative: #ef4444;
  --price-neutral: #8b949e;

  /* Borders */
  --border-default: #30363d;
  --border-subtle: #21262d;
  --border-muted: rgba(110, 118, 129, 0.4);
  --border-hover: #58a6ff;
  --border-brand: #3b82f6;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 30px rgba(131, 175, 240, 0.5);
  --shadow-brand-glow: 0 0 20px rgba(59, 130, 246, 0.3);

  /* Gradients */
  --gradient-primary: linear-gradient(90deg, #0a0e1a 0%, #151b2e 100%);
  --gradient-card: linear-gradient(90deg, #1a2030 0%, #151b2e 100%);
  --gradient-text: linear-gradient(90deg, #83aff0 0%, #4779c4 100%);
  --gradient-button: linear-gradient(90deg, #3b82f6 0%, #003d82 100%);

  /* Particles */
  --particles-color: #83aff0;
  --particles-line: #4779c4;

  /* Onboarding/Gradient Specs */
  --gradient-lightning: linear-gradient(90deg, #3b82f6 0%, #003d82 100%);
  --step-card-bg: rgba(255, 255, 255, 0.03);
  --step-card-border: rgba(255, 255, 255, 0.08);
  --step-label-color: rgba(255, 255, 255, 0.6);
  --step-desc-color: #FFFFFF;
  --step-line-color: rgba(255, 255, 255, 0.15);
}



/* ============================================
   LOGO STYLING
   Ensure large brand logos fit in header
   ============================================ */
.theme-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */

.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  background: var(--bg-hover);
  border-color: var(--accent-primary);
}

.theme-toggle-btn:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.theme-toggle-btn:focus:not(:focus-visible) {
  outline: none;
}

.theme-toggle-btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.theme-toggle-btn:hover svg {
  color: var(--accent-primary);
}



/* ============================================
   GRADIENT TYPOGRAPHY
   ============================================ */
.gradient-lightning {
  background: var(--gradient-lightning);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  line-height: 1.3;
}

.hero-heading {
  margin-bottom: 2.5rem !important;
  line-height: 1.2 !important;
}

.cta-gradient {
  background: var(--gradient-button) !important;
  transition: all 0.3s ease !important;
}

.cta-gradient:hover {
  transform: translateY(-4px) scale(1.05) !important;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.4) !important;
  filter: brightness(1.1);
}

.metric-card-ref {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.metric-card-ref:hover {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
  transform: translateY(-4px) scale(1.02);
}

.feature-card {
  background: #0d1117;
  border: 1px solid rgba(59, 130, 246, 0.1);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.05);
}

.feature-card:hover {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.2);
  transform: translateY(-4px) scale(1.02);
}

.icon-container-ref {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  transition: all 0.3s ease;
}

.feature-card:hover .icon-container-ref {
  background: rgba(59, 130, 246, 0.2);
  transform: scale(1.1);
}

/* ============================================
   ONBOARDING STEPS
   ============================================ */
.onboarding-steps {
  display: flex;
  justify-content: center;
  gap: 16px;
  max-width: 800px;
  margin: 40px auto 48px;
  position: relative;
  z-index: 10;
  min-height: 120px;
  /* Prevent CLS */
}

.step-card {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--step-card-bg);
  border: 1px solid var(--step-card-border);
  padding: 24px 28px;
  border-radius: 12px;
  gap: 16px;
  transition: all 0.3s ease;
  position: relative;
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(20px);
  animation: stepFadeIn 0.6s ease forwards;
}

@keyframes stepFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-1 {
  animation-delay: 0.2s;
}

.step-2 {
  animation-delay: 0.4s;
}

.step-3 {
  animation-delay: 0.6s;
}

.step-card:hover {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.2);
  transform: translateY(-4px) scale(1.02);
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 24px;
  color: white;
  flex-shrink: 0;
}

.step-1 .step-icon {
  background: linear-gradient(135deg, #00D4FF, #0066FF);
}

.step-2 .step-icon {
  background: linear-gradient(135deg, #0066FF, #6B4FFF);
}

.step-3 .step-icon {
  background: linear-gradient(135deg, #3b82f6, #003d82);
}

.step-content {
  text-align: left;
}

.step-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--step-label-color);
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--step-desc-color);
  white-space: nowrap;
  margin: 0;
}

/* Responsive Onboarding */
@media (max-width: 1024px) {
  .onboarding-steps {
    padding: 0 20px;
    gap: 12px;
  }

  .step-card {
    padding: 20px 24px;
  }
}

@media (max-width: 768px) {
  .onboarding-steps {
    flex-direction: column;
    max-width: 400px;
    margin: 32px auto 40px;
    min-height: auto;
  }

  .step-title {
    font-size: 15px;
  }
}

/* ============================================
   GLOBAL THEME TRANSITIONS
   ============================================ */

/* Theme transition animation */
.theme-transitioning * {
  transition: background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease !important;
}

/* Prevent transition on page load */
.theme-loaded * {
  transition: background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

body,
header,
nav,
footer,
.card,
.section,
.panel,
input,
textarea,
select,
button {
  transition: background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* Disable transitions during initial load */
.no-transition * {
  transition: none !important;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   SCREEN READER ONLY
   ============================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}



/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .theme-toggle-btn {
    width: 36px;
    height: 36px;
    padding: 6px;
  }

  .theme-toggle-btn svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .theme-toggle-btn {
    width: 44px;
    height: 44px;
  }
}

/* Touch Target Optimization (Prompt 10) */
.touch-target-min {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Ensure links in footer and text blocks have enough spacing */
footer ul li a,
.prose a {
  padding-top: 4px;
  padding-bottom: 4px;
  display: inline-block;
}

/* ============================================
   LIGHT MODE OVERRIDES FOR TRADE.HTML
   React components with inline Tailwind styles
   ============================================ */

/* Trading interface panels */
[data-theme="light"] .bg-\[\#0a0e1a\] {
  background-color: var(--bg-primary) !important;
}

[data-theme="light"] .bg-\[\#0f1420\] {
  background-color: var(--bg-secondary) !important;
}

[data-theme="light"] .bg-\[\#1b2d48\] {
  background-color: var(--bg-tertiary) !important;
}

/* Border overrides for trade page */
[data-theme="light"] .border-\[\#1b2d48\] {
  border-color: var(--border-default) !important;
}

/* Text color overrides */
[data-theme="light"] .text-\[\#9ca3af\] {
  color: var(--text-secondary) !important;
}

[data-theme="light"] .text-\[\#6b7280\] {
  color: var(--text-tertiary) !important;
}

/* Trading colors - keep green/red for trading data */
[data-theme="light"] .text-\[\#10b981\] {
  color: var(--bid-green) !important;
}

[data-theme="light"] .text-\[\#ef4444\] {
  color: var(--ask-red) !important;
}

/* Order book backgrounds */
[data-theme="light"] .bg-\[\#10b981\]\/10,
[data-theme="light"] .bg-\[\#ef4444\]\/10 {
  opacity: 0.08 !important;
}

/* Buy/Sell buttons - preserve trading colors */
[data-theme="light"] .bg-\[\#10b981\] {
  background-color: var(--bid-green) !important;
}

[data-theme="light"] .bg-\[\#ef4444\] {
  background-color: var(--ask-red) !important;
}

/* Input fields in trade interface */
[data-theme="light"] input[type="number"],
[data-theme="light"] input[type="text"],
[data-theme="light"] select {
  background-color: var(--bg-surface) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-default) !important;
}

[data-theme="light"] input:focus,
[data-theme="light"] select:focus {
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.15) !important;
}

/* Table styling */
[data-theme="light"] table {
  background-color: var(--bg-surface) !important;
}

[data-theme="light"] thead {
  background-color: var(--bg-secondary) !important;
}

[data-theme="light"] tbody tr:hover {
  background-color: var(--bg-hover) !important;
}

/* Header shadow for light mode */
[data-theme="light"] nav {
  box-shadow: 0 1px 0 rgba(208, 215, 222, 0.5);
}

/* Footer in light mode */
[data-theme="light"] footer {
  background-color: var(--bg-secondary) !important;
}

/* Blue accent buttons */
[data-theme="light"] .bg-blue-600,
[data-theme="light"] .bg-blue-500,
[data-theme="light"] .from-blue-600,
[data-theme="light"] .to-blue-500 {
  background-color: var(--accent-primary) !important;
}

[data-theme="light"] .hover\:from-blue-500:hover,
[data-theme="light"] .hover\:to-blue-400:hover {
  background-color: var(--accent-secondary) !important;
}

/* Blue text in light mode */
[data-theme="light"] .text-\[\#3b82f6\],
[data-theme="light"] .text-blue-400 {
  color: var(--accent-primary) !important;
}

/* Status badges */
[data-theme="light"] .bg-blue-500\/20 {
  background-color: rgba(9, 105, 218, 0.1) !important;
}

/* Chart overlay watermark */
[data-theme="light"] .opacity-30 .text-white {
  color: var(--text-muted) !important;
}

/* Scrollbar for light mode */
[data-theme="light"] ::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: var(--border-default);
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Form range slider */
[data-theme="light"] input[type="range"] {
  background: var(--border-default) !important;
}

[data-theme="light"] input[type="range"]::-webkit-slider-thumb {
  background: var(--accent-primary);
}

/* ==============================================
   HERO SECTION - LIGHT MODE SOPHISTICATED ANIMATION
   ============================================== */

/* Ensure hero section is positioned for absolute children */
.gradient-bg {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Animated gradient background - LIGHT MODE ONLY */
[data-theme="light"] .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;

  /* Multi-stop blue-gray gradient */
  background: linear-gradient(135deg,
      #f8fafc 0%,
      #e2e8f0 20%,
      #cbd5e1 40%,
      #e2e8f0 60%,
      #f1f5f9 80%,
      #f8fafc 100%);

  background-size: 400% 400%;
  animation: sophisticatedGradientFlow 25s ease-in-out infinite;
}

/* Gradient animation keyframes */
@keyframes sophisticatedGradientFlow {
  0% {
    background-position: 0% 50%;
  }

  20% {
    background-position: 25% 35%;
  }

  40% {
    background-position: 75% 50%;
  }

  60% {
    background-position: 100% 65%;
  }

  80% {
    background-position: 50% 80%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Primary glow overlay - logo blue accent */
[data-theme="light"] .hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: radial-gradient(circle at 30% 40%,
      rgba(37, 99, 235, 0.08) 0%,
      transparent 60%);

  animation: pulseGlowPrimary 12s ease-in-out infinite;
}

@keyframes pulseGlowPrimary {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

/* Secondary glow overlay - logo navy accent */
[data-theme="light"] .hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;

  background: radial-gradient(circle at 70% 60%,
      rgba(30, 64, 175, 0.06) 0%,
      transparent 55%);

  animation: pulseGlowSecondary 15s ease-in-out infinite;
  animation-delay: -5s;
}

@keyframes pulseGlowSecondary {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(1) translateY(0);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.15) translateY(-20px);
  }
}

/* Ensure content is above animated backgrounds */
.gradient-bg .max-w-7xl {
  position: relative;
  z-index: 10;
}

/* Performance optimizations */
[data-theme="light"] .hero-background,
[data-theme="light"] .hero-background::before,
[data-theme="light"] .hero-background::after {
  will-change: transform, opacity;
  transform: translateZ(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

  [data-theme="light"] .hero-background,
  [data-theme="light"] .hero-background::before,
  [data-theme="light"] .hero-background::after {
    animation: none !important;
  }

  [data-theme="light"] .hero-background {
    background: linear-gradient(135deg,
        #f8fafc 0%,
        #e2e8f0 50%,
        #f8fafc 100%);
    background-size: 100% 100%;
  }
}

/* Mobile optimization */
@media (max-width: 768px) {
  [data-theme="light"] .hero-background {
    animation-duration: 30s;
  }

  [data-theme="light"] .hero-background::before,
  [data-theme="light"] .hero-background::after {
    opacity: 0.5;
  }
}

/* ==============================================
   TYPOGRAPHY - LIGHT MODE NAVY HIERARCHY
   ============================================== */

[data-theme="light"] h1,
[data-theme="light"] .heading-primary {
  color: var(--navy-deep) !important;
  font-weight: 700;
  letter-spacing: -0.02em;
}

[data-theme="light"] h2,
[data-theme="light"] .heading-secondary {
  color: var(--navy-rich) !important;
  /* #004996 */
  font-weight: 600;
}

[data-theme="light"] h3,
.heading-tertiary {
  color: var(--navy-muted) !important;
}

/* ============================================
   LANGUAGE SELECTOR DROPDOWN
   ============================================ */
.lang-option-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

[data-theme="light"] #lang-dropdown {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .lang-option-btn {
  background: rgba(0, 0, 0, 0.03) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #1a1a1a !important;
}

[data-theme="light"] .lang-option-btn:hover {
  background: rgba(0, 0, 0, 0.06) !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] #lang-selector-btn {
  background: rgba(0, 0, 0, 0.05) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: #1a1a1a !important;
}

[data-theme="light"] .heading-tertiary {
  color: var(--navy-medium) !important;
  /* #0055aa */
  font-weight: 600;
}

[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
  color: var(--blue-bright) !important;
  /* #1562bf */
  font-weight: 600;
}

[data-theme="light"] h6 {
  color: #0f2847 !important;
  font-weight: 600;
}

[data-theme="light"] p,
[data-theme="light"] .body-text {
  color: #475569 !important;
  line-height: 1.7;
}

/* ==============================================
   CARDS & PANELS - LIGHT MODE
   ============================================== */

[data-theme="light"] .card,
[data-theme="light"] .panel,
[data-theme="light"] .metric-card {
  background-color: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 40, 71, 0.1);
  transition: all 0.3s ease;
}

[data-theme="light"] .card:hover,
[data-theme="light"] .panel:hover {
  background-color: #e2e8f0 !important;
  border-color: #2563eb !important;
  box-shadow:
    0 4px 12px rgba(15, 40, 71, 0.12),
    0 0 20px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

/* ==============================================
   BUTTONS - LIGHT MODE GRADIENTS
   ============================================== */

[data-theme="light"] .btn-primary,
[data-theme="light"] button.primary,
[data-theme="light"] .glow {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow:
    0 4px 12px rgba(37, 99, 235, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  transition: all 0.3s ease;
}

[data-theme="light"] .btn-primary:hover,
[data-theme="light"] button.primary:hover,
[data-theme="light"] .glow:hover {
  background: linear-gradient(135deg, #1e40af 0%, #1a3a5c 100%) !important;
  box-shadow:
    0 6px 20px rgba(37, 99, 235, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-2px);
}

/* Secondary Button */
[data-theme="light"] .btn-secondary,
[data-theme="light"] button.secondary {
  background-color: #e2e8f0 !important;
  color: #0f2847 !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .btn-secondary:hover,
[data-theme="light"] button.secondary:hover {
  background-color: #cbd5e1 !important;
  border-color: #94a3b8 !important;
}

/* ==============================================
   FORMS & INPUTS - LIGHT MODE
   ============================================== */

[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
  background-color: #f8fafc !important;
  color: #0f2847 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px;
}

[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] select:focus {
  background-color: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.1),
    0 1px 3px rgba(15, 40, 71, 0.1) !important;
  outline: none;
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
  color: #94a3b8 !important;
  opacity: 1;
}

[data-theme="light"] label {
  color: #0f2847 !important;
  font-weight: 500;
}

/* ==============================================
   NAVIGATION - LIGHT MODE
   ============================================== */

[data-theme="light"] nav {
  background-color: #f8fafc !important;
  border-bottom: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(15, 40, 71, 0.1) !important;
}

[data-theme="light"] .nav-link {
  color: #475569 !important;
  font-weight: 500;
  transition: color 0.2s ease;
}

[data-theme="light"] .nav-link:hover {
  color: #0f2847 !important;
}

[data-theme="light"] .nav-link.active {
  color: #2563eb !important;
  border-bottom: 2px solid #2563eb;
}

/* ==============================================
   FOOTER - LIGHT MODE
   ============================================== */

[data-theme="light"] footer {
  background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%) !important;
  border-top: 1px solid #94a3b8 !important;
  color: #475569 !important;
}

[data-theme="light"] footer h4 {
  color: #0f2847 !important;
  font-weight: 600;
}

[data-theme="light"] footer a {
  color: #475569 !important;
  transition: color 0.2s ease;
}

[data-theme="light"] footer a:hover {
  color: #2563eb !important;
}

[data-theme="light"] .footer-copyright,
[data-theme="light"] footer .text-center {
  color: #64748b !important;
}

/* ==============================================
   TRADING INTERFACE - LIGHT MODE
   ============================================== */

[data-theme="light"] .trading-panel {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(15, 40, 71, 0.08);
}

[data-theme="light"] .order-book {
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .order-book-header {
  background-color: #e2e8f0 !important;
  color: #0f2847 !important;
  font-weight: 600;
  border-bottom: 2px solid #2563eb;
}

/* Bid rows (buy orders) - emerald tint */
[data-theme="light"] .bid-row,
[data-theme="light"] .order-bid {
  background: linear-gradient(90deg,
      rgba(5, 150, 105, 0.08) 0%,
      transparent 100%) !important;
}

/* Ask rows (sell orders) - crimson tint */
[data-theme="light"] .ask-row,
[data-theme="light"] .order-ask {
  background: linear-gradient(90deg,
      rgba(220, 38, 38, 0.08) 0%,
      transparent 100%) !important;
}

/* Price displays */
[data-theme="light"] .price-positive,
[data-theme="light"] .positive {
  color: #059669 !important;
  font-weight: 600;
}

[data-theme="light"] .price-negative,
[data-theme="light"] .negative {
  color: #dc2626 !important;
  font-weight: 600;
}

/* Tables */
[data-theme="light"] table {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
}

[data-theme="light"] thead {
  background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%) !important;
}

[data-theme="light"] thead th {
  color: #0f2847 !important;
  font-weight: 600;
  border-bottom: 2px solid #2563eb;
}

[data-theme="light"] tbody tr {
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 0.2s ease;
}

[data-theme="light"] tbody tr:hover {
  background-color: #f1f5f9 !important;
}

[data-theme="light"] tbody td {
  color: #475569 !important;
}

/* ==============================================
   LIGHT MODE GRADIENT BACKGROUND OVERRIDE
   ============================================== */

[data-theme="light"] .gradient-bg {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
}

/* Section backgrounds */
[data-theme="light"] .section-light,
[data-theme="light"] .section-medium,
[data-theme="light"] .bg-\[\#0f1420\],
[data-theme="light"] .bg-\[\#151b2e\] {
  background-color: #f1f5f9 !important;
}

/* Feature card backgrounds */
[data-theme="light"] .bg-\[\#151b2e\].p-6,
[data-theme="light"] .bg-\[\#151b2e\].p-8 {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

/* Icon container backgrounds */
[data-theme="light"] .bg-\[\#1e293b\].rounded-full {
  background-color: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
}

/* Roadmap styling */
[data-theme="light"] .bg-\[\#151b2e\].rounded-lg {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

/* Timeline dot */
[data-theme="light"] .rounded-full.bg-\[\#151b2e\] {
  background-color: #f1f5f9 !important;
}

/* Gradient to section backgrounds */
[data-theme="light"] .from-\[\#1a2030\],
[data-theme="light"] .to-\[\#151b2e\],
[data-theme="light"] .bg-gradient-to-br {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
}

/* CTA section gradient */
[data-theme="light"] .bg-gradient-to-b.from-\[\#0f1420\] {
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%) !important;
}

/* Roadmap MVP banner */
[data-theme="light"] .bg-gradient-to-r.from-\[\#0f1420\] {
  background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 100%) !important;
  border-color: #2563eb !important;
}

/* ==============================================
   AUTO-RESIZE trade-mobile.png IMAGE
   Reduces from 837x1714px to fit container
   LIGHT AND DARK MODE
   ============================================== */

/* Target the mobile trading image specifically */
img[src*="trade-mobile.png"],
img[alt*="Mobile Trading"],
.mobile-section img,
.mobile-trading-section img {
  /* AUTO-REDUCE: Set maximum width */
  max-width: 320px;

  /* CRITICAL: Maintain aspect ratio */
  width: auto;
  height: auto;

  /* Center the image */
  display: block;
  margin-left: auto;
  margin-right: auto;

  /* Add some spacing */
  margin-top: 2rem;
  margin-bottom: 2rem;

  /* Smooth edges */
  border-radius: 16px;

  /* Professional shadow */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Light mode shadow adjustment */
[data-theme="light"] img[src*="trade-mobile.png"],
[data-theme="light"] .mobile-section img {
  box-shadow: 0 8px 24px rgba(15, 40, 71, 0.12);
}

/* Dark mode shadow adjustment */
[data-theme="dark"] img[src*="trade-mobile.png"],
[data-theme="dark"] .mobile-section img {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* RESPONSIVE: Reduce further on smaller screens */

/* Tablets and smaller laptops */
@media (max-width: 1024px) {

  img[src*="trade-mobile.png"],
  .mobile-section img {
    max-width: 280px;
  }
}

/* Tablets portrait */
@media (max-width: 768px) {

  img[src*="trade-mobile.png"],
  .mobile-section img {
    max-width: 260px;
  }
}

/* Mobile devices */
@media (max-width: 480px) {

  img[src*="trade-mobile.png"],
  .mobile-section img {
    max-width: 240px;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

/* Small mobile */
@media (max-width: 360px) {

  img[src*="trade-mobile.png"],
  .mobile-section img {
    max-width: 200px;
  }
}