/* ── NexaSoft Dynamics — Dark Theme CSS ── */
/* Matching the exact Next.js Tailwind design */

/* ── Local Fonts ── */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/inter-300.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-400.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-500.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-600.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-700.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/inter-800.ttf') format('truetype'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/jbmono-400.ttf') format('truetype'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/jbmono-500.ttf') format('truetype'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/jbmono-600.ttf') format('truetype'); }

:root {
  --bg: #0A0A0A;
  --fg: #FFFFFF;
  --muted: #A1A1AA;
  --surface: #111111;
  --border: rgba(255, 255, 255, 0.08);
  --purple: #7C3AED;
  --blue: #3B82F6;
  --green: #4ADE80;
  --red: #EF4444;
  --yellow: #EAB308;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; background: var(--bg); }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.5;
}

/* Noise texture overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

::selection { background: rgba(124, 58, 237, 0.3); color: #fff; }

a { text-decoration: none; color: inherit; }

/* ── Utilities ── */
.container { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 640px) { .container { padding: 0 2rem; } }
@media (min-width: 1024px) { .container { padding: 0 3rem; } }

.gradient-text { background: linear-gradient(to right, var(--purple), var(--blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.gradient-bg { background: linear-gradient(to right, var(--purple), var(--blue)); }
.gradient-bg-hover:hover { opacity: 0.9; }

.section-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06) 50%, transparent); }

.gradient-blur {
  position: absolute;
  border-radius: 9999px;
  filter: blur(120px);
  opacity: 0.2;
  pointer-events: none;
}
.gradient-blur.purple { background: var(--purple); }
.gradient-blur.blue { background: var(--blue); }

/* ── Grid pattern ── */
.grid-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-100px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse { 50% { opacity: 0.5; } }
@keyframes spin { to { transform: rotate(360deg); } }

.animate-fadeInUp { animation: fadeInUp 0.5s ease-out forwards; }
.animate-fadeIn { animation: fadeIn 0.5s ease-out forwards; }
.animate-slideDown { animation: slideDown 0.5s ease-out forwards; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-spin { animation: spin 1s linear infinite; }

.delay-100 { animation-delay: 0.1s; opacity: 0; }
.delay-200 { animation-delay: 0.2s; opacity: 0; }
.delay-300 { animation-delay: 0.3s; opacity: 0; }
.delay-400 { animation-delay: 0.4s; opacity: 0; }
.delay-500 { animation-delay: 0.5s; opacity: 0; }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s;
  animation: slideDown 0.5s ease-out;
}
.navbar.scrolled {
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 4rem;
}
@media (min-width: 640px) { .navbar-inner { padding: 0 2rem; } }
@media (min-width: 1024px) { .navbar-inner { padding: 0 3rem; } }

