/* ============================================
   CV MAKER — İkizler İlhamlı Tasarım Sistemi
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ============ CSS Variables ============ */
:root {
  /* Colors */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a2e;
  --bg-card: rgba(26, 26, 46, 0.6);
  --bg-card-hover: rgba(26, 26, 46, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);

  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-tertiary: #6b6b80;
  --text-accent: #c4b5fd;

  --accent-purple: #7c3aed;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-pink: #ec4899;
  --accent-cyan: #06b6d4;

  --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
  --gradient-secondary: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --gradient-accent: linear-gradient(135deg, #ec4899 0%, #7c3aed 100%);
  --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #12121a 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.15) 0%, transparent 70%);

  --border-color: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(124, 58, 237, 0.3);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(124, 58, 237, 0.2);
  --shadow-glow-blue: 0 0 30px rgba(59, 130, 246, 0.2);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Z-index */
  --z-navbar: 1000;
  --z-modal: 2000;
  --z-toast: 3000;
}

/* ============ Reset & Base ============ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

img {
  max-width: 100%;
  display: block;
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

/* ============ Utilities ============ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-4xl) 0;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border-accent);
  background: rgba(124, 58, 237, 0.1);
  color: var(--text-accent);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.35);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition-base);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: var(--transition-base);
}

.btn-icon:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
  border-color: var(--border-accent);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* ============ Navbar ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-navbar);
  padding: var(--space-md) 0;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-base);
}

.navbar.scrolled {
  padding: var(--space-sm) 0;
  background: rgba(10, 10, 15, 0.95);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-base);
  border-radius: 1px;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-user-avatar-text {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.5px;
}

.nav-user-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Mobile Menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-base);
}

/* ============ Hero Section ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: var(--gradient-glow);
  border-radius: 50%;
  pointer-events: none;
  animation: heroGlow 6s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% {
    opacity: 0.5;
    transform: translateX(-50%) scale(1);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1.2);
  }
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 560px;
}

.hero-badge {
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: var(--space-lg);
  line-height: 1.1;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-stats {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-top: var(--space-xs);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  animation: fadeInRight 0.8s ease-out 0.3s both;
}

.hero-cv-preview {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: var(--transition-slow);
  max-width: 380px;
  margin-left: auto;
}

.hero-cv-preview:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.cv-preview-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 2px solid #f0f0f5;
}

.cv-preview-avatar {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
}

.cv-preview-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #1a1a2e;
}

.cv-preview-title {
  font-size: 0.85rem;
  color: #6b6b80;
}

.cv-preview-section {
  margin-bottom: var(--space-md);
}

.cv-preview-section h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #7c3aed;
  margin-bottom: var(--space-sm);
}

.cv-preview-line {
  height: 8px;
  border-radius: 4px;
  background: #f0f0f5;
  margin-bottom: 6px;
}

.cv-preview-line.short {
  width: 60%;
}

.cv-preview-line.medium {
  width: 80%;
}

.cv-preview-line.long {
  width: 100%;
}

.cv-preview-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cv-preview-skill {
  padding: 4px 10px;
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 500;
}

/* Floating elements */
.hero-float {
  position: absolute;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  box-shadow: var(--shadow-md);
  animation: float 3s ease-in-out infinite;
}

.hero-float-ats {
  top: 20%;
  right: -20px;
  animation-delay: 0s;
}

.hero-float-ai {
  bottom: 20%;
  left: -10px;
  animation-delay: 1.5s;
}

.hero-float .icon {
  font-size: 1.2rem;
}

.hero-float .score {
  font-weight: 700;
  color: #22c55e;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* ============ Features Section ============ */
.features {
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-3xl);
}

.section-header .badge {
  margin-bottom: var(--space-md);
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition-base);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-glow);
}

.feature-card:nth-child(2) .feature-icon {
  background: var(--gradient-secondary);
  box-shadow: var(--shadow-glow-blue);
}

