/* Modern CSS Reset and Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    /* Modern Color Palette */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    
    /* Neutral Colors */
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #0f172a;
    
    /* Status Colors */
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    
    /* Borders */
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background:
        radial-gradient(900px 600px at 10% 0%, rgba(99, 102, 241, 0.14) 0%, transparent 55%),
        radial-gradient(900px 600px at 90% 10%, rgba(236, 72, 153, 0.12) 0%, transparent 55%),
        radial-gradient(800px 500px at 50% 100%, rgba(139, 92, 246, 0.10) 0%, transparent 55%),
        var(--bg-secondary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Better accessibility focus rings (keyboard only) */
:where(a, button, input, select, textarea, [role="button"], [tabindex]):focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
    border-radius: 12px;
}

::selection {
    background: rgba(99, 102, 241, 0.25);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Modern Header */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-base);
}

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

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-icon-img {
    width: 32px;
    height: 32px;
    margin-right: 8px;
    vertical-align: middle;
    display: inline-block;
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
}

.user-auth-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.auth-btn {
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    display: inline-block;
}

.auth-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.auth-btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.auth-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.error-message {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    color: var(--error);
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    margin-top: 0.75rem;
    border: 1px solid rgba(239, 68, 68, 0.3);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-message::before {
    content: '⚠️';
    font-size: 1rem;
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-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;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
}

/* Modern Hero Section */
.hero-modern {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 4rem 0;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-full);
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.hero-title-modern {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle-modern {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.cta-primary:active {
    transform: translateY(0);
}

.cta-primary.large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: white;
    color: var(--primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    border: 2px solid var(--primary);
    transition: all var(--transition-base);
}

.cta-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.cta-secondary:active {
    transform: translateY(0);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title-modern {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle-modern {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Page Header */
.page-header-modern {
    background: var(--gradient-primary);
    padding: 4rem 0;
    text-align: center;
    color: white;
}

.page-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.page-title-modern {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.page-subtitle-modern {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* Features Section */
.features-modern {
    padding: 6rem 0;
    background: var(--bg-primary);
}

/* Landing Page: New sections added on index.html */
.content-quality-modern,
.template-categories-modern,
.resume-guide-modern,
.faq-modern {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.content-quality-modern {
    background: var(--bg-secondary);
}

.template-categories-modern {
    background: var(--bg-primary);
}

.resume-guide-modern {
    background: var(--bg-secondary);
}

.faq-modern {
    background: var(--bg-primary);
}

.content-quality-modern::before,
.template-categories-modern::before,
.resume-guide-modern::before,
.faq-modern::before {
    content: '';
    position: absolute;
    inset: -2px 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.22), transparent);
}

.content-quality-modern::after,
.template-categories-modern::after,
.resume-guide-modern::after,
.faq-modern::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(900px 450px at 15% 20%, rgba(99, 102, 241, 0.10) 0%, transparent 55%),
        radial-gradient(900px 450px at 85% 30%, rgba(236, 72, 153, 0.08) 0%, transparent 55%);
    opacity: 0.9;
}

.content-quality-modern .container,
.template-categories-modern .container,
.resume-guide-modern .container,
.faq-modern .container {
    position: relative;
    z-index: 1;
}

.features-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card-modern {
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.feature-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.feature-card-modern:active {
    transform: translateY(-2px);
}

.feature-card-modern:hover::before {
    transform: scaleX(1);
}

.feature-icon-modern {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.feature-card-modern h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card-modern p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* How It Works */
.how-it-works-modern {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.steps-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    position: relative;
}

.step-modern {
    text-align: center;
    position: relative;
}

.step-number-modern {
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.2;
}

.step-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* CTA Section */
.cta-section-modern {
    padding: 6rem 0;
    background: var(--gradient-primary);
    text-align: center;
    color: white;
}

.cta-content-modern h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content-modern p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Templates Page */
.templates-page-section {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.templates-filter {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--text-secondary);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

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

.template-card-modern {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 2px solid var(--border);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.template-card-modern:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary);
}

.template-card-modern.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), var(--shadow-xl);
}

.template-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.template-card-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.template-card-modern:hover img {
    transform: scale(1.1);
}

.template-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
    backdrop-filter: blur(2px);
}

.template-card-modern:hover .template-overlay {
    opacity: 1;
}

.template-use-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    transform: translateY(10px);
}

.template-card-modern:hover .template-use-btn {
    transform: translateY(0);
}

.template-use-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.template-use-btn svg {
    transition: transform var(--transition-base);
}

.template-use-btn:hover svg {
    transform: translateX(3px);
}

.template-card-info-modern {
    padding: 1.75rem;
    text-align: center;
    background: var(--bg-primary);
    position: relative;
}

.template-card-info-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.template-card-modern:hover .template-card-info-modern::before {
    transform: scaleX(1);
}

.template-card-info-modern h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.template-card-info-modern p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Builder Page */
.builder-page-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

/* Resume Strength Indicator */
.resume-strength-container {
    max-width: 1000px;
    margin: 0 auto 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.resume-strength-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.resume-strength-header svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.resume-strength-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.resume-strength-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    transition: color var(--transition-base);
}

.resume-strength-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.resume-strength-bar {
    flex: 1;
    height: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.resume-strength-fill {
    height: 100%;
    width: 0%;
    background: var(--primary);
    border-radius: var(--radius-full);
    transition: all 0.5s ease;
    position: relative;
}

.resume-strength-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.resume-strength-percentage {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 60px;
    text-align: right;
    transition: color var(--transition-base);
}

/* Developer Mode Toggle */
.developer-mode-container {
    max-width: 1000px;
    margin: 0 auto 2rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.developer-mode-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    user-select: none;
}

.developer-mode-toggle input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 26px;
    background: var(--border);
    border-radius: var(--radius-full);
    transition: background var(--transition-base);
}

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

.developer-mode-toggle input[type="checkbox"]:checked + .toggle-slider {
    background: var(--gradient-primary);
}

.developer-mode-toggle input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.toggle-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.dev-fill-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.dev-fill-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Date Range Picker */
.date-range-picker {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.date-input {
    flex: 1;
    min-width: 140px;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all var(--transition-base);
    background: var(--bg-primary);
}

.date-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.date-input:disabled {
    background: var(--bg-tertiary);
    opacity: 0.6;
    cursor: not-allowed;
}

.date-separator {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.present-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 2px solid var(--border);
    transition: all var(--transition-base);
}

.present-checkbox:hover {
    border-color: var(--primary);
    background: var(--bg-tertiary);
}

.present-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.present-checkbox span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.present-checkbox input[type="checkbox"]:checked ~ span {
    color: var(--primary);
    font-weight: 600;
}

.period-display {
    display: none;
}

/* Step Progress Container */
.step-progress-container {
    max-width: 1000px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}

.step-progress-bar {
    height: 4px;
    background: var(--border);
    border-radius: var(--radius-full);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.step-progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
    width: 14.28%; /* 1/7 steps */
}

.step-indicators {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    position: relative;
    cursor: pointer;
    transition: all var(--transition-base);
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--border);
    z-index: 0;
    transition: background var(--transition-base);
}

.step-indicator:first-child::before {
    display: none;
}

.step-indicator.active ~ .step-indicator::before,
.step-indicator.completed::before {
    background: var(--primary);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    transition: all var(--transition-base);
}

.step-indicator.active .step-number {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.step-indicator.completed .step-number {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.step-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-base);
}

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

.step-indicator.completed .step-label {
    color: var(--success);
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

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

.step-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
}

.step-header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.step-header-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.step-header-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-header-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0;
}

.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
}

.step-btn-prev,
.step-btn-next {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.step-btn-prev {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.step-btn-prev:hover {
    background: var(--border);
    transform: translateX(-3px);
}

.step-btn-next {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.step-btn-next:hover {
    transform: translateX(3px);
    box-shadow: var(--shadow-lg);
}

.resume-form-modern {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.form-section-modern {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.form-section-modern:last-of-type {
    border-bottom: none;
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.form-section-icon {
    font-size: 2rem;
}

.form-section-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-grid-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group-modern {
    display: flex;
    flex-direction: column;
}

.form-group-modern.full-width {
    grid-column: 1 / -1;
}

.form-group-modern label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group-modern input,
.form-group-modern textarea,
.form-group-modern select {
    padding: 0.875rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-base);
    background: var(--bg-primary);
}

.form-group-modern input:focus,
.form-group-modern textarea:focus,
.form-group-modern select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group-modern input.error,
.form-group-modern textarea.error,
.form-group-modern select.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.form-group-modern input[type="color"] {
    height: 50px;
    cursor: pointer;
    padding: 0.25rem;
}

.form-group-modern textarea {
    resize: vertical;
    min-height: 100px;
}

/* Dynamic Items */
.education-item-modern,
.experience-item-modern,
.skill-item-modern,
.project-item-modern {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    border: 2px solid var(--border);
    position: relative;
}

.add-btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.add-btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.remove-btn-modern {
    background: var(--error);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 1rem;
    transition: all var(--transition-base);
}

.remove-btn-modern:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Profile Management */
.profile-management-modern {
    margin-top: 1rem;
}

/* Profile Management at First Step - Quick Access */
.profile-management-first-step {
    margin-top: 0;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.profile-quick-access-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
    flex-wrap: wrap;
}

.profile-quick-access-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 250px;
}

.profile-quick-access-header svg {
    color: var(--primary);
    flex-shrink: 0;
}

.profile-quick-access-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.profile-quick-access-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.load-profile-primary {
    background: var(--gradient-primary) !important;
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    box-shadow: var(--shadow-lg) !important;
    min-width: 200px;
}

.load-profile-primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4) !important;
}

.profile-save-section-modern {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Profile Management at Last Step */
.profile-management-last-step {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
}

/* Auto-save Indicator */
.auto-save-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    color: var(--success);
}

.auto-save-indicator svg {
    flex-shrink: 0;
    color: var(--success);
}

.auto-save-indicator strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.auto-save-indicator span {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Auto-save Notification */
.auto-save-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 250px;
}

.auto-save-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.auto-save-notification svg {
    flex-shrink: 0;
}

.auto-save-notification.auto-save-silent {
    background: var(--primary);
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    min-width: 180px;
}

.profile-actions-modern {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.profile-name-input-modern {
    flex: 1;
    min-width: 200px;
    padding: 0.875rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.save-profile-btn-modern,
.load-profile-btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 0.95rem;
}

.save-profile-btn-modern {
    background: var(--success);
    color: white;
}

.save-profile-btn-modern:hover {
    background: #059669;
    transform: translateY(-2px);
}

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

.load-profile-btn-modern:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.saved-profiles-list-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.profile-card-modern {
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-base);
}

.profile-card-modern:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.profile-card-name {
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.profile-card-actions {
    display: flex;
    gap: 0.5rem;
}

.profile-card-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem 0.5rem;
    transition: transform var(--transition-base);
}

.profile-card-btn:hover {
    transform: scale(1.2);
}

/* Template Selector */
.template-selector-modern {
    margin-top: 1rem;
}

.template-selector-modern select {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.template-preview-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    max-height: 600px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    position: relative;
    scroll-behavior: smooth;
}

.template-preview-item-modern {
    cursor: pointer;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--border);
    transition: all var(--transition-base);
}

.template-preview-item-modern:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.template-preview-item-modern.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.template-preview-item-modern img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Form Actions */
.form-actions-modern {
    text-align: center;
    margin-top: 3rem;
}

.submit-btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1.25rem 3rem;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.submit-btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Image Preview */
.image-preview-modern {
    margin-top: 1rem;
}

.image-preview-modern img {
    max-width: 200px;
    max-height: 200px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border);
    object-fit: cover;
}

/* Modern Modal */
.modal-modern {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: auto;
}

.modal-modern.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
}

.modal-header-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
}