.logo { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.logo-icon {
  width: 2rem; height: 2rem; border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 0.875rem;
}
.logo-text { font-weight: 600; color: white; font-size: 1.125rem; letter-spacing: -0.025em; }
.logo-sub { color: var(--muted); font-weight: 400; margin-left: 0.25rem; }
@media (max-width: 639px) { .logo-sub { display: none; } }

.nav-links { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-link { font-size: 0.875rem; color: var(--muted); transition: color 0.2s; }
.nav-link:hover { color: white; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500;
  color: white; background: linear-gradient(to right, var(--purple), var(--blue));
  border-radius: 0.5rem; border: none; cursor: pointer;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.9; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; font-size: 0.875rem;
  color: var(--muted); background: transparent;
  border: 1px solid var(--border); border-radius: 0.5rem; cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover { color: white; border-color: rgba(255,255,255,0.2); }

/* Mobile menu */
.mobile-toggle {
  display: block; background: none; border: none;
  color: var(--muted); cursor: pointer; padding: 0.25rem;
  transition: color 0.2s;
}
.mobile-toggle:hover { color: white; }
@media (min-width: 768px) { .mobile-toggle { display: none; } }

.mobile-menu {
  display: none; background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.mobile-menu.open { display: block; }
@media (min-width: 768px) { .mobile-menu { display: none !important; } }
.mobile-menu-inner { padding: 1rem 1.5rem; display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-link {
  font-size: 0.875rem; color: var(--muted); padding: 0.75rem 0;
  border-bottom: 1px solid var(--border); transition: color 0.2s;
}
.mobile-link:hover { color: white; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5rem;
  padding-bottom: 3rem;
}
.hero-content { position: relative; z-index: 10; width: 100%; text-align: center; }

.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 1rem; border-radius: 9999px;
  border: 1px solid var(--border);
  background: rgba(17, 17, 17, 0.5);
  backdrop-filter: blur(4px);
  margin-bottom: 2rem;
  font-size: 0.75rem; color: var(--muted);
}
.badge-dot { width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: #4ADE80; animation: pulse 2s infinite; }

.hero h1 {
  font-size: 2.25rem; font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.1;
  max-width: 56rem; margin: 0 auto;
}
@media (min-width: 640px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 768px) { .hero h1 { font-size: 3.75rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 4.5rem; } }

.hero-sub {
  margin-top: 1.5rem; font-size: 1rem; color: var(--muted);
  max-width: 32rem; margin-left: auto; margin-right: auto; line-height: 1.6;
}
@media (min-width: 640px) { .hero-sub { font-size: 1.125rem; } }
@media (min-width: 768px) { .hero-sub { font-size: 1.25rem; } }

.hero-buttons {
  margin-top: 2.5rem; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1rem;
}
@media (min-width: 640px) { .hero-buttons { flex-direction: row; } }
.hero-buttons .btn-primary, .hero-buttons .btn-secondary {
  padding: 0.75rem 1.5rem; width: 100%; justify-content: center;
}
@media (min-width: 640px) { .hero-buttons .btn-primary, .hero-buttons .btn-secondary { width: auto; } }

/* Code editor mockup */
.editor-mockup {
  margin-top: 3.5rem; position: relative; max-width: 64rem; margin-left: auto; margin-right: auto;
}
@media (min-width: 640px) { .editor-mockup { margin-top: 5rem; } }
.editor-glow {
  position: absolute; inset: -1rem;
  background: linear-gradient(to right, rgba(124,58,237,0.2), rgba(59,130,246,0.2));
  filter: blur(48px); border-radius: 1.5rem;
}
.editor-window {
  position: relative; border-radius: 0.75rem;
  border: 1px solid var(--border); background: var(--surface);
  overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}
.window-chrome {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--border);
  background: rgba(10,10,10,0.5);
}
.window-dots { display: flex; gap: 0.375rem; }
.window-dot { width: 0.75rem; height: 0.75rem; border-radius: 9999px; }
.window-dot.red { background: rgba(239,68,68,0.8); }
.window-dot.yellow { background: rgba(234,179,8,0.8); }
.window-dot.green { background: rgba(34,197,94,0.8); }
.window-title {
  flex: 1; display: flex; justify-content: center;
}
.window-title span {
  padding: 0.25rem 0.75rem; border-radius: 0.375rem;
  background: rgba(10,10,10,0.8); font-size: 0.75rem;
  color: var(--muted); font-family: var(--font-mono);
}

.code-content {
  padding: 1rem 1.5rem; font-family: var(--font-mono);
  font-size: 0.75rem; line-height: 1.75rem; text-align: left; overflow-x: auto;
}
@media (min-width: 640px) { .code-content { padding: 1.5rem; font-size: 0.875rem; line-height: 1.875rem; } }
.code-lines { display: flex; gap: 1rem; }
.line-numbers { color: rgba(161,161,170,0.4); user-select: none; text-align: right; min-width: 2rem; flex-shrink: 0; }
.code-text .c-purple { color: var(--purple); }
.code-text .c-blue { color: var(--blue); }
.code-text .c-green { color: #4ADE80; }
.code-text .c-yellow { color: #FDE047; }
.code-text .c-muted { color: var(--muted); }
.code-text .c-white { color: white; }
.code-text .c-orange { color: #FB923C; }

.ai-hint {
  display: inline-flex; align-items: center; gap: 0.375rem;
  background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.3);
  border-radius: 0.375rem; padding: 0.25rem 0.625rem;
  font-size: 0.75rem; color: var(--purple); margin-top: 0.25rem;
  animation: fadeIn 0.5s ease-out 1.5s forwards; opacity: 0;
}

/* ── Social Proof ── */
.social-proof { padding: 4rem 0 5rem; }
.social-proof-label {
  text-align: center; font-size: 0.75rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 2.5rem;
}
@media (min-width: 640px) { .social-proof-label { font-size: 0.875rem; } }
.logos-row {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 2rem 3rem;
}
.logo-name {
  color: rgba(161,161,170,0.4); font-size: 1.125rem;
  font-weight: 600; letter-spacing: -0.025em; transition: color 0.3s;
}
@media (min-width: 640px) { .logo-name { font-size: 1.25rem; } }
.logo-name:hover { color: rgba(161,161,170,0.7); }

.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem; margin-top: 3rem;
}
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 4rem; } }
.stat-item { text-align: center; }
.stat-value { font-size: 1.25rem; font-weight: 700; }
@media (min-width: 640px) { .stat-value { font-size: 1.5rem; } }
@media (min-width: 768px) { .stat-value { font-size: 1.875rem; } }
.stat-label { font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }
@media (min-width: 640px) { .stat-label { font-size: 0.875rem; } }

/* ── Product Preview ── */
.product-preview { padding: 5rem 0 6rem; position: relative; }

.section-header { text-align: center; margin-bottom: 3rem; }
@media (min-width: 640px) { .section-header { margin-bottom: 4rem; } }
.section-label {
  font-size: 0.875rem; color: var(--purple); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 0.75rem;
}
.section-title { font-size: 1.875rem; font-weight: 700; letter-spacing: -0.025em; }
@media (min-width: 640px) { .section-title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .section-title { font-size: 3rem; } }
.section-subtitle { margin-top: 1rem; color: var(--muted); font-size: 1rem; max-width: 36rem; margin-left: auto; margin-right: auto; }
@media (min-width: 640px) { .section-subtitle { font-size: 1.125rem; } }

/* IDE mockup */
.ide-mockup { position: relative; max-width: 72rem; margin: 0 auto; }
.ide-window { position: relative; border-radius: 0.75rem; border: 1px solid var(--border); background: var(--surface); overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); }

.ide-content { display: flex; flex-direction: column; min-height: 300px; }
@media (min-width: 768px) { .ide-content { flex-direction: row; } }
@media (min-width: 640px) { .ide-content { min-height: 400px; } }
@media (min-width: 1024px) { .ide-content { min-height: 460px; } }

.file-explorer {
  display: none; width: 11rem; border-right: 1px solid var(--border);
  padding: 0.75rem; font-size: 0.75rem; font-family: var(--font-mono);
  color: rgba(161,161,170,0.6); background: rgba(10,10,10,0.3); flex-shrink: 0;
}
@media (min-width: 1024px) { .file-explorer { display: block; } }
.fe-label { color: rgba(161,161,170,0.4); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.625rem; font-family: var(--font-sans); margin-bottom: 0.5rem; }
.fe-item { padding: 0.125rem 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fe-item.active { color: white; }

.ide-editor {
  flex: 1; padding: 1rem 1.5rem; font-family: var(--font-mono);
  font-size: 0.75rem; line-height: 1.75rem; overflow-x: auto; min-width: 0;
}
@media (min-width: 640px) { .ide-editor { font-size: 0.875rem; line-height: 1.875rem; } }
.ghost-text { color: rgba(161,161,170,0.3); }

.ai-panel {
  display: none; flex-direction: column; width: 16rem;
  border-left: 1px solid var(--border); background: rgba(10,10,10,0.3); flex-shrink: 0;
}
@media (min-width: 768px) { .ai-panel { display: flex; } }
@media (min-width: 1024px) { .ai-panel { width: 18rem; } }
.ai-panel-header {
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--border);
  font-size: 0.75rem; font-weight: 500; color: var(--muted);
  display: flex; align-items: center; gap: 0.5rem;
}
.ai-panel-body { flex: 1; padding: 0.75rem; display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.75rem; overflow-y: auto; }
@media (min-width: 1024px) { .ai-panel-body { padding: 1rem; } }

.chat-user { display: flex; justify-content: flex-end; }
.chat-user > div { background: var(--surface); border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.5rem 0.75rem; max-width: 90%; color: rgba(255,255,255,0.8); }
.chat-ai > div { background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.2); border-radius: 0.5rem; padding: 0.5rem 0.75rem; max-width: 90%; color: rgba(255,255,255,0.8); }
.chat-warn > div {
  display: flex; align-items: flex-start; gap: 0.5rem;
  background: rgba(249,115,22,0.1); border: 1px solid rgba(249,115,22,0.2);
  border-radius: 0.5rem; padding: 0.5rem 0.75rem; max-width: 90%; color: rgba(255,255,255,0.8);
}

.ai-panel-input { padding: 0.75rem; border-top: 1px solid var(--border); }
.ai-panel-input > div {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem;
  border-radius: 0.5rem; background: var(--surface); border: 1px solid var(--border);
  font-size: 0.75rem; color: var(--muted);
}

.status-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.375rem 1rem; background: rgba(124,58,237,0.05);
  border-top: 1px solid var(--border); font-size: 0.625rem; color: var(--muted); font-family: var(--font-mono);
}
@media (min-width: 640px) { .status-bar { font-size: 0.6875rem; } }
.status-left { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
@media (min-width: 640px) { .status-left { gap: 1rem; } }
.status-dot { width: 0.375rem; height: 0.375rem; border-radius: 9999px; background: #4ADE80; display: inline-block; margin-right: 0.25rem; }

.tab-bar { display: flex; gap: 0.25rem; margin-left: 1rem; overflow-x: auto; }
.tab-item {
  padding: 0.25rem 0.75rem; border-radius: 0.375rem;
  font-size: 0.75rem; font-family: var(--font-mono); white-space: nowrap;
  color: var(--muted);
}
.tab-item.active { background: var(--surface); color: white; border: 1px solid var(--border); }
.tab-item:not(.active):hover { color: rgba(255,255,255,0.6); }

/* ── Features ── */
.features { padding: 5rem 0 6rem; position: relative; }
.features-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  position: relative; border-radius: 0.75rem; border: 1px solid var(--border);
  background: rgba(17,17,17,0.5); padding: 1.25rem 1.5rem;
  transition: all 0.3s; overflow: hidden;
}
.feature-card:hover { border-color: rgba(124,58,237,0.3); }
.feature-card .hover-glow {
  position: absolute; inset: 0; border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(124,58,237,0.05), rgba(59,130,246,0.05));
  opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover .hover-glow { opacity: 1; }
.feature-card-content { position: relative; z-index: 1; }
.feature-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 0.5rem;
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(59,130,246,0.2));
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
  color: var(--purple);
}
.feature-title { font-size: 1rem; font-weight: 600; color: white; margin-bottom: 0.5rem; }
@media (min-width: 640px) { .feature-title { font-size: 1.125rem; } }
.feature-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