.feature-card:nth-child(3) .feature-icon {
  background: var(--gradient-accent);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============ How It Works ============ */
.how-it-works {
  background: var(--bg-secondary);
  position: relative;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  position: relative;
}

.steps-container::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0.3;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--bg-primary);
  border: 2px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  position: relative;
  z-index: 1;
}

.step-number span {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.step-card h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ============ Templates Preview ============ */
.templates-preview {
  position: relative;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.template-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-base);
  cursor: pointer;
}

.template-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: var(--border-accent);
}

.template-preview {
  height: 280px;
  background: white;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  overflow: hidden;
}

.template-info {
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.template-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.template-ats {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.8rem;
  color: #22c55e;
  font-weight: 500;
}

/* ============ CTA Section ============ */
.cta-section {
  position: relative;
  text-align: center;
}

.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-4xl) var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-glow);
  opacity: 0.5;
  pointer-events: none;
}

.cta-box h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.cta-box p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: var(--space-2xl);
  position: relative;
  z-index: 1;
}

/* ============ Footer ============ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: var(--space-md);
  line-height: 1.7;
}

.footer-column h4 {
  font-size: 0.9rem;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.footer-column a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: var(--space-xs) 0;
}

.footer-column a:hover {
  color: var(--text-accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.footer-socials {
  display: flex;
  gap: var(--space-md);
}

.footer-socials a {
  color: var(--text-tertiary);
  font-size: 1.2rem;
}

.footer-socials a:hover {
  color: var(--text-accent);
}

/* ============ Builder Page ============ */
.builder-page {
  display: flex;
  height: 100vh;
  padding-top: 65px;
}

.builder-sidebar {
  width: 480px;
  min-width: 480px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.builder-sidebar-header {
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--bg-secondary);
  z-index: 10;
}

.builder-sidebar-header h2 {
  font-size: 1.2rem;
}

.builder-sidebar-actions {
  display: flex;
  gap: var(--space-sm);
}

.builder-form {
  padding: var(--space-xl);
  flex: 1;
}

.form-section {
  margin-bottom: var(--space-2xl);
}

.form-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-color);
}

.form-section-header h3 {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.form-section-header .icon {
  font-size: 1.2rem;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  position: relative;
  transition: var(--transition-base);
}

.form-item:hover {
  border-color: var(--border-accent);
}

.form-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.form-item-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-remove-item {
  color: var(--text-tertiary);
  font-size: 1.2rem;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
}

.btn-remove-item:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.btn-add-item {
  width: 100%;
  padding: 0.8rem;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  transition: var(--transition-base);
}

.btn-add-item:hover {
  border-color: var(--accent-purple);
  color: var(--text-accent);
  background: rgba(124, 58, 237, 0.05);
}

/* Builder Preview */
.builder-preview {
  flex: 1;
  background: var(--bg-tertiary);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-2xl);
  position: relative;
}

.builder-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding: var(--space-sm) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
}

.preview-zoom {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.ats-score-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

.ats-score-badge.high {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.ats-score-badge.medium {
  background: rgba(234, 179, 8, 0.1);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.2);
}

.ats-score-badge.low {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* CV Preview Document */
.cv-document {
  width: 210mm;
  min-height: 297mm;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  color: #1a1a2e;
  font-size: 10pt;
  line-height: 1.5;
}

.cv-doc-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 3px solid #7c3aed;
}

.cv-doc-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  flex-shrink: 0;
}

.cv-doc-name {
  font-family: 'Outfit', sans-serif;
  font-size: 24pt;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.cv-doc-title {
  font-size: 12pt;
  color: #7c3aed;
  font-weight: 500;
  margin-bottom: 8px;
}

.cv-doc-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 9pt;
  color: #6b6b80;
}

.cv-doc-contact span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cv-doc-section {
  margin-bottom: 20px;
}

.cv-doc-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 12pt;
  font-weight: 700;
  color: #7c3aed;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 12px;
}

.cv-doc-section p,
.cv-doc-section li {
  color: #374151;
  font-size: 10pt;
}

.cv-doc-entry {
  margin-bottom: 14px;
}

