/* =========================================
   JobCV — Main Stylesheet
   ========================================= */

:root {
    --black: #0a0a0a;
    --white: #ffffff;
    --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;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --blue-light: #eff6ff;
    --green: #16a34a;
    --green-light: #f0fdf4;
    --red: #dc2626;
    --red-light: #fef2f2;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.1), 0 8px 16px rgba(0,0,0,0.06);
    --shadow-xl: 0 40px 80px rgba(0,0,0,0.12);
    --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

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

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--gray-900);
}

.display-1 { font-size: clamp(2.8rem, 5vw, 4.5rem); }
.display-2 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
.section-title { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.lead { font-size: 1.125rem; color: var(--gray-500); line-height: 1.7; }

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition);
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,0.3); }

.btn-outline {
    background: transparent;
    color: var(--gray-900);
    border-color: var(--gray-300);
}
.btn-outline:hover { border-color: var(--gray-900); background: var(--gray-50); }
.btn-outline-white {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.6); color: white; }

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
    border-color: transparent;
}
.btn-ghost:hover { color: var(--gray-900); background: var(--gray-100); }

.btn-black {
    background: var(--gray-900);
    color: var(--white);
    border-color: var(--gray-900);
}
.btn-black:hover { background: var(--gray-800); transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 12px; }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn-xl { padding: 18px 36px; font-size: 1.1rem; border-radius: 14px; }

/* =========================================
   HEADER
   ========================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    transition: box-shadow var(--transition);
}

.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--gray-900);
    letter-spacing: -0.03em;
    flex-shrink: 0;
}
.logo-icon { font-size: 1.75rem; color: var(--blue); }
.logo-text { color: var(--gray-900); }
.logo-tld  { color: var(--blue); }

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.nav-link {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: all var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--gray-900); background: var(--gray-100); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    margin-left: auto;
}
.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.mobile-menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue-light);
    color: var(--blue);
    border: 1px solid rgba(37,99,235,0.2);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 28px;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
}

.hero h1 {
    font-size: clamp(2.8rem, 5.5vw, 4.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--gray-900);
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 .highlight {
    color: var(--blue);
    position: relative;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--gray-500);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.stars { color: #f59e0b; font-size: 1.1rem; letter-spacing: 2px; }

.rating-text {
    font-size: 0.9rem;
    color: var(--gray-500);
}
.rating-text strong { color: var(--gray-900); }

.hero-divider {
    width: 1px;
    height: 20px;
    background: var(--gray-300);
}

/* Resume Preview Card in Hero */
.hero-preview {
    max-width: 700px;
    margin: 60px auto 0;
    position: relative;
}

.preview-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.preview-card-header {
    background: var(--gray-900);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-dots { display: flex; gap: 6px; }
.preview-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.preview-dots span:nth-child(1) { background: #ff5f57; }
.preview-dots span:nth-child(2) { background: #febc2e; }
.preview-dots span:nth-child(3) { background: #28c840; }

.preview-title {
    flex: 1;
    text-align: center;
    color: var(--gray-400);
    font-size: 0.8rem;
}

.preview-body {
    padding: 32px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
    min-height: 380px;
}

.preview-sidebar { border-right: 2px solid var(--gray-100); padding-right: 24px; }

.preview-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--blue), #7c3aed);
    border-radius: 50%;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    font-weight: 700;
}

.preview-line {
    height: 10px;
    background: var(--gray-200);
    border-radius: 10px;
    margin-bottom: 8px;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.preview-line.w-full { width: 100%; }
.preview-line.w-3-4 { width: 75%; }
.preview-line.w-1-2 { width: 50%; }
.preview-line.w-2-3 { width: 66%; }
.preview-line.w-1-3 { width: 33%; }
.preview-line.dark { background: var(--gray-700); height: 14px; margin-bottom: 12px; }
.preview-line.blue { background: var(--blue); }
.preview-mb { margin-bottom: 20px; }

/* =========================================
   STEPS / FEATURES
   ========================================= */
.steps-section {
    padding: 80px 0;
    background: var(--gray-50);
}

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

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 520px;
    margin: 0 auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
}

.step-card:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--blue);
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* =========================================
   FEATURES SECTION
   ========================================= */
.features-section { padding: 100px 0; }

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.features-grid.reverse { direction: rtl; }
.features-grid.reverse > * { direction: ltr; }

.features-content h2 {
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    margin-bottom: 20px;
}

.features-content p {
    color: var(--gray-500);
    margin-bottom: 24px;
    line-height: 1.75;
}

.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--gray-700);
}

