/* ISC Content App — Mobile-first styles — Futuristic Dark Theme */

/* ===== GOOGLE FONTS IMPORT ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  color-scheme: dark light;
  /* Core backgrounds — backward compat names */
  --color-bg: #050510;
  --color-surface: rgba(15, 15, 35, 0.7);
  --color-surface-hover: rgba(20, 20, 50, 0.85);

  /* Primary accent — backward compat (was red #e94560, now indigo) */
  --color-primary: #6366f1;
  --color-primary-hover: #818cf8;
  --color-accent: #8b5cf6;

  /* Text — backward compat */
  --color-text: #f0f0ff;
  --color-text-muted: rgba(240, 240, 255, 0.55);
  --color-border: rgba(255, 255, 255, 0.07);

  /* Status colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #f43f5e;

  /* ISC content types */
  --color-servire: #10b981;
  --color-autenticitate: #3b82f6;
  --color-transformare: #a855f7;
  --color-invitatie: #f43f5e;

  /* New futuristic variables */
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-hover: rgba(255, 255, 255, 0.08);
  --glow-1: rgba(99, 102, 241, 0.4);
  --glow-2: rgba(139, 92, 246, 0.3);
  --accent-1: #6366f1;
  --accent-2: #8b5cf6;
  --accent-3: #a78bfa;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shape & motion */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  --transition: 0.2s ease;
}

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

html {
  background: var(--color-bg);
}

/* ===== BASE BODY ===== */
body {
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Grid background pattern on body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 10%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 10%, transparent 100%);
  pointer-events: none;
}

/* Ambient glow orbs on body */
body::after {
  content: '';
  position: fixed;
  top: -200px;
  left: -150px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: var(--accent-1);
  filter: blur(140px);
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
  animation: floatOrb 22s ease-in-out infinite;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.05); }
  66% { transform: translate(-25px, 25px) scale(0.95); }
}

/* ===== APP CONTAINER ===== */
#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.025em;
  color: var(--color-text);
}

h2 {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--color-text);
}

p {
  color: var(--color-text-muted);
  margin-bottom: 12px;
  line-height: 1.65;
}

a {
  color: var(--accent-3);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-text);
}

code, pre {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  letter-spacing: -0.01em;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Shimmer effect for buttons */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover::after {
  opacity: 1;
}

/* Primary button — indigo gradient + glow */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
  box-shadow: 0 0 20px var(--glow-1), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #818cf8, #a78bfa);
  box-shadow: 0 0 32px var(--glow-1), 0 0 64px var(--glow-2), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 0 16px var(--glow-1);
}

/* Secondary button — glass style */
.btn-secondary {
  background: var(--glass);
  color: var(--color-text);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Ghost button */
.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid transparent;
  backdrop-filter: none;
}

.btn-ghost:hover {
  background: var(--glass);
  color: var(--color-text);
  border-color: var(--glass-border);
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(15, 15, 35, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: 0.9375rem;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  -webkit-appearance: none;
  appearance: none;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="number"]::placeholder,
textarea::placeholder {
  color: rgba(240, 240, 255, 0.3);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), 0 0 20px rgba(99, 102, 241, 0.1);
  background: rgba(20, 20, 50, 0.7);
}

textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(240,240,255,0.4)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

select option {
  background: #0d0d25;
  color: var(--color-text);
}

/* .input class used by some views */
.input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(15, 15, 35, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: 0.9375rem;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.input::placeholder {
  color: rgba(240, 240, 255, 0.3);
}

.input:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), 0 0 20px rgba(99, 102, 241, 0.1);
  background: rgba(20, 20, 50, 0.7);
}

textarea.input {
  min-height: 80px;
  resize: vertical;
}

/* Form labels & errors */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.form-error {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(244, 63, 94, 0.1);
  color: var(--color-error);
  font-size: 0.8125rem;
  margin-bottom: 8px;
  border: 1px solid rgba(244, 63, 94, 0.2);
  border-left: 3px solid var(--color-error);
}

/* ===== CARDS ===== */
.card {
  background: rgba(15, 15, 35, 0.6);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.25s ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(20, 20, 50, 0.75);
}

/* ===== BADGES ===== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ISC type badges */
.badge-servire {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-servire);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-autenticitate {
  background: rgba(59, 130, 246, 0.15);
  color: var(--color-autenticitate);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.badge-transformare {
  background: rgba(168, 85, 247, 0.15);
  color: var(--color-transformare);
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.badge-invitatie {
  background: rgba(244, 63, 94, 0.15);
  color: var(--color-invitatie);
  border: 1px solid rgba(244, 63, 94, 0.25);
}

/* Status badges */
.badge-generating {
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-warning);
  border: 1px solid rgba(245, 158, 11, 0.25);
  animation: pulseBadge 2s ease-in-out infinite;
}

@keyframes pulseBadge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

.badge-info {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-3);
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-posted {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

/* ===== LOADING SPINNER ===== */
.spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    var(--accent-1) 180deg,
    var(--accent-2) 270deg,
    transparent 360deg
  );
  animation: spin 0.8s linear infinite;
  position: relative;
}

.spinner::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--color-bg);
}

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

/* ===== RESPONSIVE: TABLET+ ===== */
@media (min-width: 768px) {
  #app {
  }
}

@media (min-width: 1024px) {
  #app {
  }
}

/* ===== SMALL PHONES ===== */
@media (max-width: 374px) {
  #app {
  }
  .btn {
    padding: 10px 16px;
    font-size: 0.875rem;
  }
  .card {
    padding: 14px;
  }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== LIGHT MODE ===== */
[data-theme="light"] {
  --color-bg: #f5f5fa;
  --color-surface: rgba(255, 255, 255, 0.85);
  --color-surface-hover: rgba(255, 255, 255, 0.95);
  --color-text: #1a1a2e;
  --color-text-muted: rgba(26, 26, 46, 0.55);
  --color-border: rgba(0, 0, 0, 0.08);
  --glass: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.8);
  --glow-1: rgba(99, 102, 241, 0.15);
  --glow-2: rgba(139, 92, 246, 0.1);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] body {
  background: var(--color-bg);
  color: var(--color-text);
}

[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.06) 1px, transparent 1px);
}

[data-theme="light"] body::after {
  opacity: 0.04;
}

/* Glass cards in light mode */
[data-theme="light"] .glass-card {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(12px);
}

[data-theme="light"] .glass-card:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.12);
}

/* Inputs in light mode */
[data-theme="light"] .input {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.12);
  color: #1a1a2e;
}

[data-theme="light"] .input:focus {
  background: rgba(99, 102, 241, 0.04);
  border-color: rgba(99, 102, 241, 0.4);
}

[data-theme="light"] .input::placeholder {
  color: rgba(26, 26, 46, 0.45);
}

[data-theme="light"] input[type="text"]::placeholder,
[data-theme="light"] input[type="email"]::placeholder,
[data-theme="light"] input[type="password"]::placeholder,
[data-theme="light"] input[type="number"]::placeholder,
[data-theme="light"] textarea::placeholder {
  color: rgba(26, 26, 46, 0.45);
}

/* Buttons in light mode */
[data-theme="light"] .btn {
  color: #1a1a2e;
}

[data-theme="light"] .btn-primary {
  color: #fff;
}

/* Bottom nav in light mode */
[data-theme="light"] .bottom-nav {
  background: rgba(255, 255, 255, 0.9);
  border-top-color: rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(20px);
}

/* Badges */
[data-theme="light"] .badge {
  background: rgba(0, 0, 0, 0.06);
  color: #1a1a2e;
}

/* Fix hardcoded dark text colors in light mode */
[data-theme="light"] [style*="color:#f0f0ff"],
[data-theme="light"] [style*="color: #f0f0ff"] {
  color: #1a1a2e !important;
}

[data-theme="light"] [style*="color:rgba(240,240,255,0.85)"],
[data-theme="light"] [style*="color:rgba(240,240,255, 0.85)"] {
  color: rgba(26, 26, 46, 0.85) !important;
}

[data-theme="light"] [style*="color:rgba(240,240,255,0.7)"],
[data-theme="light"] [style*="color:rgba(240,240,255, 0.7)"] {
  color: rgba(26, 26, 46, 0.7) !important;
}

[data-theme="light"] [style*="color:rgba(240,240,255,0.6)"],
[data-theme="light"] [style*="color:rgba(240,240,255, 0.6)"] {
  color: rgba(26, 26, 46, 0.6) !important;
}

[data-theme="light"] [style*="color:rgba(240,240,255,0.5)"],
[data-theme="light"] [style*="color:rgba(240,240,255, 0.5)"] {
  color: rgba(26, 26, 46, 0.5) !important;
}

[data-theme="light"] [style*="color:rgba(240,240,255,0.4)"],
[data-theme="light"] [style*="color:rgba(240,240,255, 0.4)"] {
  color: rgba(26, 26, 46, 0.45) !important;
}

