/* ===== FONTS ===== */
/* Premium fonts from CHRift */
@font-face { font-family: 'Catallina'; src: url('/fonts/Catallina.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Caviar'; src: url('/fonts/caviar-dreams.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Dewberry'; src: url('/fonts/dewberry-bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

@font-face { font-family: 'Appetite'; src: url('/fonts/appetite.ttf') format('truetype'); font-weight: 400; font-display: swap; }

@font-face { font-family: 'Funever'; src: url('/fonts/Funever-Thin.ttf') format('truetype'); font-weight: 100; font-display: swap; }
@font-face { font-family: 'Funever'; src: url('/fonts/Funever-Light.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Funever'; src: url('/fonts/Funever-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Funever'; src: url('/fonts/Funever-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Funever'; src: url('/fonts/Funever-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Funever'; src: url('/fonts/Funever-Black.ttf') format('truetype'); font-weight: 900; font-display: swap; }

@font-face { font-family: 'Eirik Raude'; src: url('/fonts/EirikRaude.ttf') format('truetype'); font-weight: 400; font-display: swap; }

/* ===== THEME VARIABLES ===== */
:root {
  --font-body: 'Appetite', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Eirik Raude', 'Appetite', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Appetite', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-premium: 'Eirik Raude', 'Appetite', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(124,58,237,0.15);
}

[data-theme="dark"] {
  --bg: #0f0f1a;
  --bg-card: #18182e;
  --bg-elevated: #1e1e3a;
  --bg-hover: #2a2a4e;
  --bg-overlay: rgba(15,15,26,0.85);
  --border: #2a2a4a;
  --border-light: #3a3a5e;
  --text: #eeeef8;
  --text-muted: #9999bb;
  --text-dim: #666690;
  --primary: #7c3aed;
  --primary-light: #a78bfa;
  --primary-dark: #5b21b6;
  --primary-glow: rgba(124,58,237,0.25);
  --secondary: #ec4899;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --ai-grid: rgba(124,58,237,0.12);
  --ai-node: rgba(124,58,237,0.25);
  --ai-line: rgba(124,58,237,0.15);
  --ai-particle: rgba(168,85,247,0.35);
  --text-stroke: 0 0 1px rgba(255,255,255,0.15), 0 0 2px rgba(255,255,255,0.08);
}

[data-theme="light"] {
  --bg: #f5f5fa;
  --bg-card: #ffffff;
  --bg-elevated: #eeedf5;
  --bg-hover: #e2e0ed;
  --bg-overlay: rgba(255,255,255,0.9);
  --border: #dddde8;
  --border-light: #c8c7d8;
  --text: #1a1a2e;
  --text-muted: #6b6b8a;
  --text-dim: #9999b0;
  --primary: #7c3aed;
  --primary-light: #6d28d9;
  --primary-dark: #5b21b6;
  --primary-glow: rgba(124,58,237,0.25);
  --secondary: #ec4899;
  --success: #059669;
  --danger: #dc2626;
  --warning: #d97706;
  --ai-grid: rgba(124,58,237,0.15);
  --ai-node: rgba(124,58,237,0.25);
  --ai-line: rgba(124,58,237,0.15);
  --ai-particle: rgba(124,58,237,0.3);
}

/* ===== AI ANIMATED BACKGROUND ===== */
.ai-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ai-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--ai-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--ai-grid) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 50%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 50%, transparent 75%);
  animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.ai-bg-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 50%);
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  animation: glowFloat 10s ease-in-out infinite;
}

@keyframes glowFloat {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
  33% { transform: translateX(-40%) translateY(-30px) scale(1.1); }
  66% { transform: translateX(-60%) translateY(-20px) scale(0.95); }
}

.ai-bg-glow-2 {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236,72,153,0.2) 0%, transparent 50%);
  bottom: -200px;
  right: -200px;
  animation: glowFloat2 12s ease-in-out infinite;
}

@keyframes glowFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -50px) scale(1.2); }
}

/* Neural network nodes */
.ai-nodes {
  position: absolute;
  inset: 0;
}

.ai-node {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--ai-node);
  border-radius: 50%;
  animation: nodePulse 4s ease-in-out infinite;
}

