/* ============================================
   PROFESSIONAL CV MAKER - Complete Styles
   ============================================ */

/* CSS Variables */
:root {
    /* Colors */
    --primary: #4361ee;
    --primary-dark: #3651d4;
    --primary-light: #eef1fe;
    --secondary: #3f37c9;
    --accent: #f72585;
    --accent-light: #fdeef5;
    --success: #06d6a0;
    --success-dark: #05b086;
    --warning: #ffd166;
    --danger: #ef476f;
    --info: #118ab2;
    
    /* Neutrals */
    --dark: #1a1a2e;
    --dark-2: #16213e;
    --gray-900: #2d3748;
    --gray-800: #4a5568;
    --gray-700: #718096;
    --gray-600: #a0aec0;
    --gray-500: #cbd5e0;
    --gray-400: #e2e8f0;
    --gray-300: #edf2f7;
    --gray-200: #f7fafc;
    --white: #ffffff;
    
    /* Template Colors */
    --modern-primary: #4361ee;
    --classic-primary: #2c3e50;
    --minimal-primary: #1a1a2e;
    --creative-primary: #e91e63;
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-cv: 'Roboto', sans-serif;
    --font-serif: 'Merriweather', Georgia, serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-glow: 0 0 20px rgba(67, 97, 238, 0.15);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Container */
    --container-max: 1280px;
    --container-padding: 1.5rem;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--gray-900);
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    min-height: 100vh;
	padding-top: 70px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover { color: var(--primary-dark); }

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

button { cursor: pointer; font-family: inherit; }

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    z-index: 10000;
    font-weight: 500;
    transition: top var(--transition-base);
}
.skip-link:focus { top: 0; }

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
}

.logo i {
    color: var(--primary);
    font-size: 1.75rem;
}

.logo-text span { color: var(--primary); }

.main-nav {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    color: var(--gray-800);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    padding: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-800);
    transition: var(--transition-fast);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    padding: var(--space-3xl) 0 var(--space-2xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(67,97,238,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.15;
    margin-bottom: var(--space-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-title .highlight {
    color: var(--primary);
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(67, 97, 238, 0.15);
    border-radius: 4px;
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--gray-700);
    max-width: 680px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
}

.hero-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-800);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-400);
}

.badge i {
    color: var(--success);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 14px rgba(67, 97, 238, 0.35);
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
    color: var(--white);
}

.cta-button i { font-size: 1.1rem; }

/* ============================================
   TEMPLATE SECTION
   ============================================ */
/* ============================================
   TEMPLATE SECTION - COMPACT FIX
   ============================================ */
.template-section {
    padding: var(--space-2xl) 0;
}

.section-heading {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--space-sm);
}

.section-subheading {
    text-align: center;
    color: var(--gray-700);
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
    max-width: 100%;
}

.template-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
    position: relative;
    min-width: 0; /* Prevents overflow */
}

.template-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.template-card.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

/* Compact Template Previews */
.template-preview {
    padding: 8px;
    background: var(--gray-200);
    min-height: 120px;
    position: relative;
    overflow: hidden;
}

/* Smaller preview elements */
.tp-header {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

.tp-photo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gray-600);
    flex-shrink: 0;
}

.tp-info { flex: 1; }
.tp-name {
    height: 8px;
    background: var(--gray-800);
    border-radius: 2px;
    width: 70%;
    margin-bottom: 3px;
}
.tp-title {
    height: 5px;
    background: var(--gray-600);
    border-radius: 2px;
    width: 50%;
}

