/* ===============================================
   EDYTUJ.AI - Global Styles
   =============================================== */

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

:root {
  /* Tła */
  --bg-primary: #0a0a0a;
  --bg-secondary: #050505;
  --bg-card: #141414;
  --bg-editor: #1f2937;

  /* Tekst */
  --text-primary: #ffffff;
  --text-secondary: #a1a1a1;
  --text-muted: #6b7280;

  /* Akcenty */
  --accent-cyan: #0ea5e9;
  --accent-purple: #7c3aed;
  --accent-pink: #ec4899;
  --accent-blue: #3b82f6;

  /* Gradient */
  --gradient-primary: linear-gradient(135deg, #0ea5e9, #7c3aed, #ec4899);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(124, 58, 237, 0.3);
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  min-height: 100vh;
  color: var(--text-primary);
  line-height: 1.5;
}

/* ===============================================
   NAVBAR - Shared between landing and editor
   =============================================== */

.navbar {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 700;
}

.navbar-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-link {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.navbar-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.navbar-link.active {
  color: var(--text-primary);
  position: relative;
}

.navbar-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Login button with glow effect */
.btn-login {
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  padding: 0.6rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 0.5rem;
  position: relative;
  transition: all 0.3s;
  animation: pulse-glow 2s ease-in-out infinite;
}

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(139, 92, 246, 0.4),
                0 0 10px rgba(139, 92, 246, 0.2);
  }
  50% {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.6),
                0 0 30px rgba(139, 92, 246, 0.3);
  }
}

/* Navbar actions (lang switcher + login) */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Language switcher */
.lang-switcher { position: relative; }

.lang-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 6px 12px;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.lang-btn:hover { border-color: var(--accent-purple); }

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  min-width: 140px;
  z-index: 50;
}

.lang-option {
  display: block;
  padding: 10px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

/* Mobile navbar */
@media (max-width: 640px) {
  .navbar-links {
    display: none;
  }

  .navbar-brand span {
    font-size: 1.1rem;
  }

  .btn-login {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

/* ===============================================
   LANDING PAGE STYLES
   =============================================== */

.landing-page {
  background: var(--bg-primary);
  overflow-x: hidden;
}

/* Interactive background gradient */
.hero-wrapper {
  position: relative;
  min-height: calc(100vh - 64px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 60%, rgba(14, 165, 233, 0.1) 0%, transparent 40%);
  animation: bg-rotate 20s linear infinite;
}

@keyframes bg-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Cursor-following gradient */
.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, rgba(236, 72, 153, 0.1) 30%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity 0.3s;
  filter: blur(40px);
}

/* Grid pattern overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}

/* Hero Section */
.hero {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
  padding: 60px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 72px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 22px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 18px 36px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button.primary {
  background: var(--gradient-primary);
}

.cta-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
}

.cta-button.large {
  padding: 20px 48px;
  font-size: 18px;
}

.trust-badges {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.hero-demo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-placeholder {
  width: 100%;
  max-width: 580px;
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.demo-image-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(236, 72, 153, 0.1));
}

.demo-label {
  position: absolute;
  top: 16px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.before-label {
  left: 16px;
}

.after-label {
  right: 16px;
}

.demo-text {
  color: var(--text-muted);
  font-size: 16px;
}

.demo-gradient-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 60%;
  background: var(--gradient-primary);
  transform: translate(-50%, -50%);
  border-radius: 1px;
}

/* Section transitions */
.section-divider {
  height: 150px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.section-divider.reverse {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

/* How it works */
.how-it-works {
  padding: 100px 48px;
  padding-top: 180px;
  background: var(--bg-secondary);
  position: relative;
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  pointer-events: none;
  z-index: 0;
}

.how-it-works h2 {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 64px;
}

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

.step-card {
  text-align: center;
  padding: 32px;
}

.step-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 32px;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 16px;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

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

.step-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.step-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Capabilities */
.capabilities {
  padding: 100px 48px;
  background: var(--bg-primary);
  text-align: center;
  position: relative;
}

.capabilities::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  pointer-events: none;
}

.capabilities h2 {
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.capabilities-subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 64px;
}

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

.capability-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s;
  text-align: left;
}

.capability-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

.capability-card.featured {
  grid-row: span 2;
  background: linear-gradient(135deg,
    rgba(236, 72, 153, 0.05),
    rgba(124, 58, 237, 0.05)
  );
  border-color: rgba(236, 72, 153, 0.3);
}

.capability-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.capability-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.capability-icon svg {
  width: 24px;
  height: 24px;
}

.capability-header .capability-icon {
  margin-bottom: 0;
}

.capability-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.capability-header .capability-title {
  margin-bottom: 0;
}

.capability-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.capability-example {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border-left: 2px solid var(--border-accent);
}

.capability-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-pink);
  margin-top: 16px;
  cursor: pointer;
  text-decoration: none;
}