.ai-node:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.ai-node:nth-child(2) { top: 25%; left: 80%; animation-delay: 0.5s; width: 6px; height: 6px; }
.ai-node:nth-child(3) { top: 45%; left: 20%; animation-delay: 1s; }
.ai-node:nth-child(4) { top: 55%; left: 70%; animation-delay: 1.5s; width: 5px; height: 5px; }
.ai-node:nth-child(5) { top: 70%; left: 40%; animation-delay: 2s; }
.ai-node:nth-child(6) { top: 85%; left: 85%; animation-delay: 2.5s; width: 3px; height: 3px; }
.ai-node:nth-child(7) { top: 35%; left: 55%; animation-delay: 0.8s; }
.ai-node:nth-child(8) { top: 65%; left: 15%; animation-delay: 1.2s; width: 5px; height: 5px; }
.ai-node:nth-child(9) { top: 10%; left: 45%; animation-delay: 1.8s; }
.ai-node:nth-child(10) { top: 90%; left: 60%; animation-delay: 0.3s; }

@keyframes nodePulse {
  0%, 100% { opacity: 0.3; transform: scale(1); box-shadow: 0 0 0px var(--ai-node); }
  50% { opacity: 1; transform: scale(1.5); box-shadow: 0 0 12px var(--ai-particle); }
}

/* Particles */
.ai-particles {
  position: absolute;
  inset: 0;
}

.ai-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--ai-particle);
  border-radius: 50%;
  animation: particleFloat 15s linear infinite;
}

.ai-particle:nth-child(1) { top: 20%; left: 30%; animation-duration: 18s; animation-delay: 0s; }
.ai-particle:nth-child(2) { top: 40%; left: 60%; animation-duration: 14s; animation-delay: 2s; }
.ai-particle:nth-child(3) { top: 60%; left: 25%; animation-duration: 16s; animation-delay: 4s; }
.ai-particle:nth-child(4) { top: 80%; left: 75%; animation-duration: 20s; animation-delay: 1s; }
.ai-particle:nth-child(5) { top: 30%; left: 85%; animation-duration: 12s; animation-delay: 3s; }
.ai-particle:nth-child(6) { top: 70%; left: 50%; animation-duration: 17s; animation-delay: 5s; }
.ai-particle:nth-child(7) { top: 50%; left: 10%; animation-duration: 15s; animation-delay: 2.5s; }
.ai-particle:nth-child(8) { top: 15%; left: 70%; animation-duration: 19s; animation-delay: 0.5s; }
.ai-particle:nth-child(9) { top: 90%; left: 35%; animation-duration: 13s; animation-delay: 3.5s; }
.ai-particle:nth-child(10) { top: 45%; left: 45%; animation-duration: 16s; animation-delay: 1.5s; }

@keyframes particleFloat {
  0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-200px) translateX(100px) scale(0); opacity: 0; }
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

[data-theme="dark"] body {
  text-shadow: var(--text-stroke);
}

::selection { background: var(--primary); color: white; }

a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }

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

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ===== HEADER ===== */
.header {
  background: var(--bg-overlay);
  backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background var(--transition), border-color var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.logo-icon {
  font-size: 28px;
  color: var(--primary);
  filter: drop-shadow(0 0 8px var(--primary-glow));
  animation: float 4s ease-in-out infinite;
}

.logo-text {
  font-family: 'Eirik Raude', 'Appetite', cursive;
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
  letter-spacing: 0.5px;
}

.logo-version {
  font-family: 'Eirik Raude', 'Appetite', cursive;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-light);
  background: var(--primary-glow);
  padding: 2px 10px;
  border-radius: 20px;
  margin-left: 4px;
  border: 1px solid rgba(124,58,237,0.2);
}

.nav { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }

.nav-link {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-link:hover { color: var(--text); background: var(--bg-hover); }
.nav-link.active { color: var(--primary-light); background: rgba(124,58,237,0.08); }

/* Theme & Language Switchers */
.header-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.toggle-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1;
}

.toggle-btn:hover {
  border-color: var(--primary);
  color: var(--text);
  background: var(--bg-hover);
}

.lang-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.credits-badge {
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-hover));
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--warning);
  white-space: nowrap;
  transition: all var(--transition);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 0 16px var(--primary-glow);
  transition: transform var(--transition);
}