.features-list li::before {
    content: '✓';
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: var(--green-light);
    color: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 1px;
}

.features-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
}

.template-showcase {
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.template-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--gray-200);
    transition: all var(--transition);
    cursor: pointer;
}

.template-card:hover { border-color: var(--blue); transform: scale(1.02); }
.template-card.featured { border-color: var(--blue); }

.template-header {
    padding: 16px 14px 10px;
    background: var(--gray-900);
}

.template-header.blue-bg { background: var(--blue); }
.template-header.green-bg { background: #059669; }
.template-header.purple-bg { background: #7c3aed; }

.template-name-line {
    height: 12px;
    background: rgba(255,255,255,0.9);
    border-radius: 6px;
    margin-bottom: 6px;
    width: 80%;
}

.template-job-line {
    height: 8px;
    background: rgba(255,255,255,0.5);
    border-radius: 4px;
    width: 60%;
}

.template-body { padding: 12px 14px; }

.template-body-line {
    height: 7px;
    background: var(--gray-200);
    border-radius: 4px;
    margin-bottom: 6px;
}

.template-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-align: center;
    padding: 8px;
    border-top: 1px solid var(--gray-100);
}

/* =========================================
   SOCIAL PROOF / TESTIMONIALS
   ========================================= */
.testimonials-section {
    padding: 80px 0;
    background: var(--gray-50);
}

.rating-banner {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 24px;
}

.rating-big .stars { font-size: 1.5rem; }
.rating-big .rating-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
}
.rating-big .rating-label { font-size: 0.9rem; color: var(--gray-500); }

.rating-stat { text-align: center; }
.rating-stat .stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    display: block;
}
.rating-stat .stat-label { font-size: 0.85rem; color: var(--gray-500); }

.stat-divider { width: 1px; height: 60px; background: var(--gray-200); }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}

.testimonial-card:hover { box-shadow: var(--shadow); border-color: var(--gray-300); }

.testimonial-stars { color: #f59e0b; margin-bottom: 12px; font-size: 0.9rem; }

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

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    flex-shrink: 0;
}

.author-name { font-weight: 600; font-size: 0.9rem; }
.author-role { font-size: 0.8rem; color: var(--gray-500); }

/* =========================================
   PRICING SECTION
   ========================================= */
.pricing-section { padding: 100px 0; }

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.pricing-toggle span { font-size: 0.9rem; font-weight: 500; color: var(--gray-600); }

.toggle-switch {
    width: 52px;
    height: 28px;
    background: var(--gray-300);
    border-radius: 100px;
    position: relative;
    cursor: pointer;
    transition: background var(--transition);
}

.toggle-switch.active { background: var(--blue); }

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform var(--transition);
    box-shadow: var(--shadow-sm);
}

.toggle-switch.active::after { transform: translateX(24px); }

.save-badge {
    background: var(--green-light);
    color: var(--green);
    border-radius: 100px;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 36px 32px;
    border: 2px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover { border-color: var(--blue); box-shadow: var(--shadow-lg); }

.pricing-card.featured {
    border-color: var(--blue);
    box-shadow: var(--shadow-xl);
    transform: scale(1.04);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue);
    color: white;
    border-radius: 100px;
    padding: 4px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-plan { font-size: 0.85rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }

.pricing-price {
    margin-bottom: 8px;
    line-height: 1;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gray-900);
}

.price-currency { font-size: 1.5rem; font-weight: 600; vertical-align: top; margin-top: 10px; display: inline-block; }
.price-period { font-size: 0.9rem; color: var(--gray-500); }