.cv-doc-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.cv-doc-entry-title {
  font-weight: 600;
  color: #1a1a2e;
  font-size: 11pt;
}

.cv-doc-entry-date {
  font-size: 9pt;
  color: #6b6b80;
}

.cv-doc-entry-subtitle {
  font-size: 10pt;
  color: #7c3aed;
  margin-bottom: 4px;
}

.cv-doc-entry-desc {
  color: #374151;
  font-size: 10pt;
}

.cv-doc-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cv-doc-skill-tag {
  padding: 4px 12px;
  background: rgba(124, 58, 237, 0.08);
  color: #7c3aed;
  border-radius: 20px;
  font-size: 9pt;
  font-weight: 500;
}

.cv-doc-languages {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.cv-doc-lang {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cv-doc-lang-name {
  font-weight: 500;
  color: #1a1a2e;
}

.cv-doc-lang-level {
  font-size: 9pt;
  color: #6b6b80;
}

/* ============ Templates Page ============ */
.templates-page {
  padding-top: 100px;
  min-height: 100vh;
}

.templates-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-3xl);
}

.filter-btn {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  transition: var(--transition-base);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}

.templates-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.template-page-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-base);
  cursor: pointer;
}

.template-page-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
  border-color: var(--border-accent);
}

.template-page-preview {
  height: 360px;
  background: white;
  padding: var(--space-xl);
  overflow: hidden;
  position: relative;
}

.template-page-preview::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, white);
}

.template-page-info {
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.template-page-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.template-page-name {
  font-weight: 600;
  font-size: 1rem;
}

.template-page-category {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* ============ AI Assistant Modal ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 560px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.95) translateY(10px);
  transition: var(--transition-base);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.modal-body {
  padding: var(--space-xl);
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: var(--space-md) var(--space-xl);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
}

/* AI Suggestion Cards */
.ai-category {
  margin-bottom: var(--space-xl);
}

.ai-category h4 {
  font-size: 0.85rem;
  color: var(--text-accent);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.ai-suggestion {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
  cursor: pointer;
  transition: var(--transition-base);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.ai-suggestion:hover {
  border-color: var(--accent-purple);
  background: rgba(124, 58, 237, 0.05);
  color: var(--text-primary);
}

.ai-suggestion.selected {
  border-color: var(--accent-purple);
  background: rgba(124, 58, 237, 0.1);
  color: var(--text-primary);
}

.ai-input-group {
  margin-bottom: var(--space-lg);
}

.ai-input-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.ai-input-group select,
.ai-input-group input {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: var(--z-toast);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-base);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  border-color: rgba(34, 197, 94, 0.3);
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.3);
}

/* ============ Payment Modal ============ */
.payment-modal {
  width: 520px;
  max-width: 95vw;
}

.payment-modal-header {
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(99, 102, 241, 0.05));
}

.payment-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.payment-header-top h3 {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.payment-badge-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.payment-test-badge {
  padding: 3px 10px;
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.payment-provider-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* Price Card */
.payment-price-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.payment-price-icon {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(99, 102, 241, 0.1));
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.payment-price-info {
  flex: 1;
}

.payment-product-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.payment-product-desc {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.payment-price-amount {
  display: flex;
  align-items: flex-start;
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
  flex-shrink: 0;
}

.payment-currency {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 4px;
  margin-right: 2px;
}

.payment-price {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.payment-cents {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 2px;
}

/* Credit Card Preview */
.payment-card-preview {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, #7c3aed, #6366f1, #4f46e5);
  color: white;
}

.card-preview-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.card-preview-chip {
  font-size: 1.5rem;
  position: relative;
  z-index: 1;
}

.card-preview-number {
  font-size: 1.25rem;
  font-family: 'Courier New', monospace;
  letter-spacing: 3px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.card-preview-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}

.card-preview-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
  margin-bottom: 2px;
}

.card-preview-name {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.card-preview-expiry {
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

/* Payment Form Fields */
.payment-form-fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.payment-form-fields .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* Payment Error */
.payment-error {
  padding: var(--space-md);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-md);
  color: #ef4444;
  font-size: 0.85rem;
  margin-bottom: var(--space-md);
  text-align: center;
}

/* Payment Success */
.payment-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  animation: fadeInUp 0.5s ease;
}

.payment-success-icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
  animation: successBounce 0.6s ease;
}

.payment-success h3 {
  font-size: 1.4rem;
  color: #22c55e;
  margin-bottom: var(--space-sm);
}

.payment-success p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Payment Button */
.payment-btn {
  min-width: 160px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  position: relative;
}

.payment-btn:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

/* Payment Spinner */
.payment-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  margin-right: 6px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes successBounce {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); opacity: 1; }
}

