:root {
  --orange: #F97316;
  --orange-dark: #EA580C;
  --orange-light: #FFF7ED;
  --orange-mid: #FDBA74;
  --dark: #0D0D0D;
  --dark2: #111111;
  --mid: #444444;
  --muted: #78716C;
  --border: #E7E5E4;
  --border2: #D6D3D1;
  --bg: #FAFAF9;
  --white: #FFFFFF;
  --text: #1C1917;
  --heading-font: 'DM Sans', sans-serif;
  --body-font: 'DM Sans', sans-serif;
  --r: 12px;
  --r2: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 64px rgba(0,0,0,0.12);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--body-font); color: var(--text); background: var(--bg); overflow-x: hidden; }

/* PAGES */
.page { display: none; min-height: 100vh; }
.page.active { display: block; }

/* ─── GLOBAL COMPONENTS ─────────────────────────── */
.btn-primary {
  background: var(--orange); color: #fff; border: none;
  padding: 10px 22px; border-radius: var(--r2); font-family: var(--body-font);
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--text); border: 1.5px solid var(--border2);
  padding: 10px 22px; border-radius: var(--r2); font-family: var(--body-font);
  font-size: 14px; font-weight: 500; cursor: pointer; transition: all .2s;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }
.btn-ghost {
  background: transparent; color: var(--muted); border: none;
  padding: 8px 14px; border-radius: var(--r2); font-family: var(--body-font);
  font-size: 14px; font-weight: 500; cursor: pointer; transition: all .2s;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
}
.btn-ghost:hover { background: var(--border); color: var(--text); }

/* ─── PUBLIC NAV ─────────────────────────── */
.pub-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,250,249,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); height: 60px;
  display: flex; align-items: center; padding: 0 40px;
  justify-content: space-between;
}
.pub-nav-logo { font-family: var(--heading-font); font-size: 22px; font-weight: 700; color: var(--dark); cursor:pointer; text-decoration: none; }
.pub-nav-logo span { color: var(--orange); }
.pub-nav-links { display: flex; align-items: center; gap: 6px; }
.pub-nav-link {
  font-size: 14px; font-weight: 500; color: var(--mid); cursor: pointer;
  padding: 6px 12px; border-radius: var(--r2); transition: all .2s;
  text-decoration: none; display: inline-block;
}
.pub-nav-link:hover { color: var(--text); background: var(--border); }
.pub-nav-actions { display: flex; align-items: center; gap: 10px; }

/* ─── LANDING PAGE ─────────────────────────── */
#page-home { background: var(--white); }