.pricing-desc { font-size: 0.9rem; color: var(--gray-500); margin-bottom: 28px; }

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.pricing-features li .check {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--green);
    font-size: 0.8rem;
    font-weight: 700;
}

.pricing-features li .cross {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--gray-300);
    font-size: 0.8rem;
}

.pricing-cta { width: 100%; text-align: center; justify-content: center; }

/* =========================================
   FAQ SECTION
   ========================================= */
.faq-section { padding: 100px 0; background: var(--gray-50); }

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-900);
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    transition: background var(--transition);
}

.faq-question:hover { background: var(--gray-50); }

.faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
    line-height: 1;
    transition: all 0.3s ease;
    color: var(--gray-600);
}

.faq-item.open .faq-icon {
    background: var(--blue);
    color: white;
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 24px 20px;
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.75;
}

.faq-item.open .faq-answer { display: block; }

/* =========================================
   CTA SECTION
   ========================================= */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background: var(--gray-900);
    color: var(--white);
}

.cta-section h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: var(--white);
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.1rem;
    color: var(--gray-400);
    max-width: 500px;
    margin: 0 auto 40px;
}

.cta-section .btn-primary { box-shadow: 0 4px 20px rgba(37,99,235,0.4); }

/* =========================================
   FORM STYLES
   ========================================= */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--gray-900);
    background: var(--white);
    transition: all var(--transition);
    outline: none;
}

.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-control::placeholder { color: var(--gray-400); }

textarea.form-control { resize: vertical; min-height: 100px; }
input[type="date"].form-control { cursor: pointer; }
input[type="date"].form-control::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.6; }

.form-control.is-invalid { border-color: var(--red); }
.form-control.is-valid { border-color: var(--green); }

.form-error { font-size: 0.8rem; color: var(--red); margin-top: 4px; }
.form-hint { font-size: 0.8rem; color: var(--gray-400); margin-top: 4px; }

/* =========================================
   AUTH PAGES
   ========================================= */
.auth-page {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: var(--gray-50);
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
}

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

.auth-subtitle {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 36px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    font-size: 0.85rem;
    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: 24px;
    font-size: 0.9rem;
    color: var(--gray-500);
}

.auth-footer a { color: var(--blue); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.alert-error { background: var(--red-light); color: var(--red); border: 1px solid rgba(220,38,38,0.2); }
.alert-success { background: var(--green-light); color: var(--green); border: 1px solid rgba(22,163,74,0.2); }
.alert-info { background: var(--blue-light); color: var(--blue); border: 1px solid rgba(37,99,235,0.2); }

/* =========================================
   DASHBOARD
   ========================================= */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 64px);
}

.sidebar {
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    padding: 32px 20px;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: all var(--transition);
}

.sidebar-menu a:hover { color: var(--gray-900); background: var(--gray-100); }
.sidebar-menu a.active { color: var(--blue); background: var(--blue-light); }
.sidebar-menu .menu-icon { font-size: 1rem; width: 20px; text-align: center; }

.sidebar-divider { height: 1px; background: var(--gray-200); margin: 16px 0; }

.dashboard-main { padding: 40px; background: var(--gray-50); }

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 16px;
}