.modal-header-modern h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

/* Resume Preview Modal - Simple Design */
#resumeModal .modal-content-modern {
    max-width: 95%;
    max-height: 95vh;
}

#resumeModal .modal-header-modern {
    padding: 1.5rem 2rem;
    background: var(--bg-primary);
    border-bottom: 2px solid var(--border);
}

#resumeModal .modal-header-modern h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: var(--text-primary);
}

#resumeModal .modal-body-modern {
    padding: 1rem;
    background: #f5f5f5;
    overflow-y: auto;
}

#resumeModal .modal-footer-modern {
    padding: 1rem 2rem;
    background: var(--bg-primary);
    border-top: 2px solid var(--border);
    justify-content: space-between;
}

.close-btn-modern {
    background: rgba(99, 102, 241, 0.1);
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition-base);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    width: 36px;
    height: 36px;
}

.close-btn-modern:hover {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
    transform: rotate(90deg);
}

.modal-body-modern {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

.modal-body-modern .form-group-modern {
    margin-bottom: 1.5rem;
}

.modal-body-modern .form-group-modern:last-of-type {
    margin-bottom: 0;
}

.modal-body-modern .form-group-modern label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
}

.modal-body-modern .form-group-modern input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-base);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.modal-body-modern .form-group-modern input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: white;
}