[data-theme="light"] [style*="color:rgba(240,240,255,0.35)"],
[data-theme="light"] [style*="color:rgba(240,240,255, 0.35)"] {
  color: rgba(26, 26, 46, 0.4) !important;
}

[data-theme="light"] [style*="color:rgba(240,240,255,0.3)"],
[data-theme="light"] [style*="color:rgba(240,240,255, 0.3)"] {
  color: rgba(26, 26, 46, 0.35) !important;
}

[data-theme="light"] [style*="color:rgba(240,240,255,0.25)"],
[data-theme="light"] [style*="color:rgba(240,240,255, 0.25)"] {
  color: rgba(26, 26, 46, 0.3) !important;
}

/* Fix hardcoded dark backgrounds in light mode */
[data-theme="light"] [style*="background:rgba(255,255,255,0.02)"],
[data-theme="light"] [style*="background: rgba(255,255,255,0.02)"] {
  background: rgba(0, 0, 0, 0.02) !important;
}

[data-theme="light"] [style*="background:rgba(255,255,255,0.04)"],
[data-theme="light"] [style*="background: rgba(255,255,255,0.04)"] {
  background: rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] [style*="background:rgba(255,255,255,0.06)"],
[data-theme="light"] [style*="background: rgba(255,255,255,0.06)"] {
  background: rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] [style*="background:rgba(255,255,255,0.08)"],
[data-theme="light"] [style*="background: rgba(255,255,255,0.08)"] {
  background: rgba(0, 0, 0, 0.05) !important;
}

/* Fix dark card/surface backgrounds */
[data-theme="light"] [style*="background:#0d0d1a"],
[data-theme="light"] [style*="background: #0d0d1a"] {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}

[data-theme="light"] [style*="background:#0f0f23"],
[data-theme="light"] [style*="background: #0f0f23"],
[data-theme="light"] [style*="background:linear-gradient(135deg,#0f0f23"] {
  background: #ffffff !important;
}

[data-theme="light"] [style*="background:#1a1a3e"],
[data-theme="light"] [style*="background: #1a1a3e"] {
  background: rgba(240, 240, 250, 0.8) !important;
}

/* Fix white/light borders that become invisible */
[data-theme="light"] [style*="border-color:rgba(255,255,255,0.06)"],
[data-theme="light"] [style*="border:1px solid rgba(255,255,255,0.06)"],
[data-theme="light"] [style*="border: 1px solid rgba(255,255,255,0.06)"] {
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] [style*="border:1px solid rgba(255,255,255,0.08)"],
[data-theme="light"] [style*="border: 1px solid rgba(255,255,255,0.08)"] {
  border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] [style*="border-top:1px solid rgba(255,255,255,0.06)"] {
  border-top-color: rgba(0, 0, 0, 0.08) !important;
}

/* Fix stroke colors for SVG icons */
[data-theme="light"] [style*="stroke:rgba(240,240,255"] {
  stroke: rgba(26, 26, 46, 0.4) !important;
}

[data-theme="light"] [style*="stroke:#f0f0ff"] {
  stroke: #1a1a2e !important;
}