.nav-user:hover .user-avatar { transform: scale(1.1); }

.user-name { font-size: 13px; font-weight: 500; display: none; }
@media (min-width: 1024px) { .user-name { display: inline; } }

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  min-width: 180px;
  display: none;
  z-index: 200;
  box-shadow: var(--shadow);
  animation: scaleIn 0.2s ease;
}

.user-dropdown.show { display: block; }

.user-dropdown a {
  display: block;
  padding: 10px 14px;
  color: var(--text-muted);
  font-size: 13px;
  border-radius: var(--radius-xs);
  transition: all 0.2s;
}

.user-dropdown a:hover { background: var(--bg-hover); color: var(--text); }

.mobile-menu-btn { display: none; background: none; border: none; color: var(--text); font-size: 26px; cursor: pointer; padding: 6px; }
.mobile-menu { display: none; }

@media (max-width: 900px) {
  .nav, .header-tools { display: none; }
  .mobile-menu-btn { display: block; }
  .mobile-menu.open {
    display: flex;
    flex-direction: column;
    padding: 16px 24px;
    gap: 12px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    animation: fadeInUp 0.3s ease;
  }
  .mobile-menu a { color: var(--text-muted); font-size: 15px; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .mobile-menu a:last-child { border-bottom: none; }
  .mobile-menu .mobile-tools { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  transition: left 0.6s;
}
.btn:hover::before { left: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #6d28d9);
  color: white;
  box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(124,58,237,0.4); color: white; }

.btn-outline {
  background: transparent;
  color: var(--primary-light);
  border: 1px solid var(--border);
}
.btn-outline:hover,
.pricing-card .btn-outline:hover {
  background: linear-gradient(135deg, #FFD700, #B8860B);
  border-color: transparent;
  color: #1a1a2e;
  box-shadow: 0 0 28px rgba(255, 215, 0, 0.6), 0 8px 32px rgba(255, 215, 0, 0.35);
  transform: translateY(-3px);
}

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); background: var(--bg-hover); }

.btn-danger { background: linear-gradient(135deg, var(--danger), #dc2626); color: white; }
.btn-danger:hover { transform: translateY(-2px); color: white; }
.btn-success { background: linear-gradient(135deg, var(--success), #059669); color: white; }
.btn-success:hover { transform: translateY(-2px); color: white; }

.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 7px 14px; font-size: 12px; border-radius: var(--radius-xs); }
.w-full { width: 100%; }

/* ===== ALERTS & FORMS ===== */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
  animation: fadeInUp 0.3s ease;
}
.alert-error { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.3); color: var(--danger); }
.alert-success { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.3); color: var(--success); }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: all var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: var(--bg-card);
}

.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 120px 0 100px;
  text-align: center;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease;
}