.tp-body {
    display: flex;
    gap: 6px;
}
.tp-sidebar {
    width: 28%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tp-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tp-block {
    height: 12px;
    background: var(--gray-500);
    border-radius: 2px;
}
.tp-section {
    height: 10px;
    background: var(--gray-400);
    border-radius: 2px;
}

/* Classic Preview */
.tp-header-centered {
    text-align: center;
    margin-bottom: 6px;
}
.tp-name-lg {
    height: 10px;
    background: var(--gray-800);
    border-radius: 2px;
    width: 60%;
    margin: 0 auto 3px;
}
.tp-contact-row {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 3px;
}
.tp-contact-row span {
    height: 4px;
    width: 16px;
    background: var(--gray-500);
    border-radius: 2px;
}
.tp-divider {
    height: 2px;
    background: var(--gray-800);
    margin: 4px 0;
}
.tp-full-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Minimal Preview */
.tp-min-header {
    margin-bottom: 6px;
}
.tp-min-name {
    height: 8px;
    background: var(--gray-800);
    border-radius: 2px;
    width: 50%;
    margin-bottom: 3px;
}
.tp-min-title {
    height: 5px;
    background: var(--gray-600);
    border-radius: 2px;
    width: 35%;
}
.tp-min-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}
.tp-min-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tp-block-sm {
    height: 12px;
    background: var(--gray-400);
    border-radius: 2px;
}

/* Creative Preview */
.tp-creative-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    padding: 4px 6px;
    background: var(--accent);
    border-radius: 3px;
    margin: -6px -6px 6px;
}
.tp-creative-info { flex: 1; }
.tp-creative-info .tp-name {
    background: var(--white);
    height: 6px;
}
.tp-creative-info .tp-title {
    background: rgba(255,255,255,0.7);
    height: 4px;
}
.tp-creative-body {
    display: flex;
    gap: 6px;
}
.tp-creative-sidebar {
    width: 26%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tp-creative-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tp-block-accent {
    height: 12px;
    background: var(--accent-light);
    border-radius: 2px;
    border-left: 2px solid var(--accent);
}

/* Template Info - Compact */
.template-info {
    padding: 8px 10px 10px;
}

.template-info h3 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.template-info p {
    font-size: 0.65rem;
    color: var(--gray-700);
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 1.6em;
}

.template-tag {
    display: inline-block;
    padding: 1px 8px;
    border-radius: var(--radius-full);
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.template-tag.recommended {
    background: var(--primary-light);
    color: var(--primary);
}
.template-tag.professional {
    background: #e8f4f8;
    color: var(--info);
}
.template-tag.fresh {
    background: #e8f8f0;
    color: var(--success-dark);
}
.template-tag.creative {
    background: var(--accent-light);
    color: var(--accent);
}

/* ============================================
   RESPONSIVE - KEEP 4 IN A ROW
   ============================================ */

/* Tablets and smaller desktops */
@media (max-width: 1024px) {
    .template-grid {
        gap: 10px;
    }
    
    .template-preview {
        min-height: 100px;
        padding: 6px;
    }
    
    .template-info h3 {
        font-size: 0.75rem;
    }
    
    .template-info p {
        font-size: 0.6rem;
        -webkit-line-clamp: 2;
    }
}

/* Mobile - Keep 4 columns but smaller */
@media (max-width: 768px) {
    .template-section {
        padding: var(--space-xl) 0;
    }
    
    .section-heading {
        font-size: 1.5rem;
    }
    
    .section-subheading {
        font-size: 0.85rem;
        margin-bottom: var(--space-lg);
    }
    
    .template-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    
    .template-preview {
        min-height: 70px;
        padding: 4px;
    }
    
    /* Hide description text on mobile for more space */
    .template-info p {
        display: none;
    }
    
    .template-info {
        padding: 4px 6px 6px;
    }
    
    .template-info h3 {
        font-size: 0.6rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 2px;
    }
    
    .template-tag {
        font-size: 0.45rem;
        padding: 1px 5px;
    }
    
    /* Make preview elements even smaller */
    .tp-photo {
        width: 14px;
        height: 14px;
    }
    
    .tp-name {
        height: 6px;
    }
    
    .tp-title {
        height: 4px;
    }
    
    .tp-block {
        height: 8px;
    }
    
    .tp-section {
        height: 7px;
    }
    
    .tp-block-sm {
        height: 8px;
    }
    
    .tp-block-accent {
        height: 8px;
    }
    
    .tp-name-lg {
        height: 7px;
    }
    
    .tp-contact-row span {
        height: 3px;
        width: 10px;
    }
}

/* Very small phones */
@media (max-width: 480px) {
    .template-grid {
        gap: 4px;
    }
    
    .template-preview {
        min-height: 55px;
        padding: 3px;
    }
    
    .template-info h3 {
        font-size: 0.5rem;
    }
    
    .template-tag {
        font-size: 0.4rem;
        padding: 1px 4px;
    }
    
    /* Even smaller preview elements */
    .tp-photo {
        width: 10px;
        height: 10px;
    }
    
    .tp-name {
        height: 5px;
    }
    
    .tp-title {
        height: 3px;
    }
    
    .tp-block {
        height: 6px;
    }
    
    .tp-section {
        height: 5px;
    }
    
    .tp-block-sm {
        height: 6px;
    }
    
    .tp-block-accent {
        height: 6px;
    }
    
    .tp-name-lg {
        height: 6px;
    }
    
    .tp-contact-row span {
        height: 2px;
        width: 8px;
    }
}

/* Alternative: Horizontal scroll on mobile */
@media (max-width: 768px) {
    .template-grid {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 4px 2px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    
    .template-grid::-webkit-scrollbar {
        height: 3px;
    }
    
    .template-grid::-webkit-scrollbar-thumb {
        background: var(--gray-500);
        border-radius: 3px;
    }
    
    .template-card {
        flex: 0 0 22%;
        min-width: 80px;
        scroll-snap-align: start;
    }
}

/* ============================================
   CV BUILDER SECTION
   ============================================ */
.cv-builder-section {
    padding: var(--space-2xl) 0 var(--space-3xl);
}

.cv-builder-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-xl);
    align-items: start;
}

/* Builder Sidebar */
.builder-sidebar {
    position: sticky;
    top: 80px;
}

.progress-panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
}

