/* ============================================================
   ResumeNest – Main Stylesheet
   Mobile-first, optimized for LiteSpeed / Hostinger
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --blue:       #2563eb;
  --indigo:     #4f46e5;
  --blue-light: #eff6ff;
  --blue-dark:  #1d4ed8;
  --green:      #16a34a;
  --green-light:#dcfce7;
  --yellow:     #ca8a04;
  --yellow-light:#fef9c3;
  --red:        #dc2626;
  --red-light:  #fee2e2;

  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif:'Playfair Display', Georgia, serif;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow:    0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.12);

  --transition: 200ms ease;
  --max-w: 1180px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-sans); color: var(--gray-800); background: #fff; line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

/* ── Skip Link ─────────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 9999;
  background: var(--blue); color: #fff; padding: 8px 16px; border-radius: var(--radius);
  font-weight: 600;
  &:focus { top: 16px; }
}

/* ── Container ─────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: 20px; }

/* ── Typography ────────────────────────────────────────────── */
h1,h2,h3,h4 { font-weight: 700; line-height: 1.2; color: var(--gray-900); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
p  { color: var(--gray-600); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  color: #fff !important; font-weight: 600; font-size: .9375rem;
  padding: 11px 24px; border-radius: var(--radius); border: none;
  text-decoration: none !important;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px rgba(37,99,235,.35);
  white-space: nowrap;
}
.btn-primary:hover { opacity: .92; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,99,235,.4); }
.btn-primary:active{ transform: translateY(0); }
.btn-primary.btn-lg { padding: 14px 32px; font-size: 1.0625rem; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gray-700); font-weight: 500; font-size: .9375rem;
  padding: 10px 20px; border-radius: var(--radius);
  border: 1.5px solid var(--gray-200);
  text-decoration: none !important;
  transition: background var(--transition), border-color var(--transition);
}
.btn-ghost:hover { background: var(--gray-50); border-color: var(--gray-300); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue); font-weight: 600; font-size: .9375rem;
  padding: 11px 24px; border-radius: var(--radius);
  border: 2px solid var(--blue);
  text-decoration: none !important;
  transition: all var(--transition);
}
.btn-outline:hover { background: var(--blue-light); }

/* ── Forms ─────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: .875rem; font-weight: 600; color: var(--gray-700); }
.form-label .required { color: var(--red); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--radius);
  border: 1.5px solid var(--gray-200); font-size: .9375rem; color: var(--gray-900);
  background: #fff; transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-input.error { border-color: var(--red); }
.form-error { font-size: .8125rem; color: var(--red); }
.form-hint  { font-size: .8125rem; color: var(--gray-500); }
.form-textarea { resize: vertical; min-height: 100px; }

/* ── Alert ─────────────────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius); font-size: .9rem; margin-bottom: 20px;
}
.alert-success { background: var(--green-light); color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: var(--red-light);   color: #991b1b; border: 1px solid #fecaca; }
.alert-info    { background: var(--blue-light);  color: #1e40af; border: 1px solid #bfdbfe; }
.alert-warning { background: var(--yellow-light);color: #92400e; border: 1px solid #fde68a; }

/* ── Badge ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
}
.badge-blue  { background: var(--blue-light); color: var(--blue-dark); }
.badge-green { background: var(--green-light); color: var(--green); }
.badge-gold  { background: var(--yellow-light); color: var(--yellow); }

/* ══════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════ */
.navbar {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}
.nav-container {
  display: flex; align-items: center; gap: 8px;
  height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none !important; flex-shrink: 0;
}
.nav-logo-text {
  font-weight: 800; font-size: 1.125rem; color: var(--gray-900);
  letter-spacing: -0.5px;
}
.nav-links {
  display: none; align-items: center; gap: 4px; margin-left: auto;
}
.nav-link {
  font-size: .9rem; font-weight: 500; color: var(--gray-600);
  padding: 6px 12px; border-radius: var(--radius-sm);
  text-decoration: none !important;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--gray-900); background: var(--gray-100); }
.nav-auth { display: none; align-items: center; gap: 10px; margin-left: 16px; flex-shrink: 0; }