.hero-title {
  font-family: 'Appetite', cursive;
  font-size: clamp(38px, 7vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 28px;
  animation: fadeInUp 1s ease 0.1s both;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #FFD700, #B8860B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.4s ease;
}

[data-theme="dark"] .hero-title {
  background: none;
  -webkit-text-fill-color: #ffffff;
  color: #ffffff;
  -webkit-text-stroke: 2px rgba(255,255,255,0.6);
  paint-order: stroke fill;
  filter: drop-shadow(0 0 10px rgba(255,215,0,0.15)) drop-shadow(0 4px 8px rgba(0,0,0,0.6));
}

[data-theme="dark"] .hero-title:hover {
  filter: drop-shadow(0 0 22px rgba(255,215,0,0.85)) drop-shadow(0 4px 12px rgba(0,0,0,0.8));
}

[data-theme="light"] .hero-title {
  -webkit-text-stroke: 1.5px rgba(0,0,0,0.4);
  paint-order: fill stroke;
}

.hero-title:hover {
  transform: translateY(-2px);
}

.gradient-text {
  background: linear-gradient(135deg, #7c3aed, #ec4899, #f59e0b);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s ease-in-out infinite;
}

.hero-subtitle {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.7;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 70px; animation: fadeInUp 1s ease 0.3s both; }
.hero-stats { display: flex; justify-content: center; gap: 60px; animation: fadeInUp 1s ease 0.4s both; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-value { font-family: var(--font-display); font-size: 36px; font-weight: 700; color: var(--text); line-height: 1; }
.stat-label { font-size: 13px; color: var(--text-dim); margin-top: 4px; }

@media (max-width: 768px) {
  .hero { padding: 80px 0 60px; min-height: auto; }
  .hero-title { font-size: 32px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
  .stat-value { font-size: 26px; }
}

/* ===== SHOWCASE SLIDER ===== */
.showcase { padding: 80px 0; }
.showcase-slider { position: relative; overflow: hidden; border-radius: var(--radius); margin-top: 40px; }
.showcase-track { display: flex; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.showcase-slide {
  min-width: 100%;
  padding: 60px 40px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.slide-icon { font-size: 68px; margin-bottom: 20px; display: block; }
.slide-title { font-family: var(--font-heading); font-size: 26px; font-weight: 700; margin-bottom: 12px; }
.slide-desc { color: var(--text-muted); font-size: 15px; max-width: 500px; margin: 0 auto; line-height: 1.7; }
.slide-nav { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.slide-dot { width: 42px; height: 4px; border-radius: 4px; background: var(--border-light); cursor: pointer; transition: all var(--transition); border: none; }
.slide-dot.active { background: var(--primary); width: 60px; }
.slide-arrow {
  background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text);
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
}
.slide-arrow:hover { background: var(--primary); border-color: var(--primary); color: white; }
.slide-arrow.prev { left: 16px; }
.slide-arrow.next { right: 16px; }
@media (max-width: 768px) { .slide-arrow { display: none; } .showcase-slide { padding: 40px 20px; } }

/* ===== FEATURES ===== */
.features { padding: 100px 0; }
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}
.section-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 50px; font-size: 16px; font-weight: 300; max-width: 560px; margin-left: auto; margin-right: auto; }

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0; transition: opacity var(--transition);
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--border-light); box-shadow: var(--shadow-glow); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { font-size: 40px; margin-bottom: 16px; display: block; }
.feature-card h3 { font-family: var(--font-heading); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 13px; line-height: 1.7; }

/* ===== PRICING ===== */
.pricing { padding: 100px 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 960px; margin: 0 auto; }

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}
.pricing-card:hover { transform: translateY(-4px); border-color: var(--border-light); }
.pricing-card.popular { border-color: var(--primary); transform: scale(1.05); box-shadow: var(--shadow-glow); }
.pricing-card.popular:hover { transform: scale(1.05) translateY(-4px); }

.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white; padding: 6px 20px; border-radius: 50px;
  font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
}

.pricing-card h3 { font-family: var(--font-heading); font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.price { font-family: var(--font-display); font-size: 42px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.credits-amount { color: var(--text-muted); margin-bottom: 24px; font-size: 14px; }
.pricing-card ul { list-style: none; text-align: left; margin-bottom: 28px; }
.pricing-card ul li { padding: 8px 0; font-size: 14px; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.pricing-card ul li:last-child { border-bottom: none; }

/* ===== CTA ===== */
.cta { padding: 100px 0; text-align: center; position: relative; overflow: hidden; }
.cta::before {
  content: ''; position: absolute; top: 50%; left: 50%; width: 500px; height: 500px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
  transform: translate(-50%, -50%); pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }
.cta-content h2 { font-family: var(--font-display); font-size: clamp(26px, 3.5vw, 40px); font-weight: 700; margin-bottom: 16px; }
.cta-content p { color: var(--text-muted); font-size: 17px; margin-bottom: 36px; }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--border); padding: 36px 0; background: var(--bg-card); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-dim); font-size: 12px; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-dim); font-size: 12px; }
@media (max-width: 768px) { .footer-inner { flex-direction: column; text-align: center; } }