.modal-body-modern .form-group-modern input::placeholder {
    color: var(--text-light);
}

.modal-body-modern .form-group-modern small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Social Login Section */
.social-login-section {
    margin-bottom: 1.5rem;
}

.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn-google::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.btn-google:hover::before {
    left: 100%;
}

.btn-google:hover {
    border-color: #4285F4;
    box-shadow: 0 4px 6px -1px rgba(66, 133, 244, 0.2), 0 2px 4px -2px rgba(66, 133, 244, 0.1);
    transform: translateY(-2px);
}

.btn-google:active {
    transform: translateY(0);
}

.btn-google svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.btn-google span {
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Divider */
.divider-modern {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.divider-modern::before,
.divider-modern::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.divider-modern span {
    padding: 0 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--bg-primary);
    position: relative;
    z-index: 1;
}

/* Full Page Auth Overlay Design */
.auth-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 3000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow-y: auto;
}

.auth-overlay.active {
    display: block;
    animation: overlayFadeIn 0.3s ease;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.auth-overlay-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.auth-overlay-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3001;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.auth-overlay-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
    border-color: rgba(255, 255, 255, 0.4);
}

.auth-overlay-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1100px;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 600px;
}

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

.auth-overlay-left {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-overlay-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.auth-overlay-brand {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
}

.auth-brand-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.auth-brand-icon img {
    width: 64px;
    height: 64px;
    display: block;
    margin: 0 auto;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.auth-overlay-brand h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.auth-overlay-brand p {
    font-size: 1.125rem;
    opacity: 0.95;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    opacity: 0.95;
}

.auth-feature-item svg {
    flex-shrink: 0;
    color: white;
}

.auth-overlay-right {
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    overflow-y: auto;
}

.auth-form-container {
    width: 100%;
    max-width: 450px;
}

.auth-form-container h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.auth-form-container .social-login-section {
    margin-bottom: 1.5rem;
}

.auth-form-container .divider-modern {
    margin: 1.5rem 0;
}

.auth-form-container .form-group-modern {
    margin-bottom: 1.5rem;
}

.auth-form-container .form-group-modern label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.auth-form-container .form-group-modern input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9fafb;
    font-family: inherit;
}

.auth-form-container .form-group-modern input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.auth-form-container .form-group-modern small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.auth-submit-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-switch-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.auth-switch-link p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-switch-link a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-switch-link a:hover {
    color: #764ba2;
}

/* Spinning animation for loading states */
.spinning {
    animation: spin 1s linear infinite;
}

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

/* Alternative Auth Modal Design - Keep for other modals */
.modal-auth-alt .modal-content-modern {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: none;
    overflow: hidden;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-auth-alt .modal-header-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 2.5rem;
    border-bottom: none;
    text-align: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.modal-auth-alt .modal-header-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

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

.modal-auth-alt .modal-header-modern h2 {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
    background: none;
    -webkit-text-fill-color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-auth-alt .close-btn-modern {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}

.modal-auth-alt .close-btn-modern:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: rotate(90deg);
}

.modal-auth-alt .modal-body-modern {
    padding: 2rem 2.5rem;
    background: white;
    overflow: visible;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: none;
}

.modal-auth-alt .social-login-section {
    margin-bottom: 1.5rem;
}

.modal-auth-alt .btn-google {
    border: 1.5px solid #e5e7eb;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.modal-auth-alt .btn-google:hover {
    border-color: #4285F4;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.15);
    transform: translateY(-1px);
}

.modal-auth-alt .divider-modern {
    margin: 1.5rem 0;
}

.modal-auth-alt .divider-modern::before,
.modal-auth-alt .divider-modern::after {
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
}

.modal-auth-alt .form-group-modern {
    margin-bottom: 1.25rem;
}

.modal-auth-alt .form-group-modern:last-of-type {
    margin-bottom: 0;
}

.modal-auth-alt .form-group-modern label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.modal-auth-alt .form-group-modern small {
    font-size: 0.8125rem;
    margin-top: 0.375rem;
    display: block;
}

.modal-auth-alt .form-group-modern input {
    padding: 0.875rem 1.125rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.modal-auth-alt .form-group-modern input:focus {
    background: white;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.modal-auth-alt .error-message {
    border-radius: 10px;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.modal-auth-alt .modal-footer-modern {
    padding: 1.5rem 2.5rem 2rem 2.5rem;
    background: white;
    border-top: 1px solid #f3f4f6;
    flex-direction: column;
    gap: 0.875rem;
    flex-shrink: 0;
}

.modal-auth-alt .modal-footer-modern .btn-modern {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 10px;
    font-weight: 600;
}

.modal-auth-alt .modal-footer-modern .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.modal-auth-alt .modal-footer-modern .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.modal-auth-alt .modal-footer-modern .btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    box-shadow: none;
}

.modal-auth-alt .modal-footer-modern .btn-secondary:hover {
    background: #f3f4f6;
    border-color: #764ba2;
    color: #764ba2;
    transform: translateY(-1px);
}

.modal-footer-modern {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1.5rem 2rem 2rem 2rem;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.5) 0%, rgba(241, 245, 249, 0.5) 100%);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    flex-wrap: wrap;
}

/* Modal Button Styles */
.modal-footer-modern .btn-modern {
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.modal-footer-modern .btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3), 0 2px 4px -2px rgba(99, 102, 241, 0.2);
}

.modal-footer-modern .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4), 0 4px 6px -4px rgba(99, 102, 241, 0.3);
}