/* HERO */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  max-width: 780px; margin: 0 auto; padding-left: 24px; padding-right: 24px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange-light); border: 1px solid #FDBA74;
  color: var(--orange-dark); font-size: 13px; font-weight: 600;
  padding: 5px 12px; border-radius: 100px; margin-bottom: 28px;
}
.hero-badge-dot { width: 6px; height: 6px; background: var(--orange); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.5; transform:scale(1.3); } }
.hero h1 {
  font-family: var(--body-font); font-size: clamp(38px, 6vw, 64px);
  font-weight: 600; line-height: 1.12; color: var(--dark); margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p {
  font-size: 18px; color: var(--muted); max-width: 540px; margin: 0 auto 36px;
  line-height: 1.65; font-weight: 400;
}
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn-primary { padding: 13px 28px; font-size: 15px; border-radius: 10px; }
.hero-actions .btn-outline { padding: 13px 28px; font-size: 15px; border-radius: 10px; }
.hero-social {
  margin-top: 48px; display: flex; align-items: center; justify-content: center; gap: 24px;
  font-size: 13px; color: var(--muted);
}
.hero-social-avatars { display: flex; }
.hero-avatar {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid white;
  margin-left: -8px; background: var(--border); overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600;
}
.hero-avatar:first-child { margin-left: 0; }
.avatar-a { background: #FBBF24; color: #92400E; }
.avatar-b { background: #34D399; color: #065F46; }
.avatar-c { background: #60A5FA; color: #1E3A8A; }
.avatar-d { background: #F87171; color: #7F1D1D; }

/* HERO PREVIEW */
.hero-preview {
  max-width: 1000px; margin: 0 auto 0; padding: 0 24px;
  position: relative;
}
.hero-preview-wrap {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);
}
.hero-preview-bar {
  background: #F3F3F2; padding: 10px 16px; display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.preview-dot { width: 12px; height: 12px; border-radius: 50%; }
.pd-r { background: #FF5F57; }
.pd-y { background: #FEBC2E; }
.pd-g { background: #28C840; }
.hero-preview-img {
  background: linear-gradient(135deg, #111111 0%, #1a1a1a 50%, #0d0d0d 100%);
  height: 420px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.preview-kitchen-mock {
  width: 100%; height: 100%; display: flex; align-items: stretch;
}
.preview-sidebar-mock {
  width: 260px; background: rgba(255,255,255,0.04); border-right: 1px solid rgba(255,255,255,0.08);
  padding: 20px 16px; flex-shrink: 0;
}
.psm-title { font-size: 11px; color: rgba(255,255,255,0.4); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.psm-item {
  padding: 8px 10px; border-radius: 8px; margin-bottom: 4px;
  font-size: 12px; color: rgba(255,255,255,0.6);
  display: flex; align-items: center; gap: 8px;
}
.psm-item.active { background: rgba(249,115,22,0.2); color: #FDBA74; }
.psm-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.preview-main-mock { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.pmm-render-area {
  flex: 1; border-radius: 10px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
}
.pmm-render-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px;
}
.pmm-spinner {
  width: 36px; height: 36px; border: 2px solid rgba(249,115,22,0.3);
  border-top-color: var(--orange); border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pmm-status { font-size: 12px; color: rgba(255,255,255,0.5); }
.pmm-controls {
  display: flex; gap: 8px;
}
.pmm-ctrl {
  flex: 1; height: 36px; border-radius: 6px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
}
.pmm-ctrl.orange { background: rgba(249,115,22,0.25); border-color: rgba(249,115,22,0.3); }

/* LOGOS */
.logos-section {
  padding: 48px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.logos-inner { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.logos-label { text-align: center; font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 24px; letter-spacing: 0.3px; }
.logos-grid { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.logo-item { font-family: var(--heading-font); font-size: 18px; color: var(--border2); font-weight: 600; letter-spacing: -0.5px; }

/* FEATURES */
.section { padding: 96px 0; }
.section-inner { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.section-badge {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--orange); margin-bottom: 12px;
}
.section-title {
  font-family: var(--heading-font); font-size: clamp(28px, 4vw, 42px);
  font-weight: 700; color: var(--dark); margin-bottom: 16px; letter-spacing: -0.03em; line-height: 1.2;
}
.section-sub { font-size: 17px; color: var(--muted); max-width: 560px; line-height: 1.6; }
.section-header-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 56px; gap: 24px; flex-wrap: wrap; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--border); border-radius: var(--r); overflow: hidden; }
.feature-card {
  background: var(--white); padding: 36px 32px;
  transition: all .25s;
}
.feature-card:hover { background: var(--orange-light); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--orange-light); border: 1px solid var(--orange-mid);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 20px;
}
.feature-card h3 { font-family: var(--heading-font); font-size: 19px; font-weight: 600; color: var(--dark); margin-bottom: 10px; letter-spacing: -0.02em; }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* BEFORE / AFTER */
.ba-section { padding: 96px 0; background: var(--dark); }
.ba-section .section-title { color: white; }
.ba-section .section-badge { color: var(--orange-mid); }
.ba-section .section-sub { color: rgba(255,255,255,0.5); }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
.ba-card { border-radius: 14px; overflow: hidden; position: relative; }
.ba-label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.7); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.8px; }

.comparison-slider {
  position: relative; width: 100%; height: 340px;
  overflow: hidden; border-radius: 12px; cursor: col-resize;
  user-select: none;
}
.cs-before, .cs-after {
  position: absolute; inset: 0; background-size: cover; background-position: center;
}
.cs-before {
  background-color: #8B7355;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect fill='%238B7355' width='100%25' height='100%25'/%3E%3Ctext x='50%25' y='40%25' font-family='Georgia' font-size='14' fill='rgba(255,255,255,0.4)' text-anchor='middle' dominant-baseline='middle'%3EBEFORE%3C/text%3E%3Crect x='10%25' y='20%25' width='80%25' height='60%25' fill='none' stroke='rgba(255,255,255,0.15)' rx='4'/%3E%3Crect x='10%25' y='55%25' width='80%25' height='25%25' fill='rgba(100,80,50,0.5)'/%3E%3Crect x='10%25' y='55%25' width='25%25' height='25%25' fill='rgba(90,70,40,0.7)'/%3E%3Crect x='37%25' y='55%25' width='25%25' height='25%25' fill='rgba(90,70,40,0.7)'/%3E%3Crect x='65%25' y='55%25' width='25%25' height='25%25' fill='rgba(90,70,40,0.7)'/%3E%3C/svg%3E");
}
.cs-after {
  background-color: #1A1208;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect fill='%231A1208' width='100%25' height='100%25'/%3E%3Ctext x='50%25' y='40%25' font-family='Georgia' font-size='14' fill='rgba(249,115,22,0.6)' text-anchor='middle' dominant-baseline='middle'%3EAFTER — AI Rendered%3C/text%3E%3Crect x='10%25' y='20%25' width='80%25' height='60%25' fill='none' stroke='rgba(249,115,22,0.2)' rx='4'/%3E%3Crect x='10%25' y='55%25' width='80%25' height='25%25' fill='rgba(30,20,5,0.8)'/%3E%3Crect x='10%25' y='55%25' width='25%25' height='25%25' fill='rgba(20,15,5,0.9)'/%3E%3Crect x='37%25' y='55%25' width='25%25' height='25%25' fill='rgba(20,15,5,0.9)'/%3E%3Crect x='65%25' y='55%25' width='25%25' height='25%25' fill='rgba(20,15,5,0.9)'/%3E%3C/svg%3E");
  clip-path: inset(0 50% 0 0);
}
.cs-handle {
  position: absolute; top: 0; bottom: 0;
  width: 3px; background: white; left: 50%; transform: translateX(-50%);
  z-index: 10; cursor: col-resize;
}
.cs-handle-circle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: white; box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.cs-badge {
  position: absolute; top: 12px; padding: 4px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
}
.cs-badge-before { left: 12px; background: rgba(0,0,0,0.5); color: rgba(255,255,255,0.7); }
.cs-badge-after { right: 12px; background: var(--orange); color: white; }

/* STEPS */
.steps-section { padding: 96px 0; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; margin-top: 56px; }
.steps-grid::before {
  content: ''; position: absolute; top: 28px; left: 12.5%; right: 12.5%; height: 1px;
  background: linear-gradient(to right, transparent, var(--orange-mid), transparent);
}
.step-item { text-align: center; padding: 0 20px; position: relative; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--orange-light); border: 2px solid var(--orange-mid);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--heading-font); font-size: 22px; font-weight: 700; color: var(--orange-dark);
  margin: 0 auto 20px; position: relative; z-index: 1;
}
.step-item h4 { font-family: var(--heading-font); font-size: 17px; font-weight: 600; color: var(--dark); margin-bottom: 8px; }
.step-item p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* PRICING */
.pricing-section { padding: 96px 0; background: var(--bg); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.price-card {
  background: var(--white); border: 1.5px solid var(--border); border-radius: 16px;
  padding: 36px 32px; transition: all .25s; position: relative;
}
.price-card:hover { border-color: var(--orange-mid); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.price-card.featured { border-color: var(--orange); background: var(--dark); }
.price-card.featured .price-name { color: var(--orange-mid); }
.price-card.featured .price-amount { color: white; }
.price-card.featured .price-period { color: rgba(255,255,255,0.4); }
.price-card.featured .price-desc { color: rgba(255,255,255,0.5); }
.price-card.featured .price-feature { color: rgba(255,255,255,0.7); }
.price-card.featured .price-feature-check { color: var(--orange); }
.featured-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: white; font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 100px; letter-spacing: 0.5px; text-transform: uppercase;
}
.price-name { font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.price-amount { font-family: var(--heading-font); font-size: 44px; font-weight: 700; color: var(--dark); letter-spacing: -0.04em; }
.price-period { font-size: 14px; color: var(--muted); }
.price-desc { font-size: 13px; color: var(--muted); margin: 12px 0 24px; line-height: 1.5; }
.price-divider { height: 1px; background: var(--border); margin-bottom: 20px; }
.price-features { list-style: none; margin-bottom: 32px; }
.price-feature { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--mid); margin-bottom: 10px; }
.price-feature-check { color: var(--orange); font-size: 16px; }

/* TESTIMONIALS */
.testimonials-section { padding: 96px 0; background: var(--white); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.testi-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px;
  padding: 28px; transition: all .2s;
}
.testi-card:hover { border-color: var(--orange-mid); background: var(--orange-light); }
.testi-stars { color: var(--orange); font-size: 14px; margin-bottom: 12px; }
.testi-text { font-size: 14px; color: var(--mid); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 10px; }
.testi-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.testi-name { font-size: 13px; font-weight: 600; color: var(--dark); }
.testi-role { font-size: 12px; color: var(--muted); }

/* CTA BAND */
.cta-band {
  padding: 96px 40px; background: var(--orange);
  text-align: center;
}
.cta-band h2 { font-family: var(--heading-font); font-size: clamp(28px,5vw,48px); font-weight: 700; color: white; margin-bottom: 16px; letter-spacing: -0.03em; }
.cta-band p { font-size: 17px; color: rgba(255,255,255,0.8); margin-bottom: 36px; }
.cta-band .btn-white { background: white; color: var(--orange-dark); padding: 14px 32px; font-size: 15px; border-radius: 10px; font-weight: 700; cursor: pointer; border: none; font-family: var(--body-font); transition: all .2s; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.cta-band .btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* FOOTER */
.footer { background: var(--dark); padding: 64px 40px 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; max-width: 1100px; margin: 0 auto 48px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.7; max-width: 260px; margin-top: 12px; }
.footer-logo { font-family: var(--heading-font); font-size: 24px; font-weight: 700; color: white; }
.footer-logo span { color: var(--orange); }
.footer-col h5 { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 16px; }
.footer-link { display: block; font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 10px; cursor: pointer; transition: color .2s; text-decoration: none; }
.footer-link:hover { color: white; }
.footer-bottom { max-width: 1100px; margin: 0 auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-badges { display: flex; gap: 12px; }
.footer-badge { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; padding: 4px 10px; font-size: 11px; color: rgba(255,255,255,0.4); }

/* ─── AUTH PAGES ─────────────────────────── */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg); padding: 24px;
}
.auth-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 20px;
  padding: 48px 44px; width: 100%; max-width: 440px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}
.auth-logo { font-family: var(--heading-font); font-size: 20px; font-weight: 700; color: var(--dark); text-align: center; margin-bottom: 32px; }
.auth-logo span { color: var(--orange); }
.auth-title { font-family: var(--heading-font); font-size: 26px; font-weight: 700; color: var(--dark); margin-bottom: 6px; text-align: center; letter-spacing: -0.03em; }
.auth-sub { font-size: 14px; color: var(--muted); text-align: center; margin-bottom: 32px; }
.social-btn {
  width: 100%; padding: 11px 16px; border-radius: var(--r2);
  border: 1.5px solid var(--border); background: var(--white);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--body-font); font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all .2s; margin-bottom: 10px;
}
.social-btn:hover { border-color: var(--border2); background: var(--bg); }
.social-icon { width: 18px; height: 18px; }
.auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 20px 0;
  font-size: 12px; color: var(--muted);
}
.auth-divider::before, .auth-divider::after { content:''; flex:1; height:1px; background:var(--border); }
.form-field { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--dark); margin-bottom: 6px; }
.form-input {
  width: 100%; padding: 10px 14px; border-radius: var(--r2);
  border: 1.5px solid var(--border); background: var(--bg);
  font-family: var(--body-font); font-size: 14px; color: var(--text);
  transition: border .2s; outline: none;
}
.form-input:focus { border-color: var(--orange); background: white; }
.auth-submit { width: 100%; padding: 12px; margin-top: 8px; font-size: 15px; }
.auth-switch { text-align: center; margin-top: 24px; font-size: 13px; color: var(--muted); }
.auth-switch a { color: var(--orange); cursor: pointer; font-weight: 500; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* ONBOARDING */
.onboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.onboard-option {
  border: 2px solid var(--border); border-radius: 14px; padding: 24px 20px;
  cursor: pointer; transition: all .2s; text-align: center;
}
.onboard-option:hover { border-color: var(--orange-mid); background: var(--orange-light); }
.onboard-option.selected { border-color: var(--orange); background: var(--orange-light); }
.onboard-icon { font-size: 36px; margin-bottom: 12px; }
.onboard-option h4 { font-family: var(--heading-font); font-size: 17px; font-weight: 600; color: var(--dark); margin-bottom: 4px; }
.onboard-option p { font-size: 12px; color: var(--muted); }

/* ─── DASHBOARD ─────────────────────────── */
.dash-page { display: flex; height: 100vh; overflow: hidden; }

.sidebar {
  width: 240px; flex-shrink: 0; background: #000000;
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.sidebar-logo {
  padding: 20px 20px 16px;
  font-family: var(--heading-font); font-size: 20px; font-weight: 700; color: #ffffff;
  border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 8px;
  text-decoration: none; display: block;
}
.sidebar-logo span { color: var(--orange); }
.sidebar-section-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: rgba(255,255,255,0.35); padding: 16px 20px 6px;
}
.sidebar-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 20px;
  font-size: 13px; font-weight: 500; color: #ffffff;
  cursor: pointer; border-radius: 0; transition: all .15s;
  margin: 0 8px; border-radius: 8px;
}
.sidebar-item:hover { background: rgba(255,255,255,0.08); color: #ffffff; }
.sidebar-item.active { background: rgba(249,115,22,0.22); color: var(--orange-mid); }
.sidebar-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.sidebar-badge {
  margin-left: auto; background: var(--orange); color: white;
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 100px;
}
.sidebar-credits {
  margin: auto 0 0; padding: 16px; border-top: 1px solid rgba(255,255,255,0.08);
}
.credits-box {
  background: rgba(249,115,22,0.12); border: 1px solid rgba(249,115,22,0.2);
  border-radius: 10px; padding: 14px;
}
.credits-box-label { font-size: 11px; color: rgba(255,255,255,0.4); margin-bottom: 4px; font-weight: 500; }
.credits-box-amount { font-family: var(--heading-font); font-size: 26px; font-weight: 700; color: var(--orange-mid); }
.credits-box-sub { font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 2px; }
.credits-box .btn-primary { margin-top: 10px; width: 100%; justify-content: center; font-size: 12px; padding: 8px 16px; }

/* ─── THEME TOGGLE BUTTON ─────────────────── */
.theme-toggle {
  width: 36px; height: 36px; border-radius: 8px; border: 1.5px solid var(--border2);
  background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: all .2s;
}
.theme-toggle:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-light); }
.theme-toggle svg { width: 16px; height: 16px; }
.icon-sun { display: none; }
.icon-moon { display: block; }
[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }

/* ─── LIGHT MODE SIDEBAR ─────────────────── */
[data-theme="light"] .sidebar {
  background: #FFFFFF;
  border-right: 1px solid var(--border);
}
[data-theme="light"] .sidebar-logo {
  color: var(--dark);
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .sidebar-section-label {
  color: var(--muted);
}
[data-theme="light"] .sidebar-item {
  color: var(--mid);
}
[data-theme="light"] .sidebar-item:hover {
  background: var(--border);
  color: var(--text);
}
[data-theme="light"] .sidebar-item.active {
  background: var(--orange-light);
  color: var(--orange-dark);
}
[data-theme="light"] .sidebar-credits {
  border-top: 1px solid var(--border);
}
[data-theme="light"] .credits-box {
  background: var(--orange-light);
  border: 1px solid var(--orange-mid);
}
[data-theme="light"] .credits-box-label { color: var(--muted); }
[data-theme="light"] .credits-box-amount { color: var(--orange-dark); }
[data-theme="light"] .credits-box-sub { color: var(--muted); }

.dash-main {
  flex: 1; overflow-y: auto; background: var(--bg);
  display: flex; flex-direction: column;
}
.dash-header {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 0 32px; height: 60px; display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.dash-header-title { font-family: var(--heading-font); font-size: 20px; font-weight: 700; color: var(--dark); letter-spacing: -0.02em; }
.dash-header-right { display: flex; align-items: center; gap: 12px; }
.dash-content { padding: 32px; flex: 1; }

/* DASHBOARD VIEWS */
.dash-view { display: none; }
.dash-view.active { display: block; }

/* Home view */
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px;
}
.stat-label { font-size: 12px; color: var(--muted); font-weight: 500; margin-bottom: 6px; }
.stat-value { font-family: var(--heading-font); font-size: 28px; font-weight: 700; color: var(--dark); letter-spacing: -0.03em; }
.stat-change { font-size: 12px; margin-top: 4px; }
.stat-change.up { color: #16A34A; }
.stat-change.down { color: #DC2626; }

.dash-row { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 24px; }
.dash-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 24px;
}
.dash-card-title { font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }
.recent-render {
  display: flex; align-items: center; gap: 14px; padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.recent-render:last-child { border-bottom: none; }
.render-thumb {
  width: 56px; height: 42px; border-radius: 6px; background: var(--dark);
  flex-shrink: 0; overflow: hidden; position: relative;
}
.render-thumb-inner {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1a1a1a, #111111);
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; color: var(--orange);
}
.render-info { flex: 1; }
.render-info-name { font-size: 13px; font-weight: 500; color: var(--dark); }
.render-info-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.render-status {
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 100px;
}
.status-done { background: #DCFCE7; color: #16A34A; }
.status-processing { background: #FEF9C3; color: #CA8A04; }
.status-failed { background: #FEE2E2; color: #DC2626; }

/* Render page */
.render-page-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 0; height: 100%; min-height: calc(100vh - 60px); }
.render-sidebar {
  background: var(--white); border-right: 1px solid var(--border);
  padding: 24px; overflow-y: auto;
}
.render-main { background: var(--bg); padding: 24px; overflow-y: auto; }
.render-section-title { font-size: 12px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; margin-top: 20px; }
.render-section-title:first-child { margin-top: 0; }
.style-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.style-option {
  border: 2px solid var(--border); border-radius: 8px; padding: 10px 8px;
  text-align: center; cursor: pointer; transition: all .15s;
}
.style-option:hover { border-color: var(--orange-mid); }
.style-option.selected { border-color: var(--orange); background: var(--orange-light); }
.style-option-img {
  width: 100%; height: 48px; border-radius: 4px; margin-bottom: 6px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.style-option p { font-size: 11px; font-weight: 500; color: var(--mid); }
.render-upload-area {
  border: 2px dashed var(--border); border-radius: 10px; padding: 32px;
  text-align: center; cursor: pointer; transition: all .2s; margin-bottom: 16px;
}
.render-upload-area:hover { border-color: var(--orange); background: var(--orange-light); }
.render-upload-icon { font-size: 32px; margin-bottom: 8px; }
.render-upload-area p { font-size: 13px; color: var(--muted); }
.render-upload-area strong { font-size: 13px; color: var(--dark); }
.render-controls { display: flex; flex-direction: column; gap: 12px; }
.form-select {
  width: 100%; padding: 8px 12px; border-radius: var(--r2);
  border: 1.5px solid var(--border); background: var(--bg);
  font-family: var(--body-font); font-size: 13px; color: var(--text); outline: none;
}
.form-select:focus { border-color: var(--orange); }
.range-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
input[type=range] { width: 100%; accent-color: var(--orange); }
.render-output-area {
  background: var(--dark); border-radius: 14px; overflow: hidden; min-height: 400px;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  gap: 16px; position: relative;
}
.render-output-placeholder { text-align: center; }
.render-output-placeholder .icon { font-size: 48px; margin-bottom: 12px; opacity: 0.4; }
.render-output-placeholder p { color: rgba(255,255,255,0.35); font-size: 14px; }
.render-output-placeholder strong { color: rgba(255,255,255,0.6); }
.render-btn-wrap { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.render-btn-wrap .btn-primary { justify-content: center; padding: 13px; font-size: 14px; }
.credit-cost {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12px; color: var(--muted); background: var(--bg); border-radius: 8px; padding: 8px;
}

/* Credits page */
.credits-page-header { margin-bottom: 32px; }
.credits-current-box {
  background: var(--dark); border-radius: 16px; padding: 32px; margin-bottom: 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.credits-current-box h2 { font-family: var(--heading-font); font-size: 48px; font-weight: 700; color: white; }
.credits-current-box p { font-size: 14px; color: rgba(255,255,255,0.5); margin-top: 4px; }
.credit-packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.pack-card {
  background: var(--white); border: 1.5px solid var(--border); border-radius: 14px;
  padding: 24px; cursor: pointer; transition: all .2s;
}
.pack-card:hover { border-color: var(--orange); transform: translateY(-2px); box-shadow: var(--shadow); }
.pack-card.popular { border-color: var(--orange); }
.pack-popular-badge { font-size: 10px; font-weight: 700; background: var(--orange); color: white; padding: 2px 8px; border-radius: 100px; margin-bottom: 10px; display: inline-block; }
.pack-amount { font-family: var(--heading-font); font-size: 36px; font-weight: 700; color: var(--dark); }
.pack-amount span { font-size: 16px; color: var(--muted); }
.pack-price { font-size: 22px; font-weight: 700; color: var(--orange); margin-top: 4px; }
.pack-per { font-size: 12px; color: var(--muted); }
.usage-table { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.usage-table table { width: 100%; border-collapse: collapse; }
.usage-table th { background: var(--bg); padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.5px; }
.usage-table td { padding: 12px 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--mid); }

/* Embed page */
.embed-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 28px; margin-bottom: 20px; }
.embed-card h3 { font-family: var(--heading-font); font-size: 19px; font-weight: 600; color: var(--dark); margin-bottom: 8px; }
.embed-card p { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.code-block {
  background: var(--dark); border-radius: 8px; padding: 16px;
  font-family: 'Courier New', monospace; font-size: 12px; color: #E2E8F0;
  overflow-x: auto; white-space: pre; position: relative;
}
.copy-btn {
  position: absolute; top: 8px; right: 8px; background: rgba(249,115,22,0.2);
  border: 1px solid rgba(249,115,22,0.3); color: var(--orange-mid);
  font-size: 11px; padding: 4px 10px; border-radius: 6px; cursor: pointer;
  font-family: var(--body-font); transition: all .2s;
}
.copy-btn:hover { background: var(--orange); color: white; }
.embed-preview { background: var(--dark); border-radius: 10px; height: 200px; display: flex; align-items: center; justify-content: center; margin-top: 16px; }
.embed-preview p { color: rgba(255,255,255,0.3); font-size: 13px; }

/* My Renders */
.renders-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.render-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; transition: all .2s;
}
.render-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border2); }
.render-card-img {
  height: 140px; background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
}
.render-card-body { padding: 12px 14px; }
.render-card-name { font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 4px; }
.render-card-meta { font-size: 11px; color: var(--muted); }
.render-card-footer { padding: 10px 14px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }

/* Settings */
.settings-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.settings-nav { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 8px; height: fit-content; }
.settings-nav-item { padding: 9px 14px; border-radius: 8px; font-size: 13px; color: var(--mid); cursor: pointer; transition: all .15s; }
.settings-nav-item:hover { background: var(--bg); }
.settings-nav-item.active { background: var(--orange-light); color: var(--orange-dark); font-weight: 500; }
.settings-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 28px; }
.settings-section-title { font-family: var(--heading-font); font-size: 18px; font-weight: 600; color: var(--dark); margin-bottom: 4px; }
.settings-section-sub { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.settings-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.settings-divider { height: 1px; background: var(--border); margin: 24px 0; }
.avatar-section { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.settings-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--orange); display: flex; align-items: center; justify-content: center; font-family: var(--heading-font); font-size: 28px; font-weight: 700; color: white; }

/* User avatar in header */
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--heading-font); font-size: 14px; font-weight: 700; color: white;
  cursor: pointer;
}

/* Notification dot */
.notif-btn { position: relative; }
.notif-dot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; background: var(--orange); border-radius: 50%; border: 2px solid var(--white); }

/* Render iframe page */
.render-tool-page { display: flex; flex-direction: column; min-height: 100vh; }
.render-tool-header {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 0 24px; height: 52px; display: flex; align-items: center;
  justify-content: space-between; flex-shrink: 0;
}
.render-tool-header-left { display: flex; align-items: center; gap: 12px; }
.render-back-btn {
  display: flex; align-items: center; gap: 6px; font-size: 13px;
  color: var(--muted); cursor: pointer; padding: 6px 10px; border-radius: 8px;
  transition: all .15s; text-decoration: none;
}
.render-back-btn:hover { background: var(--border); color: var(--text); }
.render-tool-title { font-size: 14px; font-weight: 600; color: var(--dark); }
.render-tool-credits {
  background: var(--orange-light); border: 1px solid var(--orange-mid);
  color: var(--orange-dark); font-size: 13px; font-weight: 600;
  padding: 5px 12px; border-radius: 100px; display: flex; align-items: center; gap: 6px;
}
#render-tool-frame { flex: 1; border: none; width: 100%; min-height: calc(100vh - 52px); }

/* Responsive */
@media (max-width: 768px) {
  .pub-nav { padding: 0 20px; }
  .pub-nav-links { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ba-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .sidebar { display: none; }
}

/* Toast */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: var(--dark); color: white; padding: 12px 20px; border-radius: 10px;
  font-size: 13px; font-weight: 500; box-shadow: var(--shadow-lg);
  transform: translateY(100px); opacity: 0; transition: all .3s;
  display: flex; align-items: center; gap: 8px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon { color: var(--orange); font-size: 16px; }

/* ─── BLOG PAGE ─────────────────────────── */
.blog-hero {
  padding: 100px 0 64px; background: var(--white);
  border-bottom: 1px solid var(--border);
}
.blog-hero-inner { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.blog-hero h1 { font-family: var(--heading-font); font-size: clamp(32px,5vw,52px); font-weight: 700; color: var(--dark); letter-spacing: -0.03em; margin-bottom: 12px; }
.blog-hero p { font-size: 17px; color: var(--muted); max-width: 560px; line-height: 1.6; }

.blog-main { max-width: 1100px; margin: 0 auto; padding: 64px 40px; display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
.blog-featured { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--white); margin-bottom: 32px; cursor: pointer; transition: all .2s; }
.blog-featured:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.blog-featured-img { height: 320px; background: linear-gradient(135deg, var(--dark) 0%, #1a1208 100%); display: flex; align-items: center; justify-content: center; font-size: 64px; }
.blog-featured-body { padding: 32px; }
.blog-tag { display: inline-block; background: var(--orange-light); color: var(--orange-dark); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 12px; }
.blog-featured-body h2 { font-family: var(--heading-font); font-size: 26px; font-weight: 700; color: var(--dark); margin-bottom: 10px; letter-spacing: -0.02em; line-height: 1.3; }
.blog-featured-body p { font-size: 15px; color: var(--muted); line-height: 1.65; margin-bottom: 20px; }
.blog-meta { display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--muted); }
.blog-meta-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: white; }

.blog-list { display: flex; flex-direction: column; gap: 20px; }
.blog-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 20px; display: flex; gap: 16px; cursor: pointer; transition: all .2s; }
.blog-card:hover { border-color: var(--orange-mid); background: var(--orange-light); }
.blog-card-thumb { width: 80px; height: 80px; border-radius: 8px; background: var(--dark); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.blog-card-body { flex: 1; }
.blog-card-body h3 { font-family: var(--heading-font); font-size: 15px; font-weight: 600; color: var(--dark); margin-bottom: 6px; line-height: 1.35; }
.blog-card-body p { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 8px; }

.blog-sidebar-widget { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin-bottom: 20px; }
.blog-sidebar-widget h4 { font-family: var(--heading-font); font-size: 16px; font-weight: 600; color: var(--dark); margin-bottom: 16px; }

/* ─── DOCS PAGE ─────────────────────────── */
.docs-layout { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 60px); margin-top: 60px; }
.docs-sidebar { background: var(--white); border-right: 1px solid var(--border); padding: 32px 20px; position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; }
.docs-sidebar-section { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; margin-top: 24px; }
.docs-sidebar-section:first-child { margin-top: 0; }
.docs-nav-item { display: block; padding: 7px 12px; border-radius: 8px; font-size: 13px; color: var(--mid); cursor: pointer; transition: all .15s; text-decoration: none; margin-bottom: 2px; }
.docs-nav-item:hover { background: var(--bg); color: var(--text); }
.docs-nav-item.active { background: var(--orange-light); color: var(--orange-dark); font-weight: 500; }

.docs-content { padding: 48px 56px; max-width: 860px; }
.docs-content h1 { font-family: var(--heading-font); font-size: 36px; font-weight: 700; color: var(--dark); margin-bottom: 12px; letter-spacing: -0.03em; }
.docs-content h2 { font-family: var(--heading-font); font-size: 24px; font-weight: 700; color: var(--dark); margin-top: 48px; margin-bottom: 12px; letter-spacing: -0.02em; padding-top: 24px; border-top: 1px solid var(--border); }
.docs-content h2:first-of-type { margin-top: 32px; border-top: none; padding-top: 0; }
.docs-content h3 { font-family: var(--heading-font); font-size: 18px; font-weight: 600; color: var(--dark); margin-top: 28px; margin-bottom: 8px; }
.docs-content p { font-size: 15px; color: var(--mid); line-height: 1.7; margin-bottom: 16px; }
.docs-content ul { margin: 0 0 16px 0; padding-left: 20px; }
.docs-content li { font-size: 15px; color: var(--mid); line-height: 1.7; margin-bottom: 6px; }
.docs-content code { background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 2px 6px; font-family: 'Courier New', monospace; font-size: 13px; color: var(--orange-dark); }
.docs-content pre { background: var(--dark); border-radius: 10px; padding: 20px; margin-bottom: 20px; overflow-x: auto; }
.docs-content pre code { background: none; border: none; padding: 0; color: #E2E8F0; font-size: 13px; }
.docs-callout { background: var(--orange-light); border: 1px solid var(--orange-mid); border-radius: 10px; padding: 16px 20px; margin-bottom: 20px; }
.docs-callout p { margin: 0; font-size: 14px; color: var(--orange-dark); }
.docs-callout strong { color: var(--orange-dark); }
.docs-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.docs-table th { background: var(--bg); padding: 10px 14px; text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.5px; border-bottom: 1px solid var(--border); }
.docs-table td { padding: 10px 14px; font-size: 13px; color: var(--mid); border-bottom: 1px solid var(--border); }
.docs-table tr:last-child td { border-bottom: none; }