.progress-panel h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-panel h3 i {
    color: var(--primary);
}

.progress-steps {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: var(--space-lg);
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.progress-step:hover {
    background: var(--gray-200);
}

.progress-step.active {
    background: var(--primary-light);
    border-left-color: var(--primary);
}

.progress-step.completed {
    border-left-color: var(--success);
}

.progress-step.completed .step-num {
    display: none;
}

.progress-step.completed .step-check {
    display: flex;
}

.progress-step.completed .step-indicator {
    background: var(--success);
}

.step-indicator {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.step-num {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-700);
}

.step-check {
    display: none;
    color: var(--white);
    font-size: 0.75rem;
}

.progress-step.active .step-indicator {
    background: var(--primary);
}

.progress-step.active .step-num {
    color: var(--white);
}

.step-text {
    display: flex;
    flex-direction: column;
}

.step-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-800);
}

.step-desc {
    font-size: 0.75rem;
    color: var(--gray-600);
}

.progress-step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

/* Mini Preview Panel */
.mini-preview-panel {
    border-top: 1px solid var(--gray-400);
    padding-top: var(--space-md);
}

.mini-preview-panel h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 6px;
}

.mini-preview-panel h4 i {
    color: var(--primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.stat-item {
    text-align: center;
    padding: var(--space-sm);
    background: var(--gray-200);
    border-radius: var(--radius-sm);
}

.stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-preview-mini {
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.btn-preview-mini:hover {
    background: var(--primary-dark);
}

/* Builder Main */
.builder-main {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    min-height: 600px;
}

/* Form Steps */
.form-step {
    display: none;
    padding: var(--space-xl);
    animation: fadeInUp 0.4s ease;
}

.form-step.active {
    display: block;
}

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

.step-header {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--gray-300);
}

.step-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--space-sm);
}