.capability-link:hover {
  text-decoration: underline;
}

/* Examples */
.examples {
  padding: 100px 48px;
  background: var(--bg-secondary);
  text-align: center;
}

.examples h2 {
  font-size: 40px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.examples-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 48px;
}

/* Carousel */
.examples-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
}

.examples-track {
  flex: 1;
  max-width: 700px;
  overflow: hidden;
}

.example-slide {
  display: none;
}

.example-slide.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* Comparison Slider */
.comparison-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  cursor: ew-resize;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  user-select: none;
  -webkit-user-select: none;
}

.comparison-before,
.comparison-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.comparison-before img,
.comparison-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  draggable: false;
}

.comparison-before {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}

.comparison-after {
  z-index: 1;
}

.comparison-label {
  position: absolute;
  top: 16px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-before .comparison-label {
  left: 16px;
}

.comparison-after .comparison-label {
  right: 16px;
}

/* Handle */
.comparison-handle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.handle-line {
  flex: 1;
  width: 3px;
  background: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.handle-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.handle-circle svg {
  width: 28px;
  height: 28px;
  color: var(--bg-primary);
}

/* Carousel dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-subtle);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.carousel-dot:hover {
  background: var(--text-muted);
}

.carousel-dot.active {
  background: var(--accent-purple);
  transform: scale(1.2);
}

/* Example prompt */
.example-prompt {
  padding: 20px 24px;
  font-size: 16px;
  color: var(--text-secondary);
  background: var(--bg-card);
  border-radius: 12px;
  margin-top: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--border-subtle);
}

.example-prompt span {
  color: var(--accent-purple);
  font-weight: 600;
  margin-right: 8px;
}

/* Examples responsive */
@media (max-width: 768px) {
  .examples-carousel {
    gap: 12px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-btn svg {
    width: 20px;
    height: 20px;
  }

  .comparison-slider {
    border-radius: 12px;
  }

  .handle-circle {
    width: 40px;
    height: 40px;
  }

  .handle-circle svg {
    width: 22px;
    height: 22px;
  }

  .comparison-label {
    font-size: 11px;
    padding: 4px 10px;
  }
}

/* Why Us */
.why-us {
  padding: 100px 48px;
  background: var(--bg-primary);
}

.why-us h2 {
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 64px;
}

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

.comparison-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px;
}

.comparison-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.comparison-us {
  color: #22c55e;
  font-size: 14px;
  margin-bottom: 8px;
}

.comparison-them {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 16px;
  text-decoration: line-through;
  opacity: 0.7;
}

/* Pricing Preview */
.pricing-preview {
  padding: 100px 48px;
  background: var(--bg-secondary);
  text-align: center;
}

.pricing-preview h2 {
  font-size: 40px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.pricing-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 64px;
}

.pricing-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  max-width: 700px;
  margin: 0 auto;
}

.pricing-card {
  flex: 1;
  max-width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px;
  text-align: left;
  position: relative;
}

.pricing-card.popular {
  border-color: var(--accent-purple);
  background: linear-gradient(135deg,
    rgba(124, 58, 237, 0.1),
    rgba(236, 72, 153, 0.05)
  );
}

.popular-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--gradient-primary);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
}

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

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

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

.pricing-card ul {
  list-style: none;
  margin-bottom: 24px;
}

.pricing-card li {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.pricing-btn {
  display: block;
  width: 100%;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
}

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

.pricing-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
}

.pricing-btn.secondary {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.pricing-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted);
}

/* FAQ */
.faq {
  padding: 100px 48px;
  background: var(--bg-primary);
}

.faq h2 {
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 64px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 24px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--accent-purple);
}