@media (min-width: 640px) { .span-2 { grid-column: span 2; } }

/* ── How it Works ── */
.how-it-works { padding: 5rem 0 6rem; position: relative; }
.steps-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 2rem; position: relative; max-width: 56rem; margin: 0 auto;
}
@media (min-width: 640px) { .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
@media (min-width: 1024px) { .steps-grid { gap: 2rem; } }
.steps-line {
  display: none; position: absolute; top: 2rem;
  left: 20%; right: 20%; height: 1px;
  background: linear-gradient(to right, rgba(124,58,237,0.4), rgba(59,130,246,0.4), rgba(124,58,237,0.4));
}
@media (min-width: 640px) { .steps-line { display: block; } }

.step-card { position: relative; text-align: center; }
.step-icon-wrap {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; border-radius: 1rem;
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(59,130,246,0.2));
  border: 1px solid var(--border); margin-bottom: 1.25rem; color: var(--purple);
}
.step-number {
  position: absolute; top: -0.5rem; right: -0.5rem;
  width: 1.5rem; height: 1.5rem; border-radius: 9999px;
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.625rem; font-weight: 700; color: var(--muted);
}
.step-title { font-size: 1.125rem; font-weight: 600; color: white; margin-bottom: 0.5rem; }
@media (min-width: 640px) { .step-title { font-size: 1.25rem; margin-bottom: 0.75rem; } }
.step-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.6; max-width: 20rem; margin: 0 auto; }