.step-header h2 i {
    color: var(--primary);
}

.step-instruction {
    color: var(--gray-700);
    font-size: 0.95rem;
}

.required { color: var(--danger); font-weight: 600; }

/* Form Grid & Fields */
.form-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-row.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-900);
}

.form-field label.required::after {
    content: ' *';
    color: var(--danger);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="url"],
.form-field input[type="date"],
.form-field input[type="file"],
.form-field textarea,
.form-field select {
    padding: 12px 14px;
    border: 1.5px solid var(--gray-400);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--gray-900);
    background: var(--white);
    transition: all var(--transition-fast);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--gray-600);
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.field-hint {
    font-size: 0.8rem;
    color: var(--gray-600);
    line-height: 1.4;
}

.field-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.char-count {
    font-size: 0.8rem;
    color: var(--gray-600);
}

/* Photo Upload */
.photo-upload-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.photo-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--gray-600);
    overflow: hidden;
    border: 3px solid var(--gray-400);
    flex-shrink: 0;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.photo-preview.has-photo img {
    display: block;
}

.photo-preview.has-photo i {
    display: none;
}

.photo-upload-controls {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-upload:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-remove-photo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-remove-photo:hover {
    background: var(--danger);
    color: var(--white);
}

/* AI Suggestions */
.ai-suggestions {
    background: linear-gradient(135deg, #fff9e6 0%, #fff5d6 100%);
    border: 1px solid #f0e4bc;
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-top: var(--space-lg);
}

.ai-suggestions h4 {
    color: #8b7355;
    font-size: 0.95rem;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-suggestions ul {
    list-style: none;
    padding: 0;
}

.ai-suggestions li {
    padding: 4px 0;
    font-size: 0.85rem;
    color: #6b5b45;
    position: relative;
    padding-left: 18px;
}

.ai-suggestions li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

/* Skills Input */
.skill-input-wrapper {
    display: flex;
    gap: var(--space-sm);
}

.skill-input-wrapper input {
    flex: 1;
}

.btn-add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    background: var(--success);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-add:hover {
    background: var(--success-dark);
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: var(--space-md);
    min-height: 40px;
    padding: var(--space-sm);
    border: 1.5px dashed var(--gray-400);
    border-radius: var(--radius-sm);
}

.skills-empty {
    color: var(--gray-600);
    font-size: 0.85rem;
    font-style: italic;
    width: 100%;
    text-align: center;
    padding: var(--space-sm);
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: var(--white);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    animation: tagIn 0.2s ease;
}

@keyframes tagIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.skill-tag .remove-skill {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
    font-size: 0.75rem;
}

.skill-tag .remove-skill:hover {
    opacity: 1;
}

/* Dynamic Items (Experience/Education) */
.item-card {
    background: var(--gray-200);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    border-left: 4px solid var(--primary);
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.item-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.item-card-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
}

.btn-remove-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-remove-item:hover {
    background: var(--danger);
    color: var(--white);
}

.item-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 8px;
}

.btn-add-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    color: var(--primary);
    border: 2px dashed var(--primary);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: var(--space-lg);
}

.btn-add-item:hover {
    background: var(--primary-light);
    border-style: solid;
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    margin-top: var(--space-xl);
    border-top: 1px solid var(--gray-300);
}

.final-actions {
    justify-content: space-between;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-800);
    border: 1px solid var(--gray-400);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(6, 214, 160, 0.3);
    font-size: 1rem;
    padding: 14px 32px;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(6, 214, 160, 0.4);
}