/* Fix ghost buttons and subtle UI elements */
[data-theme="light"] .btn-ghost {
  color: rgba(26, 26, 46, 0.6) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .btn-ghost:hover {
  color: rgba(26, 26, 46, 0.85) !important;
  background: rgba(0, 0, 0, 0.04) !important;
}

/* Calendar day cells in light mode */
[data-theme="light"] .calendar-day,
[data-theme="light"] .calendar-month-day {
  border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Section labels */
[data-theme="light"] .section-label {
  color: rgba(26, 26, 46, 0.6);
}

/* Top bar in light mode */
[data-theme="light"] .top-bar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .top-bar-title {
  color: #1a1a2e;
}

[data-theme="light"] .top-bar-back {
  color: rgba(26, 26, 46, 0.6);
}

[data-theme="light"] .top-bar-logo {
  color: #6366f1;
}

/* Bottom nav label in light mode */
[data-theme="light"] .bottom-nav-item {
  color: rgba(26, 26, 46, 0.5);
}

[data-theme="light"] .bottom-nav-item.active {
  color: #6366f1;
}

[data-theme="light"] .bottom-nav-item:hover {
  color: rgba(26, 26, 46, 0.7);
  background: rgba(99, 102, 241, 0.06);
}

/* Form labels */
[data-theme="light"] .form-label {
  color: rgba(26, 26, 46, 0.65);
}

/* Content card */
[data-theme="light"] .content-card {
  background: rgba(255, 255, 255, 0.75) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .content-card-title {
  color: #1a1a2e !important;
}

[data-theme="light"] .content-card-preview {
  color: rgba(26, 26, 46, 0.55) !important;
}

[data-theme="light"] .content-card-date {
  color: rgba(26, 26, 46, 0.5) !important;
}

/* Textarea / editor in light mode */
[data-theme="light"] textarea.input {
  background: rgba(0, 0, 0, 0.02);
  color: #1a1a2e;
}

/* Modal overlay in light mode */
[data-theme="light"] .modal-overlay {
  background: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .modal-panel {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .modal-title {
  color: #1a1a2e;
}

[data-theme="light"] .modal-close {
  color: rgba(26, 26, 46, 0.5);
}

/* Toast in light mode */
[data-theme="light"] .toast {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .toast-message {
  color: #1a1a2e;
}

/* Empty state */
[data-theme="light"] .empty-state-title {
  color: #1a1a2e;
}

[data-theme="light"] .empty-state-message {
  color: rgba(26, 26, 46, 0.5);
}

/* Progress bars */
[data-theme="light"] .progress-bar-track {
  background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .progress-bar-label {
  color: rgba(26, 26, 46, 0.5);
}

/* Story cards */
[data-theme="light"] .story-card {
  background: rgba(255, 255, 255, 0.75) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Background effects - soften in light mode */
[data-theme="light"] .bg-glow {
  opacity: 0.08;
}

[data-theme="light"] .bg-grid {
  opacity: 0.3;
}

/* Gradient text stays visible */
[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Type selector cards */
[data-theme="light"] .type-card {
  background: rgba(255, 255, 255, 0.7) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .type-card:hover {
  background: rgba(255, 255, 255, 0.9) !important;
}

/* Auth pages */
[data-theme="light"] .auth-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .auth-title {
  color: #1a1a2e;
}

[data-theme="light"] .auth-input {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.12);
  color: #1a1a2e;
}

[data-theme="light"] .auth-input:focus {
  background: rgba(99, 102, 241, 0.04);
  border-color: rgba(99, 102, 241, 0.4);
}

/* ═══ AUTH PAGES — FULL LIGHT MODE ═══ */

[data-theme="light"] .auth-logo-name {
  color: #1a1a2e !important;
}

[data-theme="light"] .auth-subtitle {
  color: rgba(26, 26, 46, 0.5) !important;
}

[data-theme="light"] .auth-suite-tagline {
  color: rgba(26, 26, 46, 0.4) !important;
}

[data-theme="light"] .auth-product {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: rgba(26, 26, 46, 0.6) !important;
}

[data-theme="light"] .auth-product-new {
  background: rgba(34, 197, 94, 0.08) !important;
  border-color: rgba(34, 197, 94, 0.3) !important;
  color: #16a34a !important;
}

[data-theme="light"] .auth-label {
  color: rgba(26, 26, 46, 0.65) !important;
}

[data-theme="light"] .auth-input-icon {
  color: rgba(26, 26, 46, 0.35) !important;
}

[data-theme="light"] .auth-input {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #1a1a2e !important;
}

[data-theme="light"] .auth-input::placeholder {
  color: rgba(26, 26, 46, 0.35) !important;
}

[data-theme="light"] .auth-social-btn {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #1a1a2e !important;
}

[data-theme="light"] .auth-social-btn:hover {
  background: rgba(0, 0, 0, 0.06) !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .auth-link-muted {
  color: rgba(26, 26, 46, 0.5) !important;
}

[data-theme="light"] .auth-link-muted:hover {
  color: rgba(26, 26, 46, 0.7) !important;
}

[data-theme="light"] .auth-link-accent {
  color: #6366f1 !important;
}

[data-theme="light"] .auth-link-accent:hover {
  color: #4f46e5 !important;
}

[data-theme="light"] .auth-back-link {
  color: rgba(26, 26, 46, 0.4) !important;
}

[data-theme="light"] .auth-back-link:hover {
  color: rgba(26, 26, 46, 0.65) !important;
}

[data-theme="light"] .auth-divider::before,
[data-theme="light"] .auth-divider::after {
  background: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .auth-divider span {
  color: rgba(26, 26, 46, 0.4) !important;
}

[data-theme="light"] .auth-error {
  background: rgba(244, 63, 94, 0.06) !important;
  border-color: rgba(244, 63, 94, 0.15) !important;
  color: #dc2626 !important;
}

/* ═══ LANDING PAGE — FULL LIGHT MODE ═══ */

[data-theme="light"] .lnav {
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .lnav-name {
  color: #1a1a2e !important;
}

[data-theme="light"] .l-hero h1 {
  color: #1a1a2e !important;
}

[data-theme="light"] .l-hero-badge {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #7c3aed !important;
}

[data-theme="light"] .l-hero-sub {
  color: rgba(26, 26, 46, 0.6) !important;
}

[data-theme="light"] .l-value-item {
  color: rgba(26, 26, 46, 0.7) !important;
}

[data-theme="light"] .l-type-card {
  background: rgba(255, 255, 255, 0.75) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .l-type-card:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .l-type-card h3 {
  color: #1a1a2e !important;
}

[data-theme="light"] .l-type-card p {
  color: rgba(26, 26, 46, 0.6) !important;
}

[data-theme="light"] .l-feature-card {
  background: rgba(255, 255, 255, 0.75) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .l-feature-card:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}

[data-theme="light"] .l-feature-icon {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.06)) !important;
  border-color: rgba(99, 102, 241, 0.15) !important;
}

[data-theme="light"] .l-feature-card h3 {
  color: #1a1a2e !important;
}

[data-theme="light"] .l-feature-card p {
  color: rgba(26, 26, 46, 0.6) !important;
}

[data-theme="light"] .l-proof {
  border-top-color: rgba(0, 0, 0, 0.08) !important;
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .l-proof-label {
  color: rgba(26, 26, 46, 0.45) !important;
}

[data-theme="light"] .l-audit-cta {
  background: rgba(255, 255, 255, 0.75) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .l-audit-cta h2 {
  color: #1a1a2e !important;
}

[data-theme="light"] .l-audit-cta p {
  color: rgba(26, 26, 46, 0.6) !important;
}

[data-theme="light"] .l-mask-icon {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .l-mask-icon svg {
  stroke: rgba(26, 26, 46, 0.5) !important;
}

[data-theme="light"] .l-footer {
  border-top-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .l-footer p {
  color: rgba(26, 26, 46, 0.45) !important;
}

[data-theme="light"] .l-footer-links a {
  color: rgba(26, 26, 46, 0.5) !important;
}

[data-theme="light"] .l-footer-links a:hover {
  color: rgba(26, 26, 46, 0.75) !important;
}

[data-theme="light"] .l-footer-links span {
  color: rgba(26, 26, 46, 0.25) !important;
}

/* ═══ CARD BASE — LIGHT MODE ═══ */

[data-theme="light"] .card {
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .card:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}

/* ═══ COACH TABS — LIGHT MODE ═══ */

[data-theme="light"] .coach-tabs {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .coach-tab {
  color: rgba(26, 26, 46, 0.5) !important;
}

[data-theme="light"] .coach-tab:hover {
  color: rgba(26, 26, 46, 0.75) !important;
  background: rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .coach-tab-active {
  background: rgba(99, 102, 241, 0.1) !important;
  color: #4f46e5 !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
}

[data-theme="light"] .coach-tab-active:hover {
  color: #4f46e5 !important;
}

/* ═══ SOCIAL SUB-NAV — LIGHT MODE ═══ */

[data-theme="light"] .social-sub-nav-item {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: rgba(26, 26, 46, 0.6) !important;
}

[data-theme="light"] .social-sub-nav-item:hover {
  background: rgba(0, 0, 0, 0.08) !important;
  color: #1a1a2e !important;
}

[data-theme="light"] .social-sub-nav-item.active {
  color: #fff !important;
}

/* ═══ LEADERBOARD — LIGHT MODE ═══ */

[data-theme="light"] .lb-hero--gold {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(168, 85, 247, 0.05)) !important;
  border-color: rgba(251, 191, 36, 0.2) !important;
}

[data-theme="light"] .lb-hero--indigo {
  background: rgba(99, 102, 241, 0.06) !important;
  border-color: rgba(99, 102, 241, 0.15) !important;
}

[data-theme="light"] .lb-hero--green {
  background: rgba(16, 185, 129, 0.06) !important;
  border-color: rgba(16, 185, 129, 0.15) !important;
}

[data-theme="light"] .lb-hero-title { color: #6366f1 !important; }
[data-theme="light"] .lb-hero--gold .lb-hero-title { color: #b45309 !important; }
[data-theme="light"] .lb-hero--green .lb-hero-title { color: #047857 !important; }

[data-theme="light"] .lb-hero-name { color: #1a1a2e !important; }
[data-theme="light"] .lb-hero--gold .lb-hero-name { color: #92400e !important; }

[data-theme="light"] .lb-hero-value { color: #4f46e5 !important; }
[data-theme="light"] .lb-hero--gold .lb-hero-value { color: #b45309 !important; }
[data-theme="light"] .lb-hero--green .lb-hero-value { color: #047857 !important; }

[data-theme="light"] .lb-category {
  background: rgba(99, 102, 241, 0.04) !important;
  border-color: rgba(99, 102, 241, 0.1) !important;
}

[data-theme="light"] .lb-row { color: #334155 !important; }
[data-theme="light"] .lb-row--top1 { background: rgba(251, 191, 36, 0.08) !important; }
[data-theme="light"] .lb-row--me { background: rgba(99, 102, 241, 0.08) !important; color: #1a1a2e !important; }
[data-theme="light"] .lb-empty-cat { color: #94a3b8 !important; }

[data-theme="light"] .lb-breakdown {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(99, 102, 241, 0.1) !important;
}

[data-theme="light"] .lb-breakdown-line { color: #334155 !important; }
[data-theme="light"] .lb-breakdown-label { color: #64748b !important; }
[data-theme="light"] .lb-breakdown-calc { color: #94a3b8 !important; }
[data-theme="light"] .lb-breakdown-pts { color: #4f46e5 !important; }

[data-theme="light"] .lb-pill {
  background: rgba(99, 102, 241, 0.08) !important;
  color: #6366f1 !important;
}

[data-theme="light"] .lb-pill.active {
  background: #6366f1 !important;
  color: #fff !important;
}

[data-theme="light"] .lb-separator span {
  background: var(--color-bg) !important;
}

[data-theme="light"] .lb-finance-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), rgba(99, 102, 241, 0.04)) !important;
  border-color: rgba(16, 185, 129, 0.15) !important;
}

[data-theme="light"] .lb-finance-label { color: #047857 !important; }
[data-theme="light"] .lb-finance-amount { color: #059669 !important; }
[data-theme="light"] .lb-finance-unit { color: #047857 !important; }
[data-theme="light"] .lb-finance-date { color: #1a1a2e !important; }
[data-theme="light"] .lb-finance-price { color: #64748b !important; }

[data-theme="light"] .lb-funnel-card {
  background: rgba(99, 102, 241, 0.04) !important;
  border-color: rgba(99, 102, 241, 0.1) !important;
}

[data-theme="light"] .lb-card-title { color: #4f46e5 !important; }
[data-theme="light"] .lb-funnel-label { color: #64748b !important; }

[data-theme="light"] .lb-credits-card {
  background: rgba(168, 85, 247, 0.04) !important;
  border-color: rgba(168, 85, 247, 0.1) !important;
}

[data-theme="light"] .lb-credit-row { color: #64748b !important; }

[data-theme="light"] .lb-rank-card {
  background: rgba(251, 191, 36, 0.04) !important;
  border-color: rgba(251, 191, 36, 0.1) !important;
}

[data-theme="light"] .lb-rank-total { color: #64748b !important; }
[data-theme="light"] .lb-progress-label { color: #64748b !important; }
[data-theme="light"] .lb-progress-bar { background: rgba(0, 0, 0, 0.06) !important; }
[data-theme="light"] .lb-progress-info { color: #94a3b8 !important; }

[data-theme="light"] .lb-share-card {
  background: rgba(99, 102, 241, 0.03) !important;
  border-color: rgba(99, 102, 241, 0.1) !important;
}

[data-theme="light"] .lb-share-preview {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(99, 102, 241, 0.1) !important;
}

[data-theme="light"] .lb-preview-text { color: #1a1a2e !important; }
[data-theme="light"] .lb-share-shuffle { color: #64748b !important; }
[data-theme="light"] .lb-style-btn { background: rgba(0, 0, 0, 0.03) !important; border-color: rgba(0, 0, 0, 0.08) !important; color: #64748b !important; }
[data-theme="light"] .lb-style-btn.active { background: rgba(99, 102, 241, 0.1) !important; border-color: #6366f1 !important; color: #4f46e5 !important; }

[data-theme="light"] .lb-link-code {
  background: rgba(0, 0, 0, 0.04) !important;
  color: #1a1a2e !important;
}

[data-theme="light"] .lb-referral-link {
  border-top-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .lb-hero-tap { color: #94a3b8 !important; }
[data-theme="light"] .lb-row-expand-icon { color: #94a3b8 !important; }

/* ═══ RECRUTARE SECTIONS — LIGHT MODE ═══ */

[data-theme="light"] .rec-page-card {
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .rec-page-card.active {
  background: rgba(99, 102, 241, 0.06) !important;
  border-color: rgba(99, 102, 241, 0.4) !important;
}

[data-theme="light"] .rec-page-info strong { color: #1a1a2e !important; }
[data-theme="light"] .rec-page-info span { color: rgba(26, 26, 46, 0.45) !important; }

[data-theme="light"] .rec-page-btn {
  border-color: rgba(0, 0, 0, 0.1) !important;
  background: rgba(0, 0, 0, 0.03) !important;
  color: rgba(26, 26, 46, 0.5) !important;
}

[data-theme="light"] .rec-page-btn:hover {
  background: rgba(99, 102, 241, 0.08) !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
  color: #4f46e5 !important;
}

[data-theme="light"] .rec-page-btn.danger:hover {
  background: rgba(239, 68, 68, 0.08) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  color: #ef4444 !important;
}

[data-theme="light"] .rec-add-page {
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: rgba(26, 26, 46, 0.45) !important;
}

[data-theme="light"] .rec-add-page:hover {
  border-color: rgba(99, 102, 241, 0.4) !important;
  color: #4f46e5 !important;
}

[data-theme="light"] .rec-section {
  background: rgba(255, 255, 255, 0.75) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .rec-section-title { color: #1a1a2e !important; }
[data-theme="light"] .rec-section-desc { color: rgba(26, 26, 46, 0.45) !important; }
[data-theme="light"] .rec-form-label { color: rgba(26, 26, 46, 0.5) !important; }

[data-theme="light"] .rec-toggle-row {
  border-bottom-color: rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .rec-toggle-info h4 { color: #1a1a2e !important; }
[data-theme="light"] .rec-toggle-info p { color: rgba(26, 26, 46, 0.45) !important; }

[data-theme="light"] .rec-toggle {
  background: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .rec-toggle.on {
  background: #6366f1 !important;
}

[data-theme="light"] .rec-aspect-btn {
  border-color: rgba(0, 0, 0, 0.1) !important;
  background: rgba(0, 0, 0, 0.03) !important;
  color: rgba(26, 26, 46, 0.55) !important;
}

[data-theme="light"] .rec-aspect-btn.active {
  background: rgba(99, 102, 241, 0.1) !important;
  border-color: rgba(99, 102, 241, 0.4) !important;
  color: #4f46e5 !important;
}

[data-theme="light"] .rec-order-row {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #1a1a2e !important;
}

[data-theme="light"] .rec-benefit-select {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #1a1a2e !important;
}

[data-theme="light"] .rec-testimonial-card {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .rec-share-bar input { color: rgba(26, 26, 46, 0.5) !important; }
[data-theme="light"] .rec-share-copy { background: rgba(0, 0, 0, 0.04) !important; color: rgba(26, 26, 46, 0.45) !important; }
[data-theme="light"] .rec-preview-label { color: rgba(26, 26, 46, 0.4) !important; }
[data-theme="light"] .rec-refresh-btn { border-color: rgba(0, 0, 0, 0.1) !important; background: rgba(0, 0, 0, 0.03) !important; color: rgba(26, 26, 46, 0.5) !important; }
[data-theme="light"] .rec-divider { border-top-color: rgba(0, 0, 0, 0.08) !important; }

[data-theme="light"] .rec-status.draft { background: rgba(148, 163, 184, 0.1) !important; }
[data-theme="light"] .rec-status.live { background: rgba(52, 211, 153, 0.1) !important; }

/* ═══ RECRUTARE DESIGN — LIGHT MODE ═══ */

[data-theme="light"] .des-section {
  background: rgba(255, 255, 255, 0.75) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .des-title { color: rgba(26, 26, 46, 0.5) !important; }

[data-theme="light"] .des-theme {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .des-theme-label { color: #1a1a2e !important; }

[data-theme="light"] .des-color-label { color: rgba(26, 26, 46, 0.45) !important; }

[data-theme="light"] .des-hex {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #1a1a2e !important;
}

[data-theme="light"] .des-fontsize-btn {
  border-color: rgba(0, 0, 0, 0.1) !important;
  background: rgba(0, 0, 0, 0.03) !important;
  color: rgba(26, 26, 46, 0.6) !important;
}

[data-theme="light"] .des-fontsize-btn.active {
  background: rgba(99, 102, 241, 0.1) !important;
  border-color: rgba(99, 102, 241, 0.4) !important;
  color: #4f46e5 !important;
}

[data-theme="light"] .des-select {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #1a1a2e !important;
}

[data-theme="light"] .des-select option { background: #fff !important; color: #1a1a2e !important; }
[data-theme="light"] .des-font-label { color: rgba(26, 26, 46, 0.45) !important; }
[data-theme="light"] .des-field-label { color: rgba(26, 26, 46, 0.45) !important; }

[data-theme="light"] .des-input {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #1a1a2e !important;
}

[data-theme="light"] .des-input::placeholder { color: rgba(26, 26, 46, 0.3) !important; }

[data-theme="light"] .des-preview-frame {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .des-preview-notch { background: rgba(0, 0, 0, 0.1) !important; }

/* ═══ RECOMANDARI SHARE — LIGHT MODE ═══ */

[data-theme="light"] .lb-og-footer { background: rgba(0, 0, 0, 0.04) !important; color: #94a3b8 !important; }

/* ═══ MISSING TEXT COLOR OVERRIDES ═══ */

/* #fff white text — keep white ONLY on colored/gradient backgrounds, otherwise make dark */
[data-theme="light"] [style*="color:#fff"] { color: #1a1a2e !important; }
[data-theme="light"] [style*="color: #fff"] { color: #1a1a2e !important; }
/* Exceptions: buttons with colored bg keep white text */
[data-theme="light"] [style*="background:#6366f1"] [style*="color:#fff"],
[data-theme="light"] [style*="background:#6366f1"][style*="color:#fff"],
[data-theme="light"] [style*="background:linear-gradient"][style*="color:#fff"],
[data-theme="light"] [style*="background:#10b981"][style*="color:#fff"],
[data-theme="light"] [style*="background:#ef4444"][style*="color:#fff"],
[data-theme="light"] [style*="background:#a855f7"][style*="color:#fff"] { color: #fff !important; }

/* rgba(240,240,255) missing opacity levels */
[data-theme="light"] [style*="color:rgba(240,240,255,0.45)"],
[data-theme="light"] [style*="color:rgba(240,240,255, 0.45)"] {
  color: rgba(26, 26, 46, 0.5) !important;
}

[data-theme="light"] [style*="color:rgba(240,240,255,0.55)"],
[data-theme="light"] [style*="color:rgba(240,240,255, 0.55)"],
[data-theme="light"] [style*="color: rgba(240,240,255,0.55)"] {
  color: rgba(26, 26, 46, 0.55) !important;
}

[data-theme="light"] [style*="color:rgba(240,240,255,0.65)"],
[data-theme="light"] [style*="color:rgba(240,240,255, 0.65)"] {
  color: rgba(26, 26, 46, 0.65) !important;
}

[data-theme="light"] [style*="color:rgba(240,240,255,0.75)"],
[data-theme="light"] [style*="color:rgba(240,240,255, 0.75)"] {
  color: rgba(26, 26, 46, 0.75) !important;
}

[data-theme="light"] [style*="color:rgba(240,240,255,0.8)"],
[data-theme="light"] [style*="color:rgba(240,240,255, 0.8)"],
[data-theme="light"] [style*="color:rgba(240, 240, 255, 0.8)"] {
  color: rgba(26, 26, 46, 0.8) !important;
}

[data-theme="light"] [style*="color:rgba(240,240,255,0.9)"],
[data-theme="light"] [style*="color:rgba(240,240,255, 0.9)"] {
  color: rgba(26, 26, 46, 0.9) !important;
}

/* White text on non-accent elements */
[data-theme="light"] h1[style*="color:#fff"],
[data-theme="light"] h2[style*="color:#fff"],
[data-theme="light"] h3[style*="color:#fff"],
[data-theme="light"] p[style*="color:#fff"],
[data-theme="light"] div[style*="color:#fff"],
[data-theme="light"] span[style*="color:#fff"],
[data-theme="light"] strong[style*="color:#fff"],
[data-theme="light"] label[style*="color:#fff"] {
  color: #1a1a2e !important;
}

/* ═══ MISSING BACKGROUND OVERRIDES ═══ */

/* Dark input backgrounds */
[data-theme="light"] [style*="background:rgba(0,0,0,0.2)"],
[data-theme="light"] [style*="background: rgba(0,0,0,0.2)"] {
  background: rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] [style*="background:rgba(0,0,0,0.3)"],
[data-theme="light"] [style*="background: rgba(0,0,0,0.3)"] {
  background: rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] [style*="background:rgba(0,0,0,0.4)"],
[data-theme="light"] [style*="background: rgba(0,0,0,0.4)"] {
  background: rgba(0, 0, 0, 0.06) !important;
}

/* White glassy backgrounds */
[data-theme="light"] [style*="background:rgba(255,255,255,0.03)"],
[data-theme="light"] [style*="background: rgba(255,255,255,0.03)"] {
  background: rgba(0, 0, 0, 0.025) !important;
}

[data-theme="light"] [style*="background:rgba(255,255,255,0.05)"],
[data-theme="light"] [style*="background: rgba(255,255,255,0.05)"] {
  background: rgba(0, 0, 0, 0.035) !important;
}

[data-theme="light"] [style*="background:rgba(255,255,255,0.1)"],
[data-theme="light"] [style*="background: rgba(255,255,255,0.1)"] {
  background: rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] [style*="background:rgba(255,255,255,0.12)"],
[data-theme="light"] [style*="background: rgba(255,255,255,0.12)"] {
  background: rgba(0, 0, 0, 0.07) !important;
}

/* Dark navy backgrounds */
[data-theme="light"] [style*="background:#0b0f1a"],
[data-theme="light"] [style*="background: #0b0f1a"] {
  background: #ffffff !important;
}

[data-theme="light"] [style*="background:#050510"],
[data-theme="light"] [style*="background: #050510"] {
  background: var(--color-bg) !important;
}

/* ═══ MISSING BORDER OVERRIDES ═══ */

[data-theme="light"] [style*="border:1px solid rgba(255,255,255,0.1)"],
[data-theme="light"] [style*="border: 1px solid rgba(255,255,255,0.1)"],
[data-theme="light"] [style*="border-color:rgba(255,255,255,0.1)"] {
  border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] [style*="border:1px solid rgba(255,255,255,0.12)"],
[data-theme="light"] [style*="border: 1px solid rgba(255,255,255,0.12)"] {
  border-color: rgba(0, 0, 0, 0.12) !important;
}

[data-theme="light"] [style*="border-bottom:1px solid rgba(255,255,255"],
[data-theme="light"] [style*="border-bottom: 1px solid rgba(255,255,255"] {
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

/* ═══ HUB / SALES PAGES LIGHT MODE ═══ */

[data-theme="light"] .sales {
  --sales-muted: rgba(26, 26, 46, 0.55);
  --sales-surface: rgba(0, 0, 0, 0.03);
  --sales-border: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .sales-nav {
  background: rgba(255, 255, 255, 0.9) !important;
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: blur(20px);
}

[data-theme="light"] .sales-nav a {
  color: rgba(26, 26, 46, 0.6) !important;
}

[data-theme="light"] .sales-nav a.active,
[data-theme="light"] .sales-nav a:hover {
  color: #4f46e5 !important;
}

/* ═══ CALENDAR CSS LIGHT MODE ═══ */

[data-theme="light"] .cal-header,
[data-theme="light"] .cal-grid {
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .cal-day-name {
  color: rgba(26, 26, 46, 0.5) !important;
}

[data-theme="light"] .cal-cell {
  border-color: rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .cal-day-num {
  color: rgba(26, 26, 46, 0.7) !important;
}

/* ═══ COMPOSER CSS LIGHT MODE ═══ */

[data-theme="light"] .composer-input,
[data-theme="light"] .composer-textarea {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #1a1a2e !important;
}

[data-theme="light"] .composer-btn {
  color: rgba(26, 26, 46, 0.6) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .composer-btn:hover {
  background: rgba(0, 0, 0, 0.04) !important;
}

/* ═══ RECRUTARE CSS LIGHT MODE ═══ */

[data-theme="light"] .recrutare-card,
[data-theme="light"] .rec-card {
  background: rgba(255, 255, 255, 0.75) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

/* ═══ TOUR CSS LIGHT MODE ═══ */

[data-theme="light"] .tour-tooltip {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #1a1a2e !important;
}

/* ═══ ACCENT COLORS — slightly deeper for light bg contrast ═══ */
[data-theme="light"] [style*="color:#6366f1"] { color: #4f46e5 !important; }
[data-theme="light"] [style*="color:#10b981"] { color: #059669 !important; }
[data-theme="light"] [style*="color:#a855f7"] { color: #9333ea !important; }
[data-theme="light"] [style*="color:#f43f5e"] { color: #e11d48 !important; }
[data-theme="light"] [style*="color:#3b82f6"] { color: #2563eb !important; }
[data-theme="light"] [style*="color:#f59e0b"] { color: #d97706 !important; }
[data-theme="light"] [style*="color:#818cf8"] { color: #6366f1 !important; }
[data-theme="light"] [style*="color:#a5b4fc"] { color: #6366f1 !important; }
[data-theme="light"] [style*="color:#fca5a5"] { color: #ef4444 !important; }
[data-theme="light"] [style*="color:#f87171"] { color: #dc2626 !important; }
[data-theme="light"] [style*="color:#e0e0e0"] { color: rgba(26, 26, 46, 0.7) !important; }

/* ═══ PRICING PAGE LIGHT MODE ═══ */

[data-theme="light"] [style*="background:linear-gradient(135deg,#0f0f23"],
[data-theme="light"] [style*="background: linear-gradient(135deg,#0f0f23"],
[data-theme="light"] [style*="background:linear-gradient(135deg, #0f0f23"] {
  background: linear-gradient(135deg, #f5f5fa, #ededf5) !important;
}

[data-theme="light"] [style*="background:linear-gradient(135deg,#1a1a3e"],
[data-theme="light"] [style*="background:linear-gradient(135deg, #1a1a3e"] {
  background: linear-gradient(135deg, #ffffff, #f5f5fa) !important;
}

/* Conic gradients (score circles) */
[data-theme="light"] [style*="background:conic-gradient"] {
  filter: brightness(0.95) saturate(1.1);
}

/* ═══ DESKTOP SHELL LIGHT MODE ═══ */

[data-theme="light"] .desktop-sidebar {
  background: rgba(255, 255, 255, 0.85) !important;
  border-right-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .desktop-sidebar-item {
  color: rgba(26, 26, 46, 0.6) !important;
}

[data-theme="light"] .desktop-sidebar-item:hover {
  background: rgba(99, 102, 241, 0.06) !important;
  color: rgba(26, 26, 46, 0.85) !important;
}

[data-theme="light"] .desktop-sidebar-item.active {
  color: #4f46e5 !important;
  background: rgba(99, 102, 241, 0.08) !important;
}

/* ═══ MISSING rgba(255,255,255,...) TEXT COLOR OVERRIDES ═══ */
[data-theme="light"] [style*="color:rgba(255,255,255,0.08)"],
[data-theme="light"] [style*="color:rgba(255,255,255, 0.08)"] { color: rgba(26, 26, 46, 0.12) !important; }

[data-theme="light"] [style*="color:rgba(255,255,255,0.1)"],
[data-theme="light"] [style*="color:rgba(255,255,255, 0.1)"],
[data-theme="light"] [style*="color:rgba(255,255,255,0.15)"],
[data-theme="light"] [style*="color:rgba(255,255,255, 0.15)"] { color: rgba(26, 26, 46, 0.2) !important; }

[data-theme="light"] [style*="color:rgba(255,255,255,0.2)"],
[data-theme="light"] [style*="color:rgba(255,255,255, 0.2)"] { color: rgba(26, 26, 46, 0.25) !important; }

[data-theme="light"] [style*="color:rgba(255,255,255,0.3)"],
[data-theme="light"] [style*="color:rgba(255,255,255, 0.3)"],
[data-theme="light"] [style*="color:rgba(255,255,255,0.35)"],
[data-theme="light"] [style*="color:rgba(255,255,255, 0.35)"] { color: rgba(26, 26, 46, 0.4) !important; }

[data-theme="light"] [style*="color:rgba(255,255,255,0.4)"],
[data-theme="light"] [style*="color:rgba(255,255,255, 0.4)"],
[data-theme="light"] [style*="color:rgba(255,255,255,.4)"],
[data-theme="light"] [style*="color:rgba(255,255,255,0.45)"],
[data-theme="light"] [style*="color:rgba(255,255,255, 0.45)"],
[data-theme="light"] [style*="color:rgba(255,255,255,.45)"] { color: rgba(26, 26, 46, 0.5) !important; }

[data-theme="light"] [style*="color:rgba(255,255,255,0.5)"],
[data-theme="light"] [style*="color:rgba(255,255,255, 0.5)"],
[data-theme="light"] [style*="color:rgba(255,255,255,.5)"],
[data-theme="light"] [style*="color:rgba(255,255,255,0.55)"],
[data-theme="light"] [style*="color:rgba(255,255,255, 0.55)"],
[data-theme="light"] [style*="color:rgba(255,255,255,.55)"] { color: rgba(26, 26, 46, 0.55) !important; }

[data-theme="light"] [style*="color:rgba(255,255,255,0.6)"],
[data-theme="light"] [style*="color:rgba(255,255,255, 0.6)"],
[data-theme="light"] [style*="color:rgba(255,255,255,0.65)"],
[data-theme="light"] [style*="color:rgba(255,255,255, 0.65)"] { color: rgba(26, 26, 46, 0.65) !important; }

[data-theme="light"] [style*="color:rgba(255,255,255,0.7)"],
[data-theme="light"] [style*="color:rgba(255,255,255, 0.7)"],
[data-theme="light"] [style*="color:rgba(255,255,255,0.75)"],
[data-theme="light"] [style*="color:rgba(255,255,255, 0.75)"] { color: rgba(26, 26, 46, 0.75) !important; }

[data-theme="light"] [style*="color:rgba(255,255,255,0.8)"],
[data-theme="light"] [style*="color:rgba(255,255,255, 0.8)"],
[data-theme="light"] [style*="color:rgba(255,255,255,0.85)"],
[data-theme="light"] [style*="color:rgba(255,255,255, 0.85)"] { color: rgba(26, 26, 46, 0.85) !important; }

[data-theme="light"] [style*="color:rgba(255,255,255,0.9)"],
[data-theme="light"] [style*="color:rgba(255,255,255, 0.9)"],
[data-theme="light"] [style*="color:rgba(255,255,255,0.95)"],
[data-theme="light"] [style*="color:rgba(255,255,255, 0.95)"] { color: rgba(26, 26, 46, 0.95) !important; }

/* ═══ MISSING NAMED COLORS ═══ */
[data-theme="light"] [style*="color:#e2e8f0"] { color: #334155 !important; }
[data-theme="light"] [style*="color:#f1f5f9"] { color: #1e293b !important; }
[data-theme="light"] [style*="color:#94a3b8"] { color: #64748b !important; }
[data-theme="light"] [style*="color:#c4b5fd"] { color: #7c3aed !important; }
[data-theme="light"] [style*="color:#a78bfa"] { color: #7c3aed !important; }
[data-theme="light"] [style*="color:#cbd5e1"] { color: #475569 !important; }
[data-theme="light"] [style*="color:#d1d5db"] { color: #4b5563 !important; }
[data-theme="light"] [style*="color:#9ca3af"] { color: #6b7280 !important; }

/* ═══ MISSING DARK BACKGROUND OVERRIDES ═══ */
[data-theme="light"] [style*="background:#0a0a1"],
[data-theme="light"] [style*="background: #0a0a1"],
[data-theme="light"] [style*="background:#0c0c1"],
[data-theme="light"] [style*="background: #0c0c1"],
[data-theme="light"] [style*="background:#0f0f1"],
[data-theme="light"] [style*="background: #0f0f1"] {
  background: #ffffff !important;
}

[data-theme="light"] [style*="background:#111827"],
[data-theme="light"] [style*="background: #111827"],
[data-theme="light"] [style*="background:#141432"],
[data-theme="light"] [style*="background: #141432"],
[data-theme="light"] [style*="background:#1a1240"],
[data-theme="light"] [style*="background: #1a1240"],
[data-theme="light"] [style*="background:#1e293b"],
[data-theme="light"] [style*="background: #1e293b"],
[data-theme="light"] [style*="background:#1c1917"],
[data-theme="light"] [style*="background: #1c1917"] {
  background: #ffffff !important;
}

[data-theme="light"] [style*="background:#000"],
[data-theme="light"] [style*="background: #000"],
[data-theme="light"] [style*="background:#111"],
[data-theme="light"] [style*="background: #111"] {
  background: #f5f5fa !important;
}

/* Dark rgba backgrounds */
[data-theme="light"] [style*="background:rgba(5,5,16"],
[data-theme="light"] [style*="background: rgba(5,5,16"],
[data-theme="light"] [style*="background:rgba(15,15,35"],
[data-theme="light"] [style*="background: rgba(15,15,35"],
[data-theme="light"] [style*="background:rgba(18,18,36"],
[data-theme="light"] [style*="background: rgba(18,18,36"],
[data-theme="light"] [style*="background:rgba(20,20,50"],
[data-theme="light"] [style*="background: rgba(20,20,50"],
[data-theme="light"] [style*="background:rgba(22,25,41"],
[data-theme="light"] [style*="background: rgba(22,25,41"],
[data-theme="light"] [style*="background:rgba(12,12,24"],
[data-theme="light"] [style*="background: rgba(12,12,24"],
[data-theme="light"] [style*="background:rgba(12,12,28"],
[data-theme="light"] [style*="background: rgba(12,12,28"],
[data-theme="light"] [style*="background:rgba(12,12,30"],
[data-theme="light"] [style*="background: rgba(12,12,30"],
[data-theme="light"] [style*="background:rgba(17,17,30"],
[data-theme="light"] [style*="background: rgba(17,17,30"],
[data-theme="light"] [style*="background:rgba(10,10,20"],
[data-theme="light"] [style*="background: rgba(10,10,20"],
[data-theme="light"] [style*="background:rgba(8,8,22"],
[data-theme="light"] [style*="background: rgba(8,8,22"],
[data-theme="light"] [style*="background:rgba(2,2,12"],
[data-theme="light"] [style*="background: rgba(2,2,12"],
[data-theme="light"] [style*="background:rgba(2,2,8"],
[data-theme="light"] [style*="background: rgba(2,2,8"] {
  background: rgba(255, 255, 255, 0.95) !important;
}

/* Low-opacity white backgrounds (invisible on white, need subtle dark) */
[data-theme="light"] [style*="background:rgba(255,255,255,0.015)"],
[data-theme="light"] [style*="background:rgba(255,255,255,0.02)"],
[data-theme="light"] [style*="background: rgba(255,255,255,0.02)"],
[data-theme="light"] [style*="background:rgba(255,255,255,0.025)"],
[data-theme="light"] [style*="background:rgba(255,255,255,0.03)"],
[data-theme="light"] [style*="background: rgba(255,255,255,0.03)"] {
  background: rgba(0, 0, 0, 0.025) !important;
}

/* White border overrides (invisible on white) */
[data-theme="light"] [style*="border-color:rgba(255,255,255,0.02)"],
[data-theme="light"] [style*="border-color:rgba(255,255,255,0.03)"],
[data-theme="light"] [style*="border-color:rgba(255,255,255,0.04)"],
[data-theme="light"] [style*="border-color:rgba(255,255,255,0.05)"] {
  border-color: rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] [style*="border:1px solid rgba(255,255,255,0.02)"],
[data-theme="light"] [style*="border:1px solid rgba(255,255,255,0.03)"],
[data-theme="light"] [style*="border:1px solid rgba(255,255,255,0.04)"],
[data-theme="light"] [style*="border:1px solid rgba(255,255,255,0.05)"],
[data-theme="light"] [style*="border: 1px solid rgba(255,255,255,0.02)"],
[data-theme="light"] [style*="border: 1px solid rgba(255,255,255,0.03)"],
[data-theme="light"] [style*="border: 1px solid rgba(255,255,255,0.04)"],
[data-theme="light"] [style*="border: 1px solid rgba(255,255,255,0.05)"] {
  border-color: rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] [style*="border-top:1px solid rgba(255,255,255,0.0"],
[data-theme="light"] [style*="border-top: 1px solid rgba(255,255,255,0.0"] {
  border-top-color: rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] [style*="border-bottom:1px solid rgba(255,255,255,0.0"],
[data-theme="light"] [style*="border-bottom: 1px solid rgba(255,255,255,0.0"] {
  border-bottom-color: rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] [style*="border-left:3px solid rgba(255,255,255"],
[data-theme="light"] [style*="border-left: 3px solid rgba(255,255,255"],
[data-theme="light"] [style*="border-left:2px solid rgba(255,255,255"],
[data-theme="light"] [style*="border-left: 2px solid rgba(255,255,255"] {
  border-left-color: rgba(0, 0, 0, 0.08) !important;
}

/* Dark gradient overrides */
[data-theme="light"] [style*="background:linear-gradient(160deg,#0c0c1d"],
[data-theme="light"] [style*="background: linear-gradient(160deg,#0c0c1d"],
[data-theme="light"] [style*="background:linear-gradient(160deg, #0c0c1d"] {
  background: linear-gradient(160deg, #f5f5fa, #ededf5, #e8e8f0) !important;
}

[data-theme="light"] [style*="background:linear-gradient(135deg,#1a1a2e"],
[data-theme="light"] [style*="background: linear-gradient(135deg,#1a1a2e"],
[data-theme="light"] [style*="background:linear-gradient(135deg, #1a1a2e"] {
  background: linear-gradient(135deg, #ffffff, #f5f5fa) !important;
}

/* ═══ BOX-SHADOW FIX ═══ */
[data-theme="light"] [style*="box-shadow:0 0 0 1px rgba(255,255,255"],
[data-theme="light"] [style*="box-shadow: 0 0 0 1px rgba(255,255,255"] {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08) !important;
}

/* ═══ FILL/STROKE SVG OVERRIDES ═══ */
[data-theme="light"] [style*="fill:rgba(240,240,255"],
[data-theme="light"] [style*="fill:#f0f0ff"] {
  fill: #1a1a2e !important;
}

[data-theme="light"] [style*="fill:rgba(255,255,255"],
[data-theme="light"] [style*="fill:#fff"] {
  fill: rgba(26, 26, 46, 0.7) !important;
}

/* ═══ CONTENT CALENDAR MOBILE (.cc-*) LIGHT MODE ═══ */

[data-theme="light"] .cc-cal-card {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .cc-nav-btn {
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #1a1a2e !important;
}

[data-theme="light"] .cc-nav-month {
  color: #1a1a2e !important;
}

[data-theme="light"] .cc-nav-year {
  color: rgba(26, 26, 46, 0.45) !important;
}

[data-theme="light"] .cc-today-btn {
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: rgba(26, 26, 46, 0.55) !important;
}

[data-theme="light"] .cc-hdr {
  color: rgba(26, 26, 46, 0.5) !important;
}

[data-theme="light"] .cc-cell {
  background: rgba(0, 0, 0, 0.015) !important;
}

[data-theme="light"] .cc-cell:active {
  background: rgba(99, 102, 241, 0.06) !important;
}

[data-theme="light"] .cc-num {
  color: rgba(26, 26, 46, 0.45) !important;
}

[data-theme="light"] .cc-today {
  background: rgba(99, 102, 241, 0.08) !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
}

[data-theme="light"] .cc-today .cc-num {
  color: #4f46e5 !important;
}

[data-theme="light"] .cc-has .cc-num {
  color: rgba(26, 26, 46, 0.8) !important;
}

[data-theme="light"] .cc-sel {
  background: rgba(99, 102, 241, 0.1) !important;
  border-color: rgba(99, 102, 241, 0.5) !important;
}

[data-theme="light"] .cc-sel .cc-num {
  color: #4f46e5 !important;
}

[data-theme="light"] .cc-pill {
  background: rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .cc-pill-time {
  color: rgba(26, 26, 46, 0.5) !important;
}

[data-theme="light"] .cc-pill-more {
  color: rgba(26, 26, 46, 0.35) !important;
}

[data-theme="light"] .cc-detail-card {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .cc-detail-title {
  color: #1a1a2e !important;
}

[data-theme="light"] .cc-detail-weekday {
  color: rgba(26, 26, 46, 0.5) !important;
}

[data-theme="light"] .cc-detail-date {
  color: #1a1a2e !important;
}

[data-theme="light"] .cc-count-pill {
  color: rgba(26, 26, 46, 0.55) !important;
  background: rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .cc-detail-empty {
  color: rgba(26, 26, 46, 0.35) !important;
}

[data-theme="light"] .cc-post-card {
  color: #1a1a2e !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
  background: rgba(0, 0, 0, 0.02) !important;
}

[data-theme="light"] .cc-post-card:active {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .cc-card-time {
  color: rgba(26, 26, 46, 0.45) !important;
}

[data-theme="light"] .cc-card-preview {
  color: rgba(26, 26, 46, 0.5) !important;
}

[data-theme="light"] .cc-card-plat-names {
  color: rgba(26, 26, 46, 0.45) !important;
}

[data-theme="light"] .cc-card-arrow {
  color: rgba(26, 26, 46, 0.2) !important;
}

/* ==========================================
   LEADERBOARD
   ========================================== */

/* Period filter */
.lb-period-filter { display:flex; justify-content:center; gap:8px; margin-bottom:20px; }
.lb-pill { padding:7px 18px; border-radius:20px; border:none; background:rgba(99,102,241,0.12); color:#818cf8; font-size:0.8rem; cursor:pointer; font-weight:500; transition:all 0.2s; }
.lb-pill.active { background:#6366f1; color:#fff; font-weight:700; }

/* Hero champions */
.lb-heroes { display:flex; gap:12px; margin-bottom:20px; }
.lb-hero { flex:1; border-radius:14px; padding:16px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:4px; }
.lb-hero--gold { background:linear-gradient(135deg, rgba(251,191,36,0.12), rgba(168,85,247,0.08)); border:1px solid rgba(251,191,36,0.25); flex:1.3; }
.lb-hero--indigo { background:rgba(99,102,241,0.08); border:1px solid rgba(99,102,241,0.2); }
.lb-hero--green { background:rgba(16,185,129,0.06); border:1px solid rgba(16,185,129,0.2); }
.lb-hero--empty { opacity:0.5; }
.lb-hero-emoji { font-size:1.8rem; }
.lb-hero-title { font-size:0.55rem; text-transform:uppercase; letter-spacing:1.5px; color:#a5b4fc; }
.lb-hero--gold .lb-hero-title { color:#fbbf24; }
.lb-hero--green .lb-hero-title { color:#6ee7b7; }
.lb-hero-name { font-size:0.95rem; font-weight:700; color:#e2e8f0; }
.lb-hero--gold .lb-hero-name { color:#fef3c7; }
.lb-hero-value { font-size:0.75rem; font-weight:600; color:#818cf8; }
.lb-hero--gold .lb-hero-value { color:#fbbf24; }
.lb-hero--green .lb-hero-value { color:#34d399; }

/* Category grid */
.lb-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:20px; }
.lb-category { background:rgba(99,102,241,0.04); border:1px solid rgba(99,102,241,0.1); border-radius:12px; padding:14px; }
.lb-category-header { display:flex; align-items:center; gap:6px; margin-bottom:10px; }
.lb-category-icon { font-size:1rem; }
.lb-category-label { font-size:0.72rem; font-weight:700; color:var(--cat-color, #a5b4fc); text-transform:uppercase; letter-spacing:0.5px; }
.lb-category-list { font-size:0.75rem; }
.lb-row { display:flex; justify-content:space-between; padding:3px 6px; border-radius:5px; color:#94a3b8; line-height:2; }
.lb-row--top1 { background:rgba(251,191,36,0.08); }
.lb-row--top3 { background:rgba(251,191,36,0.03); }
.lb-row--me { background:rgba(99,102,241,0.12); color:#e2e8f0; font-weight:600; }
.lb-row-rank { min-width:24px; }
.lb-row-name { flex:1; }
.lb-row-value { font-weight:600; }
.lb-empty-cat { color:#475569; font-size:0.75rem; text-align:center; padding:12px; }
.lb-empty { color:#475569; text-align:center; padding:20px; font-size:0.85rem; }

/* Score breakdown */
.lb-breakdown { display:none; padding:8px 10px 4px; margin-top:4px; background:rgba(0,0,0,0.25); border-radius:8px; border:1px solid rgba(99,102,241,0.12); }
.lb-row--expanded + .lb-breakdown,
.lb-hero--expanded .lb-breakdown { display:block; }
.lb-breakdown-line { display:flex; align-items:center; gap:6px; padding:3px 0; font-size:0.7rem; color:#cbd5e1; }
.lb-breakdown-icon { font-size:0.8rem; width:20px; text-align:center; flex-shrink:0; }
.lb-breakdown-label { flex:1; color:#94a3b8; }
.lb-breakdown-calc { color:#64748b; font-size:0.65rem; min-width:50px; text-align:right; }
.lb-breakdown-pts { font-weight:700; color:#a5b4fc; min-width:32px; text-align:right; }
.lb-row--has-breakdown { flex-wrap:wrap; }
.lb-row--has-breakdown .lb-breakdown { width:100%; }
.lb-row-expand-icon { font-size:0.6rem; color:#64748b; transition:transform 0.2s; }
.lb-row--expanded .lb-row-expand-icon { transform:rotate(180deg); }
.lb-hero-tap { display:block; font-size:0.55rem; color:#64748b; margin-top:2px; }
.lb-hero--expanded .lb-hero-tap { display:none; }
.lb-hero--has-breakdown .lb-breakdown { margin-top:8px; text-align:left; }

/* Separator */
.lb-separator { margin:24px 0 20px; border-top:2px solid rgba(99,102,241,0.2); position:relative; text-align:center; }
.lb-separator span { position:relative; top:-10px; background:var(--color-bg, #0f172a); padding:0 14px; font-size:0.7rem; color:#818cf8; text-transform:uppercase; letter-spacing:2px; }

/* Finance card */
.lb-finance-card { background:linear-gradient(135deg, rgba(16,185,129,0.08), rgba(99,102,241,0.06)); border:1px solid rgba(16,185,129,0.2); border-radius:14px; padding:18px; margin-bottom:14px; }
.lb-finance-row { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.lb-finance-label { font-size:0.65rem; color:#6ee7b7; text-transform:uppercase; letter-spacing:1px; }
.lb-finance-amount { font-size:1.8rem; font-weight:800; color:#34d399; }
.lb-finance-unit { font-size:0.75rem; color:#6ee7b7; }
.lb-finance-next { text-align:right; }
.lb-finance-date { font-size:0.85rem; color:#e2e8f0; font-weight:600; }
.lb-finance-price { font-size:0.75rem; color:#94a3b8; }
.lb-finance-price s { color:#64748b; }
.lb-green { color:#34d399; font-weight:700; }

/* Progress bars */
.lb-progress-label { font-size:0.65rem; color:#94a3b8; margin-bottom:5px; }
.lb-progress-bar { background:rgba(0,0,0,0.3); border-radius:6px; height:8px; overflow:hidden; }
.lb-progress-fill { height:100%; background:linear-gradient(90deg, #34d399, #6366f1); border-radius:6px; transition:width 0.5s ease; }
.lb-progress--purple .lb-progress-fill { background:#a78bfa; }
.lb-progress-info { display:flex; justify-content:space-between; font-size:0.6rem; color:#64748b; margin-top:3px; }

/* Funnel */
.lb-funnel-card { background:rgba(99,102,241,0.04); border:1px solid rgba(99,102,241,0.1); border-radius:14px; padding:16px; margin-bottom:14px; }
.lb-card-title { font-size:0.75rem; font-weight:700; color:#a5b4fc; margin-bottom:12px; }
.lb-funnel { display:flex; gap:10px; align-items:center; text-align:center; }
.lb-funnel-step { flex:1; border-radius:10px; padding:12px; }
.lb-funnel--indigo { background:rgba(99,102,241,0.1); }
.lb-funnel--green { background:rgba(16,185,129,0.1); }
.lb-funnel--red { background:rgba(239,68,68,0.08); }
.lb-funnel-number { font-size:1.5rem; font-weight:800; }
.lb-funnel--indigo .lb-funnel-number { color:#818cf8; }
.lb-funnel--green .lb-funnel-number { color:#34d399; }
.lb-funnel--red .lb-funnel-number { color:#f87171; }
.lb-funnel-label { font-size:0.6rem; color:#94a3b8; }
.lb-funnel-arrow { color:#475569; font-size:1.2rem; }

/* Credits + Rank */
.lb-credits-rank { display:flex; gap:12px; margin-bottom:14px; }
.lb-credits-card { flex:1; background:rgba(168,85,247,0.04); border:1px solid rgba(168,85,247,0.12); border-radius:12px; padding:14px; }
.lb-credit-row { display:flex; justify-content:space-between; font-size:0.7rem; color:#94a3b8; margin-bottom:5px; }
.lb-rank-card { flex:1; background:rgba(251,191,36,0.04); border:1px solid rgba(251,191,36,0.12); border-radius:12px; padding:14px; text-align:center; }
.lb-rank-number { font-size:2.2rem; font-weight:800; color:#fbbf24; }
.lb-rank-total { font-size:0.7rem; color:#94a3b8; }
.lb-rank-percentile { font-size:0.7rem; color:#34d399; margin-top:4px; }

/* Share generator */
.lb-share-card { background:rgba(99,102,241,0.04); border:1px solid rgba(99,102,241,0.12); border-radius:14px; padding:16px; }
.lb-share-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.lb-share-shuffle { background:rgba(99,102,241,0.1); border:none; color:#94a3b8; padding:5px 12px; border-radius:12px; font-size:0.7rem; cursor:pointer; }
.lb-share-preview { background:rgba(0,0,0,0.25); border:1px solid rgba(99,102,241,0.15); border-radius:10px; padding:14px; margin-bottom:14px; }
.lb-preview-text { font-size:0.82rem; color:#e2e8f0; line-height:1.6; margin-bottom:14px; }
.lb-og-card { border:1px solid rgba(99,102,241,0.25); border-radius:12px; overflow:hidden; box-shadow:0 4px 24px rgba(99,102,241,0.15); }
.lb-og-banner { position:relative; padding:0; min-height:160px; display:flex; align-items:center; justify-content:center; }
.lb-og-gradient { position:absolute; inset:0; background:linear-gradient(135deg, #0f0a2e 0%, #1e1b4b 30%, #312e81 60%, #4338ca 85%, #6366f1 100%); }
.lb-og-gradient::after { content:''; position:absolute; inset:0; background:radial-gradient(ellipse at 70% 20%, rgba(139,92,246,0.3) 0%, transparent 60%), radial-gradient(ellipse at 20% 80%, rgba(99,102,241,0.2) 0%, transparent 50%); }
.lb-og-banner-content { position:relative; z-index:1; text-align:center; padding:20px 16px; }
.lb-og-logo-img { width:56px; height:56px; border-radius:14px; margin-bottom:10px; box-shadow:0 4px 16px rgba(0,0,0,0.3); border:2px solid rgba(255,255,255,0.15); }
.lb-og-headline { font-size:1.1rem; font-weight:800; color:#fff; letter-spacing:-0.02em; margin-bottom:4px; text-shadow:0 2px 8px rgba(0,0,0,0.3); }
.lb-og-tagline { font-size:0.72rem; color:#c4b5fd; line-height:1.4; max-width:280px; margin:0 auto 12px; }
.lb-og-badges { display:flex; gap:6px; justify-content:center; flex-wrap:wrap; }
.lb-og-badge { font-size:0.6rem; font-weight:700; padding:3px 10px; border-radius:20px; background:rgba(255,255,255,0.1); backdrop-filter:blur(4px); color:#e2e8f0; border:1px solid rgba(255,255,255,0.12); }
.lb-og-footer { padding:8px 14px; background:rgba(0,0,0,0.5); display:flex; align-items:center; gap:6px; font-size:0.6rem; color:#64748b; }
.lb-share-styles { display:grid; grid-template-columns:1fr 1fr; gap:6px; margin-bottom:14px; }
.lb-style-btn { background:rgba(99,102,241,0.06); border:1px solid rgba(99,102,241,0.12); border-radius:8px; padding:8px; font-size:0.7rem; color:#94a3b8; cursor:pointer; font-weight:600; text-align:left; transition:all 0.2s; }
.lb-style-btn.active { background:rgba(99,102,241,0.15); border-color:#6366f1; color:#a5b4fc; }
.lb-share-copy-btn { width:100%; background:#6366f1; border:none; border-radius:8px; padding:11px; font-size:0.82rem; color:#fff; font-weight:700; cursor:pointer; margin-bottom:10px; transition:background 0.2s; }
.lb-share-copy-btn:hover { background:#4f46e5; }
.lb-share-buttons { display:flex; gap:8px; margin-bottom:14px; }
.lb-share-btn { flex:1; border-radius:8px; padding:9px; font-size:0.72rem; font-weight:600; cursor:pointer; border:1px solid; text-align:center; }
.lb-share--whatsapp { background:rgba(37,211,102,0.1); border-color:rgba(37,211,102,0.25); color:#25d366; }
.lb-share--facebook { background:rgba(24,119,242,0.1); border-color:rgba(24,119,242,0.25); color:#1877f2; }
.lb-share--instagram { background:rgba(228,64,95,0.1); border-color:rgba(228,64,95,0.25); color:#e4405f; }
.lb-share--email { background:rgba(99,102,241,0.1); border-color:rgba(99,102,241,0.25); color:#818cf8; }
.lb-referral-link { margin-top:14px; padding-top:14px; border-top:1px solid rgba(99,102,241,0.1); }
.lb-link-row { display:flex; gap:8px; }
.lb-link-code { flex:1; background:rgba(0,0,0,0.3); border-radius:8px; padding:9px 12px; font-size:0.72rem; color:#e2e8f0; font-family:monospace; word-break:break-all; }
.lb-link-copy { background:#6366f1; border:none; border-radius:8px; padding:9px 16px; font-size:0.72rem; color:#fff; font-weight:600; cursor:pointer; white-space:nowrap; }

/* Responsive */
@media (max-width: 640px) {
  .lb-heroes { flex-direction:column; }
  .lb-grid { grid-template-columns:1fr; }
  .lb-credits-rank { flex-direction:column; }
  .lb-finance-row { flex-direction:column; gap:12px; }
  .lb-finance-next { text-align:left; }
  .lb-share-styles { grid-template-columns:1fr; }
}