/* ── Pricing Section ── */
.pricing { padding: 5rem 0 6rem; position: relative; }
.pricing-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 1.25rem; max-width: 64rem; margin: 0 auto; padding-top: 1rem;
}
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.pricing-card {
  position: relative; border-radius: 0.75rem; padding: 1.5rem;
  display: flex; flex-direction: column;
  background: rgba(17,17,17,0.5); border: 1px solid var(--border);
}
@media (min-width: 1024px) { .pricing-card { padding: 2rem; } }
.pricing-card.highlighted {
  background: var(--surface);
  border: 2px solid rgba(124,58,237,0.5);
  box-shadow: 0 0 40px -10px rgba(124,58,237,0.3);
}
@media (min-width: 768px) {
  .pricing-card.highlighted { margin-top: -0.5rem; margin-bottom: -0.5rem; }
}

.popular-badge {
  position: absolute; top: -0.875rem; left: 50%; transform: translateX(-50%);
  padding: 0.25rem 1rem; background: linear-gradient(to right, var(--purple), var(--blue));
  border-radius: 9999px; font-size: 0.75rem; font-weight: 500;
  color: white; white-space: nowrap; z-index: 10;
}

.plan-name { font-size: 1.125rem; font-weight: 600; color: white; }
.plan-price-row { margin-top: 0.75rem; display: flex; align-items: baseline; gap: 0.25rem; }
.plan-price { font-size: 1.875rem; font-weight: 700; color: white; }
@media (min-width: 640px) { .plan-price { font-size: 2.25rem; } }
.plan-credits { color: var(--muted); font-size: 0.875rem; }
.plan-desc { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted); }

.plan-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; flex: 1; }
.plan-features li { display: flex; align-items: center; gap: 0.625rem; font-size: 0.875rem; color: var(--muted); }
.plan-features svg, .plan-features .check-icon { color: var(--purple); flex-shrink: 0; width: 1rem; height: 1rem; }

.plan-btn {
  width: 100%; padding: 0.75rem; border-radius: 0.5rem;
  font-size: 0.875rem; font-weight: 500; text-align: center;
  transition: all 0.2s; border: none; cursor: pointer; display: block;
}
.plan-btn.primary { background: linear-gradient(to right, var(--purple), var(--blue)); color: white; }
.plan-btn.primary:hover { opacity: 0.9; }
.plan-btn.secondary { background: var(--surface); border: 1px solid var(--border); color: white; }
.plan-btn.secondary:hover { border-color: rgba(255,255,255,0.2); }

.usage-hint {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: 9999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.75rem; color: var(--muted); margin-top: 3rem;
  flex-wrap: wrap; justify-content: center;
}
@media (min-width: 640px) { .usage-hint { font-size: 0.875rem; margin-top: 4rem; } }

/* ── Dev Experience ── */
.dev-experience { padding: 5rem 0 6rem; }
.dev-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 3rem; align-items: center;
}
@media (min-width: 1024px) { .dev-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.terminal-mockup { border-radius: 0.75rem; border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.terminal-chrome {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1rem; border-bottom: 1px solid var(--border); background: rgba(10,10,10,0.5);
}
.terminal-dots { display: flex; gap: 0.375rem; }
.terminal-dot { width: 0.625rem; height: 0.625rem; border-radius: 9999px; }
.terminal-label { font-size: 0.75rem; color: var(--muted); font-family: var(--font-mono); margin-left: 0.5rem; }
.terminal-body { padding: 1rem; font-family: var(--font-mono); font-size: 0.75rem; overflow-x: auto; }
@media (min-width: 640px) { .terminal-body { font-size: 0.875rem; } }
.terminal-body div { line-height: 1.6; }
.t-green { color: #4ADE80; }
.t-muted { color: var(--muted); }
.t-muted-60 { color: rgba(161,161,170,0.6); }

.dx-features-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .dx-features-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
.dx-card {
  padding: 1.25rem; border-radius: 0.75rem; border: 1px solid var(--border);
  background: rgba(17,17,17,0.5); transition: all 0.3s;
}
.dx-card:hover { border-color: rgba(124,58,237,0.3); }

/* ── CTA ── */
.cta-section { padding: 6rem 0 8rem; position: relative; }
.cta-content { max-width: 56rem; margin: 0 auto; text-align: center; position: relative; z-index: 10; }
.cta-buttons {
  margin-top: 2rem; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1rem;
}
@media (min-width: 640px) { .cta-buttons { flex-direction: row; margin-top: 2.5rem; } }
.cta-buttons .btn-primary, .cta-buttons .btn-secondary {
  padding: 0.875rem 2rem; width: 100%; justify-content: center;
}
@media (min-width: 640px) { .cta-buttons .btn-primary, .cta-buttons .btn-secondary { width: auto; } }

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); background: var(--bg); }
.footer-inner { padding: 3rem 0 4rem; }
@media (min-width: 640px) { .footer-inner { padding: 4rem 0; } }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-brand { grid-column: span 2; }
@media (min-width: 640px) { .footer-brand { grid-column: span 1; } }
.footer-brand .logo-icon { width: 1.75rem; height: 1.75rem; font-size: 0.75rem; }
.footer-brand p { font-size: 0.75rem; color: var(--muted); line-height: 1.6; max-width: 20rem; margin-top: 0.5rem; }
.footer-col h4 { font-size: 0.75rem; font-weight: 600; color: white; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; }
.footer-col a { font-size: 0.75rem; color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: white; }

.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center;
  justify-content: space-between; gap: 1rem;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; margin-top: 3rem; padding-top: 2rem; } }