/* ===== AUTH ===== */
.auth-page {
  display: flex; justify-content: center; align-items: center;
  min-height: calc(100vh - 72px); padding: 60px 24px;
}
.auth-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 44px;
  width: 100%; max-width: 420px;
  animation: scaleIn 0.5s ease; box-shadow: var(--shadow);
}
.auth-header { text-align: center; margin-bottom: 28px; }
.auth-header .logo-icon { font-size: 36px; display: block; margin-bottom: 8px; }
.auth-header h2 { font-family: var(--font-heading); font-size: 24px; font-weight: 700; margin: 10px 0 6px; }
.auth-header p { color: var(--text-muted); font-size: 14px; }
.auth-form { display: flex; flex-direction: column; gap: 4px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-muted); }
.auth-devider { text-align: center; margin: 20px 0; position: relative; }
.auth-devider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.auth-devider span { background: var(--bg-card); padding: 0 16px; position: relative; color: var(--text-dim); font-size: 12px; }

/* ===== GENERATOR ===== */
.generator-page { padding: 50px 0; min-height: calc(100vh - 72px); }
.generator-header { text-align: center; margin-bottom: 40px; }
.generator-header h1 { font-family: var(--font-heading); font-size: clamp(22px, 2.5vw, 32px); font-weight: 700; margin-bottom: 8px; }
.generator-header p { color: var(--text-muted); font-size: 15px; font-weight: 300; }

.generator-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 768px) { .generator-layout { grid-template-columns: 1fr; } }

.generator-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.generator-cost { display: flex; justify-content: space-between; padding: 14px 0; font-size: 14px; color: var(--text-muted); }
.generator-cost strong { color: var(--text); }

.generator-result {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); min-height: 400px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.result-placeholder { text-align: center; padding: 60px 40px; }
.placeholder-icon { font-size: 72px; margin-bottom: 16px; opacity: 0.3; display: block; }
.result-placeholder h3 { font-family: var(--font-heading); font-size: 20px; margin-bottom: 8px; }
.result-placeholder p { color: var(--text-muted); font-size: 14px; max-width: 280px; margin: 0 auto; }
.result-image, .result-video { width: 100%; display: flex; flex-direction: column; animation: scaleIn 0.5s ease; }
.result-image img, .result-video video { width: 100%; max-height: 480px; object-fit: contain; background: #000; }
.result-actions { display: flex; gap: 12px; padding: 16px; justify-content: center; background: rgba(0,0,0,0.3); }

/* ===== DURATION SLIDER ===== */
.duration-control {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}
.duration-control label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 16px; text-align: center; }
.duration-control label span { color: var(--primary-light); font-size: 28px; font-family: var(--font-display); }

input[type="range"] {
  width: 100%; height: 6px;
  -webkit-appearance: none; appearance: none;
  background: var(--border);
  border-radius: 4px; outline: none;
  transition: background 0.3s;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%; cursor: pointer;
  box-shadow: 0 0 20px var(--primary-glow);
  transition: transform 0.2s;
  border: 2px solid rgba(255,255,255,0.1);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }
input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%; cursor: pointer;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 20px var(--primary-glow);
}
.slider-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-dim); margin-top: 8px; }
.duration-cost { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-muted); }
.duration-cost strong { color: var(--text); font-family: var(--font-heading); }

/* ===== DASHBOARD ===== */
.dashboard-page { padding: 50px 0; min-height: calc(100vh - 72px); }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; flex-wrap: wrap; gap: 20px; }
.dashboard-greeting h1 { font-family: var(--font-heading); font-size: 28px; font-weight: 700; }
.dashboard-greeting p { color: var(--text-muted); font-size: 14px; }

.dashboard-balance {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 16px 24px; border-radius: var(--radius);
}
.dashboard-balance .balance-amount { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--warning); }
.dashboard-balance .balance-label { font-size: 13px; color: var(--text-muted); }

.dashboard-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 36px; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  display: flex; align-items: center; gap: 18px;
  transition: all var(--transition);
}
.stat-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.stat-card .stat-icon { font-size: 32px; }
.stat-info { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.stat-desc { font-size: 12px; color: var(--text-muted); }

.dashboard-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 36px; }
.action-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: all var(--transition);
}
.action-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.action-icon { font-size: 36px; margin-bottom: 12px; }
.action-title { font-family: var(--font-heading); font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.action-desc { font-size: 12px; color: var(--text-muted); }

.dashboard-section { margin-bottom: 32px; }
.dashboard-section h2 { font-family: var(--font-heading); font-size: 20px; font-weight: 700; margin-bottom: 18px; }

.empty-state { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--text-muted); }