/* ============================================
   MODAL STYLES
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-height: 90vh;
    overflow: hidden;
    z-index: 1;
}

.preview-modal-content {
    width: 95%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
}

.image-modal-content {
    width: 90%;
    max-width: 480px;
}

.progress-modal-content {
    width: 90%;
    max-width: 400px;
    padding: var(--space-2xl);
    text-align: center;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--gray-300);
    flex-shrink: 0;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h2 i {
    color: var(--primary);
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.template-selector-modal {
    display: flex;
    align-items: center;
    gap: 8px;
}

.template-selector-modal label {
    font-size: 0.85rem;
    color: var(--gray-700);
    font-weight: 500;
}

.template-selector-modal select {
    padding: 6px 12px;
    border: 1.5px solid var(--gray-400);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 0.85rem;
    color: var(--gray-900);
    background: var(--white);
    cursor: pointer;
}

.close-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-200);
    border: none;
    border-radius: 50%;
    color: var(--gray-700);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.close-btn:hover {
    background: var(--danger);
    color: var(--white);
}

.modal-body {
    padding: var(--space-lg);
    overflow-y: auto;
    flex: 1;
}

.preview-body {
    background: var(--gray-300);
    padding: var(--space-lg);
}

.modal-footer {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--gray-300);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
    flex-shrink: 0;
}

/* CV Preview Container */
.cv-preview-container {
    background: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.cv-preview {
    font-family: var(--font-cv);
    padding: 40px;
    color: var(--dark);
    line-height: 1.6;
}

/* Export Panel */
.export-panel {
    background: var(--gray-200);
}

.export-options {
    width: 100%;
}

.export-group {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
}

.export-group > label {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
    white-space: nowrap;
}

.export-buttons {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.btn-export {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--white);
}

.btn-pdf { background: #dc3545; }
.btn-pdf:hover { background: #c82333; transform: translateY(-1px); }

.btn-word { background: #2b579a; }
.btn-word:hover { background: #1e3f6f; transform: translateY(-1px); }

.btn-image { background: #6f42c1; }
.btn-image:hover { background: #5a32a3; transform: translateY(-1px); }

.btn-print { background: var(--gray-700); }
.btn-print:hover { background: var(--gray-800); transform: translateY(-1px); }

/* Image Options */
.image-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.option-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--dark);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1.5px solid var(--gray-400);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.radio-label:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.radio-label span {
    font-size: 0.9rem;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--gray-400);
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}

/* Progress Modal */
.progress-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-300);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto var(--space-lg);
}

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

.progress-modal-content h3 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: var(--space-sm);
}

#progressStatus {
    color: var(--gray-700);
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: var(--gray-300);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-note {
    font-size: 0.8rem;
    color: var(--gray-600);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border-left: 4px solid var(--primary);
    animation: toastIn 0.3s ease;
    max-width: 400px;
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }

.toast.removing {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    padding: var(--space-3xl) 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.feature-card {
    text-align: center;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    background: var(--gray-200);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    font-size: 1.5rem;
    color: var(--white);
}

.feature-card:nth-child(1) .feature-icon { background: #dc3545; }
.feature-card:nth-child(2) .feature-icon { background: #2b579a; }
.feature-card:nth-child(3) .feature-icon { background: #6f42c1; }
.feature-card:nth-child(4) .feature-icon { background: var(--primary); }
.feature-card:nth-child(5) .feature-icon { background: var(--success); }
.feature-card:nth-child(6) .feature-icon { background: var(--info); }
.feature-card:nth-child(7) .feature-icon { background: var(--gray-800); }
.feature-card:nth-child(8) .feature-icon { background: var(--warning); color: var(--dark); }

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: var(--space-sm);
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--gray-700);
    line-height: 1.6;
}

/* ============================================
   SEO CONTENT SECTION
   ============================================ */
.seo-content-section {
    padding: var(--space-3xl) 0;
}

.seo-article {
    max-width: 900px;
    margin: 0 auto;
}

.seo-article h2,
.seo-article h3 {
    color: var(--dark);
    margin-bottom: var(--space-md);
}

.seo-article h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-xl);
}

.seo-article h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: var(--space-2xl);
}

.seo-article p {
    color: var(--gray-800);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.intro-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary);
    margin-bottom: var(--space-xl);
}

