/* ResumeForge - Main Stylesheet */
/* Font: Clash Display + Syne + Inter */

:root {
  --primary: #f4c542;
  --primary-dark: #d4a820;
  --primary-light: #fde68a;
  --dark: #0a0a0f;
  --dark-2: #12121a;
  --dark-3: #1a1a2e;
  --mid: #2a2a3e;
  --light: #f8f8ff;
  --muted: #94a3b8;
  --white: #ffffff;
  --teal: #0d9488;
  --red: #ef4444;
  --green: #22c55e;
  --blue: #3b82f6;
  --border: rgba(255,255,255,0.08);
  --glass: rgba(255,255,255,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.5);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── TYPOGRAPHY ─────────────────────────────── */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p { color: var(--muted); }
a { text-decoration: none; color: inherit; transition: color var(--transition); }

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #ff8c42 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* ─── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 50px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  cursor: pointer; border: none; outline: none;
  transition: all var(--transition); white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn-primary { background: var(--primary); color: var(--dark); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(244,197,66,0.3); }
.btn-outline { background: transparent; color: var(--light); border: 1.5px solid rgba(255,255,255,0.2); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--light); }
.btn-danger { background: var(--red); color: white; }
.btn-success { background: var(--green); color: white; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-block { width: 100%; justify-content: center; }

/* ─── NAVBAR ─────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
}
.logo-mark {
  width: 38px; height: 38px; background: var(--primary);
  color: var(--dark); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 900;
}
.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; margin-left: auto; }
.nav-links a { padding: 8px 16px; color: var(--muted); border-radius: 50px; font-size: 0.9rem; }
.nav-links a:hover { color: var(--light); background: var(--glass); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--light); border-radius: 2px; transition: var(--transition); }
.mobile-menu {
  display: none; position: fixed; top: 70px; left: 0; right: 0; z-index: 999;
  background: var(--dark-2); border-bottom: 1px solid var(--border); padding: 16px 24px;
}
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a { display: block; padding: 12px 16px; color: var(--muted); border-radius: 8px; }
.mobile-menu a:hover { background: var(--glass); color: var(--light); }
.mobile-menu.open { display: block; }

/* ─── HERO ───────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; padding: 120px 0 80px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.15;
}
.blob-1 { width: 600px; height: 600px; background: var(--primary); top: -100px; right: -200px; animation: blobFloat 8s ease-in-out infinite; }
.blob-2 { width: 400px; height: 400px; background: #ff6b35; bottom: -100px; left: 10%; animation: blobFloat 10s ease-in-out infinite reverse; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}
@keyframes blobFloat { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(20px,-30px) scale(1.05)} }
.hero .container { display: flex; align-items: center; gap: 80px; position: relative; }
.hero-content { flex: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(244,197,66,0.1); border: 1px solid rgba(244,197,66,0.3);
  color: var(--primary); padding: 6px 16px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 600; margin-bottom: 24px;
}
.hero-title { margin-bottom: 20px; }
.hero-sub { font-size: 1.1rem; color: var(--muted); max-width: 520px; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; align-items: center; gap: 24px; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--light); }
.stat span { font-size: 0.8rem; color: var(--muted); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Hero Visual */
.hero-visual { flex: 0 0 400px; position: relative; height: 400px; }
.resume-mockup { position: relative; width: 100%; height: 100%; }
.mockup-card {
  position: absolute; width: 200px; background: var(--dark-3);
  border-radius: var(--radius); border: 1px solid var(--border);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.card-1 { top: 0; right: 0; animation: cardFloat1 6s ease-in-out infinite; }
.card-2 { top: 80px; left: 0; animation: cardFloat2 7s ease-in-out infinite; }
.card-3 { bottom: 0; right: 40px; animation: cardFloat3 8s ease-in-out infinite; }
@keyframes cardFloat1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes cardFloat2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(10px)} }
@keyframes cardFloat3 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.mockup-header { height: 60px; }
.mockup-lines { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.ml { height: 8px; background: var(--mid); border-radius: 4px; }
.w80 { width: 80%; } .w70 { width: 70%; } .w60 { width: 60%; } .w90 { width: 90%; } .w50 { width: 50%; }

/* ─── SECTION SHARED ─────────────────────────── */
.section-header { text-align: center; margin-bottom: 64px; }
.section-badge {
  display: inline-block; background: rgba(244,197,66,0.1);
  border: 1px solid rgba(244,197,66,0.3); color: var(--primary);
  padding: 4px 16px; border-radius: 50px; font-size: 0.8rem;
  font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 16px;
}
.section-header h2 { margin-bottom: 12px; }

/* ─── HOW IT WORKS ───────────────────────────── */
.how-it-works { padding: 100px 0; background: var(--dark-2); }
.steps-grid { display: flex; align-items: center; gap: 24px; }
.step-card {
  flex: 1; background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 28px;
  transition: all var(--transition); position: relative; overflow: hidden;
}
.step-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(244,197,66,0.05) 0%, transparent 60%);
  opacity: 0; transition: opacity var(--transition);
}
.step-card:hover::before { opacity: 1; }
.step-card:hover { border-color: rgba(244,197,66,0.3); transform: translateY(-4px); }
.step-number { font-family: var(--font-display); font-size: 3rem; font-weight: 900; color: rgba(244,197,66,0.15); margin-bottom: 16px; line-height: 1; }
.step-icon { font-size: 2rem; color: var(--primary); margin-bottom: 16px; }
.step-card h3 { margin-bottom: 12px; }
.step-connector { font-size: 1.5rem; color: var(--muted); flex-shrink: 0; }

