/* Eldo planer — clean polish + light/dark theme. */
:root {
  --eldo-copper: #d97757;
  --eldo-copper-2: #e88c58;
  --eldo-copper-bord: rgba(217, 119, 87, 0.45);
  --eldo-copper-soft: rgba(217, 119, 87, 0.16);
}

html, body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* === DEFAULT DARK MODE — keep planer's defaults === */
html[data-theme="dark"] body { background-color: #0e1117; }

/* === LIGHT MODE BASE === */
html[data-theme="light"] {
  background-color: #f5f1e8 !important;
}
html[data-theme="light"] body {
  background-color: #f5f1e8 !important;
  color: #1c2030 !important;
}
html[data-theme="light"] *:not(svg):not(path):not(circle):not(rect):not(line):not(polygon):not(polyline):not(canvas):not(img):not([style*="background-image"]):not(.eldo-theme-toggle):not(.eldo-nazad-inline) {
  color: #1c2030;
}
html[data-theme="light"] aside {
  background-color: #f5f1e8 !important;
}
html[data-theme="light"] aside h1,
html[data-theme="light"] aside h2,
html[data-theme="light"] aside h3,
html[data-theme="light"] aside h4,
html[data-theme="light"] aside p,
html[data-theme="light"] aside span,
html[data-theme="light"] aside div,
html[data-theme="light"] aside label {
  color: #1c2030 !important;
}
html[data-theme="light"] aside [style*="color: hsl(220, 15%, 95%)"],
html[data-theme="light"] aside [style*="color:hsl(220, 15%, 95%)"] {
  color: #1c2030 !important;
}
html[data-theme="light"] aside [style*="color: hsl(220, 10%, 45%)"],
html[data-theme="light"] aside [style*="color:hsl(220, 10%, 45%)"],
html[data-theme="light"] aside [style*="color: hsl(220, 15%, 70%)"],
html[data-theme="light"] aside [style*="color:hsl(220, 15%, 70%)"] {
  color: #6a6050 !important;
}
html[data-theme="light"] [class*="section-label"],
html[data-theme="light"] [class*="SectionLabel"],
html[data-theme="light"] .uppercase {
  color: #c97244 !important;
}

/* Cards & inputs */
html[data-theme="light"] .category-card,
html[data-theme="light"] [class*="category-card"] {
  background-color: #faf6ee !important;
  border-color: #d8cdb6 !important;
}
html[data-theme="light"] .subcategory-grid,
html[data-theme="light"] [class*="subcategory"] {
  background-color: #ede5d2 !important;
  border-color: #d8cdb6 !important;
}
html[data-theme="light"] input[type="text"],
html[data-theme="light"] input[type="number"],
html[data-theme="light"] input:not([type]) {
  background-color: #faf6ee !important;
  border-color: #d8cdb6 !important;
  color: #1c2030 !important;
}

/* Top toolbar */
html[data-theme="light"] [aria-label][class*="rounded"]:not([class*="text-"]):not([class*="bg-green"]):not(.eldo-theme-toggle):not([style*="background-image"]) {
  background-color: rgba(255, 252, 245, 0.92) !important;
  border-color: #d8cdb6 !important;
  color: #1c2030 !important;
}
html[data-theme="light"] [class*="status-bar"],
html[data-theme="light"] [class*="StatusBar"],
html[data-theme="light"] [class*="info-pill"] {
  background-color: rgba(255, 252, 245, 0.88) !important;
  border-color: #d8cdb6 !important;
  color: #1c2030 !important;
}

/* Scrollbars */
html[data-theme="light"] *::-webkit-scrollbar-track { background-color: transparent !important; }
html[data-theme="light"] *::-webkit-scrollbar-thumb { background-color: #c8bda5 !important; }

/* Nazad button */
.eldo-nazad-inline {
  display: inline-flex; align-items: center; gap: 5px;
  margin-right: 8px;
  padding: 6px 12px 6px 10px;
  background-color: rgba(20, 24, 31, 0.92);
  border: 1px solid var(--eldo-copper-bord);
  border-radius: 999px;
  color: var(--eldo-copper-2);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
}
.eldo-nazad-inline svg { width: 12px; height: 12px; }
.eldo-nazad-inline:hover {
  background-color: rgba(217, 119, 87, 0.18);
  border-color: var(--eldo-copper);
  color: #fff;
  transform: translateY(-1px);
}
html[data-theme="light"] .eldo-nazad-inline {
  background-color: rgba(255, 252, 245, 0.92);
  color: #c97244;
}
html[data-theme="light"] .eldo-nazad-inline:hover {
  background-color: var(--eldo-copper);
  color: #fff;
}

/* Floating WhatsApp */
.eldo-floating-wa {
  position: fixed; bottom: 18px; right: 18px; z-index: 9998;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff; border: none; border-radius: 999px;
  padding: 10px 18px 10px 14px;
  font-size: 0.88rem; font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.18s ease;
}
.eldo-floating-wa svg { width: 16px; height: 16px; }
.eldo-floating-wa:hover { transform: translateY(-2px); filter: brightness(1.06); }

/* Hide bottom inquiry bar */
[data-tour="inquiry-bar"] { display: none !important; }

/* Theme toggle button */
.eldo-theme-toggle {
  position: fixed; top: 14px; right: 16px; z-index: 99999;
  width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid var(--eldo-copper-bord);
  background-color: rgba(20, 24, 31, 0.85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--eldo-copper-2);
  cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  transition: all 0.18s ease;
}
.eldo-theme-toggle:hover { transform: scale(1.06); border-color: var(--eldo-copper); }
.eldo-theme-toggle svg { width: 16px; height: 16px; }
.eldo-theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .eldo-theme-toggle {
  background-color: rgba(255, 252, 245, 0.92);
  border-color: rgba(217, 119, 87, 0.45);
  color: #c97244;
}
html[data-theme="light"] .eldo-theme-toggle:hover {
  background-color: var(--eldo-copper); color: #fff;
}
html[data-theme="light"] .eldo-theme-toggle .icon-sun { display: block; }
html[data-theme="light"] .eldo-theme-toggle .icon-moon { display: none; }

/* === Auto-generated LIGHT mode overrides from compiled CSS === */
html[data-theme="light"] .eldo-tour-tooltip{position:fixed;z-index:9002;width:420px;max-width:calc(100vw - 32px);background:radial-gradient(120% 80% at 0% 0%,#7a4d1f2e,#e0d8c800 60%),linear-gradient(180deg,#dfd7c7,#e1d9c9);color:#1c2030;border:1px solid hsl(225,20%,22%);border-radius:14px;padding:0;overflow:hidden;box-shadow:0 18px 48px #0000008c,0 4px 12px #00000059,inset 0 1px #3a3f4d0f,0 0 0 1px #3a3f4d14;animation:eldo-tour-fade-in .28s cubic-bezier(.22,1,.36,1) both;transition:top .28s cubic-bezier(.22,1,.36,1),left .28s cubic-bezier(.22,1,.36,1);font-family:inherit}
html[data-theme="light"] .eldo-tour-progressbar{height:3px;background:#d8d0c0;position:relative;overflow:hidden}
html[data-theme="light"] .eldo-tour-progressbar-fill{position:absolute;inset:0 auto 0 0;background:linear-gradient(90deg,#dc7a18,#3a3f4d 60%,#fbcb6a);box-shadow:0 0 12px #3a3f4d8c;transition:width .36s cubic-bezier(.22,1,.36,1)}
html[data-theme="light"] .eldo-tour-step-badge{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,#e48525,#3a3f4d);color:#fff;font-weight:700;font-size:15px;font-variant-numeric:tabular-nums;letter-spacing:.5px;box-shadow:inset 0 1px #ffffff40,0 4px 12px #f9800659;animation:eldo-tour-badge-glow 2.4s ease-in-out infinite}
html[data-theme="light"] .eldo-tour-category-overview{background:#5281e01f;color:#3a3f4d;border-color:#5281e04d}
html[data-theme="light"] .eldo-tour-category-tutorial{background:#e88c3024;color:#3a3f4d;border-color:#e88c3052}
html[data-theme="light"] .eldo-tour-tooltip-title{font-size:16px;font-weight:600;color:#1c2030;margin:0;letter-spacing:.1px;line-height:1.3}
html[data-theme="light"] .eldo-tour-tooltip-divider{height:1px;margin:14px 0 12px;background:linear-gradient(90deg,#3a3f4d00,#3a3f4d59 20%,#c8c0b080 50%,#c8c0b000)}
html[data-theme="light"] .eldo-tour-tooltip-body{font-size:13px;line-height:1.55;color:#1c2030;margin:0 0 14px}
html[data-theme="light"] .eldo-tour-tooltip-body strong{color:#1c2030;font-weight:600}
html[data-theme="light"] .eldo-tour-lead{margin:0 0 10px;color:#1c2030}
html[data-theme="light"] .eldo-tour-cta{margin:10px 0 0!important;padding:8px 12px;background:#e88c3014;border-left:3px solid hsl(30,85%,58%);border-radius:0 6px 6px 0;color:#1c2030;font-size:12.5px;font-weight:500}
html[data-theme="light"] .eldo-tour-list li:before{content:"";position:absolute;left:4px;top:11px;width:6px;height:6px;border-radius:50%;background:#3a3f4d;box-shadow:0 0 6px #3a3f4d99}
html[data-theme="light"] .eldo-tour-inline-accent{color:#3a3f4d;font-weight:600}
html[data-theme="light"] .eldo-tour-inline-amber{color:#3a3f4d;font-weight:600}
html[data-theme="light"] .eldo-tour-callout-body{color:#1c2030;align-self:center}
html[data-theme="light"] .eldo-tour-callout-tip .eldo-tour-callout-label{background:#3399cc2e;color:#3a3f4d}
html[data-theme="light"] .eldo-tour-callout-warn .eldo-tour-callout-label{background:#f4af2533;color:#1c2030}
html[data-theme="light"] .eldo-tour-callout-pro .eldo-tour-callout-label{background:#ad5cd633;color:#3a3f4d}
html[data-theme="light"] .eldo-tour-tooltip-body kbd{display:inline-flex;align-items:center;justify-content:center;min-width:1.6em;padding:0 7px;height:21px;border-radius:5px;background:linear-gradient(180deg,#d2caba,#d9d1c1);border:1px solid hsl(225,20%,28%);border-bottom-width:2px;color:#3a3f4d;font-family:ui-monospace,JetBrains Mono,monospace;font-size:11px;font-weight:600;margin:0 2px;box-shadow:inset 0 1px #ffffff0f,0 1px #0006}
html[data-theme="light"] .eldo-tour-btn-ghost:hover{color:#1c2030;background:#d4ccbc80}
html[data-theme="light"] .eldo-tour-btn-secondary{background:#d8d0c0;color:#1c2030;border-color:#cfc7b7}
html[data-theme="light"] .eldo-tour-btn-secondary:hover{background:#d4ccbc;border-color:#c8c0b0}
html[data-theme="light"] .eldo-tour-btn-primary:hover{background:linear-gradient(180deg,#3a3f4d,#ed851d);box-shadow:inset 0 1px #ffffff40,0 4px 14px #f9800673}
html[data-theme="light"] .eldo-tour-success{position:fixed;top:50%;left:50%;z-index:9003;display:flex;align-items:center;gap:10px;padding:14px 22px 14px 18px;background:#e0d8c8;border:1px solid hsl(140,50%,40%);border-radius:999px;color:#1c2030;font-size:14px;font-weight:500;pointer-events:none;box-shadow:0 10px 30px #0006,0 0 0 8px #2eb85c2e,0 0 24px 4px #2eb85c59;animation:eldo-tour-success-pop .38s cubic-bezier(.34,1.56,.64,1) both}
html[data-theme="light"] .eldo-tour-cursor:before{content:"";position:absolute;inset:0;border-radius:50%;background:#3a3f4d8c;animation:eldo-tour-cursor-pulse 1.4s ease-out infinite}
html[data-theme="light"] .eldo-tour-finale-card{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:12px;padding:36px 44px 32px;border-radius:20px;background:radial-gradient(120% 80% at 0% 0%,#e680192e,#e0d8c800 60%),linear-gradient(180deg,#ddd5c5,#e2daca);border:1px solid hsl(225,22%,24%);box-shadow:0 24px 64px #000000a6,0 0 0 1px #3a3f4d26,inset 0 1px #3a3f4d14;min-width:320px;max-width:480px;text-align:center;animation:eldo-tour-finale-card-pop .72s cubic-bezier(.34,1.56,.64,1) both}
html[data-theme="light"] .eldo-tour-finale-title{margin:6px 0 0;font-size:28px;font-weight:700;letter-spacing:.4px;background:linear-gradient(135deg,#3a3f4d,#1c2030,#3a3f4d);-webkit-background-clip:text;background-clip:text;color:transparent}
html[data-theme="light"] .eldo-tour-finale-subtitle{margin:0;font-size:14px;line-height:1.5;color:#1c2030;max-width:340px}
html[data-theme="light"] *,html[data-theme="light"] :before,html[data-theme="light"] :after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#1c2030}
html[data-theme="light"] input::-moz-placeholder,html[data-theme="light"] textarea::-moz-placeholder{opacity:1;color:#3a3f4d}
html[data-theme="light"] input::placeholder,html[data-theme="light"] textarea::placeholder{opacity:1;color:#3a3f4d}
html[data-theme="light"] .sidebar-panel{background:linear-gradient(180deg,#dcd4c4,#e0d8c8);color:hsl(var(--sidebar-fg));border-right:1px solid hsl(225,20%,16%)}
html[data-theme="light"] .sidebar-input{background-color:#dad2c2;border:1px solid hsl(225,18%,22%);color:hsl(var(--sidebar-fg));border-radius:.5rem;padding:.5rem .75rem;font-size:.8125rem;transition:all .2s ease}
html[data-theme="light"] .sidebar-input:hover{border-color:#cac2b2}
html[data-theme="light"] .sidebar-input:focus{outline:none;border-color:#db8024;box-shadow:0 0 0 3px #db80241a;background-color:#d7cfbf}
html[data-theme="light"] .catalog-card{background:linear-gradient(145deg,#dad2c2,#ddd5c5);border:1px solid hsl(225,18%,20%);border-radius:.75rem;padding:.75rem .625rem .625rem;cursor:pointer;transition:all .25s cubic-bezier(.4,0,.2,1);display:flex;flex-direction:column;align-items:center;gap:.375rem;position:relative;overflow:hidden}
html[data-theme="light"] .category-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.625rem;padding:1rem .75rem;border-radius:.875rem;font-size:.75rem;font-weight:600;transition:all .3s cubic-bezier(.4,0,.2,1);cursor:pointer;position:relative;overflow:hidden;background:linear-gradient(145deg,#dad2c2,#dfd7c7);border:1px solid hsl(225,18%,20%);color:#3a3f4d}
html[data-theme="light"] .subcategory-grid{background:linear-gradient(145deg,#dfd7c7,#e1d9c9);border:1px solid hsl(225,18%,18%);border-radius:.875rem;padding:.75rem}
html[data-theme="light"] .back-button{display:flex;align-items:center;gap:.375rem;font-size:.6875rem;font-weight:600;padding:.375rem .625rem;border-radius:.5rem;transition:all .2s ease;color:#3a3f4d;background:transparent}
html[data-theme="light"] .back-button:hover{color:#3a3f4d;background:#db802414}



/* === LIGHT MODE — final aggressive overrides for category cards + tabs === */
html[data-theme="light"] button.category-card,
html[data-theme="light"] .category-card,
html[data-theme="light"] button[class*="category-card"] {
  background-color: #faf6ee !important;
  background-image: none !important;
  border: 1px solid #d8cdb6 !important;
  color: #1c2030 !important;
}
html[data-theme="light"] .category-card *,
html[data-theme="light"] button.category-card * {
  color: #1c2030 !important;
}
html[data-theme="light"] .category-card.active,
html[data-theme="light"] button.category-card.active {
  background: linear-gradient(145deg, rgba(217,119,87,0.12), rgba(217,119,87,0.04)) !important;
  border-color: rgba(217,119,87,0.45) !important;
  color: #c97244 !important;
}
html[data-theme="light"] .category-card.active *,
html[data-theme="light"] button.category-card.active * {
  color: #c97244 !important;
}
/* Tabs: handle Radix data-state */
html[data-theme="light"] [role="tab"][data-state="active"],
html[data-theme="light"] [role="tab"][aria-selected="true"] {
  background-color: #ede5d2 !important;
  color: #c97244 !important;
}
html[data-theme="light"] [role="tab"]:not([data-state="active"]):not([aria-selected="true"]) {
  background-color: transparent !important;
  color: #6a6050 !important;
}