/* Language Switcher */
.lang-switcher { position: relative; margin-left: 8px; }
.lang-btn {
  display: flex; align-items: center; gap: 5px;
  font-size: .85rem; font-weight: 500; color: var(--gray-600);
  padding: 6px 10px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200); background: #fff; cursor: pointer;
  transition: all var(--transition);
}
.lang-btn:hover { border-color: var(--blue); color: var(--blue); }
.lang-dropdown {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 1000;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); min-width: 150px; max-height: 300px; overflow-y: auto;
}
.lang-option {
  display: block; padding: 9px 14px; font-size: .875rem; color: var(--gray-700);
  text-decoration: none !important; transition: background var(--transition);
}
.lang-option:hover, .lang-option.active { background: var(--blue-light); color: var(--blue); }

/* User Menu */
.user-menu { position: relative; }
.user-avatar-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--radius);
  border: 1.5px solid var(--gray-200); background: #fff;
  transition: all var(--transition);
}
.user-avatar-btn:hover { border-color: var(--blue); }
.avatar-img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.avatar-initials {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  color: #fff; font-size: .75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.user-name { font-size: .875rem; font-weight: 600; color: var(--gray-800); }
.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 1000;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); min-width: 220px; overflow: hidden;
}
.profile-progress-widget {
  padding: 14px 16px; border-bottom: 1px solid var(--gray-100); background: var(--gray-50);
}
.pp-label { font-size: .8125rem; font-weight: 500; color: var(--gray-600); margin-bottom: 6px; }
.pp-bar { height: 6px; background: var(--gray-200); border-radius: 999px; overflow: hidden; }
.pp-fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--indigo)); border-radius: 999px; transition: width .5s ease; }
.pp-cta { display: block; font-size: .8125rem; font-weight: 600; color: var(--blue); margin-top: 8px; }
.dd-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; font-size: .875rem; color: var(--gray-700);
  text-decoration: none !important; transition: background var(--transition);
}
.dd-link:hover { background: var(--gray-50); }
.dd-upgrade { color: var(--yellow); font-weight: 600; }
.dd-logout { color: var(--red); }

/* Hamburger */
.hamburger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  padding: 6px; border-radius: var(--radius-sm); margin-left: auto;
  width: 38px; height: 38px;
}
.hamburger span {
  display: block; height: 2px; background: var(--gray-700); border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  background: #fff; border-top: 1px solid var(--gray-100);
  padding: 16px 20px 24px;
}
.mob-link {
  display: block; padding: 12px 4px; font-size: 1rem; font-weight: 500;
  color: var(--gray-700); border-bottom: 1px solid var(--gray-100);
  text-decoration: none !important;
}
.mob-cta {
  margin-top: 12px; text-align: center; display: block;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  color: #fff !important; padding: 14px; border-radius: var(--radius);
  font-weight: 700;
}
.mobile-menu hr { border: none; border-top: 1px solid var(--gray-200); margin: 12px 0; }

/* ── Desktop breakpoint ─────────────────────────────────── */
@media (min-width: 768px) {
  .nav-links   { display: flex; }
  .nav-auth    { display: flex; }
  .hamburger   { display: none; }
}

/* ══════════════════════════════════════════════════════════
   HOME PAGE – HERO
══════════════════════════════════════════════════════════ */
.hero {
  padding: 72px 0 56px;
  background: linear-gradient(160deg, #eef4ff 0%, #fff 60%);
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,70,229,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid; gap: 48px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-light); color: var(--blue-dark);
  font-size: .8125rem; font-weight: 700; padding: 5px 12px;
  border-radius: 999px; margin-bottom: 20px; letter-spacing: .02em;
  text-transform: uppercase;
}
.hero h1 { letter-spacing: -1px; margin-bottom: 20px; }
.hero h1 span { color: var(--blue); }
.hero-sub { font-size: 1.125rem; color: var(--gray-500); margin-bottom: 32px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-trust { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-stars { color: #f59e0b; font-size: 1.1rem; }
.hero-trust-text { font-size: .875rem; color: var(--gray-500); }

/* Resume preview card */
.hero-visual { position: relative; }
.resume-preview-card {
  background: #fff; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--gray-100);
  overflow: hidden; max-width: 420px; margin: 0 auto;
}
.rpc-header {
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  padding: 24px; color: #fff;
}
.rpc-name { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; }
.rpc-title { font-size: .875rem; opacity: .85; margin-top: 4px; }
.rpc-contact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rpc-contact span { font-size: .75rem; opacity: .8; }
.rpc-body { padding: 20px 24px; }
.rpc-section-title {
  font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  color: var(--blue); margin-bottom: 10px; margin-top: 16px;
}
.rpc-section-title:first-child { margin-top: 0; }
.rpc-bar { height: 6px; background: var(--gray-200); border-radius: 999px; margin: 4px 0; }
.rpc-bar-fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--indigo)); border-radius: 999px; }