.history-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.history-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; transition: all var(--transition); }
.history-card:hover { border-color: var(--border-light); }
.history-type { font-size: 12px; font-weight: 600; margin-bottom: 8px; color: var(--primary-light); }
.history-prompt { font-size: 13px; margin-bottom: 8px; line-height: 1.5; }
.history-date { font-size: 12px; color: var(--text-dim); }

/* ===== TABLE ===== */
.table { width: 100%; border-collapse: collapse; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 12px 16px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--border); }
.table th { background: var(--bg-elevated); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-dim); }
.table tr:hover { background: rgba(124,58,237,0.02); }
.table td.positive { color: var(--success); font-weight: 600; }
.table td.negative { color: var(--danger); font-weight: 600; }

.status-badge { display: inline-flex; padding: 3px 10px; border-radius: 50px; font-size: 11px; font-weight: 600; }
.status-completed { background: rgba(16,185,129,0.12); color: var(--success); border: 1px solid rgba(16,185,129,0.2); }
.status-pending { background: rgba(245,158,11,0.12); color: var(--warning); border: 1px solid rgba(245,158,11,0.2); }
.status-processing { background: rgba(59,130,246,0.12); color: #3b82f6; border: 1px solid rgba(59,130,246,0.2); }
.status-failed { background: rgba(239,68,68,0.12); color: var(--danger); border: 1px solid rgba(239,68,68,0.2); }

/* ===== BILLING ===== */
.billing-page { padding: 50px 0; min-height: calc(100vh - 72px); }
.billing-header { text-align: center; margin-bottom: 36px; }
.billing-header h1 { font-family: var(--font-heading); font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.billing-header p { color: var(--text-muted); font-size: 15px; }

.balance-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 36px; flex-wrap: wrap; gap: 20px;
}
.balance-info { display: flex; align-items: baseline; gap: 10px; }
.balance-info .balance-label { font-size: 14px; color: var(--text-muted); }
.balance-info .balance-amount { font-family: var(--font-display); font-size: 48px; font-weight: 700; color: var(--warning); }
.balance-info .balance-currency { font-size: 15px; color: var(--text-muted); }
.balance-conversion p { font-size: 12px; color: var(--text-dim); line-height: 1.7; }

.billing-section { margin-bottom: 32px; }
.billing-section h2 { font-family: var(--font-heading); font-size: 20px; font-weight: 700; margin-bottom: 18px; }

.promocode-form { display: flex; gap: 12px; max-width: 500px; }
.promocode-input {
  flex: 1; padding: 12px 16px; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-size: 15px; text-transform: uppercase;
  letter-spacing: 3px; outline: none; transition: all var(--transition);
}
.promocode-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }

.topup-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; max-width: 500px; }
.topup-options { display: flex; gap: 10px; flex-wrap: wrap; }
.topup-option {
  padding: 10px 22px; background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: var(--font-heading); font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
}
.topup-option:hover { border-color: var(--primary); transform: translateY(-2px); }
.topup-option.selected { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-color: var(--primary); color: white; box-shadow: 0 4px 20px var(--primary-glow); }
.topup-details { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.topup-details strong { font-family: var(--font-display); font-size: 24px; }

/* ===== ADMIN ===== */
.admin-header { background: var(--bg-card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; transition: background var(--transition); }
.admin-header-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 24px; }
.admin-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--text); }
.admin-logo small { font-family: var(--font-body); color: var(--danger); font-size: 10px; font-weight: 600; background: rgba(239,68,68,0.1); padding: 2px 8px; border-radius: 6px; }

.admin-nav { display: flex; align-items: center; gap: 16px; }
.admin-nav-link { font-size: 12px; color: var(--text-dim); font-weight: 500; transition: color var(--transition); }
.admin-nav-link:hover { color: var(--text); }
.admin-nav-link.logout { color: var(--danger); }

.admin-layout { padding: 32px 24px; max-width: 1200px; margin: 0 auto; }
.admin-page h1 { font-family: var(--font-heading); font-size: 26px; margin-bottom: 24px; }
.admin-header-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-count { font-size: 13px; color: var(--text-dim); }

