/* ===================================================================
   DIGITAL ENVISIONED TOOLS — Futuristic Neon Theme
   Purple / Black / Green / Neon — Luxury & Futuristic
   =================================================================== */

/* --- CSS VARIABLES --- */
:root {
  --bg-primary: #05050f;
  --bg-secondary: #0a0a1a;
  --bg-card: #0f0f23;
  --bg-card-hover: #141432;
  --border: #1a1a3e;
  --border-glow: rgba(168, 85, 247, 0.3);

  --purple: #a855f7;
  --purple-dark: #7c3aed;
  --purple-light: #c084fc;
  --purple-glow: rgba(168, 85, 247, 0.4);

  --green: #22c55e;
  --green-dark: #16a34a;
  --green-light: #4ade80;
  --green-glow: rgba(34, 197, 94, 0.4);

  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.3);

  --pink: #ec4899;
  --pink-glow: rgba(236, 72, 153, 0.3);

  --text: #f0f0f5;
  --text-dim: #a0a0b8;
  --text-muted: #6b6b80;

  --gradient-purple: linear-gradient(135deg, #a855f7, #7c3aed);
  --gradient-green: linear-gradient(135deg, #22c55e, #16a34a);
  --gradient-hero: linear-gradient(135deg, #a855f7, #06b6d4, #22c55e);
  --gradient-card: linear-gradient(145deg, rgba(168,85,247,0.08), rgba(34,197,94,0.05));
  --gradient-dark: linear-gradient(180deg, #05050f 0%, #0a0a1a 100%);

  --shadow-purple: 0 0 40px rgba(168, 85, 247, 0.15);
  --shadow-green: 0 0 40px rgba(34, 197, 94, 0.15);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);

  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

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

/* Animated background grid */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(168,85,247,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,85,247,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

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

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

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.75rem); }

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

.text-purple { color: var(--purple); }
.text-green { color: var(--green); }
.text-cyan { color: var(--cyan); }
.text-dim { color: var(--text-dim); }
.text-muted { color: var(--text-muted); }

/* --- CONTAINER --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* --- NAVIGATION --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 5, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
}

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

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

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

.nav-links a {
  color: var(--text-dim);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: rgba(168, 85, 247, 0.1);
}

.nav-cta {
  background: var(--gradient-purple) !important;
  color: #fff !important;
  padding: 10px 24px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}

.nav-cta:hover { box-shadow: var(--shadow-purple); transform: translateY(-1px); }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(5, 5, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; width: 100%; }
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--gradient-purple);
  color: #fff;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-purple); color: #fff; }

.btn-green {
  background: var(--gradient-green);
  color: #fff;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.25);
}
.btn-green:hover { transform: translateY(-2px); box-shadow: var(--shadow-green); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--purple-light);
  border: 1px solid var(--purple);
}
.btn-outline:hover { background: rgba(168, 85, 247, 0.1); color: var(--purple-light); }

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--text); border-color: var(--purple); }

.btn-lg { padding: 18px 40px; font-size: 1.1rem; border-radius: 14px; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* --- CARDS --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-hero);
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: var(--shadow-purple);
  transform: translateY(-4px);
}
.card:hover::before { opacity: 1; }

.card-glow {
  box-shadow: var(--shadow-purple), inset 0 1px 0 rgba(168,85,247,0.1);
}

/* --- HERO SECTION --- */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168,85,247,0.12) 0%, transparent 70%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(34,197,94,0.08) 0%, transparent 70%);
  bottom: -100px;
  right: -100px;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--purple-light);
  margin-bottom: 24px;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.hero h1 {
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 40px;
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* --- SECTIONS --- */
.section { padding: 80px 0; position: relative; }
.section-dark { background: var(--bg-secondary); }

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

.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--text-dim); max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

/* --- GRID --- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* --- FEATURE CARDS --- */
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(34,197,94,0.1));
  border: 1px solid rgba(168,85,247,0.2);
  color: var(--purple-light);
}

.feature-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.feature-card p { color: var(--text-dim); font-size: 0.95rem; }

/* --- PRICING CARDS --- */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--purple);
  box-shadow: var(--shadow-purple);
  transform: scale(1.05);
}

.pricing-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-purple);
  color: #fff;
  padding: 6px 24px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.pricing-card:hover {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: var(--shadow-purple);
}

.pricing-card h3 { color: var(--purple-light); margin-bottom: 8px; }

.price {
  font-size: 3rem;
  font-weight: 800;
  margin: 16px 0 8px;
}

.price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }

.pricing-card .trial {
  display: inline-block;
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin: 24px 0 32px;
}

.pricing-features li {
  padding: 8px 0;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.pricing-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  font-size: 1rem;
}

/* --- TOOL CARDS --- */
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition);
  cursor: pointer;
}

.tool-card:hover {
  border-color: var(--purple);
  box-shadow: var(--shadow-purple);
  transform: translateY(-2px);
}

.tool-card .tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(34,197,94,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--purple-light);
}

.tool-card h3 { font-size: 1.1rem; }
.tool-card p { color: var(--text-dim); font-size: 0.9rem; flex-grow: 1; }

.tool-card .badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  width: fit-content;
}

.badge-free { background: rgba(34,197,94,0.1); color: var(--green); }
.badge-pro { background: rgba(168,85,247,0.1); color: var(--purple-light); }