.template-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.template-info-card {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.template-info-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 8px;
}

.template-info-card h4 i {
    color: var(--primary);
}

.template-info-card p {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin: 0;
}

.export-options-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.export-info-item {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.export-info-item h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 8px;
}

.export-info-item h4 i {
    color: var(--primary);
}

.export-info-item p {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin: 0;
}

.steps-guide {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.step-guide-item {
    display: flex;
    gap: var(--space-md);
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.step-guide-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-guide-content h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.step-guide-content p {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin: 0;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.tip-card {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--success);
}

.tip-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tip-card h4 i {
    color: var(--success);
}

.tip-card p {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin: 0;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    padding: var(--space-3xl) 0;
    background: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: var(--space-2xl) auto 0;
}

.faq-item {
    margin-bottom: var(--space-sm);
    border: 1px solid var(--gray-400);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    background: var(--white);
    border: none;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    text-align: left;
    transition: background var(--transition-fast);
}

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

.faq-question i {
    color: var(--primary);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
    margin-left: var(--space-md);
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: var(--gray-200);
}

.faq-answer.active {
    max-height: 500px;
    padding: 0 var(--space-lg) var(--space-md);
}

.faq-answer p {
    color: var(--gray-800);
    line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--dark);
    color: var(--gray-400);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.footer-links a {
    display: block;
    color: var(--gray-500);
    font-size: 0.875rem;
    padding: 4px 0;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--space-lg);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.footer-note {
    margin-top: 4px;
    font-size: 0.75rem !important;
    color: var(--gray-600) !important;
}

/* ============================================
   CV TEMPLATE STYLES (for preview)
   ============================================ */

/* Modern Template */
.cv-modern .cv-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--modern-primary);
}

.cv-modern .cv-header-left { flex: 1; }
.cv-modern .cv-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--modern-primary);
    margin-bottom: 4px;
}
.cv-modern .cv-job-title {
    font-size: 1.1rem;
    color: var(--gray-700);
    font-weight: 500;
    margin-bottom: 12px;
}
.cv-modern .cv-contact-line {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    font-size: 0.85rem;
    color: var(--gray-800);
}
.cv-modern .cv-contact-line span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.cv-modern .cv-photo-wrap {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--modern-primary);
    margin-left: 20px;
    flex-shrink: 0;
}
.cv-modern .cv-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cv-modern .cv-body {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
}
.cv-modern .cv-sidebar { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}
.cv-modern .cv-main { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}
.cv-modern .cv-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--modern-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--modern-primary);
    padding-bottom: 4px;
    margin-bottom: 12px;
}
.cv-modern .cv-section-content {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--gray-800);
}
.cv-modern .cv-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.cv-modern .cv-skill-tag {
    background: var(--primary-light);
    color: var(--modern-primary);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}
.cv-modern .cv-item {
    margin-bottom: 14px;
}
.cv-modern .cv-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
}
.cv-modern .cv-item-title {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}
.cv-modern .cv-item-subtitle {
    color: var(--gray-700);
    font-size: 0.85rem;
}
.cv-modern .cv-item-date {
    font-size: 0.8rem;
    color: var(--gray-600);
    font-style: italic;
}
.cv-modern .cv-item-desc {
    font-size: 0.82rem;
    color: var(--gray-800);
    line-height: 1.6;
    margin-top: 4px;
}
.cv-modern .cv-lang-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 2px 0;
}
.cv-modern .cv-contact-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.82rem;
}
.cv-modern .cv-contact-block div {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cv-modern .cv-contact-block i {
    color: var(--modern-primary);
    width: 14px;
    text-align: center;
}
.cv-modern .cv-link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    word-break: break-all;
}
.cv-modern .cv-link-item i {
    color: var(--modern-primary);
    width: 14px;
    text-align: center;
}