.footer-bottom p { font-size: 0.75rem; color: rgba(161,161,170,0.6); }
.footer-socials { display: flex; align-items: center; gap: 1.5rem; }
.footer-socials a { font-size: 0.75rem; color: rgba(161,161,170,0.6); transition: color 0.2s; }
.footer-socials a:hover { color: white; }

/* ── Auth Pages (Login/Register) ── */
.auth-page {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; padding: 1rem; position: relative;
}
.auth-glow {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 500px; height: 500px; border-radius: 9999px;
  filter: blur(200px); opacity: 0.1; pointer-events: none;
}
.auth-glow.purple { background: var(--purple); }
.auth-glow.blue { background: var(--blue); }

.auth-container { position: relative; width: 100%; max-width: 28rem; }
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-logo {
  display: inline-flex; width: 2.5rem; height: 2.5rem; border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  align-items: center; justify-content: center; color: white;
  font-weight: 700; font-size: 1.125rem;
}
.auth-title { margin-top: 1rem; font-size: 1.5rem; font-weight: 700; color: white; }
.auth-subtitle { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted); }

.auth-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 0.75rem; padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1.25rem;
}
.form-group {}
.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: white; margin-bottom: 0.375rem; }
.form-input {
  width: 100%; padding: 0.625rem 1rem; border-radius: 0.5rem;
  background: var(--bg); border: 1px solid var(--border);
  color: white; font-size: 0.875rem; font-family: var(--font-sans);
  transition: border-color 0.2s;
  outline: none;
}
.form-input::placeholder { color: rgba(161,161,170,0.5); }
.form-input:focus { border-color: rgba(124,58,237,0.5); box-shadow: 0 0 0 2px rgba(124,58,237,0.15); }

.input-wrapper { position: relative; }
.input-wrapper .form-input { padding-right: 2.5rem; }
.toggle-password {
  position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--muted); cursor: pointer;
  transition: color 0.2s; padding: 0; display: flex; align-items: center;
}
.toggle-password:hover { color: white; }

.auth-error {
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2);
  border-radius: 0.5rem; padding: 0.75rem 1rem; font-size: 0.875rem; color: #F87171;
}

.auth-footer { margin-top: 1.5rem; text-align: center; font-size: 0.875rem; color: var(--muted); }
.auth-footer a { color: var(--purple); font-weight: 500; }
.auth-footer a:hover { opacity: 0.8; }
.auth-back { margin-top: 1rem; text-align: center; }
.auth-back a { font-size: 0.75rem; color: rgba(161,161,170,0.6); transition: color 0.2s; }
.auth-back a:hover { color: var(--muted); }

.btn-submit {
  width: 100%; padding: 0.625rem; background: linear-gradient(to right, var(--purple), var(--blue));
  color: white; font-size: 0.875rem; font-weight: 500; border-radius: 0.5rem;
  border: none; cursor: pointer; transition: opacity 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-sans);
}
.btn-submit:hover { opacity: 0.9; }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Dashboard / Admin ── */
.app-header {
  border-bottom: 1px solid var(--border);
  background: rgba(17,17,17,0.5);
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.app-header-inner {
  max-width: 80rem; margin: 0 auto; padding: 0 1.5rem;
  height: 4rem; display: flex; align-items: center; justify-content: space-between;
}
@media (min-width: 640px) { .app-header-inner { padding: 0 2rem; } }
.header-right { display: flex; align-items: center; gap: 1rem; }
.header-email { font-size: 0.875rem; color: var(--muted); display: none; }
@media (min-width: 640px) { .header-email { display: inline; } }

.btn-logout {
  display: flex; align-items: center; gap: 0.375rem;
  font-size: 0.875rem; color: var(--muted); background: none;
  border: none; cursor: pointer; transition: color 0.2s; font-family: var(--font-sans);
}
.btn-logout:hover { color: white; }
.btn-logout .label { display: none; }
@media (min-width: 640px) { .btn-logout .label { display: inline; } }

.app-main { max-width: 80rem; margin: 0 auto; padding: 2rem 1.5rem; }
@media (min-width: 640px) { .app-main { padding: 2.5rem 2rem; } }

.welcome h1 { font-size: 1.5rem; font-weight: 700; color: white; }
@media (min-width: 640px) { .welcome h1 { font-size: 1.875rem; } }
.welcome p { color: var(--muted); font-size: 0.875rem; margin-top: 0.25rem; }

.message-bar {
  margin-bottom: 1.5rem; padding: 0.75rem 1rem;
  background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.3);
  border-radius: 0.5rem; font-size: 0.875rem; color: var(--purple);
}

.stats-row {
  display: grid; grid-template-columns: 1fr;
  gap: 1rem; margin-bottom: 2.5rem;
}
@media (min-width: 640px) { .stats-row { grid-template-columns: repeat(3, 1fr); } }
.stats-row.four { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .stats-row.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stats-row.four { grid-template-columns: repeat(4, 1fr); } }