/* ============ Animations ============ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pulse for AI button */
@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(124, 58, 237, 0);
  }
}

.btn-ai-pulse {
  animation: pulse 2s infinite;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .features-grid,
  .steps-container,
  .templates-grid,
  .templates-page-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .builder-sidebar {
    width: 380px;
    min-width: 380px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-lg);
    gap: var(--space-md);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .features-grid,
  .steps-container,
  .templates-grid,
  .templates-page-grid {
    grid-template-columns: 1fr;
  }

  .steps-container::before {
    display: none;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .builder-page {
    flex-direction: column;
    height: auto;
  }

  .builder-sidebar {
    width: 100%;
    min-width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    max-height: 60vh;
  }

  .builder-preview {
    min-height: 60vh;
    padding: var(--space-md);
  }

  .cv-document {
    width: 100%;
    min-height: auto;
    padding: 20px;
    font-size: 9pt;
  }

  .modal {
    width: 95%;
    margin: var(--space-md);
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
  }

  .btn-lg {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* ============ Print Styles ============ */
@media print {
  body {
    background: white;
    color: black;
  }

  .navbar,
  .builder-sidebar,
  .builder-preview-toolbar,
  .modal-overlay,
  .toast,
  .footer {
    display: none !important;
  }

  .builder-preview {
    padding: 0;
    background: white;
  }

  .cv-document {
    box-shadow: none;
    border-radius: 0;
    width: 100%;
    padding: 20px 30px;
  }
}

/* ============ Scrollbar ============ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

/* ============ Selection ============ */
::selection {
  background: rgba(124, 58, 237, 0.3);
  color: white;
}

/* Hidden utility */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============ Auth Modal ============ */
.auth-modal {
  max-width: 420px;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  padding: 0 var(--space-xl);
}

.auth-tab {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-tertiary);
  border-bottom: 2px solid transparent;
  transition: var(--transition-base);
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.auth-tab:hover {
  color: var(--text-primary);
}

.auth-tab.active {
  color: var(--text-accent);
  border-bottom-color: var(--accent-purple);
}

.auth-error {
  margin: var(--space-md) var(--space-xl) 0;
  padding: var(--space-sm) var(--space-md);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  color: #f87171;
  font-size: 0.85rem;
  text-align: center;
  animation: fadeInUp 0.3s ease;
}

.auth-modal .modal-body {
  padding: var(--space-xl);
}

.auth-modal .form-group {
  margin-bottom: var(--space-lg);
}

.auth-modal .form-group input {
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
}

/* ============ Legal Pages & FAQ ============ */
.legal-page {
  padding-top: calc(65px + var(--space-4xl));
  min-height: 100vh;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  margin-bottom: var(--space-lg);
  transition: var(--transition-base);
}

.legal-section:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.legal-section h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  margin-bottom: var(--space-md);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-section p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
}

.legal-section ul li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  padding: var(--space-xs) 0;
  padding-left: var(--space-lg);
  position: relative;
}

.legal-section ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent-purple);
  font-weight: 700;
  font-size: 1.1rem;
}

.legal-section a {
  color: var(--text-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-section a:hover {
  color: var(--accent-purple);
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  overflow: hidden;
  transition: var(--transition-base);
}

.faq-item:hover {
  border-color: var(--border-accent);
}

.faq-item.active {
  border-color: var(--accent-purple);
  box-shadow: var(--shadow-glow);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xl) var(--space-2xl);
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-base);
}