/* ─── TEMPLATES ──────────────────────────────── */
.templates-section { padding: 100px 0; }
.template-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px;
}
.template-card {
  background: var(--dark-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition); position: relative;
}
.template-card:hover { border-color: var(--primary); transform: translateY(-6px); box-shadow: 0 20px 40px rgba(244,197,66,0.15); }
.premium-badge {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  background: var(--primary); color: var(--dark);
  padding: 4px 10px; border-radius: 50px; font-size: 0.7rem; font-weight: 700;
}
.template-preview { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.template-preview-img {
  width: 100%; height: 100%; position: relative;
  display: flex; flex-direction: column;
}
/* Color scheme previews */
.template-preview-1 { background: linear-gradient(to bottom, #1a1a2e 35%, #f4c542 35%); }
.template-preview-2 { background: linear-gradient(to right, #f4c542 30%, #fff 30%); }
.template-preview-3 { background: linear-gradient(135deg, #fff 60%, #c9a84c 60%); }
.template-preview-4 { background: linear-gradient(to right, #1e293b 35%, #0d9488 35%); }
.template-preview-5 { background: linear-gradient(to bottom, #fff 50%, #1a1a1a 50%); }
/* Add placeholder content lines in previews */
.template-preview-img::before {
  content: ''; position: absolute; top: 20px; left: 20px; right: 20px; bottom: 20px;
  background: repeating-linear-gradient(
    to bottom, rgba(255,255,255,0.15) 0px, rgba(255,255,255,0.15) 4px,
    transparent 4px, transparent 14px
  );
  border-radius: 4px;
}
.preview-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
}
.template-card:hover .preview-overlay { opacity: 1; }
.template-info { padding: 16px; }
.template-info h3 { margin-bottom: 8px; font-size: 1rem; }
.template-color { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 0.75rem; color: var(--muted); }
.color-dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--border); }

/* ─── PRICING ────────────────────────────────── */
.pricing-section { padding: 100px 0; background: var(--dark-2); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; margin-bottom: 48px; }
.pricing-card {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 36px 28px;
  position: relative; transition: all var(--transition);
}
.pricing-card.featured {
  background: linear-gradient(135deg, rgba(244,197,66,0.12) 0%, var(--glass) 100%);
  border-color: rgba(244,197,66,0.5);
  transform: scale(1.04);
}
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: var(--dark);
  padding: 4px 20px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; white-space: nowrap;
}
.plan-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 16px; }
.plan-price { margin-bottom: 16px; display: flex; align-items: baseline; gap: 4px; }
.price-currency { font-size: 1.2rem; color: var(--primary); font-weight: 700; }
.price-amount { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: var(--light); }
.price-period { color: var(--muted); font-size: 0.9rem; }
.plan-desc { font-size: 0.85rem; margin-bottom: 24px; min-height: 40px; }
.plan-features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.plan-features li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.plan-features li.disabled { opacity: 0.4; }
.plan-features .fa-check { color: var(--green); }
.plan-features .fa-xmark { color: var(--red); }

/* Payment Methods */
.payment-methods { text-align: center; }
.payment-methods p { color: var(--muted); margin-bottom: 16px; font-size: 0.85rem; }
.payment-logos { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.payment-logo {
  padding: 8px 16px; border-radius: 8px; font-weight: 700; font-size: 0.85rem;
  border: 1px solid var(--border);
}
.payment-logo.bkash { color: #e2136e; border-color: rgba(226,19,110,0.3); }
.payment-logo.rocket { color: #8c3494; border-color: rgba(140,52,148,0.3); }
.payment-logo.nagad { color: #f05a28; border-color: rgba(240,90,40,0.3); }
.payment-logo.upay { color: #29a744; border-color: rgba(41,167,68,0.3); }
.payment-logo.stripe { color: #635bff; border-color: rgba(99,91,255,0.3); }
.payment-logo.paypal { color: #003087; border-color: rgba(0,48,135,0.3); background: #fff; }

/* ─── FLASH MESSAGES ─────────────────────────── */
.flash {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  padding: 14px 20px; border-radius: var(--radius); border: 1px solid;
  display: flex; align-items: center; gap: 12px; backdrop-filter: blur(10px);
  font-size: 0.9rem; font-weight: 500; max-width: 380px;
  animation: slideInRight 0.3s ease;
}
.flash-success { background: rgba(34,197,94,0.15); border-color: rgba(34,197,94,0.4); color: var(--green); }
.flash-error { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.4); color: var(--red); }
.flash-info { background: rgba(59,130,246,0.15); border-color: rgba(59,130,246,0.4); color: var(--blue); }
.flash button { background: none; border: none; cursor: pointer; color: inherit; font-size: 1.1rem; line-height: 1; margin-left: auto; }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ─── FOOTER ─────────────────────────────────── */
.footer { background: var(--dark-2); border-top: 1px solid var(--border); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { margin-top: 16px; font-size: 0.9rem; max-width: 260px; }
.footer-links h4 { font-size: 0.9rem; font-weight: 700; color: var(--light); margin-bottom: 16px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.85rem; color: var(--muted); }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; text-align: center; }
.footer-bottom p { font-size: 0.85rem; }

/* ─── FORMS ──────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--light); margin-bottom: 8px; }
.form-control {
  width: 100%; padding: 12px 16px;
  background: var(--glass); border: 1.5px solid var(--border);
  border-radius: var(--radius); color: var(--light); font-size: 0.9rem;
  font-family: var(--font-body); transition: border-color var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--primary); background: rgba(244,197,66,0.05); }
.form-control::placeholder { color: var(--muted); }
.form-control.is-invalid { border-color: var(--red); }
.invalid-feedback { color: var(--red); font-size: 0.8rem; margin-top: 6px; }

/* ─── CARDS ──────────────────────────────────── */
.card {
  background: var(--dark-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
}

/* ─── PAGE AUTH ──────────────────────────────── */
.auth-page {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; padding: 100px 24px 40px;
}
.auth-box {
  width: 100%; max-width: 440px;
  background: var(--dark-2); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 40px;
}
.auth-box h2 { margin-bottom: 8px; }
.auth-box .subtitle { margin-bottom: 32px; font-size: 0.9rem; }
.auth-divider { display: flex; align-items: center; gap: 16px; margin: 24px 0; }
.auth-divider span { color: var(--muted); font-size: 0.8rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-footer { text-align: center; margin-top: 20px; font-size: 0.85rem; color: var(--muted); }
.auth-footer a { color: var(--primary); font-weight: 600; }

/* ─── DASHBOARD ──────────────────────────────── */
.dashboard-layout { display: flex; min-height: 100vh; padding-top: 70px; }
.sidebar {
  width: 260px; background: var(--dark-2); border-right: 1px solid var(--border);
  position: fixed; left: 0; top: 70px; bottom: 0; overflow-y: auto;
  display: flex; flex-direction: column; padding: 24px 0;
}
.sidebar-user { padding: 0 20px 24px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.sidebar-avatar {
  width: 44px; height: 44px; background: var(--primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--dark); font-weight: 800; font-size: 1.1rem;
  margin-bottom: 10px;
}
.sidebar-name { font-weight: 700; font-size: 0.95rem; }
.sidebar-role { font-size: 0.75rem; color: var(--muted); }
.sidebar-nav { flex: 1; padding: 0 12px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius); color: var(--muted);
  font-size: 0.9rem; margin-bottom: 4px; transition: all var(--transition);
}
.sidebar-nav a:hover, .sidebar-nav a.active { background: var(--glass); color: var(--light); }
.sidebar-nav a.active { color: var(--primary); border-left: 3px solid var(--primary); }
.sidebar-nav a i { width: 18px; text-align: center; }
.main-content { margin-left: 260px; flex: 1; padding: 36px; }
.page-header { margin-bottom: 32px; }
.page-header h1 { font-size: 1.8rem; margin-bottom: 4px; }
.page-header p { font-size: 0.9rem; }

/* Stats grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: var(--dark-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.stat-card .stat-icon { font-size: 1.5rem; margin-bottom: 12px; }
.stat-card .stat-value { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--light); }
.stat-card .stat-label { font-size: 0.8rem; color: var(--muted); }

/* Resumes grid */
.resumes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.resume-card {
  background: var(--dark-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition);
}
.resume-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.resume-card-preview { height: 200px; background: var(--dark-3); position: relative; overflow: hidden; }
.resume-card-info { padding: 16px; }
.resume-card-info h3 { font-size: 0.95rem; margin-bottom: 4px; }
.resume-card-info p { font-size: 0.75rem; }
.resume-card-actions { display: flex; gap: 8px; margin-top: 12px; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; text-align: left; font-size: 0.88rem; }
th { background: var(--dark-3); color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
tr { border-bottom: 1px solid var(--border); }
tr:last-child { border-bottom: none; }
tr:hover td { background: var(--glass); }
td { color: var(--light); }

/* Badges */
.badge {
  display: inline-flex; align-items: center; padding: 3px 10px;
  border-radius: 50px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em;
}
.badge-success { background: rgba(34,197,94,0.15); color: var(--green); }
.badge-warning { background: rgba(244,197,66,0.15); color: var(--primary); }
.badge-danger { background: rgba(239,68,68,0.15); color: var(--red); }
.badge-info { background: rgba(59,130,246,0.15); color: var(--blue); }
.badge-muted { background: var(--glass); color: var(--muted); }

/* ─── BUILDER PAGE ───────────────────────────── */
.builder-layout { display: flex; height: 100vh; padding-top: 70px; }
.builder-sidebar {
  width: 380px; background: var(--dark-2); border-right: 1px solid var(--border);
  overflow-y: auto; display: flex; flex-direction: column;
}
.builder-form { flex: 1; padding: 20px; overflow-y: auto; }
.builder-preview {
  flex: 1; background: var(--dark-3); display: flex;
  flex-direction: column; overflow: hidden;
}
.preview-topbar {
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--dark-2);
}
.preview-frame {
  flex: 1; overflow: auto; padding: 24px;
  display: flex; justify-content: center;
}
.form-section { margin-bottom: 28px; }
.form-section-title {
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  color: var(--primary); margin-bottom: 16px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.array-item {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-bottom: 12px;
  position: relative;
}
.remove-btn {
  position: absolute; top: 10px; right: 10px;
  background: rgba(239,68,68,0.15); border: none; color: var(--red);
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 0.75rem;
  transition: all var(--transition);
}
.remove-btn:hover { background: var(--red); color: white; }
.add-btn {
  display: flex; align-items: center; gap: 8px;
  color: var(--primary); font-size: 0.85rem; cursor: pointer;
  background: none; border: 1px dashed rgba(244,197,66,0.3);
  border-radius: var(--radius); padding: 10px 16px; width: 100%;
  justify-content: center; transition: all var(--transition); font-family: var(--font-body);
}
.add-btn:hover { background: rgba(244,197,66,0.08); border-color: var(--primary); }

/* Rating/Skills bar */
.skill-level-bar {
  height: 4px; background: var(--border); border-radius: 2px; margin-top: 4px; overflow: hidden;
}
.skill-level-fill { height: 100%; background: var(--primary); border-radius: 2px; transition: width 0.5s ease; }

/* ─── CHECKOUT ───────────────────────────────── */
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; }
.payment-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.payment-tab {
  padding: 10px 18px; border-radius: var(--radius); border: 1.5px solid var(--border);
  background: transparent; color: var(--muted); cursor: pointer; font-size: 0.85rem;
  font-family: var(--font-body); font-weight: 600; transition: all var(--transition);
}
.payment-tab.active { border-color: var(--primary); color: var(--primary); background: rgba(244,197,66,0.08); }
.payment-tab-content { display: none; }
.payment-tab-content.active { display: block; }
.order-summary {
  background: var(--dark-2); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 28px;
}
.order-summary h3 { margin-bottom: 20px; font-size: 1.1rem; }
.order-item { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.order-total { display: flex; justify-content: space-between; padding: 16px 0 0; font-weight: 700; font-size: 1.1rem; color: var(--primary); }

/* ─── ADMIN ──────────────────────────────────── */
.admin-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--dark-3); border-bottom: 1px solid var(--border);
  height: 70px; display: flex; align-items: center; padding: 0 24px;
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1024px) {
  .hero .container { flex-direction: column; }
  .hero-visual { display: none; }
  .checkout-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sidebar { display: none; }
  .main-content { margin-left: 0; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .steps-grid { flex-direction: column; }
  .step-connector { transform: rotate(90deg); }
  .template-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .builder-layout { flex-direction: column; }
  .builder-sidebar { width: 100%; height: 50vh; }
  .form-row { grid-template-columns: 1fr; }
}

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

/* ─── UTILITIES ──────────────────────────────── */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 16px; }
.w-100 { width: 100%; }
.hidden { display: none !important; }

/* ─── LOADER ─────────────────────────────────── */
.spinner {
  width: 20px; height: 20px; border: 2px solid rgba(244,197,66,0.3);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.6s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── RESUME TEMPLATE STYLES ─────────────────── */
/* These are used in the live preview iframe */
.resume-wrap { width: 794px; min-height: 1123px; position: relative; font-size: 13px; }

/* Template 1: Modern Dark (yellow-dark) */
.rt-modern-dark {
  display: flex; font-family: 'Inter', sans-serif;
  background: #fff; min-height: 1123px;
}
.rt-modern-dark .rt-left {
  width: 260px; background: #1a1a2e; color: #fff; padding: 32px 24px;
  flex-shrink: 0;
}
.rt-modern-dark .rt-right { flex: 1; padding: 32px; }
.rt-modern-dark .rt-photo {
  width: 90px; height: 90px; border-radius: 50%; overflow: hidden;
  border: 3px solid #f4c542; margin: 0 auto 16px;
}
.rt-modern-dark .rt-photo img { width: 100%; height: 100%; object-fit: cover; }
.rt-modern-dark .rt-name { color: #f4c542; font-size: 1.3em; font-weight: 700; text-align: center; margin-bottom: 4px; }
.rt-modern-dark .rt-title { text-align: center; color: #94a3b8; font-size: 0.85em; margin-bottom: 24px; }
.rt-modern-dark .rt-section-head { color: #f4c542; font-size: 0.75em; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 1px solid rgba(244,197,66,0.3); padding-bottom: 6px; margin: 20px 0 12px; }
.rt-modern-dark .rt-contact-item { display: flex; align-items: center; gap: 8px; font-size: 0.82em; color: #cbd5e1; margin-bottom: 8px; word-break: break-word; }
.rt-modern-dark .rt-skill { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.rt-modern-dark .rt-skill-name { font-size: 0.82em; color: #cbd5e1; }
.rt-modern-dark .rt-skill-bar { width: 80px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.rt-modern-dark .rt-skill-fill { height: 100%; background: #f4c542; border-radius: 2px; }
.rt-modern-dark .rt-job { margin-bottom: 20px; }
.rt-modern-dark .rt-job-title { font-weight: 700; font-size: 0.95em; color: #1a1a2e; }
.rt-modern-dark .rt-job-meta { color: #64748b; font-size: 0.8em; margin-bottom: 6px; }
.rt-modern-dark .rt-job-desc { color: #374151; font-size: 0.85em; line-height: 1.5; }
.rt-modern-dark .rt-r-section-head { font-size: 1em; font-weight: 700; color: #1a1a2e; border-bottom: 2px solid #f4c542; padding-bottom: 6px; margin: 0 0 16px; }
.rt-modern-dark .rt-education { margin-bottom: 16px; }
.rt-modern-dark .rt-edu-title { font-weight: 700; font-size: 0.9em; }
.rt-modern-dark .rt-edu-meta { color: #64748b; font-size: 0.8em; }
.rt-modern-dark .rt-tag { display: inline-block; background: rgba(244,197,66,0.1); color: #92400e; border: 1px solid rgba(244,197,66,0.4); padding: 2px 10px; border-radius: 50px; font-size: 0.75em; margin: 2px; }