/* Classic Template */
.cv-classic { font-family: var(--font-serif); }
.cv-classic .cv-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--classic-primary);
}
.cv-classic .cv-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--classic-primary);
    margin-bottom: 4px;
}
.cv-classic .cv-job-title {
    font-size: 1.05rem;
    color: var(--gray-700);
    font-style: italic;
    margin-bottom: 10px;
}
.cv-classic .cv-contact-line {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 0.8rem;
    color: var(--gray-700);
}
.cv-classic .cv-contact-line span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.cv-classic .cv-section {
    margin-bottom: 16px;
}
.cv-classic .cv-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--classic-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid var(--gray-500);
    padding-bottom: 4px;
    margin-bottom: 10px;
}
.cv-classic .cv-section-content {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--gray-900);
}
.cv-classic .cv-item {
    margin-bottom: 12px;
}
.cv-classic .cv-item-title {
    font-weight: 700;
    color: var(--dark);
    font-size: 0.9rem;
}
.cv-classic .cv-item-subtitle {
    font-style: italic;
    color: var(--gray-700);
}
.cv-classic .cv-item-date {
    font-size: 0.8rem;
    color: var(--gray-600);
}
.cv-classic .cv-item-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-top: 4px;
}
.cv-classic .cv-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cv-classic .cv-skill-tag {
    background: var(--classic-primary);
    color: var(--white);
    padding: 3px 12px;
    border-radius: 3px;
    font-size: 0.8rem;
}

/* Minimal Template */
.cv-minimal .cv-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-500);
}
.cv-minimal .cv-name {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--minimal-primary);
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.cv-minimal .cv-job-title {
    font-size: 1rem;
    color: var(--gray-700);
    font-weight: 400;
    margin-bottom: 10px;
}
.cv-minimal .cv-contact-line {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    font-size: 0.8rem;
    color: var(--gray-700);
}
.cv-minimal .cv-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.cv-minimal .cv-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}
.cv-minimal .cv-section-content {
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--gray-900);
}
.cv-minimal .cv-item {
    margin-bottom: 12px;
}
.cv-minimal .cv-item-title {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.88rem;
}
.cv-minimal .cv-item-subtitle {
    color: var(--gray-700);
    font-size: 0.82rem;
}
.cv-minimal .cv-item-date {
    font-size: 0.78rem;
    color: var(--gray-600);
}
.cv-minimal .cv-item-desc {
    font-size: 0.8rem;
    line-height: 1.6;
    margin-top: 4px;
}
.cv-minimal .cv-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.cv-minimal .cv-skill-tag {
    border: 1px solid var(--gray-500);
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 0.75rem;
    color: var(--gray-800);
}

