/* ============================================
   AI Bathroom Design - Dark Theme CSS
   ============================================ */

/* CSS Variables */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #0f0f0f;
  --bg-card: #1a1a1a;
  --bg-input: #1a1a1a;
  --border: #2a2a2a;
  --border-hover: #3a3a3a;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-light: rgba(59, 130, 246, 0.1);
  --accent-border: rgba(59, 130, 246, 0.2);
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --text-dim: #4b5563;
  --green: #22c55e;
  --green-light: rgba(34, 197, 94, 0.1);
  --yellow: #eab308;
  --red: #ef4444;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: #60a5fa;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
}

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

.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ============================================
   Header / Navbar
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
  text-decoration: none;
}

.logo:hover {
  color: var(--text-primary);
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

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

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  display: block;
  padding: 8px 16px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.nav-user {
  background: var(--accent-light) !important;
  color: var(--accent) !important;
  border: 1px solid var(--accent-border) !important;
}

.nav-cta {
  background: var(--accent) !important;
  color: white !important;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
}

/* Mobile Menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links a {
    padding: 12px 16px;
    width: 100%;
  }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  padding: 120px 16px 96px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.3;
}

.hero-bg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  height: 100%;
}

.hero-bg-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg-primary), rgba(10,10,10,0.8), var(--bg-primary));
}

.hero-content {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  margin-bottom: 24px;
  color: #60a5fa;
  font-size: 14px;
  font-weight: 500;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 24px;
}

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

.hero p {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-note {
  color: var(--text-muted);
  font-size: 14px;
}

@media (max-width: 768px) {
  .hero {
    padding: 100px 16px 64px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero p {
    font-size: 16px;
  }
  .hero-bg-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-bg-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (min-width: 1025px) {
  .hero-bg-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  color: white;
}

.btn-primary-lg {
  background: var(--accent);
  color: white;
  padding: 16px 32px;
  font-size: 18px;
  border-radius: var(--radius);
}

.btn-primary-lg:hover {
  background: var(--accent-hover);
  color: white;
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  color: white;
}

.btn-secondary-lg {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 16px 32px;
  font-size: 18px;
  border-radius: var(--radius);
}

.btn-secondary-lg:hover {
  background: rgba(255,255,255,0.2);
  color: white;
}

.btn-danger {
  background: var(--bg-card);
  color: var(--red);
  border: 1px solid var(--border);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.1);
}

.btn-full {
  width: 100%;
}

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

/* ============================================
   Before/After Showcase
   ============================================ */
.showcase {
  padding: 80px 16px;
  background: var(--bg-secondary);
}

.showcase .container {
  max-width: 1100px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.showcase-item {
  position: relative;
}

.showcase-label {
  position: absolute;
  top: -12px;
  left: 16px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: white;
  z-index: 2;
}

.showcase-label-before {
  background: #374151;
}

.showcase-label-after {
  background: var(--accent);
}

.showcase-img {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.showcase-img.after {
  border-color: rgba(59, 130, 246, 0.3);
}

.showcase-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* ============================================
   Features Section (Alternating)
   ============================================ */
.features-section {
  padding: 80px 16px;
}

.features-section .container {
  max-width: 1100px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 96px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.feature-row.reverse .feature-text {
  order: 2;
}

.feature-row.reverse .feature-image {
  order: 1;
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  margin-bottom: 16px;
  color: #60a5fa;
  font-size: 14px;
  font-weight: 500;
}

.feature-text h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.feature-text p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #60a5fa;
  font-weight: 500;
}

.feature-link:hover {
  color: #93bbfd;
}

.feature-link svg {
  width: 16px;
  height: 16px;
}

.feature-image {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .feature-row.reverse .feature-text,
  .feature-row.reverse .feature-image {
    order: unset;
  }
  .feature-text h3 {
    font-size: 22px;
  }
}

/* ============================================
   How It Works
   ============================================ */
.how-it-works {
  padding: 80px 16px;
  background: var(--bg-secondary);
}

.how-it-works .container {
  max-width: 900px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  text-align: center;
}

.step-icon {
  width: 80px;
  height: 80px;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: #60a5fa;
}

.step-icon svg {
  width: 32px;
  height: 32px;
}

.step-number {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

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

/* ============================================
   Testimonials
   ============================================ */
.testimonials {
  padding: 80px 16px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.testimonial-stars svg {
  width: 20px;
  height: 20px;
  fill: var(--yellow);
}

.testimonial-text {
  color: #d1d5db;
  margin-bottom: 16px;
  font-size: 15px;
}

.testimonial-author {
  font-weight: 500;
  color: var(--text-primary);
}

.testimonial-role {
  color: var(--text-muted);
  font-size: 14px;
}

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

/* ============================================
   Styles Gallery
   ============================================ */
.styles-gallery {
  padding: 80px 16px;
  background: var(--bg-secondary);
}

.styles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.style-card-link {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s;
  display: block;
}

.style-card-link:hover {
  border-color: rgba(59, 130, 246, 0.5);
  transform: scale(1.02);
}

.style-card-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.style-card-link:hover img {
  transform: scale(1.1);
}

.style-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2), transparent);
}

.style-card-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  color: white;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .styles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .styles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-section {
  padding: 80px 16px;
}

.faq-list {
  max-width: 768px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  cursor: pointer;
  list-style: none;
  color: var(--text-primary);
  font-weight: 500;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary svg {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item[open] summary svg {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 24px;
  color: var(--text-secondary);
}

/* ============================================
   Final CTA
   ============================================ */
.final-cta {
  padding: 96px 16px;
  text-align: center;
}

.final-cta h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.final-cta p {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 32px;
}

@media (max-width: 768px) {
  .final-cta h2 {
    font-size: 28px;
  }
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 48px 16px;
  background: var(--bg-primary);
  border-top: 1px solid var(--bg-card);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.footer-brand span {
  font-weight: 700;
  color: var(--text-primary);
}

.footer-desc {
  color: var(--text-muted);
  font-size: 14px;
}

.footer h4 {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links-list a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links-list a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--bg-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-seo {
  color: var(--text-dim);
  font-size: 12px;
}

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

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

/* ============================================
   Auth Forms
   ============================================ */
.auth-container {
  max-width: 440px;
  margin: 120px auto 60px;
  padding: 0 16px;
}

.auth-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 32px;
}

.auth-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.auth-field {
  margin-bottom: 20px;
}

.auth-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 14px;
}

.auth-field input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  transition: border-color 0.2s;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.auth-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

.auth-btn:hover {
  background: var(--accent-hover);
}

.auth-link {
  text-align: center;
  margin-top: 24px;
  color: var(--text-secondary);
  font-size: 14px;
}

.auth-link a {
  color: var(--accent);
  font-weight: 500;
}

.auth-alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 14px;
}

.auth-alert p {
  margin: 4px 0;
}

.auth-alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

/* ============================================
   Design Pages
   ============================================ */
.design-page {
  padding: 96px 16px 64px;
}

.design-page .container {
  max-width: 800px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 14px;
}

.back-link:hover {
  color: var(--text-primary);
}

.back-link svg {
  width: 20px;
  height: 20px;
}

.design-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.design-subtitle {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.design-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

@media (min-width: 768px) {
  .design-card {
    padding: 32px;
  }
}

.design-section {
  margin-bottom: 32px;
}

.design-section:last-child {
  margin-bottom: 0;
}

.design-section-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 16px;
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.upload-zone:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.upload-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.upload-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--text-muted);
}

.upload-text {
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.upload-hint {
  color: var(--text-muted);
  font-size: 13px;
}

.upload-preview {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.upload-preview img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  background: var(--bg-primary);
}

.upload-preview-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
}

.upload-preview-btn {
  padding: 8px 16px;
  background: rgba(0,0,0,0.7);
  color: white;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(4px);
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.upload-preview-btn:hover {
  background: rgba(0,0,0,0.9);
}

.upload-preview-btn.remove {
  background: rgba(239, 68, 68, 0.8);
}

.upload-preview-btn.remove:hover {
  background: rgba(239, 68, 68, 1);
}

.upload-input {
  display: none;
}

/* Option Grids */
.option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.option-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.option-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.option-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.option-grid-6 {
  grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 768px) {
  .option-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .option-grid-4,
  .option-grid-5,
  .option-grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .option-grid-4,
  .option-grid-5,
  .option-grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.option-btn {
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  text-align: left;
  transition: all 0.2s;
  cursor: pointer;
  color: var(--text-secondary);
}

.option-btn:hover {
  border-color: var(--border-hover);
}

.option-btn.selected {
  border-color: var(--accent);
  background: var(--accent-light);
}

.option-btn h4 {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 14px;
}

.option-btn p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.option-btn .option-emoji {
  font-size: 24px;
  display: block;
  margin-bottom: 4px;
}

/* Style cards with images */
.style-option {
  position: relative;
  aspect-ratio: 1;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}

.style-option:hover {
  border-color: var(--border-hover);
}

.style-option.selected {
  border-color: var(--accent);
}

.style-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.style-option-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.style-option-name {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  color: white;
  font-size: 13px;
  font-weight: 500;
}

.style-option.selected::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 16px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Toggle buttons (additions) */
.toggle-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.toggle-btn {
  padding: 8px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  background: transparent;
  color: #d1d5db;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.toggle-btn:hover {
  border-color: var(--border-hover);
}

.toggle-btn.selected {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

/* Progress Bar */
.progress-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.progress-step {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  transition: background 0.3s;
}

.progress-step.active {
  background: var(--accent);
}

.progress-step.completed {
  background: var(--green);
}

/* Design Summary */
.design-summary {
  margin-top: 32px;
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.design-summary h4 {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.design-summary-content {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.design-summary-thumb {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.design-summary-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.design-summary-info {
  font-size: 14px;
  color: var(--text-secondary);
}

.design-summary-info span {
  font-weight: 500;
  color: #d1d5db;
}

/* Step Navigation */
.step-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.step-nav-back {
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 500;
  color: #d1d5db;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
  background: none;
}

.step-nav-back:hover {
  background: var(--border);
}

.step-nav-back:disabled {
  color: var(--text-dim);
  cursor: not-allowed;
}

.step-nav-back:disabled:hover {
  background: none;
}

/* Textarea */
.design-textarea {
  width: 100%;
  min-height: 160px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 16px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s;
}

.design-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.design-textarea::placeholder {
  color: var(--text-muted);
}

.design-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Suggestions */
.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suggestion-btn {
  padding: 8px 12px;
  background: var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.2s;
  text-align: left;
  border: none;
}

.suggestion-btn:hover {
  background: var(--border-hover);
}

/* ============================================
   Design Result (Before/After)
   ============================================ */
.result-container {
  max-width: 800px;
  margin: 0 auto;
}

.result-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.result-image-wrap img {
  width: 100%;
  display: block;
}

.result-toggle {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  background: rgba(0,0,0,0.6);
  border-radius: var(--radius-full);
  padding: 4px;
  backdrop-filter: blur(8px);
}

.result-toggle button {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.result-toggle button.active {
  background: white;
  color: black;
}

.result-actions {
  display: flex;
  gap: 12px;
}

.result-actions .btn {
  flex: 1;
}

.result-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
}

.result-links a {
  color: var(--text-secondary);
  font-size: 14px;
}

.result-links a:hover {
  color: var(--text-primary);
}

/* ============================================
   History Page
   ============================================ */
.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .history-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.history-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s;
  text-align: left;
  width: 100%;
}

.history-card:hover {
  box-shadow: var(--shadow-lg);
}

.history-card-img {
  height: 192px;
  overflow: hidden;
}

.history-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-card-info {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.history-card-type {
  font-weight: 600;
  color: var(--text-primary);
}

.history-card-style {
  font-size: 14px;
  color: var(--text-muted);
}

.history-card-date {
  font-size: 12px;
  color: var(--text-muted);
}

/* Empty State */
.empty-state {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow);
}

.empty-icon {
  width: 80px;
  height: 80px;
  background: var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--text-muted);
}

.empty-icon svg {
  width: 40px;
  height: 40px;
}

.empty-state h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ============================================
   Modal
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
}

.modal-overlay.hidden {
  display: none;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
}

.modal-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.modal-close:hover {
  background: white;
}

.modal-close svg {
  width: 24px;
  height: 24px;
  color: black;
}

.modal-body {
  padding: 24px;
}

.modal-body h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modal-body .text-muted {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.modal-body .text-small {
  font-size: 14px;
  color: var(--text-muted);
}

.modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.modal-actions .btn {
  flex: 1;
}

/* ============================================
   Account Page
   ============================================ */
.account-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

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

.account-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.account-card-header {
  background: var(--accent);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.account-card-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.account-card-body {
  padding: 24px;
}

.account-avatar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.account-avatar-circle {
  width: 64px;
  height: 64px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-avatar-circle span {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

.account-avatar-info h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.account-avatar-info p {
  color: var(--text-secondary);
}

.account-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.account-stat label {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
}

.account-stat p {
  font-weight: 500;
  color: var(--text-primary);
}

/* Subscription status */
.sub-active {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--green-light);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.sub-active p {
  font-weight: 700;
  color: var(--green);
}

.sub-active .sub-plan {
  font-weight: 400;
  font-size: 14px;
}

.sub-active svg {
  width: 40px;
  height: 40px;
  color: var(--green);
}

.sub-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.sub-detail-box {
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
}

.sub-detail-box label {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
}

.sub-detail-box p {
  font-weight: 700;
  color: var(--text-primary);
}

.sub-benefits h4 {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.sub-benefits ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sub-benefits li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.sub-benefits li svg {
  width: 20px;
  height: 20px;
  color: var(--green);
  flex-shrink: 0;
}

.sub-badge {
  background: var(--green);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-full);
}

/* Free plan */
.sub-free {
  text-align: center;
  padding: 16px 0;
}

.sub-free-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.sub-free-icon svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.sub-free h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.sub-free p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* Quick actions */
.quick-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  transition: background 0.2s;
  text-decoration: none;
  width: 100%;
}

.quick-action:hover {
  background: var(--border);
}

.quick-action-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quick-action-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.quick-action-text p {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 14px;
}

.quick-action-text small {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================
   Pricing
   ============================================ */
.pricing-section {
  padding: 96px 16px 64px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

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

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: center;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.15);
}

.pricing-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.pricing-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.pricing-features li svg {
  width: 20px;
  height: 20px;
  color: var(--green);
  flex-shrink: 0;
}

/* ============================================
   Loading Overlay
   ============================================ */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 10, 10, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.loading-overlay.hidden {
  display: none;
}

.loading-spinner {
  width: 64px;
  height: 64px;
  border: 4px solid var(--accent);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.loading-text {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 500;
  text-align: center;
}

.loading-subtext {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 8px;
}

/* ============================================
   Toast
   ============================================ */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 400;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  color: var(--text-primary);
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  border-color: var(--green);
}

.toast.error {
  border-color: var(--red);
}

/* ============================================
   Utilities
   ============================================ */
.text-center {
  text-align: center;
}

.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }

.hidden {
  display: none !important;
}

/* Page content spacing for fixed header */
.page-content {
  padding-top: 96px;
  padding-bottom: 64px;
  padding-left: 16px;
  padding-right: 16px;
}