.faq-icon {
  font-size: 24px;
  transition: transform 0.3s;
  color: var(--text-muted);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding-bottom: 24px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Final CTA */
.final-cta {
  padding: 120px 48px;
  background: linear-gradient(180deg, var(--bg-primary), var(--bg-card));
  text-align: center;
}

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

.final-cta > p {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.final-cta .trust-badges {
  justify-content: center;
  margin-top: 32px;
}

/* Site Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 64px 48px 32px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

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

.footer-links-group ul {
  list-style: none;
}

.footer-links-group li {
  margin-bottom: 12px;
}

.footer-links-group a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 48px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

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

/* Fade-in animations */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Landing page responsive */
@media (max-width: 1024px) {
  .hero {
    padding: 60px 48px;
    gap: 48px;
  }

  .hero h1 {
    font-size: 56px;
  }

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

  .capability-card.featured {
    grid-row: span 1;
  }
}

@media (max-width: 768px) {
  .cursor-glow {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 24px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .trust-badges {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .hero-demo {
    order: -1;
  }

  .demo-placeholder {
    max-width: 100%;
  }

  .steps-grid,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  .pricing-cards {
    flex-direction: column;
    align-items: center;
  }

  .pricing-card {
    max-width: 100%;
  }

  .how-it-works,
  .capabilities,
  .examples,
  .why-us,
  .pricing-preview,
  .faq,
  .final-cta {
    padding: 60px 24px;
  }

  .how-it-works h2,
  .capabilities h2,
  .examples h2,
  .why-us h2,
  .pricing-preview h2,
  .faq h2 {
    font-size: 28px;
  }

  .final-cta h2 {
    font-size: 32px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

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

  .footer-brand {
    grid-column: span 1;
  }
}

/* ===============================================
   LEGAL PAGES STYLES
   =============================================== */

.legal-page .navbar {
  background: var(--bg-primary);
}

.legal-content {
  padding: 80px 48px;
  background: var(--bg-primary);
  min-height: calc(100vh - 64px - 200px);
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.2;
}

.legal-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-section {
  margin-bottom: 40px;
}

.legal-section h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 24px 0 16px;
}

.legal-section p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-section ol,
.legal-section ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-section li {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-section li ul,
.legal-section li ol {
  margin-top: 12px;
  margin-bottom: 0;
}

.legal-section address {
  font-style: normal;
  background: var(--bg-card);
  padding: 16px 20px;
  border-radius: 8px;
  border-left: 3px solid var(--accent-purple);
  margin: 12px 0;
}

.legal-section a {
  color: var(--accent-cyan);
  text-decoration: none;
}

.legal-section a:hover {
  text-decoration: underline;
}

.legal-form {
  background: var(--bg-card);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  margin: 20px 0;
}

.legal-form p {
  margin-bottom: 12px;
}

.legal-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 14px;
  color: var(--text-muted);
}

/* Cookies table */
.cookies-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
}

.cookies-table th,
.cookies-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.cookies-table th {
  background: rgba(124, 58, 237, 0.1);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.cookies-table td {
  font-size: 14px;
  color: var(--text-secondary);
}

.cookies-table tr:last-child td {
  border-bottom: none;
}

/* Legal pages responsive */
@media (max-width: 768px) {
  .legal-content {
    padding: 40px 24px;
  }

  .legal-content h1 {
    font-size: 28px;
  }

  .legal-section h2 {
    font-size: 20px;
  }

  .legal-section h3 {
    font-size: 16px;
  }

  .cookies-table {
    font-size: 13px;
  }

  .cookies-table th,
  .cookies-table td {
    padding: 10px 12px;
  }
}

/* ===============================================
   EDITOR PAGE STYLES
   =============================================== */

.editor-container {
  background: linear-gradient(135deg, #111827 0%, #1f2937 50%, #111827 100%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 2rem;
  padding-top: 1rem;
}

.header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Main grid */
.main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

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

/* Panels */
.panel {
  background: var(--bg-editor);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.panel h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Dropzone */
.dropzone {
  position: relative;
  aspect-ratio: 1;
  border: 2px dashed #4b5563;
  border-radius: 0.75rem;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s;
  background: #111827;
}

.dropzone:hover {
  border-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.1);
}

.dropzone.has-image {
  border-color: transparent;
}

.dropzone-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.dropzone-title {
  font-size: 1.125rem;
  font-weight: 500;
  margin-top: 1rem;
}

.dropzone-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.preview-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.preview-image.visible {
  display: block;
}

/* Result box */
.result-box {
  position: relative;
  aspect-ratio: 1;
  border: 2px dashed #4b5563;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #111827;
}

.placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.placeholder p {
  margin-top: 1rem;
  font-size: 1.125rem;
  font-weight: 500;
}

/* Loader */
.loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

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

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

.loader p {
  font-size: 1.125rem;
  font-weight: 500;
}

.loader-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Text buttons */
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}

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

#downloadResult {
  color: #60a5fa;
}

#downloadResult:hover {
  color: #93c5fd;
}

/* Prompt section */
.prompt-section {
  background: var(--bg-editor);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.prompt-section label {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.prompt-section textarea {
  width: 100%;
  height: 8rem;
  padding: 0.75rem 1rem;
  background: #111827;
  border: 1px solid #374151;
  border-radius: 0.75rem;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  resize: none;
  transition: all 0.2s;
}

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

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

/* Settings section */
.settings-section {
  background: var(--bg-editor);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.slider-group label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.slider-group label span {
  color: #60a5fa;
  font-weight: 700;
}

.slider-group input[type="range"] {
  width: 100%;
  height: 8px;
  background: #374151;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--accent-blue);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

.slider-group input[type="range"]::-webkit-slider-thumb:hover {
  background: #60a5fa;
}

.slider-group input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--accent-blue);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.slider-hints {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Error message */
.error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(127, 29, 29, 0.5);
  border: 1px solid #ef4444;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  color: #fca5a5;
}

/* Actions */
.actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

@media (min-width: 640px) {
  .actions {
    flex-direction: row;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 200px;
}

.btn-primary {
  background: #2563eb;
  color: white;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-blue);
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.5);
}

.btn-primary:disabled {
  background: #374151;
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  background: #374151;
  color: white;
}

.btn-secondary:hover {
  background: #4b5563;
}

/* Footer (editor) */
.footer {
  text-align: center;
  margin-top: 3rem;
  padding-bottom: 2rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Utility */
[hidden] {
  display: none !important;
}

/* ===============================================
   AUTH PAGES STYLES
   =============================================== */

.auth-page {
  min-height: 100vh;
  background: var(--bg-primary);
}

.auth-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px;
  min-height: calc(100vh - 64px);
  align-items: center;
}

.auth-container-centered {
  grid-template-columns: 1fr;
  max-width: 480px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 40px;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

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

.auth-header p {
  font-size: 16px;
  color: var(--text-secondary);
}

.auth-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 16px;
  color: var(--accent-purple);
}

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

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 16px;
  font-family: inherit;
  transition: all 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.password-input {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input input {
  padding-right: 48px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

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

.toggle-password.visible {
  color: var(--accent-purple);
}

.toggle-password svg {
  width: 20px;
  height: 20px;
}

/* Password strength */
.password-strength {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.strength-bar {
  flex: 1;
  height: 4px;
  background: var(--border-subtle);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.strength-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  transition: width 0.3s, background 0.3s;
}

.strength-bar.weak::after {
  width: 25%;
  background: #ef4444;
}

.strength-bar.medium::after {
  width: 50%;
  background: #f59e0b;
}

.strength-bar.good::after {
  width: 75%;
  background: #10b981;
}

.strength-bar.strong::after {
  width: 100%;
  background: #22c55e;
}

.strength-text {
  font-size: 12px;
  color: var(--text-muted);
  min-width: 70px;
}

.strength-text.weak { color: #ef4444; }
.strength-text.medium { color: #f59e0b; }
.strength-text.good { color: #10b981; }
.strength-text.strong { color: #22c55e; }

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--border-subtle);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.checkbox-label input:checked + .checkmark {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
}

.checkbox-label input:checked + .checkmark::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.checkbox-label a {
  color: var(--accent-cyan);
  text-decoration: none;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.forgot-link {
  font-size: 14px;
  color: var(--accent-cyan);
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}

/* Messages */
.error-message,
.success-message,
.form-message {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
}

.error-message,
.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.success-message,
.form-message.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

/* Submit button */
.btn-submit {
  width: 100%;
  padding: 16px 24px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-loader .spinner {
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

.btn-submit .btn-text {
  color: white;
  margin-top: 0;
  background: none;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

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

.auth-footer a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Auth features */
.auth-features {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature-icon {
  font-size: 32px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 12px;
}

.feature-item h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Auth responsive */
@media (max-width: 968px) {
  .auth-container {
    grid-template-columns: 1fr;
    padding: 40px 24px;
    gap: 48px;
  }

  .auth-features {
    order: -1;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .feature-item {
    flex-basis: calc(50% - 16px);
  }
}

@media (max-width: 640px) {
  .auth-card {
    padding: 24px;
  }

  .feature-item {
    flex-basis: 100%;
  }

  .form-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===============================================
   PROFILE PAGE STYLES
   =============================================== */

.profile-page {
  min-height: 100vh;
  background: var(--bg-primary);
}

.profile-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  max-width: 1400px;
  margin: 0 auto;
  min-height: calc(100vh - 64px);
}

/* Sidebar */
.profile-sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border-subtle);
  padding: 32px 24px;
}

.profile-user {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple);
  margin-bottom: 16px;
}

.user-avatar svg {
  width: 40px;
  height: 40px;
}

.user-email {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 8px;
  word-break: break-all;
}

.user-badge {
  font-size: 12px;
  padding: 4px 12px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 20px;
  color: var(--accent-purple);
}

.profile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
}

.profile-nav-item svg {
  width: 20px;
  height: 20px;
}

.profile-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.profile-nav-item.active {
  background: rgba(124, 58, 237, 0.1);
  color: var(--accent-purple);
}

/* Profile content */
.profile-content {
  padding: 40px 48px;
  overflow-y: auto;
}

.profile-tab {
  display: none;
}

.profile-tab.active {
  display: block;
}

.tab-header {
  margin-bottom: 32px;
}

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

.tab-description {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Edits grid */
.edits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.edits-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  text-align: center;
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: 16px;
}

.empty-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 20px;
  color: var(--accent-purple);
  margin-bottom: 24px;
}

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

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

.edits-empty p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.edits-empty .btn-primary {
  text-decoration: none;
  padding: 12px 24px;
  font-size: 14px;
  min-width: auto;
}

/* Edit card */
.edit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
}

.edit-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

.edit-card-image {
  aspect-ratio: 1;
  background: var(--bg-primary);
  overflow: hidden;
}

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

.edit-card-content {
  padding: 12px;
}

.edit-card-prompt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.edit-card-actions {
  display: flex;
  gap: 8px;
}

.edit-card-actions button {
  flex: 1;
  padding: 8px;
  font-size: 12px;
}

/* Balance section */
.balance-card {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(236, 72, 153, 0.1));
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  margin-bottom: 32px;
}

.balance-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.balance-number {
  font-size: 64px;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.balance-label {
  font-size: 24px;
  color: var(--text-secondary);
}

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

.balance-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.balance-actions .btn-primary {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

.balance-history h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.history-empty {
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
}

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

/* Settings sections - profile specific */
.profile-content .settings-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.profile-content .settings-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 400px;
}

.settings-form .btn-secondary {
  align-self: flex-start;
  padding: 10px 20px;
  font-size: 14px;
  min-width: auto;
}

/* Account info */
.account-info {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}

.info-row {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-size: 14px;
  color: var(--text-muted);
  width: 160px;
}

.info-value {
  font-size: 14px;
  color: var(--text-primary);
}

/* Danger zone */
.danger-zone {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  padding: 24px;
}

.danger-zone h3 {
  font-size: 18px;
  font-weight: 600;
  color: #ef4444;
  margin-bottom: 12px;
}

.danger-zone p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: transparent;
  border: 1px solid #ef4444;
  border-radius: 8px;
  color: #ef4444;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-danger:hover {
  background: #ef4444;
  color: white;
}

/* Logout button */
.btn-logout {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  animation: none;
  box-shadow: none;
}

.btn-logout:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  transform: none;
  box-shadow: none;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.modal-content {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px;
  max-width: 480px;
  width: 100%;
}

.modal-content h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.modal-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.modal-actions .btn-secondary {
  min-width: auto;
  padding: 10px 20px;
  font-size: 14px;
}

.modal-actions .btn-danger {
  min-width: auto;
}

/* Profile responsive */
@media (max-width: 968px) {
  .profile-container {
    grid-template-columns: 1fr;
  }

  .profile-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 20px;
  }

  .profile-user {
    flex-direction: row;
    text-align: left;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 16px;
  }

  .user-avatar {
    width: 56px;
    height: 56px;
    margin-bottom: 0;
  }

  .profile-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .profile-nav-item {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }

  .profile-content {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .profile-nav-item span:not(.profile-nav-item svg) {
    display: none;
  }

  .profile-nav-item {
    min-width: auto;
    padding: 12px;
  }

  .balance-number {
    font-size: 48px;
  }

  .balance-label {
    font-size: 18px;
  }

  .info-row {
    flex-direction: column;
    gap: 4px;
  }

  .info-label {
    width: auto;
  }
}