.dashboard-header h1 { font-size: 1.8rem; }
.dashboard-header p { color: var(--gray-500); font-size: 0.9rem; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stat-icon.blue { background: var(--blue-light); }
.stat-icon.green { background: var(--green-light); }
.stat-icon.purple { background: #f5f3ff; }
.stat-icon.orange { background: #fff7ed; }

.stat-num { font-size: 1.8rem; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 0.8rem; color: var(--gray-500); }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.resume-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all var(--transition);
}

.resume-card:hover { box-shadow: var(--shadow); border-color: var(--gray-300); }

.resume-card-preview {
    height: 180px;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    position: relative;
    overflow: hidden;
    padding: 20px;
    text-decoration: none;
    cursor: pointer;
}

/* screenshot thumbnail container — height grows to show full A4 */
.resume-card-preview.rcp-iframe {
    padding: 14px;
    background: #dde1e7;
    position: static;
    height: auto;
    overflow: visible;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    cursor: pointer;
}

/* paper box — clipped to first A4 page */
.cv-thumb-paper {
    width: 260px;
    height: 368px;
    overflow: hidden;
    border-radius: 3px;
    box-shadow: 0 3px 16px rgba(0,0,0,.28), 0 0 0 .5px rgba(0,0,0,.1);
    background: #fff;
    flex-shrink: 0;
}

.resume-mini {
    background: white;
    border-radius: 6px;
    padding: 12px;
    height: 100%;
    box-shadow: var(--shadow);
}

.resume-mini-line {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    margin-bottom: 6px;
}

.resume-mini-line.dark { background: var(--gray-700); height: 10px; }
.resume-mini-line.blue { background: var(--blue); height: 3px; margin-bottom: 10px; }
.resume-mini-line.w-60 { width: 60%; }
.resume-mini-line.w-40 { width: 40%; }
.resume-mini-line.w-80 { width: 80%; }

.resume-card-body {
    padding: 16px 20px;
    border-top: 1px solid var(--gray-100);
}

.resume-card-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.resume-card-date { font-size: 0.8rem; color: var(--gray-400); }

.resume-card-actions {
    padding: 12px 20px;
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--gray-100);
}

/* ── Share toggle (used on both builder and dashboard) ── */
.share-toggle { position:relative; display:inline-block; width:44px; height:24px; flex-shrink:0; }
.share-toggle input { opacity:0; width:0; height:0; }
.share-slider { position:absolute; cursor:pointer; inset:0; background:#d1d5db; border-radius:24px; transition:background .2s; }
.share-slider::before { content:''; position:absolute; width:18px; height:18px; left:3px; top:3px; background:#fff; border-radius:50%; transition:transform .2s; box-shadow:0 1px 3px rgba(0,0,0,.2); }
.share-toggle input:checked + .share-slider { background:#10b981; }
.share-toggle input:checked + .share-slider::before { transform:translateX(20px); }

.new-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--gray-300);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 24px;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--gray-500);
    text-decoration: none;
    min-height: 280px;
}

.new-card:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.new-card-icon { font-size: 2rem; }
.new-card-text { font-weight: 600; font-size: 0.95rem; }

/* =========================================
   RESUME BUILDER
   ========================================= */
.builder-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    min-height: calc(100vh - 64px);
    max-height: calc(100vh - 64px);
    overflow: hidden;
}

.builder-panel {
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.builder-panel-header {
    padding: 24px 28px 0;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.builder-panel-header h2 { font-size: 1.2rem; margin-bottom: 4px; }
.builder-panel-header p { font-size: 0.85rem; color: var(--gray-500); }

.builder-tabs {
    display: flex;
    gap: 0;
    margin-top: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.builder-tabs::-webkit-scrollbar { display: none; }

.builder-tab {
    padding: 12px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-500);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all var(--transition);
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    cursor: pointer;
}

.builder-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.builder-tab:hover:not(.active) { color: var(--gray-700); }

.builder-form { padding: 28px; flex: 1; }

.builder-section { display: none; }
.builder-section.active { display: block; }

.builder-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
    margin-bottom: 20px;
}

.experience-item {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
}

.exp-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.exp-item-title { font-weight: 600; font-size: 0.9rem; }

.btn-remove {
    color: var(--gray-400);
    font-size: 1.2rem;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all var(--transition);
}
.btn-remove:hover { color: var(--red); background: var(--red-light); }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.builder-add-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    color: var(--gray-500);
    font-size: 0.85rem;
    font-weight: 600;
    background: none;
    cursor: pointer;
    width: 100%;
    transition: all var(--transition);
}
.builder-add-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }

.builder-preview {
    background: var(--gray-100);
    overflow-y: auto;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 620px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.preview-toolbar-left { display: flex; align-items: center; gap: 8px; }

.template-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.template-btn {
    padding: 6px 14px;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--white);
    cursor: pointer;
    transition: all var(--transition);
    color: var(--gray-600);
}

.template-btn.active { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.template-btn:hover:not(.active) { border-color: var(--gray-400); }

/* Resume Paper */
.resume-paper {
    background: white;
    width: 620px;
    min-height: 877px;
    box-shadow: var(--shadow-xl);
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.5;
    color: #1a1a1a;
    overflow: hidden;
    position: relative;
}

/* Classic Template */
.resume-paper.classic .resume-head {
    background: #1e293b;
    color: white;
    padding: 32px 36px;
}

.resume-paper.classic .resume-head h1 {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.resume-paper.classic .resume-head .job-title {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.resume-paper.classic .contact-line {
    display: flex;
    gap: 16px;
    font-size: 10px;
    color: #cbd5e1;
    flex-wrap: wrap;
}

.resume-paper.classic .resume-body {
    padding: 28px 36px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 28px;
}

/* Modern Template */
.resume-paper.modern .resume-head {
    background: var(--blue);
    color: white;
    padding: 32px 36px;
}

.resume-paper.modern .resume-head h1 { color: white; font-size: 24px; margin-bottom: 4px; }
.resume-paper.modern .resume-head .job-title { color: rgba(255,255,255,0.75); font-size: 12px; margin-bottom: 16px; }
.resume-paper.modern .contact-line { display: flex; gap: 16px; font-size: 10px; color: rgba(255,255,255,0.85); flex-wrap: wrap; }

.resume-paper.modern .resume-body {
    padding: 28px 36px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 28px;
}

/* Minimal Template */
.resume-paper.minimal .resume-head {
    padding: 36px 40px 24px;
    border-bottom: 3px solid #1e293b;
}

.resume-paper.minimal .resume-head h1 { font-size: 26px; color: #1e293b; margin-bottom: 4px; }
.resume-paper.minimal .resume-head .job-title { font-size: 12px; color: var(--gray-500); margin-bottom: 12px; }
.resume-paper.minimal .contact-line { display: flex; gap: 16px; font-size: 10px; color: var(--gray-500); flex-wrap: wrap; }

.resume-paper.minimal .resume-body {
    padding: 28px 40px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 28px;
}

/* Shared Resume Sections */
.resume-section { margin-bottom: 20px; }
.resume-section-title {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
    margin-bottom: 12px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--gray-200);
}

.resume-paper.classic .resume-section-title,
.resume-paper.modern .resume-section-title { color: #94a3b8; border-color: #334155; }

.resume-paper.minimal .resume-section-title { color: #1e293b; border-color: #1e293b; }

.resume-entry { margin-bottom: 14px; }
.resume-entry-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2px; }
.resume-entry-title { font-weight: 700; font-size: 11px; }
.resume-entry-date { font-size: 10px; color: var(--gray-400); }
.resume-entry-sub { font-size: 10px; color: var(--gray-500); margin-bottom: 4px; }
.resume-entry-desc { font-size: 10px; color: var(--gray-600); line-height: 1.6; }

.skill-pill {
    display: inline-block;
    background: var(--gray-100);
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 9px;
    font-weight: 600;
    color: var(--gray-700);
    margin: 2px 2px 2px 0;
}

.resume-paper.classic .skill-pill,
.resume-paper.modern .skill-pill { background: rgba(255,255,255,0.1); color: #cbd5e1; }

/* =========================================
   JOBS PAGE
   ========================================= */
.jobs-page-content { padding: 60px 0; }

.jobs-search-bar {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 8px 8px 8px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.search-input-wrap {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: var(--gray-900);
    background: none;
}

.search-divider { width: 1px; height: 32px; background: var(--gray-200); }

.jobs-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 7px 16px;
    border: 1.5px solid var(--gray-300);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
    background: white;
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn.active, .filter-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }

.jobs-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 28px;
    align-items: start;
}

.jobs-list { display: flex; flex-direction: column; gap: 12px; }

.job-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 2px solid var(--gray-200);
    cursor: pointer;
    transition: all var(--transition);
}

.job-card:hover, .job-card.active { border-color: var(--blue); box-shadow: var(--shadow); }
.job-card.active { background: var(--blue-light); }

.job-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; gap: 12px; }

.job-company-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--gray-900);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: white;
    flex-shrink: 0;
}

