:root {
  /* Neumorphism Palette (Light Mode by default) */
  --bg-color: #e0e5ec;
  --text-main: #4a4a4a;
  --text-light: #a0a5a9;
  --accent-color: #8b5cf6; /* Violet soft */
  
  /* Shadows */
  --shadow-light: #ffffff;
  --shadow-dark: #a3b1c6;
  
  /* Neumorphism Shadows */
  --neumorph-out: 9px 9px 16px var(--shadow-dark), -9px -9px 16px var(--shadow-light);
  --neumorph-in: inset 6px 6px 10px var(--shadow-dark), inset -6px -6px 10px var(--shadow-light);
  
  /* Spacing & Radius */
  --radius-main: 30px;
  --radius-btn: 50px;
}

/* Dark Mode */
[data-theme="dark"] {
  --bg-color: #1a1a2e;
  --text-main: #e2e8f0;
  --text-light: #94a3b8;
  --shadow-light: #252545;
  --shadow-dark: #0f0f1e;
  --neumorph-out: 9px 9px 16px var(--shadow-dark), -9px -9px 16px var(--shadow-light);
  --neumorph-in: inset 6px 6px 10px var(--shadow-dark), inset -6px -6px 10px var(--shadow-light);
}

/* Dark mode toggle button */
.theme-toggle {
  background: none; border: none; cursor: pointer; font-size: 1.3rem;
  padding: 4px; transition: transform 0.3s;
}
.theme-toggle:hover { transform: rotate(20deg); }