.admin-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-bottom: 36px; }
.admin-stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; transition: all var(--transition); }
.admin-stat-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.admin-stat-card .stat-icon { font-size: 28px; }
.admin-stat-card .stat-num { font-family: var(--font-display); font-size: 28px; font-weight: 700; }
.admin-stat-card .stat-desc { font-size: 12px; color: var(--text-dim); }

.admin-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.admin-card h3 { font-family: var(--font-heading); font-size: 16px; margin-bottom: 16px; }

.admin-form .form-row { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.admin-login-page { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: var(--bg); }
.admin-login-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 44px; width: 100%; max-width: 400px; animation: scaleIn 0.5s ease; }
.admin-login-header { text-align: center; margin-bottom: 28px; }
.admin-login-header .logo-icon { font-size: 32px; display: block; margin-bottom: 8px; }
.admin-login-header h2 { font-family: var(--font-heading); font-size: 22px; margin: 10px 0 6px; }
.admin-login-header p { color: var(--danger); font-size: 12px; font-weight: 500; }

.admin-footer { border-top: 1px solid var(--border); padding: 20px 0; margin-top: 40px; text-align: center; font-size: 12px; color: var(--text-dim); background: var(--bg-card); }

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 24px; font-size: 13px; color: var(--text-dim); }

/* ===== ERROR PAGE ===== */
.error-page { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: calc(100vh - 72px); text-align: center; padding: 60px 24px; }
.error-code { font-family: var(--font-display); font-size: 120px; font-weight: 700; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; animation: float 4s ease-in-out infinite; }
.error-page h1 { font-family: var(--font-heading); font-size: 24px; margin: 16px 0 10px; }
.error-page p { color: var(--text-muted); margin-bottom: 24px; }

/* ===== TOASTS ===== */
.toast-container { position: fixed; top: 84px; right: 24px; z-index: 10000; display: flex; flex-direction: column; gap: 10px; }
.toast { padding: 14px 22px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; animation: slideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); max-width: 360px; box-shadow: var(--shadow); }
.toast.success { background: linear-gradient(135deg, #065f46, #047857); color: white; }
.toast.error { background: linear-gradient(135deg, #7f1d1d, #991b1b); color: white; }
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== RESPONSIVE TABLE ===== */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ===== SECTION DIVIDER ===== */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
  border: none;
}

/* ===== PREMIUM GOLD THEME ===== */
/* AI background image */
.ai-bg-image {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: url('/images/bg-option2.png') no-repeat center center;
  background-size: cover;
  opacity: 0.45;
  z-index: -2;
  transition: opacity 2s ease;
}

.ai-bg-image-2 {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: url('/images/bg-option1.png') no-repeat center center;
  background-size: cover;
  opacity: 0;
  z-index: -2;
  transition: opacity 4s ease;
}

.ai-bg-image-3 {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: url('/images/bg-option3.png') no-repeat center center;
  background-size: cover;
  opacity: 0;
  z-index: -2;
  transition: opacity 4s ease;
}

.ai-bg-image-4,
.ai-bg-image-5,
.ai-bg-image-6,
.ai-bg-image-7 {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-size: cover;
  opacity: 0;
  z-index: -2;
  transition: opacity 4s ease;
}

/* Gold text glow on hover */
.gold-glow {
  background: linear-gradient(135deg, #FFD700, #B8860B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.4s ease;
  cursor: default;
}

.gold-glow:hover {
  filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.8));
  transform: translateY(-1px);
}

/* Text glow helper */
.text-glow:hover {
  text-shadow: 0 0 18px rgba(255, 215, 0, 0.7), 0 0 35px rgba(255, 215, 0, 0.4);
}

/* Premium button variant */
.btn-gold {
  background: linear-gradient(135deg, #FFD700, #B8860B);
  color: #1a1a2e;
  font-weight: 700;
  border: none;
}

.btn-gold:hover {
  box-shadow: 0 0 28px rgba(255, 215, 0, 0.6), 0 8px 32px rgba(255, 215, 0, 0.35);
  transform: translateY(-3px);
  color: #1a1a2e;
}

/* Card hover glow */
.card-glow {
  position: relative;
  transition: all var(--transition);
}

.card-glow:hover {
  border-color: rgba(255, 215, 0, 0.5) !important;
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.12), var(--shadow);
  transform: translateY(-4px);
}