.faq-question:hover {
  color: var(--text-accent);
}

.faq-icon {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent-purple);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: var(--space-md);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 var(--space-2xl) var(--space-xl);
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.8;
}

/* Responsive for legal/FAQ pages */
@media (max-width: 768px) {
  .legal-section {
    padding: var(--space-xl);
  }

  .faq-question {
    padding: var(--space-lg);
    font-size: 0.92rem;
  }

  .faq-item.active .faq-answer {
    padding: 0 var(--space-lg) var(--space-lg);
  }
}

/* ============ CV Blur Protection ============ */

/* CV document container — relative positioning for overlay */
.cv-document-wrapper {
  position: relative;
  display: inline-block;
}

/* Blur the CV content */
.cv-document.cv-blurred {
  filter: blur(4px);
  -webkit-filter: blur(4px);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Blur overlay — glassmorphism style */
.cv-blur-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: var(--radius-md);
  cursor: default;
  overflow: hidden;
}

/* Watermark pattern overlay */
.cv-watermark-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 21;
}

.cv-watermark-pattern::before {
  content: 'CVdizayn • CVdizayn • CVdizayn • CVdizayn • CVdizayn • CVdizayn • CVdizayn • CVdizayn • CVdizayn • CVdizayn • CVdizayn • CVdizayn • CVdizayn • CVdizayn • CVdizayn • CVdizayn • CVdizayn • CVdizayn • CVdizayn • CVdizayn • CVdizayn • CVdizayn • CVdizayn • CVdizayn • CVdizayn • CVdizayn • CVdizayn • CVdizayn • CVdizayn • CVdizayn • CVdizayn • CVdizayn • CVdizayn • CVdizayn • CVdizayn • CVdizayn • CVdizayn • CVdizayn • CVdizayn • CVdizayn •';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  font-size: 18px;
  font-weight: 700;
  color: rgba(124, 58, 237, 0.08);
  line-height: 3;
  letter-spacing: 8px;
  word-spacing: 30px;
  transform: rotate(-30deg);
  white-space: normal;
  pointer-events: none;
}

/* CTA card in overlay center */
.cv-blur-cta {
  position: relative;
  z-index: 22;
  text-align: center;
  background: rgba(26, 26, 46, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-3xl);
  max-width: 380px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(124, 58, 237, 0.15);
  animation: cvCtaPulse 3s ease-in-out infinite;
}

@keyframes cvCtaPulse {
  0%, 100% { box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(124, 58, 237, 0.15); }
  50% { box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(124, 58, 237, 0.25); }
}

.cv-blur-cta .cta-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  display: block;
  animation: ctaIconBounce 2s ease-in-out infinite;
}

@keyframes ctaIconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.cv-blur-cta h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: var(--space-sm);
}

.cv-blur-cta p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}

.cv-blur-cta .btn-unlock {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.8rem 2rem;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.cv-blur-cta .btn-unlock:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

/* Anti-selection for the whole builder preview area */
.builder-preview.no-select {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* ============ Print Styles ============ */
@media print {
  /* Hide EVERYTHING except the CV document */
  .navbar,
  .builder-sidebar,
  .builder-preview-toolbar,
  .cv-blur-overlay,
  .cv-watermark-pattern,
  .toast,
  .modal-overlay {
    display: none !important;
  }

  /* Remove blur on print */
  .cv-document.cv-blurred {
    filter: none !important;
    -webkit-filter: none !important;
    pointer-events: auto !important;
    user-select: auto !important;
  }

  /* Full width for CV */
  .builder-page {
    display: block !important;
    height: auto !important;
    padding: 0 !important;
  }

  .builder-preview {
    padding: 0 !important;
    background: white !important;
    overflow: visible !important;
  }

  .cv-document-wrapper {
    width: 100% !important;
  }

  .cv-document {
    width: 100% !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 30px !important;
  }

  body {
    background: white !important;
  }
}