/* --- FORMS --- */
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
  background: rgba(168, 85, 247, 0.03);
}

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

textarea.form-input { min-height: 120px; resize: vertical; }

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a0a0b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* --- FLASH MESSAGES --- */
.flash {
  padding: 14px 24px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.flash-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: var(--green); }
.flash-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #ef4444; }
.flash-warning { background: rgba(234,179,8,0.1); border: 1px solid rgba(234,179,8,0.3); color: #eab308; }

/* --- CHAT INTERFACE --- */
.chat-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto;
}

.chat-header {
  padding: 16px 24px;
  background: rgba(168,85,247,0.05);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-status {
  width: 10px; height: 10px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.chat-messages {
  height: 400px;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-message {
  max-width: 85%;
  padding: 12px 18px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.5;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-message.bot {
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.2);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.chat-message.user {
  background: var(--gradient-purple);
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.chat-input-area {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}

.chat-input-area input {
  flex: 1;
  padding: 12px 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
}

.chat-input-area input:focus { border-color: var(--purple); }

.chat-input-area button {
  padding: 12px 24px;
  background: var(--gradient-purple);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.chat-input-area button:hover { box-shadow: var(--shadow-purple); }

/* --- FOOTER --- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  position: relative;
  z-index: 1;
}

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

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

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

.footer h4 {
  color: var(--purple-light);
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer p, .footer a { color: var(--text-muted); font-size: 0.9rem; }
.footer a:hover { color: var(--purple-light); }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }

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

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

/* --- STATS BAR --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  padding: 40px 0;
}

.stat { text-align: center; }
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }

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

.testimonial-text {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient-purple);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff;
}

/* --- CTA SECTION --- */
.cta-section {
  background: linear-gradient(135deg, rgba(168,85,247,0.08), rgba(34,197,94,0.05));
  border: 1px solid rgba(168,85,247,0.2);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  margin: 40px 0;
}

.cta-section h2 { margin-bottom: 16px; }
.cta-section p { color: var(--text-dim); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* --- NEON GLOW EFFECTS --- */
.glow-purple { box-shadow: 0 0 20px var(--purple-glow), 0 0 60px rgba(168,85,247,0.1); }
.glow-green { box-shadow: 0 0 20px var(--green-glow), 0 0 60px rgba(34,197,94,0.1); }

/* Neon text effect */
.neon-text {
  text-shadow:
    0 0 7px var(--purple-glow),
    0 0 10px var(--purple-glow),
    0 0 21px var(--purple-glow),
    0 0 42px rgba(168,85,247,0.2);
}

/* --- ANIMATED BORDER --- */
.animated-border {
  position: relative;
  border: none !important;
}
.animated-border::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--purple), var(--green), var(--cyan), var(--purple));
  background-size: 300% 300%;
  animation: borderFlow 6s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

@keyframes borderFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --- FLOATING PARTICLES (CSS only) --- */
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  animation: float 15s infinite;
}

.particle:nth-child(1) { background: var(--purple); left: 10%; animation-delay: 0s; animation-duration: 20s; }
.particle:nth-child(2) { background: var(--green); left: 30%; animation-delay: 2s; animation-duration: 18s; }
.particle:nth-child(3) { background: var(--cyan); left: 50%; animation-delay: 4s; animation-duration: 22s; }
.particle:nth-child(4) { background: var(--purple); left: 70%; animation-delay: 1s; animation-duration: 16s; }
.particle:nth-child(5) { background: var(--green); left: 90%; animation-delay: 3s; animation-duration: 24s; }
.particle:nth-child(6) { background: var(--pink); left: 20%; animation-delay: 5s; animation-duration: 19s; }

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

/* --- 3D TILT EFFECT --- */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* --- LOADING SPINNER --- */
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 20px auto;
}

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

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple); }

/* --- UTILITIES --- */
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mb-2 { margin-top: 16px; }
.mb-4 { margin-bottom: 32px; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: 16px; }
.gap-4 { gap: 32px; }
.hidden { display: none; }

/* --- EBOOK SECTION --- */
.ebook-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
}

@media (max-width: 768px) {
  .ebook-hero { grid-template-columns: 1fr; text-align: center; }
}

.ebook-cover {
  max-width: 300px;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(168,85,247,0.3), 0 0 100px rgba(168,85,247,0.1);
  transition: var(--transition);
}

.ebook-cover:hover {
  transform: rotateY(-8deg) rotateX(4deg);
  box-shadow: 0 30px 80px rgba(168,85,247,0.4);
}

/* --- AUTH PAGES --- */
.auth-container {
  max-width: 440px;
  margin: 60px auto;
  padding: 0 24px;
}

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

.auth-card h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* --- DASHBOARD --- */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

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

.dash-stat h4 { color: var(--text-muted); font-size: 0.85rem; font-weight: 500; margin-bottom: 8px; }
.dash-stat .value { font-size: 2rem; font-weight: 700; }
.dash-stat .value.purple { color: var(--purple); }
.dash-stat .value.green { color: var(--green); }

/* --- ADSENSE PLACEHOLDER --- */
.ad-container {
  background: rgba(255,255,255,0.02);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin: 20px 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* --- SMOOTH REVEAL --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- COOKIE/DISCLAIMER BAR --- */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 9999;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.cookie-bar.hidden { display: none; }