.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 0.75rem; padding: 1.25rem;
}
.stat-card-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.75rem;
}
.stat-card-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.stat-card-value { font-size: 1.5rem; font-weight: 700; color: white; }
.text-purple { color: var(--purple); }
.text-blue { color: var(--blue); }
.text-green { color: #4ADE80; }
.text-yellow { color: #EAB308; }
.text-red { color: #EF4444; }

.section-heading {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.section-heading h2 { font-size: 1.125rem; font-weight: 600; color: white; }

/* Buy credits cards */
.plans-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 640px) { .plans-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .plans-grid { grid-template-columns: repeat(3, 1fr); } }

.plan-card {
  border-radius: 0.75rem; padding: 1.25rem;
  display: flex; flex-direction: column;
  background: rgba(17,17,17,0.5); border: 1px solid var(--border);
}
.plan-card.highlighted {
  background: var(--surface);
  border: 2px solid rgba(124,58,237,0.5);
  box-shadow: 0 0 30px -10px rgba(124,58,237,0.2);
}
.plan-card h3 { font-size: 1rem; font-weight: 600; color: white; }
.plan-card .price { margin-top: 0.5rem; display: flex; align-items: baseline; gap: 0.25rem; }
.plan-card .price .amount { font-size: 1.5rem; font-weight: 700; color: white; }
.plan-card .price .credits-label { font-size: 0.75rem; color: var(--muted); }
.plan-card .desc { font-size: 0.75rem; color: var(--muted); margin: 0.25rem 0 1rem; }
.plan-card .features-list { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-direction: column; gap: 0.375rem; flex: 1; }
.plan-card .features-list li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--muted); }

.buy-btn {
  width: 100%; padding: 0.625rem; border-radius: 0.5rem;
  font-size: 0.875rem; font-weight: 500; border: none;
  cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-sans);
}
.buy-btn.primary { background: linear-gradient(to right, var(--purple), var(--blue)); color: white; }
.buy-btn.primary:hover { opacity: 0.9; }
.buy-btn.secondary { background: var(--bg); border: 1px solid var(--border); color: white; }
.buy-btn.secondary:hover { border-color: rgba(255,255,255,0.2); }
.buy-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Tables */
.data-table-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 0.75rem; overflow: hidden;
}
.data-table-scroll { overflow-x: auto; }
.data-table { width: 100%; font-size: 0.875rem; border-collapse: collapse; }
.data-table thead tr { border-bottom: 1px solid var(--border); }
.data-table th {
  padding: 0.75rem 1rem; font-size: 0.75rem; font-weight: 500;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em;
  text-align: left; white-space: nowrap;
}
.data-table tbody tr { border-bottom: 1px solid var(--border); transition: background 0.15s; }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(10,10,10,0.5); }
.data-table td { padding: 0.75rem 1rem; white-space: nowrap; }
.data-table .mono { font-family: var(--font-mono); font-size: 0.75rem; }
.data-table .text-white { color: white; }
.data-table .text-muted { color: var(--muted); }

.status-badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.125rem 0.5rem; border-radius: 9999px;
  font-size: 0.75rem; font-weight: 500;
}
.status-badge.paid { background: rgba(74,222,128,0.1); color: #4ADE80; }
.status-badge.pending { background: rgba(234,179,8,0.1); color: #EAB308; }
.status-badge.failed { background: rgba(239,68,68,0.1); color: #EF4444; }

.role-badge {
  padding: 0.125rem 0.5rem; border-radius: 9999px;
  font-size: 0.75rem; font-weight: 500;
}
.role-badge.admin { background: rgba(124,58,237,0.1); color: var(--purple); }
.role-badge.user { background: rgba(59,130,246,0.1); color: var(--blue); }

.empty-state {
  background: rgba(17,17,17,0.5); border: 1px solid var(--border);
  border-radius: 0.75rem; padding: 2.5rem; text-align: center;
}
.empty-state svg { color: rgba(161,161,170,0.3); margin: 0 auto 0.75rem; }
.empty-state p { font-size: 0.875rem; color: var(--muted); }
.empty-state .sub { font-size: 0.75rem; color: rgba(161,161,170,0.6); margin-top: 0.25rem; }

/* ── Admin Tabs ── */
.tabs {
  display: flex; gap: 0.25rem; margin-bottom: 2rem;
  overflow-x: auto; padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.tab-btn {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1rem; font-size: 0.875rem; font-weight: 500;
  border-radius: 0.5rem; white-space: nowrap; transition: all 0.2s;
  background: none; border: none; cursor: pointer; color: var(--muted);
  font-family: var(--font-sans);
}
.tab-btn:hover { color: white; }
.tab-btn.active { color: white; background: var(--surface); border: 1px solid var(--border); }

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease-out; }

/* Admin pricing editor */
.pricing-editor-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 0.75rem; padding: 1.25rem 1.5rem; margin-bottom: 1.5rem;
}
.pe-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; }
.pe-header-left { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.pe-fields { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 640px) { .pe-fields { grid-template-columns: repeat(3, 1fr); } }

.pe-label { display: block; font-size: 0.75rem; color: var(--muted); margin-bottom: 0.25rem; }
.pe-input {
  width: 100%; padding: 0.5rem 0.75rem; border-radius: 0.5rem;
  background: var(--bg); border: 1px solid var(--border);
  color: white; font-size: 0.875rem; font-family: var(--font-sans);
  outline: none; transition: border-color 0.2s;
}
.pe-input:focus { border-color: rgba(124,58,237,0.5); }
.pe-input.sm { font-size: 0.75rem; padding: 0.375rem 0.75rem; }

.pe-checkbox-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--muted); cursor: pointer; }
.pe-checkbox-label input[type="checkbox"] { accent-color: var(--purple); }
.pe-checkbox-label input[type="checkbox"].green { accent-color: #4ADE80; }

.pe-features-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.pe-features-header label { font-size: 0.75rem; color: var(--muted); }
.pe-add-feature { font-size: 0.75rem; color: var(--purple); background: none; border: none; cursor: pointer; font-family: var(--font-sans); }
.pe-add-feature:hover { opacity: 0.8; }
.pe-feature-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.pe-feature-row input { flex: 1; }

.btn-icon {
  background: none; border: none; cursor: pointer;
  color: var(--muted); transition: color 0.2s; padding: 0.25rem;
  display: flex; align-items: center;
}
.btn-icon:hover { color: #F87171; }
.btn-icon.purple:hover { color: var(--purple); }

/* Settings form */
.settings-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 0.75rem; padding: 1.25rem 1.5rem; max-width: 40rem;
  display: flex; flex-direction: column; gap: 1.25rem;
}

/* Top bar for admin pricing */
.section-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.5rem; }
.section-toolbar h2 { font-size: 1.25rem; font-weight: 700; color: white; }
.toolbar-actions { display: flex; gap: 0.5rem; }