.modal-footer-modern .btn-primary:active {
    transform: translateY(0);
}

.modal-footer-modern .btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.modal-footer-modern .btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.download-btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--success);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.download-btn-modern:hover {
    background: #059669;
    transform: translateY(-2px);
}

.close-modal-btn-modern {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.close-modal-btn-modern:hover {
    background: var(--border);
}

/* Loading Overlay */
.loading-overlay-modern {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(4px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.loading-overlay-modern.active {
    display: flex;
}

.spinner-modern {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Load Profile List */
.load-profile-list-modern {
    display: grid;
    gap: 1rem;
}

.load-profile-item-modern {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.load-profile-item-modern:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
    transform: translateX(5px);
}

.load-profile-item-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-weight: 600;
}

.load-profile-item-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* About Section */
.about-section-modern {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.about-content-modern {
    max-width: 1000px;
    margin: 0 auto;
}

.about-text {
    margin-bottom: 3rem;
}

.about-text h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.about-feature-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.about-feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-feature-item h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.about-feature-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* FAQ Section */
.faq-section-modern {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.faq-container-modern {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item-modern {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    border: 2px solid var(--border);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item-modern:hover {
    border-color: var(--primary);
}

.faq-item-modern.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.faq-question-modern {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition-base);
}

.faq-question-modern:hover {
    background: var(--bg-secondary);
}

.faq-question-modern h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.faq-icon-modern {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary);
    transition: transform var(--transition-base);
    margin-left: 1rem;
}

.faq-item-modern.active .faq-icon-modern {
    transform: rotate(45deg);
}

.faq-answer-modern {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s;
    padding: 0 1.5rem;
}

.faq-item-modern.active .faq-answer-modern {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer-modern p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Footer */
.footer-modern {
    background: var(--bg-dark);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section-modern h3,
.footer-section-modern h4 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1rem;
    color: white;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-section-modern p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-section-modern ul {
    list-style: none;
    padding: 0;
}

.footer-section-modern ul li {
    margin-bottom: 0.75rem;
}

.footer-section-modern ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-section-modern ul li a:hover {
    color: white;
}

.footer-bottom-modern {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Resume Preview - Simple Design */
#resumePreview {
    width: 100%;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    min-height: 500px;
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    position: relative;
    border: 1px solid #ddd;
}

#resumePreview > div {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0;
}

#resumePreview iframe {
    width: 100%;
    max-width: 210mm;
    height: 100%;
    min-height: 500px;
    border: none;
    background: white;
    box-shadow: none;
}

.floating-download-btn {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 1000 !important;
    background: var(--gradient-primary) !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    transition: all 0.3s ease !important;
    font-size: 0.95rem !important;
}

.floating-download-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3) !important;
}

.floating-download-btn svg {
    flex-shrink: 0;
}

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }
    
    #resumePreview,
    #resumePreview * {
        visibility: visible;
    }
    
    #resumePreview {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
}