/* Floating badge on visual */
.hero-float-badge {
  position: absolute; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 10px 14px; font-size: .8125rem; font-weight: 600;
  display: flex; align-items: center; gap: 8px; color: var(--gray-800);
  white-space: nowrap;
}
.hfb-1 { top: 20px; right: -10px; }
.hfb-2 { bottom: 40px; left: -20px; }

/* ── Steps / Features Section ──────────────────────────── */
.section { padding: 72px 0; }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 56px; }
.section-header p { font-size: 1.0625rem; margin-top: 12px; }
.eyebrow {
  display: inline-block; font-size: .75rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: var(--blue); margin-bottom: 10px;
}

.steps-grid {
  display: grid; gap: 32px;
}
.step-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 28px; position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.step-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.step-num {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  color: #fff; font-size: 1.125rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.step-card h3 { margin-bottom: 8px; }
.step-card p { font-size: .9375rem; }

/* ── Templates Section ─────────────────────────────────── */
.templates-grid { display: grid; gap: 20px; }
.template-card {
  background: var(--gray-50); border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition); cursor: pointer;
}
.template-card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.template-preview { height: 200px; background: var(--gray-200); position: relative; overflow: hidden; }
.template-info { padding: 14px; }
.template-name { font-weight: 700; font-size: .9375rem; color: var(--gray-900); }
.template-cat { font-size: .8125rem; color: var(--gray-500); margin-top: 2px; }
.template-badge { position: absolute; top: 10px; right: 10px; }

/* ── Pricing Cards ─────────────────────────────────────── */
.pricing-grid { display: grid; gap: 24px; }
.pricing-card {
  background: #fff; border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl); padding: 32px; text-align: center;
  transition: all var(--transition);
}
.pricing-card.featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37,99,235,.1), var(--shadow);
}
.pricing-label {
  font-size: .75rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: var(--blue); margin-bottom: 8px;
}
.pricing-price { font-size: 2.5rem; font-weight: 800; color: var(--gray-900); margin: 8px 0; }
.pricing-price span { font-size: 1rem; color: var(--gray-500); font-weight: 400; }
.pricing-features { text-align: left; margin: 24px 0; }
.pricing-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .9375rem; color: var(--gray-700); padding: 7px 0;
  border-bottom: 1px solid var(--gray-100);
}
.pricing-features li:last-child { border-bottom: none; }
.check-icon { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.cross-icon { color: var(--gray-400); flex-shrink: 0; margin-top: 2px; }

/* ── Testimonials ──────────────────────────────────────── */
.testimonials-grid { display: grid; gap: 20px; }
.testimonial-card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-sm);
}
.t-stars { color: #f59e0b; font-size: 1rem; margin-bottom: 12px; }
.t-text { font-size: .9375rem; color: var(--gray-700); font-style: italic; line-height: 1.7; }
.t-author { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.t-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .875rem; flex-shrink: 0;
}
.t-name { font-weight: 700; font-size: .9rem; color: var(--gray-900); }
.t-role { font-size: .8125rem; color: var(--gray-500); }

/* ── Stats Band ────────────────────────────────────────── */
.stats-band { background: linear-gradient(135deg, var(--blue), var(--indigo)); padding: 48px 0; }
.stats-grid { display: grid; gap: 32px; text-align: center; }
.stat-num { font-size: 2.5rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-label { font-size: .9375rem; color: rgba(255,255,255,.75); margin-top: 4px; }

/* ── Auth Pages ────────────────────────────────────────── */
.auth-wrap {
  min-height: calc(100vh - 64px);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #eef4ff 0%, #fff 60%);
  padding: 40px 20px;
}
.auth-card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl); padding: 40px;
  width: 100%; max-width: 440px;
  box-shadow: var(--shadow-lg);
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo a { font-weight: 800; font-size: 1.25rem; color: var(--gray-900); text-decoration: none !important; }
.auth-title { font-size: 1.5rem; font-weight: 800; text-align: center; margin-bottom: 6px; color: var(--gray-900); }
.auth-sub { text-align: center; color: var(--gray-500); font-size: .9375rem; margin-bottom: 28px; }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 4px 0;
  font-size: .8125rem; color: var(--gray-400);
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--gray-200);
}
.auth-footer { text-align: center; margin-top: 20px; font-size: .9rem; color: var(--gray-500); }
.auth-footer a { font-weight: 600; }