.btn-sm {
  display: flex; align-items: center; gap: 0.375rem;
  padding: 0.5rem 0.75rem; font-size: 0.75rem; font-weight: 500;
  border-radius: 0.5rem; border: none; cursor: pointer;
  transition: all 0.2s; font-family: var(--font-sans);
}
.btn-sm.outline { background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.btn-sm.outline:hover { color: white; }
.btn-sm.gradient { background: linear-gradient(to right, var(--purple), var(--blue)); color: white; }
.btn-sm.gradient:hover { opacity: 0.9; }
.btn-sm:disabled { opacity: 0.5; cursor: not-allowed; }

/* Loading spinner */
.loader { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.loader svg { animation: spin 1s linear infinite; color: var(--purple); }

/* SVG icons inline */
.icon { display: inline-flex; align-items: center; justify-content: center; }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  backdrop-filter: blur(4px);
}
.modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 0.75rem; width: 100%; max-width: 36rem;
  max-height: 90vh; overflow-y: auto;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 1rem; font-weight: 600; color: white; }
.modal-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.modal-footer {
  display: flex; justify-content: flex-end; gap: 0.5rem;
  padding: 1rem 1.5rem; border-top: 1px solid var(--border);
}

/* ── Form row (2-col) ── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

/* ── Toggle Switch ── */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 0.75rem; padding: 1rem 1.25rem; max-width: 40rem;
}
.toggle-label { font-size: 0.875rem; color: white; font-weight: 500; }
.toggle-desc { font-size: 0.75rem; display: block; margin-top: 0.125rem; }
.toggle-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; cursor: pointer;
  background: #333; border-radius: 24px; transition: 0.3s;
}
.toggle-slider::before {
  content: ''; position: absolute; left: 3px; top: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: white; transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--purple); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ── Settings sections ── */
.settings-section { margin-bottom: 2rem; }
.settings-section-title {
  font-size: 0.875rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.settings-section .settings-form { margin-bottom: 0; }

/* ── Button icon variants ── */
.btn-icon.sm { padding: 0.25rem; }
.btn-icon.danger:hover { color: #EF4444; }

/* ── Textarea ── */
textarea.form-input {
  resize: vertical; min-height: 2.5rem; font-family: var(--font-sans);
}

/* ══════════════════════════════════════════
   Legal / Info Pages
   ══════════════════════════════════════════ */

.legal-page {
  padding-top: 5rem; min-height: 100vh; background: var(--bg);
}

.legal-container {
  max-width: 48rem; margin: 0 auto; padding: 2rem 1.5rem 4rem;
}
.legal-container h1 {
  font-size: 2rem; font-weight: 800; color: white;
  letter-spacing: -0.03em; margin-bottom: 0.25rem;
}
.legal-updated {
  font-size: 0.8rem; color: var(--muted); margin-bottom: 2.5rem;
}
.legal-container section {
  margin-bottom: 2rem;
}
.legal-container h2 {
  font-size: 1.125rem; font-weight: 700; color: white;
  margin-bottom: 0.75rem;
}
.legal-container h3 {
  font-size: 0.95rem; font-weight: 600; color: #d4d4d8;
  margin: 1rem 0 0.5rem;
}
.legal-container p {
  font-size: 0.875rem; color: #a1a1aa; line-height: 1.7;
  margin-bottom: 0.75rem;
}
.legal-container ul {
  list-style: none; padding: 0; margin: 0 0 1rem;
}
.legal-container ul li {
  font-size: 0.875rem; color: #a1a1aa; line-height: 1.7;
  padding-left: 1.25rem; position: relative;
}
.legal-container ul li::before {
  content: ''; position: absolute; left: 0; top: 0.55em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--purple);
}
.legal-container a {
  color: var(--purple); text-decoration: none;
}
.legal-container a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════
   Contact Page
   ══════════════════════════════════════════ */

.contact-wrapper {
  max-width: 64rem; margin: 0 auto; padding: 2rem 1.5rem 4rem;
}
.contact-header {
  text-align: center; margin-bottom: 3rem;
}
.contact-header h1 {
  font-size: 2rem; font-weight: 800; color: white;
  letter-spacing: -0.03em; margin-bottom: 0.5rem;
}
.contact-header p {
  font-size: 0.95rem; color: var(--muted);
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-form-card, .contact-info-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 0.75rem; padding: 1.5rem;
}
.contact-form-card h2, .contact-info-card h2 {
  font-size: 1.125rem; font-weight: 700; color: white;
  margin-bottom: 1.25rem;
}
.auth-success {
  background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.3);
  color: #4ADE80; padding: 0.75rem 1rem; border-radius: 0.5rem;
  font-size: 0.8rem; margin-bottom: 1rem;
}