/* Reduce motion (accessibility + smoother feel on low-end devices) */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .user-auth-section {
        gap: 0.5rem;
    }
    
    .user-name {
        display: none;
    }
    
    .auth-btn {
        padding: 0.4rem 0.9rem;
        font-size: 0.85rem;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border);
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .hero-title-modern {
        font-size: 2.5rem;
    }
    
    .form-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .template-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .resume-form-modern {
        padding: 1.5rem;
    }
    
    .section-title-modern {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .modal-content-modern {
        max-height: 95vh;
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .modal-header-modern {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }
    
    .modal-header-modern h2 {
        font-size: 1.5rem;
    }
    
    .modal-body-modern {
        padding: 1.5rem;
    }
    
    .modal-footer-modern {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
        flex-direction: column;
    }
    
    .modal-footer-modern .btn-modern {
        width: 100%;
        justify-content: center;
    }
    
    .btn-google {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .divider-modern {
        margin: 1.25rem 0;
    }
    
    .auth-overlay-container {
        padding: 1rem;
    }
    
    .auth-overlay-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
    
    .auth-overlay-content {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .auth-overlay-left {
        padding: 2.5rem 2rem;
        display: none;
    }
    
    .auth-overlay-right {
        padding: 2rem 1.5rem;
    }
    
    .auth-form-container h2 {
        font-size: 1.75rem;
    }
    
    .auth-form-container .form-group-modern {
        margin-bottom: 1.25rem;
    }
    
    .modal-auth-alt .modal-content-modern {
        max-width: 95%;
        width: 95%;
    }
    
    .modal-auth-alt .modal-header-modern {
        padding: 1.5rem 1.25rem;
    }
    
    .modal-auth-alt .modal-header-modern h2 {
        font-size: 1.375rem;
    }
    
    .modal-auth-alt .modal-body-modern {
        padding: 1.5rem 1.25rem;
    }
    
    .modal-auth-alt .modal-footer-modern {
        padding: 1.25rem 1.25rem 1.5rem 1.25rem;
    }
    
    .modal-auth-alt .form-group-modern {
        margin-bottom: 1rem;
    }
    
    .modal-auth-alt .social-login-section {
        margin-bottom: 1.25rem;
    }
    
    .modal-auth-alt .divider-modern {
        margin: 1.25rem 0;
    }
    
    .features-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .steps-modern {
        grid-template-columns: 1fr;
    }
    
    .footer-content-modern {
        grid-template-columns: 1fr;
    }
    
    .profile-actions-modern {
        flex-direction: column;
    }
    
    .profile-name-input-modern {
        width: 100%;
    }
    
    .profile-quick-access-modern {
        flex-direction: column;
        align-items: stretch;
    }
    
    .profile-quick-access-header {
        min-width: auto;
    }
    
    .load-profile-primary {
        width: 100%;
        min-width: auto;
    }
    
    .profile-save-section-modern {
        flex-direction: column;
    }
    
    .profile-save-section-modern .profile-name-input-modern {
        width: 100%;
    }
    
    .profile-save-section-modern .save-profile-btn-modern {
        width: 100%;
    }
    
    .saved-profiles-list-modern {
        grid-template-columns: 1fr;
    }
    
    .step-indicators {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .step-indicator {
        flex: 0 0 calc(50% - 0.5rem);
    }
    
    .step-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .step-header-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .step-header-content h2 {
        font-size: 1.5rem;
    }
    
    .step-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-btn-prev,
    .step-btn-next {
        width: 100%;
        justify-content: center;
    }
    
    .resume-strength-container {
        padding: 1rem;
    }
    
    .resume-strength-header {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .resume-strength-progress {
        flex-direction: column;
        align-items: stretch;
    }
    
    .resume-strength-percentage {
        text-align: center;
        min-width: auto;
    }
    
    .developer-mode-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .date-range-picker {
        flex-direction: column;
        align-items: stretch;
    }
    
    .date-input {
        width: 100%;
    }
    
    .date-separator {
        display: none;
    }
    
    .present-checkbox {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-modern {
        padding: 2rem 0;
        min-height: auto;
    }
    
    .hero-title-modern {
        font-size: 2rem;
    }
    
    .template-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-primary,
    .cta-secondary {
        width: 100%;
        justify-content: center;
    }
}