/* Creative Template */
.cv-creative .cv-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, var(--creative-primary) 0%, #ad1457 100%);
    margin: -40px -40px 24px;
    padding: 30px 40px;
    color: var(--white);
}
.cv-creative .cv-photo-wrap {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.5);
    flex-shrink: 0;
}
.cv-creative .cv-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cv-creative .cv-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}
.cv-creative .cv-job-title {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 10px;
}
.cv-creative .cv-contact-line {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.85);
}
.cv-creative .cv-body {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
}
.cv-creative .cv-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--creative-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--creative-primary);
    padding-bottom: 4px;
    margin-bottom: 12px;
}
.cv-creative .cv-section-content {
    font-size: 0.85rem;
    line-height: 1.7;
}
.cv-creative .cv-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.cv-creative .cv-skill-tag {
    background: var(--creative-primary);
    color: var(--white);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
}
.cv-creative .cv-item { margin-bottom: 14px; }
.cv-creative .cv-item-title {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}
.cv-creative .cv-item-subtitle { color: var(--gray-700); font-size: 0.85rem; }
.cv-creative .cv-item-date { font-size: 0.8rem; color: var(--gray-600); font-style: italic; }
.cv-creative .cv-item-desc { font-size: 0.82rem; line-height: 1.6; margin-top: 4px; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cv-builder-wrapper {
        grid-template-columns: 240px 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .section-heading { font-size: 1.75rem; }
    
    .main-nav { display: none; }
    .mobile-menu-toggle { display: flex; }
    
    .template-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .cv-builder-wrapper {
        grid-template-columns: 1fr;
    }
    
    .builder-sidebar {
        position: static;
        order: -1;
    }
    
    .progress-steps {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .progress-step {
        flex: 1 1 45%;
    }
    
    .mini-preview-panel {
        display: none;
    }
    
    .form-row.two-col {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .template-info-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand p {
        max-width: 100%;
    }
    
    .export-group {
        flex-direction: column;
        align-items: stretch !important;
    }
    
    .export-buttons {
        justify-content: center;
    }
    
    .cv-modern .cv-body,
    .cv-creative .cv-body {
        grid-template-columns: 1fr;
    }
    
    .cv-minimal .cv-body {
        grid-template-columns: 1fr;
    }
    
    .step-actions {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .step-actions .btn {
        width: 100%;
    }
    
    .preview-modal-content {
        width: 100%;
        height: 100%;
        max-width: none;
        border-radius: 0;
    }
}

/* ============================================
   MODAL RESPONSIVE FIXES
   ============================================ */

@media (max-width: 768px) {
    .modal {
        padding: 10px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .preview-modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 95vh;
        border-radius: var(--radius-md);
    }
    
    .modal-header {
        padding: var(--space-sm) var(--space-md);
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .modal-header h2 {
        font-size: 1rem;
    }
    
    .modal-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .template-selector-modal {
        flex: 1;
    }
    
    .template-selector-modal select {
        width: 100%;
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    .modal-body {
        padding: var(--space-sm);
    }
    
    .preview-body {
        padding: var(--space-sm);
    }
    
    .modal-footer {
        padding: var(--space-sm) var(--space-md);
    }
    
    .export-group {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .export-group > label {
        font-size: 0.8rem;
    }
    
    .export-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .btn-export {
        padding: 8px 12px;
        font-size: 0.75rem;
        justify-content: center;
        width: 100%;
    }
    
    .cv-preview {
        padding: 20px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 5px;
        padding-top: 10px;
    }
    
    .preview-modal-content {
        max-height: 98vh;
        border-radius: var(--radius-sm);
    }
    
    .modal-header h2 {
        font-size: 0.9rem;
    }
    
    .modal-header h2 i {
        font-size: 0.9rem;
    }
    
    .close-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .export-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }
    
    .btn-export {
        padding: 6px 8px;
        font-size: 0.7rem;
        gap: 4px;
    }
    
    .btn-export i {
        font-size: 0.8rem;
    }
    
    .cv-preview {
        padding: 12px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    :root { --container-padding: 1rem; }
    
    .hero-title { font-size: 1.6rem; }
    .hero-section { padding: var(--space-xl) 0; }
    
    .form-step { padding: var(--space-md); }
    
    .step-header h2 { font-size: 1.25rem; }
    
    .badge { font-size: 0.8rem; padding: 4px 10px; }
    
    .export-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-export { width: 100%; justify-content: center; }
    
    .cv-preview { padding: 20px; }
    
    .cv-modern .cv-name,
    .cv-classic .cv-name,
    .cv-minimal .cv-name,
    .cv-creative .cv-name {
        font-size: 1.4rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-header,
    .hero-section,
    .template-section,
    .features-section,
    .seo-content-section,
    .faq-section,
    .site-footer,
    .builder-sidebar,
    .step-actions,
    .btn-add-item,
    .modal,
    .toast-container {
        display: none !important;
    }
    
    .cv-builder-section { padding: 0; }
    .builder-main { box-shadow: none; }
    .form-step { display: none !important; }
    .form-step.active { display: block !important; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Smooth scroll for the whole page */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-200);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-600);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-700);
}