/* Captcha */
.captcha-box {
  background: rgba(124,58,237,0.05); border: 1px solid rgba(124,58,237,0.2);
  border-radius: 0.75rem; padding: 1.25rem;
}
.captcha-question {
  display: flex; align-items: center; justify-content: space-between;
}
.captcha-error {
  color: #EF4444; font-size: 0.75rem; margin-top: 0.5rem;
}

/* Contact details */
.contact-detail-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.contact-detail-item:last-child { border-bottom: none; }
.contact-detail-icon {
  width: 40px; height: 40px; border-radius: 0.5rem;
  background: rgba(124,58,237,0.1); color: var(--purple);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-detail-item h4 {
  font-size: 0.8rem; font-weight: 600; color: white; margin-bottom: 0.125rem;
}
.contact-detail-item a, .contact-detail-item p {
  font-size: 0.8rem; color: var(--muted); text-decoration: none;
}
.contact-detail-item a:hover { color: var(--purple); }

/* ══════════════════════════════════════════
   About Page
   ══════════════════════════════════════════ */

.about-wrapper {
  max-width: 64rem; margin: 0 auto; padding: 2rem 1.5rem 4rem;
}
.about-hero {
  text-align: center; padding: 2rem 0 3rem;
}
.about-hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.2);
  border-radius: 999px; padding: 0.375rem 1rem; font-size: 0.75rem;
  color: var(--purple); margin-bottom: 1.5rem;
}
.about-hero h1 {
  font-size: 2.5rem; font-weight: 800; color: white;
  letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 1rem;
}
@media (max-width: 640px) { .about-hero h1 { font-size: 1.75rem; } }
.about-hero p {
  font-size: 1rem; color: var(--muted); max-width: 32rem; margin: 0 auto;
}
.about-section {
  margin-bottom: 3rem;
}
.about-section h2 {
  font-size: 1.5rem; font-weight: 700; color: white;
  letter-spacing: -0.02em; margin-bottom: 1rem;
}
.about-section p {
  font-size: 0.9rem; color: #a1a1aa; line-height: 1.7;
  margin-bottom: 0.75rem;
}
.about-section-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: center;
}
@media (max-width: 768px) { .about-section-grid { grid-template-columns: 1fr; gap: 2rem; } }

.about-stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.about-stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 0.75rem; padding: 1.25rem; text-align: center;
}
.about-stat-value {
  font-size: 1.5rem; font-weight: 800; color: white;
  letter-spacing: -0.02em;
}
.about-stat-label {
  font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem;
}
.about-features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
@media (max-width: 768px) { .about-features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .about-features-grid { grid-template-columns: 1fr; } }

.about-feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 0.75rem; padding: 1.5rem;
  transition: border-color 0.2s;
}
.about-feature-card:hover { border-color: rgba(124,58,237,0.3); }
.about-feature-icon {
  width: 44px; height: 44px; border-radius: 0.5rem;
  background: rgba(124,58,237,0.1); color: var(--purple);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.about-feature-card h3 {
  font-size: 0.95rem; font-weight: 600; color: white; margin-bottom: 0.5rem;
}
.about-feature-card p {
  font-size: 0.8rem; color: var(--muted); line-height: 1.6;
}

.about-cta {
  text-align: center; padding: 3rem 2rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 0.75rem;
}
.about-cta h2 {
  font-size: 1.5rem; font-weight: 700; color: white; margin-bottom: 0.5rem;
}
.about-cta p {
  font-size: 0.9rem; color: var(--muted); margin-bottom: 1.5rem;
}

/* ══════════════════════════════════════════
   Leads Page (Admin)
   ══════════════════════════════════════════ */

.leads-list {
  display: flex; flex-direction: column; gap: 0.75rem;
}
.lead-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 0.75rem; padding: 1.25rem; cursor: pointer;
  transition: border-color 0.2s;
}
.lead-card:hover { border-color: rgba(124,58,237,0.3); }
.lead-card.is-new { border-left: 3px solid var(--purple); }

.lead-card-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.5rem; flex-wrap: wrap; gap: 0.5rem;
}
.lead-card-info { display: flex; align-items: center; gap: 0.75rem; }
.lead-card-name { font-size: 0.875rem; font-weight: 600; color: white; }
.lead-card-email { font-size: 0.75rem; color: var(--muted); }
.lead-card-subject { font-size: 0.85rem; color: #d4d4d8; font-weight: 500; margin-bottom: 0.375rem; }
.lead-card-preview { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.lead-card-date { font-size: 0.7rem; color: #71717a; margin-top: 0.5rem; }

.status-badge.new { background: rgba(124,58,237,0.15); color: #a78bfa; }
.status-badge.read { background: rgba(59,130,246,0.15); color: #93c5fd; }
.status-badge.replied { background: rgba(74,222,128,0.15); color: #4ADE80; }
.status-badge.closed { background: rgba(161,161,170,0.15); color: #a1a1aa; }

.lead-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
}
@media (max-width: 480px) { .lead-detail-grid { grid-template-columns: 1fr; } }
.lead-detail-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 0.125rem; }
.lead-detail-value { font-size: 0.85rem; color: white; }
.lead-detail-value a { color: var(--purple); text-decoration: none; }
.lead-detail-value a:hover { text-decoration: underline; }

.lead-message-box {
  background: rgba(0,0,0,0.3); border: 1px solid var(--border);
  border-radius: 0.5rem; padding: 1rem; font-size: 0.85rem;
  color: #d4d4d8; line-height: 1.6; white-space: pre-wrap;
  margin-top: 0.25rem;
}

/* Nav active link */
.nav-link.active { color: var(--purple); }