/* Google Sign In Button */
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px; border-radius: var(--radius);
  border: 1.5px solid var(--gray-200); background: #fff; font-size: .9375rem; font-weight: 600;
  color: var(--gray-700); cursor: pointer; transition: all var(--transition);
}
.btn-google:hover { background: var(--gray-50); border-color: var(--gray-300); }

/* ── Dashboard ─────────────────────────────────────────── */
.dashboard-wrap { padding: 40px 0 72px; }
.dashboard-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.dashboard-grid { display: grid; gap: 20px; }
.resume-card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition); display: flex; flex-direction: column;
}
.resume-card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.rc-thumb {
  height: 160px; background: linear-gradient(160deg, var(--blue-light), #fff);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; position: relative;
}
.rc-body { padding: 16px; flex: 1; }
.rc-title { font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.rc-meta { font-size: .8125rem; color: var(--gray-500); }
.rc-actions { padding: 12px 16px; border-top: 1px solid var(--gray-100); display: flex; gap: 8px; flex-wrap: wrap; }

/* Add new resume card */
.resume-card-new {
  border: 2px dashed var(--gray-300); cursor: pointer;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; padding: 40px 20px; min-height: 280px;
  border-radius: var(--radius-lg); transition: all var(--transition);
  text-decoration: none !important; background: var(--gray-50);
}
.resume-card-new:hover { border-color: var(--blue); background: var(--blue-light); }
.resume-card-new .plus { font-size: 2.5rem; color: var(--blue-dark); }
.resume-card-new span { font-weight: 600; color: var(--gray-600); }

/* ── Profile Page ──────────────────────────────────────── */
.profile-wrap { padding: 40px 0 72px; }
.profile-grid { display: grid; gap: 24px; }
.profile-card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 28px;
}
.profile-card h2 { font-size: 1.125rem; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--gray-100); }
.progress-section { margin-bottom: 28px; }
.progress-bar-lg {
  height: 10px; background: var(--gray-200); border-radius: 999px;
  overflow: hidden; margin-top: 8px; margin-bottom: 4px;
}
.progress-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--blue), var(--indigo));
  border-radius: 999px; transition: width .6s ease;
}
.progress-label { display: flex; justify-content: space-between; font-size: .8125rem; }
.profile-form { display: grid; gap: 18px; }

/* ── Resume Builder ────────────────────────────────────── */
.builder-wrap { display: grid; min-height: calc(100vh - 64px); }
.builder-sidebar {
  background: var(--gray-50); border-right: 1px solid var(--gray-200);
  overflow-y: auto; padding: 20px;
}
.builder-preview { padding: 24px; background: #f1f5f9; overflow-y: auto; }
.builder-toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 20px; background: #fff;
  border-bottom: 1px solid var(--gray-200); position: sticky; top: 64px; z-index: 50;
}
.section-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 20px; }
.section-tab {
  padding: 6px 14px; border-radius: var(--radius-sm); font-size: .8125rem;
  font-weight: 600; color: var(--gray-600); cursor: pointer;
  border: 1.5px solid transparent; transition: all var(--transition); background: none;
}
.section-tab:hover   { background: var(--gray-100); }
.section-tab.active  { background: var(--blue-light); color: var(--blue); border-color: var(--blue); }

/* Resume Paper */
.resume-paper {
  background: #fff; width: 100%; max-width: 794px; margin: 0 auto;
  min-height: 1123px; box-shadow: var(--shadow-lg);
  border-radius: 4px; position: relative;
}