.job-title { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.job-company { font-size: 0.85rem; color: var(--gray-500); }
.job-meta { display: flex; gap: 12px; font-size: 0.8rem; color: var(--gray-400); flex-wrap: wrap; margin-top: 12px; }
.job-tag { background: var(--gray-100); border-radius: 6px; padding: 4px 10px; font-size: 0.8rem; color: var(--gray-600); font-weight: 500; }

.job-detail-panel {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid var(--gray-200);
    position: sticky;
    top: 84px;
}

/* =========================================
   PAGE HERO (inner pages)
   ========================================= */
.page-hero {
    background: var(--gray-900);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.page-hero p { color: var(--gray-400); font-size: 1.1rem; max-width: 500px; margin: 0 auto; }

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo { color: var(--white); margin-bottom: 16px; }
.footer-brand .logo-icon { color: var(--blue); }
.footer-brand .logo-text { color: var(--white); }
.footer-brand .logo-tld  { color: var(--blue); }
.footer-brand p { font-size: 0.9rem; color: var(--gray-400); line-height: 1.7; margin-bottom: 24px; }

.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-300);
    transition: all var(--transition);
}
.footer-social a:hover { background: var(--blue); color: white; }

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-300);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-400);
    margin-bottom: 10px;
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 0.8rem;
    color: var(--gray-500);
    flex-wrap: wrap;
    gap: 8px;
}

/* =========================================
   UTILITIES
   ========================================= */
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mt-48 { margin-top: 48px; }
.gap-section { margin-bottom: 80px; }

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-blue { background: var(--blue-light); color: var(--blue); }
.badge-green { background: var(--green-light); color: var(--green); }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
    .pricing-card.featured { transform: none; }
    .testimonials-grid { grid-template-columns: 1fr 1fr; }
    .features-grid { grid-template-columns: 1fr; gap: 40px; }
    .features-grid.reverse { direction: ltr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .builder-layout { grid-template-columns: 1fr; }
    .builder-preview { display: none; }
    .jobs-layout { grid-template-columns: 1fr; }
    .job-detail-panel { display: none; }
    .dashboard-layout { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .footer-top { grid-template-columns: 1fr; gap: 40px; }
    .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .header-actions { display: none; }
    .mobile-menu-toggle { display: flex; }

    .main-nav.mobile-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: white;
        border-bottom: 1px solid var(--gray-200);
        padding: 16px 24px;
        box-shadow: var(--shadow-lg);
        z-index: 99;
    }

    .main-nav.mobile-open + .header-actions {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 16px 24px;
        background: white;
        border-top: 1px solid var(--gray-200);
        z-index: 99;
        gap: 12px;
    }

    .main-nav.mobile-open + .header-actions .btn { flex: 1; justify-content: center; }

    .steps-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .hero { padding: 60px 0 40px; }
    .preview-body { grid-template-columns: 1fr; }
    .preview-sidebar { border-right: none; border-bottom: 2px solid var(--gray-100); padding-right: 0; padding-bottom: 16px; }
    .auth-card { padding: 32px 24px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .dashboard-main { padding: 24px; }
    .rating-banner { flex-direction: column; align-items: flex-start; }
    .stat-divider { display: none; }
    .footer-links { grid-template-columns: repeat(2, 1fr); }
    .template-showcase { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero h1 { font-size: 2.2rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: 1fr 1fr; }
    .auth-card { padding: 24px 16px; }
}

/* =========================================
   PRINT / PDF
   ========================================= */
@media print {
    .site-header, .site-footer, .builder-panel, .preview-toolbar { display: none !important; }
    .resume-paper { box-shadow: none; }
}