/* Smooth transition */
body, .neu-card, .nav, .footer-new, input, select, textarea {
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* Dark mode nav fix */
[data-theme="dark"] .nav { background: rgba(26,26,46,0.92); border-bottom-color: rgba(255,255,255,0.05); }
[data-theme="dark"] img { filter: brightness(0.9); }
[data-theme="dark"] .nav-cta { box-shadow: 0 4px 15px rgba(139,92,246,0.4); }

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Typography */
h1, h2, h3 {
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
p { color: #6b7280; font-size: 1.1rem; }

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Neumorphism Cards */
.neu-card {
  background: var(--bg-color);
  box-shadow: var(--neumorph-out);
  border-radius: var(--radius-main);
  padding: 40px;
  border: 1px solid rgba(255,255,255,0.2);
}

/* F.2 — Enhanced hover states */
.neu-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.neu-card:hover {
  transform: translateY(-3px);
  box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
}

/* F.3 — Loading skeletons */
.skeleton {
  background: linear-gradient(90deg, var(--bg-color) 25%, var(--shadow-light) 50%, var(--bg-color) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}
.skeleton-text { height: 14px; margin-bottom: 8px; width: 80%; }
.skeleton-text.short { width: 50%; }
.skeleton-title { height: 22px; margin-bottom: 12px; width: 60%; }
.skeleton-avatar { width: 48px; height: 48px; border-radius: 50%; }
.skeleton-card { height: 120px; border-radius: 16px; margin-bottom: 12px; }
.skeleton-btn { height: 44px; width: 140px; border-radius: 22px; }
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg, #1a1a2e 25%, #252545 50%, #1a1a2e 75%);
  background-size: 200% 100%;
}

/* Global nav responsive */
.nav-links-desktop { display: flex; }
@media (max-width: 768px) {
  .nav-links-desktop { display: none !important; }
}

/* Neumorphism Buttons */
.neu-btn {
  display: inline-block;
  padding: 16px 32px;
  background: var(--bg-color);
  box-shadow: var(--neumorph-out);
  border-radius: var(--radius-btn);
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.neu-btn:hover {
  transform: translateY(-2px);
  box-shadow: 12px 12px 20px var(--shadow-dark), -12px -12px 20px var(--shadow-light);
}

.neu-btn:active {
  box-shadow: var(--neumorph-in);
  transform: translateY(0);
}

.neu-btn.primary {
  color: var(--accent-color);
}

/* Navbar */
.navbar {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent-color);
}

/* Hero Section */
.hero {
  padding: 100px 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 span {
  color: var(--accent-color);
}

.hero-mockup {
  margin-top: 60px;
  width: 100%;
  max-width: 900px;
  height: 500px; /* Placeholder */
  background: var(--bg-color);
  box-shadow: var(--neumorph-out); /* Depth */
  border-radius: 20px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

/* Features Page Specifics */
.feature-block {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.feature-block:nth-child(even) {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
}

.feature-visual {
  flex: 1;
  height: 300px;
  background: var(--bg-color);
  box-shadow: var(--neumorph-in);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-light);
}

.feature-icon-small {
  font-size: 2rem;
  margin-bottom: 15px;
  display: inline-block;
  background: var(--bg-color);
  box-shadow: var(--neumorph-out);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-details {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.feature-details li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
  color: var(--text-main);
}

.feature-details li::before {
  content: "•";
  color: var(--accent-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

@media (max-width: 768px) {
  .feature-block {
    flex-direction: column !important;
    text-align: center;
  }
  
  .feature-text {
    text-align: center;
  }
  
  .feature-details li {
    text-align: left; /* Keep lists readable */
    display: inline-block;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-header span {
  color: var(--accent-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-card {
  transition: transform 0.3s ease;
  text-align: left;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: inline-block;
  background: var(--bg-color);
  box-shadow: var(--neumorph-out);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* Pricing Section */
.pricing {
  padding: 100px 0;
  background-color: var(--bg-color); /* Same bg, maybe texture later */
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: center; /* Center vertically if heights differ */
}

.price-card {
  text-align: center;
  position: relative;
  transition: transform 0.3s ease;
}

.price-card:hover {
  transform: translateY(-5px);
}

.price-card.popular {
  border: 2px solid rgba(139, 92, 246, 0.1); /* Subtle accent border */
  transform: scale(1.05);
}

.price-card.popular:hover {
  transform: scale(1.05) translateY(-5px);
}

.price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 20px 0;
}

.price span {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 500;
}

.price-card .desc {
  margin-bottom: 30px;
  font-size: 0.9rem;
}

.features-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
  text-align: left;
}

.features-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  color: var(--text-main);
  font-size: 0.95rem;
}

.features-list li:last-child {
  border-bottom: none;
}

.badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-color);
  box-shadow: var(--neumorph-out);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: 1px;
}

/* Wizard Section */
.wizard-section {
  padding: 100px 0;
}

.wizard-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.wizard-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-bottom: 20px;
}

/* Hidden Utility */
.hidden {
  display: none !important;
}

.step {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

.step.active {
  color: var(--accent-color);
  font-weight: 700;
}

.form-group {
  margin-bottom: 30px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text-main);
}

.neu-input {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 15px;
  background: var(--bg-color);
  box-shadow: var(--neumorph-in);
  font-size: 1rem;
  color: var(--text-main);
  outline: none;
}

.neu-input:focus {
  box-shadow: inset 8px 8px 12px var(--shadow-dark), inset -8px -8px 12px var(--shadow-light), 0 0 5px rgba(139, 92, 246, 0.2);
}

.emoji-selector {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.emoji-option {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-color);
  box-shadow: var(--neumorph-out);
  cursor: pointer;
  transition: all 0.2s;
}

.emoji-option:hover {
  transform: scale(1.1);
}

.emoji-option.selected {
  box-shadow: var(--neumorph-in); /* Pressed effect */
  background: #f5f3ff;
}

.wizard-actions {
  margin-top: 40px;
}

/* Personality Grid */
.personality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.personality-option {
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.personality-option:hover {
  transform: translateY(-5px);
}

.personality-option.selected {
  border-color: var(--accent-color);
  box-shadow: var(--neumorph-in);
}

.personality-option .icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.personality-option h4 {
  margin: 0 0 5px 0;
  font-size: 1rem;
}

.personality-option p {
  font-size: 0.8rem;
  margin: 0;
}

@media (max-width: 768px) {
  .personality-grid {
    grid-template-columns: 1fr;
  }
}

.footer {
  text-align: center;
  padding: 40px 0;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Build Console */
.build-console {
  background: #1e1e1e; /* Dark terminal */
  color: #00ff00; /* Hacker green */
  font-family: 'Courier New', monospace;
  text-align: left;
  padding: 20px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 5px 5px 10px #000, inset -5px -5px 10px #333;
  border: 1px solid #333;
}

#build-logs {
  font-size: 0.9rem;
  line-height: 1.5;
}

.progress-bar {
  height: 10px;
  background: #333;
  border-radius: 5px;
  margin-top: 20px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #00ff00;
  width: 0%;
  transition: width 0.2s;
}

/* Phone Mockup (WhatsApp Style) */
.hero-mockup {
  padding: 0 !important; /* Reset padding from neu-card */
  height: 600px;
  max-width: 350px; /* Phone width */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 8px solid var(--bg-color); /* Bezel */
}

.phone-frame {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #efeae2; /* WhatsApp Wallpaper color roughly */
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23d1d7db' fill-opacity='0.2' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.chat-header {
  background: var(--bg-color);
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  z-index: 2;
}

.chat-header .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-color);
  box-shadow: var(--neumorph-out);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.chat-header .info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.chat-header .name {
  font-weight: 700;
  font-size: 1rem;
}

.chat-header .status {
  font-size: 0.8rem;
  color: var(--accent-color);
}

.chat-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.message {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 15px;
  position: relative;
  font-size: 0.9rem;
  line-height: 1.4;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.message p {
  color: inherit;
  margin: 0;
  font-size: 0.9rem;
}

.message .time {
  font-size: 0.65rem;
  display: block;
  text-align: right;
  margin-top: 5px;
  opacity: 0.7;
}

.message-in {
  background: white;
  color: black;
  align-self: flex-start;
  border-top-left-radius: 0;
}

.message-out {
  background: #d9fdd3; /* WhatsApp Green */
  color: black;
  align-self: flex-end;
  border-top-right-radius: 0;
}

.chat-input {
  background: var(--bg-color);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fake-input {
  flex: 1;
  background: #f0f2f5;
  padding: 10px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #aaa;
  text-align: left;
  box-shadow: inset 2px 2px 5px rgba(0,0,0,0.05);
}

.send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: var(--neumorph-out);
}

/* ============================================
   HAMBURGER MENU
   ============================================ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   RESPONSIVE — MOBILE FIRST
   ============================================ */

/* Tablet & below */
@media (max-width: 768px) {
  /* Typography */
  h1 { font-size: 2rem !important; }
  h2 { font-size: 1.6rem !important; }
  p { font-size: 1rem; }
  
  /* Navbar */
  .hamburger { display: flex; }
  
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 1000;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    font-size: 1.3rem;
  }
  
  /* Hero */
  .hero { padding: 60px 0 40px; }
  .hero-mockup { height: 300px; }
  
  /* Cards */
  .neu-card { padding: 24px; }
  
  /* Feature blocks */
  .feature-block,
  .feature-block:nth-child(even) {
    flex-direction: column !important;
    text-align: center;
    gap: 20px;
  }
  .feature-visual { width: 100% !important; }
  
  /* Grids */
  .features-grid,
  .pricing-plans,
  .wizard-step { padding: 0 16px; }
  
  /* Sections */
  section { padding-left: 16px; padding-right: 16px; }
  
  /* Demo chat */
  .demo-phone {
    width: 280px !important;
    height: 480px !important;
  }
  
  /* Wizard */
  .wizard-container { padding: 20px; }
  
  /* Auth forms */
  .auth-container {
    padding: 20px !important;
    margin: 80px 16px 40px !important;
  }
}

/* Small phones */
@media (max-width: 480px) {
  h1 { font-size: 1.7rem !important; }
  h2 { font-size: 1.4rem !important; }
  
  .neu-card { padding: 18px; border-radius: 20px; }
  .neu-btn { padding: 14px 24px; font-size: 0.9rem; }
  
  .hero { padding: 40px 0 30px; }
  
  .container { padding: 0 12px; }
}

/* Large screens */
@media (min-width: 1400px) {
  .container { max-width: 1300px; }
  h1 { font-size: 4rem; }
}

/* ============================================
   POLISH — ANIMATIONS & MICRO-INTERACTIONS
   ============================================ */

/* Page fade-in */
body {
  animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Card entrance animation */
.neu-card {
  animation: cardIn 0.5s ease-out both;
}
.neu-card:nth-child(1) { animation-delay: 0.05s; }
.neu-card:nth-child(2) { animation-delay: 0.1s; }
.neu-card:nth-child(3) { animation-delay: 0.15s; }
.neu-card:nth-child(4) { animation-delay: 0.2s; }
.neu-card:nth-child(5) { animation-delay: 0.25s; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Smooth hover lift on cards */
.neu-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.stat-card:hover, .feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 12px 12px 20px var(--shadow-dark), -12px -12px 20px var(--shadow-light);
}

/* Button press feedback */
.neu-btn {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.neu-btn:active {
  transform: scale(0.97) !important;
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, 
    rgba(0,0,0,0.04) 25%, 
    rgba(0,0,0,0.08) 50%, 
    rgba(0,0,0,0.04) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-text {
  height: 16px;
  margin-bottom: 8px;
  width: 80%;
}
.skeleton-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.skeleton-value {
  height: 40px;
  width: 60%;
  margin: 10px auto;
}

/* Tooltip */
[data-tooltip] {
  position: relative;
  cursor: help;
}
[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-main);
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  z-index: 100;
  animation: tooltipIn 0.15s ease-out;
}
@keyframes tooltipIn {
  from { opacity: 0; transform: translateX(-50%) translateY(4px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Status dot */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}
.status-dot.online {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16,185,129,0.5);
  animation: pulse-dot 2s infinite;
}
.status-dot.offline {
  background: #ef4444;
}
.status-dot.idle {
  background: #f59e0b;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Smooth number transitions */
.stat-value {
  transition: all 0.3s ease;
}

/* Focus ring for accessibility */
:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Selection color */
::selection {
  background: rgba(139, 92, 246, 0.2);
  color: var(--text-main);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* ============================================
   DARK MODE
   ============================================ */

/* Dark mode via manual toggle OR system preference (when no manual choice) */
body.dark-mode,
body:not(.light-mode):is([data-auto-dark="true"] *) {
  --bg-color: #2d2d3a;
  --text-main: #e4e4e7;
  --text-light: #9ca3af;
  --shadow-dark: #1a1a24;
  --shadow-light: #3d3d4e;
}

/* Force light mode when toggled */
body.light-mode {
  --bg-color: #e0e5ec;
  --text-main: #4a4a4a;
  --text-light: #a0a5a9;
  --shadow-dark: #a3b1c6;
  --shadow-light: #ffffff;
}

body.dark-mode .message-in { background: #374151; color: #e4e4e7; }
body.dark-mode .message-out { background: #1e3a29; color: #e4e4e7; }
body.dark-mode .phone-frame { background-color: #1a1a24; }
body.dark-mode .chat-header { border-bottom-color: rgba(255,255,255,0.05); }
body.dark-mode .fake-input { background: #374151; color: #9ca3af; }
body.dark-mode .build-console { background: #0d0d0d; }
body.dark-mode .features-list li,
body.dark-mode .log-item { border-bottom-color: rgba(255,255,255,0.05); }
body.dark-mode .neu-card { border-color: rgba(255,255,255,0.05); }
body.dark-mode .skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