/* ── Share Widget ──────────────────────────────────────── */
.share-widget {
  position: fixed; right: 20px; bottom: 80px; z-index: 800;
}
.share-toggle {
  display: flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff;
  padding: 10px 16px; border-radius: 999px;
  box-shadow: 0 4px 16px rgba(37,99,235,.4);
  font-size: .875rem; font-weight: 700;
  transition: all var(--transition); cursor: pointer;
}
.share-toggle:hover { background: var(--blue-dark); transform: translateY(-1px); }
.share-options {
  position: absolute; right: 0; bottom: calc(100% + 10px);
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 8px; min-width: 160px;
}
.share-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 600; cursor: pointer;
  text-decoration: none !important; transition: all var(--transition);
  width: 100%; border: none; background: none; color: var(--gray-700);
}
.share-btn:hover { transform: translateX(2px); }
.share-facebook { color: #1877f2; }  .share-facebook:hover  { background: #e7f3ff; }
.share-whatsapp { color: #25d366; }  .share-whatsapp:hover  { background: #dcfce7; }
.share-twitter  { color: #000; }     .share-twitter:hover   { background: var(--gray-100); }
.share-linkedin { color: #0077b5; }  .share-linkedin:hover  { background: #e8f4fb; }
.share-telegram { color: #0088cc; }  .share-telegram:hover  { background: #e1f5fe; }
.share-email    { color: var(--gray-600); } .share-email:hover { background: var(--gray-100); }
.share-copy     { color: var(--gray-600); } .share-copy:hover  { background: var(--gray-100); }

/* ── Footer ────────────────────────────────────────────── */
.site-footer { background: var(--gray-900); color: var(--gray-300); padding: 64px 0 0; }
.footer-grid { display: grid; gap: 40px; }
.footer-brand p { font-size: .9375rem; margin-top: 12px; line-height: 1.7; max-width: 280px; }
.footer-logo { font-size: 1.25rem; font-weight: 800; color: #fff; text-decoration: none !important; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px; background: rgba(255,255,255,.08);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--gray-400); transition: all var(--transition);
}
.footer-social a:hover { background: var(--blue); color: #fff; }
.footer-col h3 { color: #fff; font-size: .875rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .05em; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--gray-400); font-size: .9375rem; text-decoration: none !important; transition: color var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 24px 0; margin-top: 48px; }
.footer-bottom p { font-size: .8125rem; color: var(--gray-500); }
.footer-langs { margin-top: 6px; }

/* ── CTA Band ───────────────────────────────────────────── */
.cta-band { background: linear-gradient(135deg, var(--blue), var(--indigo)); padding: 72px 0; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p  { color: rgba(255,255,255,.8); font-size: 1.0625rem; margin-bottom: 32px; }
.cta-band .btn-white {
  background: #fff; color: var(--blue) !important; font-weight: 700;
  padding: 14px 32px; border-radius: var(--radius); display: inline-flex;
  align-items: center; gap: 8px; font-size: 1.0625rem;
  text-decoration: none !important; transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.cta-band .btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }

/* ── Utility ────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.grid-2 { display: grid; gap: 20px; }
.grid-3 { display: grid; gap: 20px; }
.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; }

/* ── Responsive Grid Upgrades ───────────────────────────── */
@media (min-width: 640px) {
  .templates-grid, .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .hero-grid    { grid-template-columns: 1fr 1fr; }
  .steps-grid   { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid  { grid-template-columns: 1.5fr repeat(3, 1fr); }
  .builder-wrap { grid-template-columns: 380px 1fr; grid-template-rows: auto 1fr; }
  .builder-toolbar { grid-column: 1 / -1; }
  .profile-grid { grid-template-columns: 280px 1fr; }
}

@media (min-width: 1024px) {
  .templates-grid  { grid-template-columns: repeat(4, 1fr); }
  .dashboard-grid  { grid-template-columns: repeat(3, 1fr); }
  .stats-grid      { grid-template-columns: repeat(4, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-3          { grid-template-columns: repeat(3, 1fr); }
}

/* ── Print Styles ───────────────────────────────────────── */
@media print {
  .navbar, .site-footer, .share-widget, .builder-sidebar, .builder-toolbar { display: none !important; }
  .resume-paper { box-shadow: none; max-width: 100%; }
}

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .5s ease both; }
.fade-up-1 { animation-delay: .1s; }
.fade-up-2 { animation-delay: .2s; }
.fade-up-3 { animation-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
