/* ProCvLab - Main Application Styles */

:root {
    --pcv-primary: #0ea5e9;
    --pcv-primary-dark: #0284c7;
    --pcv-primary-deeper: #0369a1;
    --pcv-accent: #10b981;
    --pcv-accent-dark: #059669;
    --pcv-dark: #0f172a;
    --pcv-dark-mid: #1e293b;
    --pcv-secondary: #64748b;
    --pcv-success: #10b981;
    --pcv-warning: #f59e0b;
    --pcv-danger: #dc2626;
    --pcv-cta: #f97316;
    --pcv-cta-dark: #ea580c;
    --pcv-light: #f8fafc;
    --pcv-gradient: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%);
    --pcv-gradient-dark: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
}

body {
    font-family: 'Sora', sans-serif;
    background-color: var(--pcv-light);
    color: #334155;
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar-glass {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 0.85rem 0;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.navbar-glass.navbar-scrolled {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 0.6rem 0;
}

/* Spacer to offset fixed navbar */
body { padding-top: 72px; }

/* Logo: SVG icon + gradient text */
.navbar-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none !important;
    flex-shrink: 0;
    border: none;
    outline: none;
}
.navbar-brand-logo:hover,
.navbar-brand-logo:focus,
.navbar-brand-logo:active {
    text-decoration: none !important;
}
.navbar-brand-logo .brand-svg {
    flex-shrink: 0;
    display: block;
}
.navbar-brand-logo .brand-text {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #0ea5e9, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none !important;
}
.navbar-brand-logo:hover .brand-text {
    background: linear-gradient(135deg, #38bdf8, #34d399);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Center nav links */
.nav-center {
    gap: 0.25rem;
}
.navbar-glass .nav-link {
    color: #334155;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: color 0.2s;
    white-space: nowrap;
}
.navbar-glass .nav-link:hover,
.navbar-glass .nav-link:focus {
    color: var(--pcv-primary);
}

/* Right nav section spacing */
.nav-right {
    gap: 0.4rem;
}

/* Language pill button */
.lang-pill {
    background: #f8fafc !important;
    color: #1e293b !important;
    border-radius: 50px !important;
    padding: 0.35rem 0.9rem !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    border: 1px solid #e2e8f0 !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    line-height: 1.4;
}
.lang-pill:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: #f1f5f9 !important;
}
.lang-pill::after {
    /* Bootstrap dropdown caret color */
    border-top-color: #64748b !important;
}

/* Language dropdown menu */
.lang-dropdown .dropdown-menu {
    min-width: 170px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 0.4rem;
    margin-top: 0.4rem !important;
}
.lang-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: background 0.15s;
}
.lang-dropdown .dropdown-item:hover {
    background: #f1f5f9;
}
.lang-dropdown .dropdown-item.active {
    background: var(--pcv-primary);
    color: #fff;
}
.lang-dropdown .fi {
    border-radius: 2px;
    box-shadow: 0 0 2px rgba(0,0,0,0.15);
}

/* User dropdown avatar */
.user-avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--pcv-gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    line-height: 1;
}
.user-dropdown .dropdown-menu {
    min-width: 200px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 0.4rem;
}
.user-dropdown .dropdown-item {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.15s;
}
.user-dropdown .dropdown-item:hover { background: #f1f5f9; }

/* Mobile navbar adjustments */
@media (max-width: 991.98px) {
    .nav-center { margin-top: 0.75rem; margin-bottom: 0.5rem; }
    .nav-right {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid #e2e8f0;
    }
}


/* ==========================================
   HERO SECTION - Light BG, Split Layout
   ========================================== */
.hero-section {
    background: #fff;
    color: var(--pcv-dark);
    padding: 3rem 0 4rem;
    position: relative;
    overflow: hidden;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, rgba(14,165,233,0.08), rgba(16,185,129,0.08));
    color: var(--pcv-primary-dark);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(14,165,233,0.15);
}
.hero-badge i { color: var(--pcv-primary); }

/* Title */
.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.12;
    color: var(--pcv-dark);
    margin-bottom: 1.25rem;
    max-width: 540px;
}

/* Subtitle */
.hero-subtitle {
    font-size: 1.08rem;
    color: var(--pcv-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    max-width: 460px;
}

/* Feature checkmarks */
.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}
.hero-features span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
    color: #475569;
    font-weight: 500;
}
.hero-features .bi-check-circle-fill {
    color: var(--pcv-accent);
    font-size: 1rem;
}

/* Hero Buttons */
.btn-hero-primary {
    background: var(--pcv-gradient);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.85rem 2.2rem;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}
.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.35);
    color: #fff;
}
.btn-hero-secondary {
    background: #fff;
    color: var(--pcv-dark);
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    padding: 0.85rem 2.2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}
.btn-hero-secondary:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    color: var(--pcv-dark);
}

/* AI CTA Button - Glow Effect */
.btn-hero-ai {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 50%, #f5f0ff 100%);
    color: #6c3fb5;
    border: 1.5px solid #c4b5fd;
    border-radius: 50px;
    padding: 0.85rem 2.2rem;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.20), 0 0 24px rgba(139, 92, 246, 0.08);
    animation: ai-glow-pulse 2.5s ease-in-out infinite;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-hero-ai:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.35), 0 4px 20px rgba(139, 92, 246, 0.15);
    color: #5b2ea8;
    border-color: #a78bfa;
}
.btn-hero-ai .bi-robot {
    font-size: 1.15em;
}
@keyframes ai-glow-pulse {
    0%, 100% { box-shadow: 0 0 12px rgba(139, 92, 246, 0.20), 0 0 24px rgba(139, 92, 246, 0.08); }
    50% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.35), 0 0 40px rgba(139, 92, 246, 0.12); }
}

/* ==========================================
   HERO VISUAL - Right Side
   ========================================== */
.hero-visual {
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Top feature chips row */
.hero-top-icons {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 3;
}
.hero-icon-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    white-space: nowrap;
}
.hero-icon-chip i { color: var(--pcv-primary); font-size: 0.85rem; }

/* Dashed ring decoration */
.hero-dashed-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 360px;
    height: 360px;
    border: 2px dashed rgba(14,165,233,0.15);
    border-radius: 50%;
    pointer-events: none;
}

/* Blob decorations */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.hero-blob-1 {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, rgba(14,165,233,0.12), rgba(20,184,166,0.08));
    top: 15%;
    right: 0;
    animation: blobFloat 6s ease-in-out infinite;
}
.hero-blob-2 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(14,165,233,0.06));
    bottom: 10%;
    left: 5%;
    animation: blobFloat 8s ease-in-out infinite reverse;
}
@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, -15px); }
}

/* Central CV Card */
.hero-cv-card {
    width: 260px;
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
    position: relative;
    z-index: 2;
}
.hero-cv-profile {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}
.hero-cv-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--pcv-gradient);
    flex-shrink: 0;
}
.hero-cv-name {
    width: 80px;
    height: 10px;
    border-radius: 5px;
    background: var(--pcv-dark);
    margin-bottom: 5px;
}
.hero-cv-role {
    width: 55px;
    height: 7px;
    border-radius: 4px;
    background: var(--pcv-primary);
    opacity: 0.5;
}
.hero-cv-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0.65rem 0;
}
.hero-cv-line {
    height: 7px;
    border-radius: 4px;
    background: #e2e8f0;
    margin-bottom: 6px;
}
.hero-cv-line.w-80 { width: 80%; }
.hero-cv-line.w-65 { width: 65%; }
.hero-cv-line.w-50 { width: 50%; }
.hero-cv-line.w-40 { width: 40%; background: var(--pcv-primary); opacity: 0.6; }
.hero-cv-line.w-35 { width: 35%; background: var(--pcv-primary); opacity: 0.5; }
.hero-cv-skill {
    height: 5px;
    background: #f1f5f9;
    border-radius: 3px;
    margin-bottom: 5px;
    overflow: hidden;
}
.hero-cv-skill-fill {
    height: 100%;
    border-radius: 3px;
}
.sf-90 { width: 90%; background: var(--pcv-primary); }
.sf-70 { width: 70%; background: var(--pcv-accent); }
.sf-55 { width: 55%; background: var(--pcv-cta); }

/* Floating badges around CV */
.hero-float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.5rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #334155;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    z-index: 3;
    white-space: nowrap;
}
.hero-float-badge i {
    font-size: 1rem;
    color: var(--pcv-primary);
}
.hfb-1 { top: 22%; left: -5%; animation: floatBadge 5s ease-in-out infinite; }
.hfb-2 { bottom: 25%; left: -8%; animation: floatBadge 6s ease-in-out infinite 0.5s; }
.hfb-3 { top: 18%; right: -5%; animation: floatBadge 5.5s ease-in-out infinite 1s; }
.hfb-4 { bottom: 18%; right: -8%; animation: floatBadge 7s ease-in-out infinite 1.5s; }
.hfb-2 i { color: var(--pcv-cta); }
.hfb-4 i { color: #f59e0b; }

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

/* Sparkle decorations */
.hero-sparkle {
    position: absolute;
    color: rgba(14,165,233,0.25);
    font-size: 1.2rem;
    font-weight: 300;
    z-index: 1;
    animation: sparklePulse 3s ease-in-out infinite;
}
.hs-1 { top: 12%; right: 10%; animation-delay: 0s; }
.hs-2 { bottom: 8%; right: 25%; animation-delay: 1s; }
.hs-3 { top: 40%; left: 2%; animation-delay: 2s; }
@keyframes sparklePulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.3); }
}


/* ==========================================
   HOW IT WORKS SECTION
   ========================================== */
.how-it-works-section {
    background: var(--pcv-dark);
    color: #fff;
    position: relative;
}
.how-it-works-section h2 { color: #fff; }
.how-it-works-section .how-it-works-step h5 { color: #fff; }
.how-it-works-section .how-it-works-step p { color: rgba(255,255,255,0.6) !important; }
.how-it-works-step {
    text-align: center;
    position: relative;
}
.step-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--pcv-gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}
.step-connector {
    display: none;
}
@media (min-width: 992px) {
    .step-connector {
        display: block;
        position: absolute;
        top: 26px;
        left: calc(50% + 36px);
        width: calc(100% - 72px);
        height: 2px;
        background: linear-gradient(90deg, rgba(14,165,233,0.4), rgba(16,185,129,0.4));
    }
    .how-it-works-step:last-child .step-connector { display: none; }
}
.step-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}
.how-it-works-section .step-icon-wrap {
    background: rgba(255,255,255,0.08) !important;
}
.how-it-works-section .step-icon-wrap i {
    color: #fff !important;
}


/* ==========================================
   STATS SECTION
   ========================================== */
.stats-section {
    background: var(--pcv-gradient-dark);
    padding: 4rem 0;
}
.stat-item { text-align: center; }
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin-top: 0.5rem;
}

/* ==========================================
   FEATURE / TEMPLATE CARDS
   ========================================== */
.feature-card {
    border: none;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* Template Cards */
.template-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}
.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.template-card .template-thumb {
    height: 280px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.template-card .premium-badge {
    position: absolute;
    top: 10px;
    right: 10px;
}


/* ==========================================
   STEP INDICATORS (CV wizard)
   ========================================== */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}
.step-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border: 2px solid #dee2e6;
    background: white;
    color: #6c757d;
    transition: all 0.3s;
}
.step-dot.active {
    border-color: var(--pcv-primary);
    background: var(--pcv-primary);
    color: white;
}
.step-dot.completed {
    border-color: var(--pcv-success);
    background: var(--pcv-success);
    color: white;
}


/* ==========================================
   CV WIZARD - MODERN STEPPER
   ========================================== */
.pcv-stepper {
    margin-bottom: 2rem;
}
.pcv-stepper__track {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    padding: 0 0.5rem;
}
.pcv-stepper__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    min-width: 48px;
}
.pcv-stepper__circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    background: #fff;
    border: 2.5px solid #e2e8f0;
    color: #94a3b8;
    transition: all 0.35s ease;
    position: relative;
    z-index: 2;
}
.pcv-stepper__step--active .pcv-stepper__circle {
    border-color: var(--pcv-primary);
    color: var(--pcv-primary);
    box-shadow: 0 0 0 4px rgba(14,165,233,0.12);
}
.pcv-stepper__step--completed .pcv-stepper__circle {
    border-color: var(--pcv-success);
    background: var(--pcv-success);
    color: #fff;
}
.pcv-stepper__connector {
    position: absolute;
    top: 24px;
    left: calc(50% + 28px);
    width: calc(100% - 56px);
    height: 3px;
    background: #e2e8f0;
    z-index: 0;
    transition: background 0.35s ease;
}
.pcv-stepper__step:last-child .pcv-stepper__connector {
    display: none;
}
.pcv-stepper__step--completed .pcv-stepper__connector {
    background: var(--pcv-success);
}
.pcv-stepper__label {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
    max-width: 80px;
    line-height: 1.2;
    transition: color 0.35s ease;
}
.pcv-stepper__step--active .pcv-stepper__label {
    color: var(--pcv-primary);
}
.pcv-stepper__step--completed .pcv-stepper__label {
    color: var(--pcv-success);
}

@media (max-width: 767.98px) {
    .pcv-stepper__label { display: none; }
    .pcv-stepper__circle { width: 40px; height: 40px; font-size: 1rem; }
    .pcv-stepper__connector { top: 20px; left: calc(50% + 24px); width: calc(100% - 48px); }
    .pcv-stepper { margin-bottom: 1.25rem; }
}
@media (max-width: 575.98px) {
    .pcv-stepper__circle { width: 34px; height: 34px; font-size: 0.85rem; }
    .pcv-stepper__connector { top: 17px; left: calc(50% + 20px); width: calc(100% - 40px); height: 2px; }
    .pcv-stepper__track { padding: 0; }
}


#cvForm {
    margin-bottom: 40px;
}

/* ==========================================
   CV WIZARD - VIEWPORT & SLIDE TRANSITIONS
   ========================================== */
.pcv-wizard__viewport {
    position: relative;
    overflow: hidden;
}
.pcv-wizard__step {
    display: none;
    width: 100%;
}
.pcv-wizard__step--active {
    display: block;
}

/* Forward: slide left */
@keyframes pcvSlideLeftEnter {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}
@keyframes pcvSlideLeftExit {
    from { transform: translateX(0); opacity: 1; }
    to   { transform: translateX(-100%); opacity: 0; }
}
/* Backward: slide right */
@keyframes pcvSlideRightEnter {
    from { transform: translateX(-100%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}
@keyframes pcvSlideRightExit {
    from { transform: translateX(0); opacity: 1; }
    to   { transform: translateX(100%); opacity: 0; }
}

.pcv-wizard__step--slide-left-enter {
    display: block;
    animation: pcvSlideLeftEnter 0.4s ease forwards;
}
.pcv-wizard__step--slide-left-exit {
    display: block;
    animation: pcvSlideLeftExit 0.4s ease forwards;
}
.pcv-wizard__step--slide-right-enter {
    display: block;
    animation: pcvSlideRightEnter 0.4s ease forwards;
}
.pcv-wizard__step--slide-right-exit {
    display: block;
    animation: pcvSlideRightExit 0.4s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
    .pcv-wizard__step--slide-left-enter,
    .pcv-wizard__step--slide-left-exit,
    .pcv-wizard__step--slide-right-enter,
    .pcv-wizard__step--slide-right-exit {
        animation: none;
    }
}


/* ==========================================
   CV WIZARD - STEP CARDS
   ========================================== */
.pcv-step-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 20px rgba(0,0,0,0.03);
    overflow: hidden;
}
.pcv-step-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}
.pcv-step-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--pcv-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.pcv-step-card__icon--green {
    background: linear-gradient(135deg, var(--pcv-success), #059669);
}
.pcv-step-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pcv-dark);
    margin: 0;
    line-height: 1.2;
}
.pcv-step-card__subtitle {
    font-size: 0.82rem;
    color: var(--pcv-secondary);
    margin: 0;
}
.pcv-step-card__body {
    padding: 1.5rem;
}
.pcv-step-card .form-control,
.pcv-step-card .form-select {
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.pcv-step-card .form-control:focus,
.pcv-step-card .form-select:focus {
    border-color: var(--pcv-primary);
    box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
}


/* ==========================================
   CV WIZARD - NAV BUTTONS
   ========================================== */
.pcv-wizard__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    gap: 1rem;
}
.pcv-wizard__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pcv-wizard__btn:hover {
    transform: translateY(-2px);
}
.pcv-wizard__btn--prev {
    background: #fff;
    color: var(--pcv-dark);
    border: 1.5px solid #e2e8f0;
}
.pcv-wizard__btn--prev:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.pcv-wizard__btn--next {
    background: var(--pcv-gradient);
    color: #fff;
}
.pcv-wizard__btn--next:hover {
    box-shadow: 0 6px 20px rgba(14,165,233,0.3);
}
.pcv-wizard__btn--preview-inline {
    background: #0ea5e9;
    border: 1.5px solid #0ea5e9;
    color: #fff;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    display: none;
    box-shadow: 0 2px 8px rgba(14,165,233,0.2);
}
.pcv-wizard__btn--preview-inline:hover {
    background: #0284c7;
    border-color: #0284c7;
    color: #fff;
    box-shadow: 0 4px 12px rgba(14,165,233,0.35);
}
.pcv-wizard__btn--report {
    background: transparent;
    border: 1.5px solid #f59e0b;
    color: #f59e0b;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}
.pcv-wizard__btn--report:hover {
    background: #f59e0b;
    color: #fff;
    box-shadow: 0 4px 12px rgba(245,158,11,0.25);
}
.pcv-wizard__btn--draft {
    background: transparent;
    border: 1.5px solid var(--pcv-primary);
    color: var(--pcv-primary);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}
.pcv-wizard__btn--draft:hover {
    background: var(--pcv-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(14,165,233,0.25);
}
.pcv-wizard__btn--draft:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.pcv-wizard__btn--submit {
    background: linear-gradient(135deg, var(--pcv-success), #059669);
    color: #fff;
}
.pcv-wizard__btn--submit:hover {
    box-shadow: 0 6px 20px rgba(16,185,129,0.35);
}


/* ==========================================
   CV WIZARD - DRAFT RESTORE TOAST
   ========================================== */
.pcv-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    background: var(--pcv-dark);
    color: #fff;
    padding: 0.85rem 1.5rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 9999;
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    max-width: 90vw;
}
.pcv-toast--visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.pcv-toast__icon {
    color: var(--pcv-success);
    font-size: 1.15rem;
    flex-shrink: 0;
}
.pcv-toast__dismiss {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.1rem;
    padding: 0 0 0 0.5rem;
    cursor: pointer;
    transition: color 0.2s;
    flex-shrink: 0;
}
.pcv-toast__dismiss:hover {
    color: #fff;
}


/* ==========================================
   CV WIZARD - PHOTO UPLOAD
   ========================================== */
.pcv-photo-upload {
    display: inline-block;
}
.pcv-photo-upload__circle {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 2px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto;
    cursor: pointer;
    background: #f1f5f9;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.pcv-photo-upload__circle:hover {
    border-color: var(--pcv-primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.pcv-photo-upload__circle i {
    font-size: 2rem;
    color: #94a3b8;
}
.pcv-photo-upload__circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pcv-photo-upload__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: 50%;
}
.pcv-photo-upload__overlay i {
    color: #fff;
    font-size: 1.5rem;
}
.pcv-photo-upload__circle:hover .pcv-photo-upload__overlay {
    opacity: 1;
}
.pcv-photo-upload__label {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.35rem;
}
/* Photo upload pulse animation for missing photo nudge */
@keyframes pcv-photo-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.5); border-color: var(--pcv-primary); }
    50% { box-shadow: 0 0 0 10px rgba(14, 165, 233, 0); border-color: #f59e0b; }
}
.pcv-photo-upload__circle--nudge {
    animation: pcv-photo-pulse 1s ease-in-out 4;
    border-style: solid;
    border-color: var(--pcv-primary);
}
.pcv-photo-upload__nudge-tooltip {
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 10;
}
.pcv-photo-upload__nudge-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #1e293b;
}
.pcv-photo-upload__nudge-tooltip--visible {
    opacity: 1;
}

/* ==========================================
   CV WIZARD - LIVE PREVIEW PANE
   ========================================== */
.pcv-builder-row {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.pcv-builder-row__form {
    flex: 1 1 50%;
    min-width: 0;
}
.pcv-builder-row__preview {
    flex: 1 1 50%;
    min-width: 0;
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 100px);
    overflow: hidden;
}
.pcv-live-preview {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.pcv-live-preview__header {
    padding: 0.85rem 1.25rem;
    background: var(--pcv-dark);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.pcv-live-preview__header i {
    color: var(--pcv-primary);
}
.pcv-template-hint {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.55;
    margin-right: auto;
}
/* Template Switcher Button */
.pcv-template-switcher-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 0.3rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
    max-width: 180px;
}
.pcv-template-switcher-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: var(--pcv-primary);
}
.pcv-template-switcher-btn .bi-chevron-right {
    font-size: 0.65rem;
    opacity: 0.6;
}

/* ========================================
   TEMPLATE CHOOSER MODAL (Light theme)
   ======================================== */
.pcv-tpl-modal__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid #e2e5e9;
    flex-shrink: 0;
}
.pcv-tpl-modal__title {
    color: #1e293b;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}
.pcv-tpl-modal__title i {
    color: var(--pcv-primary);
}
.pcv-tpl-modal__close {
    margin-left: auto;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}
.pcv-tpl-modal__close:hover {
    color: #1e293b;
}

/* Filter pills */
.pcv-tpl-filters {
    display: flex;
    gap: 0.4rem;
}
.pcv-tpl-filter {
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    border: 1px solid #cbd5e1;
    background: transparent;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.pcv-tpl-filter:hover {
    border-color: var(--pcv-primary);
    color: var(--pcv-primary);
}
.pcv-tpl-filter--active {
    background: var(--pcv-primary);
    border-color: var(--pcv-primary);
    color: #fff;
}

/* Template card */
.pcv-tpl-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #e2e5e9;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
}
.pcv-tpl-card:hover {
    border-color: #94a3b8;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.pcv-tpl-card--selected {
    border-color: var(--pcv-primary) !important;
    box-shadow: 0 0 0 3px rgba(14,165,233,0.2);
}
.pcv-tpl-card--selected::after {
    content: '\F272'; /* bi-check-circle-fill */
    font-family: 'bootstrap-icons';
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--pcv-primary);
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Card preview area */
.pcv-tpl-card__preview {
    flex: 0 0 400px;
    max-height: 400px;
    overflow: hidden;
    position: relative;
    background: #f8f9fb;
    border-bottom: 1px solid #e2e5e9;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}
.pcv-tpl-card__iframe {
    width: 794px;
    height: 1123px;
    border: none;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: top left;
}

/* Card info */
.pcv-tpl-card__info {
    flex: 0 0 auto;
    padding: 0.6rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
}
.pcv-tpl-card__name {
    color: #1e293b;
    font-size: 0.82rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pcv-tpl-card__badge {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    flex-shrink: 0;
}
.pcv-tpl-card__badge--free {
    background: rgba(16,185,129,0.12);
    color: #059669;
}
.pcv-tpl-card__badge--premium {
    background: rgba(245,158,11,0.12);
    color: #d97706;
}

/* Skeleton loading */
.pcv-tpl-skeleton {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e2e5e9;
}
.pcv-tpl-skeleton__preview {
    height: 400px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e8ecf1 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: pcv-shimmer 1.5s infinite;
}
.pcv-tpl-skeleton__text {
    height: 36px;
    margin: 0.5rem 0.75rem;
    border-radius: 4px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e8ecf1 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: pcv-shimmer 1.5s infinite;
}
@keyframes pcv-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive adjustments */
@media (max-width: 575.98px) {
    .pcv-tpl-modal__header {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.65rem 0.85rem;
    }
    .pcv-tpl-modal__title {
        font-size: 0.88rem;
    }
    .pcv-tpl-filters {
        order: 3;
        width: 100%;
    }
    .pcv-tpl-filter {
        flex: 1;
        text-align: center;
        font-size: 0.72rem;
        padding: 0.25rem 0.5rem;
    }
    .pcv-tpl-card__preview {
        flex: 0 0 260px;
        max-height: 260px;
    }
    .pcv-tpl-skeleton__preview {
        height: 260px;
    }
    .pcv-tpl-card__info {
        padding: 0.45rem 0.6rem;
    }
    .pcv-tpl-card__name {
        font-size: 0.75rem;
    }
}
@media (min-width: 576px) and (max-width: 991.98px) {
    .pcv-tpl-card__preview {
        flex: 0 0 260px;
        max-height: 260px;
    }
    .pcv-tpl-skeleton__preview {
        height: 260px;
    }
}
.pcv-live-preview__frame {
    padding: 0;
    overflow: hidden;
    flex: 1;
    max-height: calc(100vh - 155px);
    background: #fff;
    position: relative;
    overflow-y: auto;
}
.pcv-live-preview__frame::-webkit-scrollbar {
    width: 5px;
}
.pcv-live-preview__frame::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
.pcv-live-preview__frame::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Live preview iframe */
.pcv-live-preview__iframe {
    width: 794px;
    min-height: 1123px;
    border: none;
    transform-origin: top left;
    display: block;
    background: #fff;
}
.pcv-live-preview__loading {
    opacity: 0.5;
    transition: opacity .3s;
}

@media (max-width: 1199.98px) {
    .pcv-builder-row__form { flex: 1 1 55%; }
    .pcv-builder-row__preview { flex: 1 1 45%; }
}

/* Tablet: preview as collapsible top section */
@media (max-width: 991.98px) {
    .pcv-builder-row {
        flex-direction: column;
    }
    .pcv-builder-row__preview {
        width: 100%;
        position: static;
        max-height: none;
        margin-bottom: 1rem;
        display: none;
    }
    .pcv-builder-row__preview.pcv-preview--open {
        display: block;
    }
    .pcv-live-preview__frame {
        max-height: 60vh;
    }
    /* Step card mobile spacing */
    .pcv-step-card__header { padding: 1rem 1.25rem; }
    .pcv-step-card__body { padding: 1.25rem; }
    .pcv-step-card__icon { width: 38px; height: 38px; font-size: 1rem; }
    .pcv-step-card__title { font-size: 1rem; }
    /* Nav buttons full width */
    .pcv-wizard__nav { flex-wrap: wrap; }
    .pcv-wizard__btn { padding: 0.65rem 1.25rem; font-size: 0.9rem; }
}

/* Mobile: floating preview toggle button */
.pcv-preview-fab {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--pcv-gradient);
    color: #fff;
    border: none;
    font-size: 1.3rem;
    box-shadow: 0 4px 20px rgba(14,165,233,0.4);
    z-index: 1050;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    align-items: center;
    justify-content: center;
}
.pcv-preview-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(14,165,233,0.5);
}
.pcv-preview-fab:active {
    transform: scale(0.95);
}

/* Mobile bottom sheet overlay */
.pcv-preview-sheet {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1060;
}
.pcv-preview-sheet--open {
    display: flex;
    flex-direction: column;
}
.pcv-preview-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(2px);
}
.pcv-preview-sheet__panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85vh;
    background: #fff;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    z-index: 1;
    animation: pcvSheetSlideUp 0.35s ease;
}
@keyframes pcvSheetSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.pcv-preview-sheet__handle {
    padding: 0.75rem;
    text-align: center;
    flex-shrink: 0;
}
.pcv-preview-sheet__handle::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 2px;
}
.pcv-preview-sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem 0.75rem;
    flex-shrink: 0;
}
.pcv-preview-sheet__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pcv-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.pcv-preview-sheet__title i { color: var(--pcv-primary); }
.pcv-preview-sheet__close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.pcv-preview-sheet__close:hover { background: #e2e8f0; }
.pcv-preview-sheet__body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 991.98px) {
    .pcv-preview-fab { display: flex; }
    .pcv-wizard__btn--preview-inline { display: inline-flex; }
}

/* Small mobile adjustments */
@media (max-width: 575.98px) {
    .pcv-step-card__header { padding: 0.85rem 1rem; gap: 0.75rem; }
    .pcv-step-card__body { padding: 1rem; }
    .pcv-step-card__icon { width: 34px; height: 34px; font-size: 0.9rem; border-radius: 10px; }
    .pcv-step-card__title { font-size: 0.95rem; }
    .pcv-step-card__subtitle { font-size: 0.78rem; }
    .pcv-wizard__nav { gap: 0.5rem; }
    .pcv-wizard__btn { padding: 0.6rem 1rem; font-size: 0.85rem; border-radius: 10px; flex: 1; justify-content: center; }
    .pcv-wizard__btn--prev { flex: 0 1 auto; }
    .pcv-preview-fab { bottom: 1rem; right: 1rem; width: 50px; height: 50px; font-size: 1.15rem; }
    .container.py-4 { padding-left: 0.75rem; padding-right: 0.75rem; }
}


/* ==========================================
   PREVIEW MODAL (Full-screen overlay)
   ========================================== */
.pcv-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 1070;
    background: #fff;
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s, visibility 0.25s;
}
.pcv-preview-modal--open {
    visibility: visible;
    opacity: 1;
}
.pcv-preview-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
    background: #fff;
}
.pcv-preview-modal__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pcv-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.pcv-preview-modal__title i { color: var(--pcv-primary); }
.pcv-preview-modal__close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-size: 1.35rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}
.pcv-preview-modal__close:hover { background: #e2e8f0; }
.pcv-preview-modal__body {
    flex: 1;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    justify-content: center;
    padding: 1rem;
}
.pcv-preview-modal__iframe {
    width: 794px;
    min-height: 1123px;
    border: none;
    background: #fff;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.pcv-preview-modal__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 300px;
}

@media (max-width: 575.98px) {
    .pcv-preview-modal__body { padding: 0.5rem; }
    .pcv-preview-modal__iframe { width: 100%; min-height: 600px; }
}

/* ==========================================
   CV PREVIEW
   ========================================== */
.cv-preview {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    min-height: 600px;
}
.cv-preview .section-title {
    color: var(--pcv-primary);
    border-bottom: 2px solid var(--pcv-primary);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}
.cv-preview .skill-bar {
    background: #e2e8f0;
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
}
.cv-preview .skill-fill {
    background: var(--pcv-primary);
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}


/* ==========================================
   BUTTONS
   ========================================== */
.btn-primary {
    background: var(--pcv-primary);
    border-color: var(--pcv-primary);
}
.btn-primary:hover {
    background: var(--pcv-primary-dark);
    border-color: var(--pcv-primary-dark);
}
.btn-outline-primary {
    color: var(--pcv-primary);
    border-color: var(--pcv-primary);
}
.btn-outline-primary:hover {
    background: var(--pcv-primary);
    border-color: var(--pcv-primary);
}
.btn-cta {
    background: linear-gradient(135deg, var(--pcv-cta), #fb923c);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.85rem 2rem;
    font-weight: 700;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.35);
    color: #fff;
}
.btn-gradient {
    background: var(--pcv-gradient);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.3);
    color: #fff;
}


/* ==========================================
   SEO CONTENT BLOCK
   ========================================== */
.pcv-seo-content {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}
.pcv-seo-text {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.8;
}
.pcv-seo-text a {
    color: var(--pcv-primary);
    text-decoration: none;
    font-weight: 500;
}
.pcv-seo-text a:hover {
    text-decoration: underline;
}
.pcv-seo-text h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #334155;
    margin: 1.5rem 0 0.5rem;
}
.pcv-seo-text p {
    margin-bottom: 0.75rem;
}
.pcv-seo-text p:last-child {
    margin-bottom: 0;
}


/* ==========================================
   FAQ ACCORDION
   ========================================== */
.pcv-faq-accordion {
    --bs-accordion-border-color: #e2e8f0;
    --bs-accordion-border-radius: 12px;
    --bs-accordion-btn-focus-box-shadow: none;
}
.pcv-faq-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px !important;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
}
.pcv-faq-item:last-child {
    margin-bottom: 0;
}
.pcv-faq-item .accordion-button {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--pcv-dark);
    background: #fff;
    padding: 1rem 1.25rem;
    border-radius: 12px !important;
    box-shadow: none;
}
.pcv-faq-item .accordion-button:not(.collapsed) {
    color: var(--pcv-primary);
    background: #fff;
    box-shadow: none;
}
.pcv-faq-item .accordion-button::after {
    color: var(--pcv-primary);
}
.pcv-faq-item .accordion-body {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.7;
    padding: 0 1.25rem 1rem;
}


/* ==========================================
   CTA SECTION
   ========================================== */
.cta-section {
    background: var(--pcv-gradient-dark);
    color: white;
    padding: 4rem 0;
    border-radius: 24px;
}


/* ==========================================
   CARDS, FORMS
   ========================================== */
.card { border: none; box-shadow: 0 1px 3px rgba(0,0,0,0.08); border-radius: 12px; }
.card-header { border-radius: 12px 12px 0 0 !important; }

.form-control:focus, .form-select:focus {
    border-color: var(--pcv-primary);
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.15);
}


/* ==========================================
   COOKIE BANNER
   ========================================== */
.cookie-banner {
    backdrop-filter: blur(10px);
    background: rgba(30,41,59,0.95) !important;
}


/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.6s ease forwards; }


/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 991.98px) {
    .hero-visual { min-height: 400px; margin-top: 1rem; }
    .hero-dashed-ring { width: 280px; height: 280px; }
    .hfb-1 { left: 0; }
    .hfb-2 { left: 0; }
    .hfb-3 { right: 0; }
    .hfb-4 { right: 0; }
}
@media (max-width: 768px) {
    .hero-section { padding: 2rem 0 3rem; }
    .hero-title { font-size: 2.2rem; }
    .stat-number { font-size: 1.75rem; }
    body { padding-top: 64px; }
    .hero-visual { min-height: 360px; }
    .hero-cv-card { width: 220px; padding: 1.1rem; }
    .hero-float-badge { font-size: 0.7rem; padding: 0.4rem 0.65rem; }
    .hero-dashed-ring { width: 240px; height: 240px; }
    .hero-blob-1 { width: 120px; height: 120px; }
    .hero-blob-2 { width: 80px; height: 80px; }
}
@media (max-width: 576px) {
    .hero-title { font-size: 1.85rem; }
    .hero-top-icons { gap: 0.3rem; }
    .hero-icon-chip { font-size: 0.65rem; padding: 0.2rem 0.5rem; }
    .btn-hero-primary, .btn-hero-secondary, .btn-hero-ai {
        padding: 0.7rem 1.4rem;
        font-size: 0.9rem;
    }
    .hero-features { gap: 0.75rem; }
}


/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    background: var(--pcv-dark);
    color: rgba(255,255,255,0.7);
    margin-top: 0;
}
.footer-top {
    padding: 3.5rem 0 2rem;
}
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none !important;
    margin-bottom: 1rem;
}
.footer-brand span {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0ea5e9, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.footer-desc {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    max-width: 300px;
}
.footer-social {
    display: flex;
    gap: 0.6rem;
}
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}
.footer-social a:hover {
    background: var(--pcv-primary);
    color: #fff;
}
.footer-heading {
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 1.1rem;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.55rem;
}
.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s, padding-left 0.2s;
}
.footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    font-size: 0.88rem;
}
.footer-contact i {
    color: var(--pcv-primary);
    font-size: 1rem;
    margin-top: 2px;
}
.footer-contact a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-contact a:hover { color: #fff; }
.footer-info-link {
    display: block;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.82rem;
    padding: 0.2rem 0;
    transition: color 0.2s;
}
.footer-info-link:hover { color: #fff; }
.footer-bottom {
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}
.footer-badges {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}
@media (max-width: 767.98px) {
    .footer-badges { justify-content: center; margin-top: 0.75rem; }
}
.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}
.footer-badge i {
    color: var(--pcv-accent);
    font-size: 0.8rem;
}


/* ==========================================
   AUTH PAGES
   ========================================== */
.auth-page {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 50%, #f0fdf4 100%);
    padding: 2rem 0;
}
.auth-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.03);
    overflow: hidden;
}
.auth-card-body {
    padding: 2.5rem;
}
.auth-side {
    background: var(--pcv-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.auth-side::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(14,165,233,0.15), rgba(16,185,129,0.1));
    top: -80px;
    right: -80px;
}
.auth-side::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(14,165,233,0.08));
    bottom: -60px;
    left: -60px;
}
.auth-side-content {
    position: relative;
    z-index: 1;
    text-align: center;
}
.auth-side-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    margin: 0 auto 1.5rem;
}
.auth-side h3 {
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.auth-side p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    line-height: 1.6;
}
.auth-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    text-align: left;
}
.auth-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.7);
}
.auth-features li i {
    color: var(--pcv-accent);
}
.auth-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--pcv-dark);
    margin-bottom: 0.25rem;
}
.auth-subtitle {
    color: var(--pcv-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}
.auth-form .form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #334155;
    margin-bottom: 0.3rem;
}
.auth-form .form-control {
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid #e2e8f0;
    font-size: 0.92rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-form .form-control:focus {
    border-color: var(--pcv-primary);
    box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
}
.auth-form .input-icon-wrap {
    position: relative;
}
.auth-form .input-icon-wrap .form-control {
    padding-left: 2.5rem;
}
.auth-form .input-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
}
.auth-form .btn-auth {
    background: var(--pcv-gradient);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.7rem;
    font-weight: 700;
    font-size: 0.95rem;
    width: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}
.auth-form .btn-auth:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(14,165,233,0.3);
    color: #fff;
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: #94a3b8;
    font-size: 0.82rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}


/* ==========================================
   FREE CV GUIDE PAGE
   ========================================== */
.fcv-hero { background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); padding: 3rem 0; }
.fcv-toc { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1.5rem; }
.fcv-toc ol { counter-reset: toc; list-style: none; padding-left: 0; }
.fcv-toc li { counter-increment: toc; padding: 0.4rem 0; }
.fcv-toc li::before { content: counter(toc) ". "; font-weight: 600; color: var(--pcv-primary); }
.fcv-toc a { text-decoration: none; color: #334155; }
.fcv-toc a:hover { color: var(--pcv-primary); }
.fcv-section { padding: 2.5rem 0; }
.fcv-stat-card { background: #fff; border-radius: 12px; padding: 1.5rem; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.fcv-stat-number { font-size: 2rem; font-weight: 800; color: var(--pcv-primary); }
.fcv-step-card { background: #fff; border-radius: 12px; padding: 1.5rem; border-left: 4px solid var(--pcv-primary); }
.fcv-step-num { width: 36px; height: 36px; background: var(--pcv-primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.fcv-mistake-item { padding: 0.75rem 0; border-bottom: 1px solid #f1f5f9; }
.fcv-mistake-icon { color: #ef4444; font-size: 1.1rem; }
.fcv-level-card { background: #fff; border-radius: 12px; padding: 2rem; border: 1px solid #e2e8f0; height: 100%; }
.fcv-level-card h3 { font-size: 1.1rem; }
.fcv-mid-cta { background: linear-gradient(135deg, var(--pcv-primary), #4f46e5); color: #fff; border-radius: 12px; padding: 2rem; text-align: center; }
.fcv-breadcrumb { font-size: 0.85rem; }
/* GEO: Citation-worthy Key Takeaway blocks for AI engines */
.fcv-key-takeaway { border-left: 4px solid #f59e0b; background: #fffbeb; padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; margin: 1.5rem 0; }
.fcv-key-takeaway .kt-title { font-weight: 700; color: #b45309; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.4rem; }
.fcv-key-takeaway p { margin-bottom: 0; font-size: 0.95rem; line-height: 1.7; color: #92400e; }
.fcv-expert-tip { border-left: 4px solid #3b82f6; background: #eff6ff; padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; margin: 1.5rem 0; }
.fcv-expert-tip .kt-title { font-weight: 700; color: #1d4ed8; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.4rem; }
.fcv-expert-tip p { margin-bottom: 0; font-size: 0.95rem; line-height: 1.7; color: #1e40af; }
@media (max-width: 767.98px) {
    .fcv-hero { padding: 2rem 0; }
    .fcv-hero h1 { font-size: 1.75rem !important; }
    .fcv-section { padding: 1.5rem 0; }
    .fcv-stat-number { font-size: 1.5rem; }
    .fcv-level-card { padding: 1.25rem; }
}


/* ==========================================
   TEMPLATE SHOWCASE (content pages)
   ========================================== */
.fcv-showcase-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.fcv-showcase-scroll::-webkit-scrollbar { height: 6px; }
.fcv-showcase-scroll::-webkit-scrollbar-track { background: transparent; }
.fcv-showcase-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.fcv-showcase-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fcv-showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.fcv-showcase-img-wrap {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: #f8f9fa;
}
.fcv-showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}
.fcv-showcase-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.fcv-showcase-badge.badge-free { background: #10b981; color: #fff; }
.fcv-showcase-badge.badge-premium { background: #f59e0b; color: #fff; }
.fcv-showcase-info {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
@media (max-width: 767.98px) {
    .fcv-showcase-card { flex: 0 0 160px; }
    .fcv-showcase-img-wrap { height: 210px; }
}


/* ==========================================
   CV COMPLETENESS SCORE
   ========================================== */
.pcv-score {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 72px;
    height: 72px;
    z-index: 1050;
    cursor: pointer;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.18));
    transition: transform .2s ease;
}
.pcv-score:hover { transform: scale(1.1); }
.pcv-score__ring { width: 100%; height: 100%; }
.pcv-score__track { stroke: #e5e7eb; }
.pcv-score__fill { stroke: #ef4444; transition: stroke-dashoffset .5s ease, stroke .4s ease; }
.pcv-score--low .pcv-score__fill { stroke: #ef4444; }
.pcv-score--medium .pcv-score__fill { stroke: #f97316; }
.pcv-score--high .pcv-score__fill { stroke: #eab308; }
.pcv-score--full .pcv-score__fill { stroke: #22c55e; }
.pcv-score__value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    background: #fff;
    border-radius: 50%;
    margin: 5px;
}
.pcv-score__tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background: #1e293b;
    color: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    min-width: 200px;
    font-size: 13px;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.pcv-score:hover .pcv-score__tooltip { display: block; }
.pcv-score__tooltip-title { font-weight: 600; margin-bottom: 8px; font-size: 14px; }
.pcv-score__tooltip-list { list-style: none; padding: 0; margin: 0; }
.pcv-score__tooltip-list li {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    gap: 12px;
}
.pcv-score__tooltip-list .score-cat-done { color: #4ade80; }
.pcv-score__tooltip-list .score-cat-partial { color: #facc15; }
.pcv-score__tooltip-list .score-cat-empty { color: #94a3b8; }

/* Score expanded state (final step) */
.pcv-score--expanded { transform: scale(1.15); }
.pcv-score--expanded .pcv-score__tooltip { display: block; }
.pcv-score--expanded .pcv-score__tooltip-title { color: #facc15; }

/* Photo reminder toast */
.pcv-photo-reminder {
    position: fixed;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1060;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #fff;
    padding: 16px 24px;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,.35);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    line-height: 1.4;
    transition: top .5s cubic-bezier(.34,1.56,.64,1);
    max-width: 90vw;
    border: 1px solid rgba(251,191,36,.3);
}
.pcv-photo-reminder--visible { top: 20px; }
.pcv-photo-reminder i.bi-camera { font-size: 28px; color: #fbbf24; flex-shrink: 0; }
.pcv-photo-reminder button {
    background: #fbbf24;
    border: none;
    color: #1e293b;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
}
.pcv-photo-reminder button:hover { background: #f59e0b; }

@media (max-width: 767.98px) {
    .pcv-score { width: 56px; height: 56px; bottom: 16px; right: 16px; }
    .pcv-score__value { font-size: 12px; }
    .pcv-score__tooltip { min-width: 180px; font-size: 12px; }
    .pcv-photo-reminder {
        left: 8px;
        right: 8px;
        transform: none;
        max-width: none;
        flex-wrap: wrap;
        padding: 14px 16px;
        font-size: 14px;
        border-radius: 12px;
    }
    .pcv-photo-reminder--visible { top: 10px; }
    .pcv-photo-reminder span { flex: 1 1 100%; }
    .pcv-photo-reminder button { width: 100%; text-align: center; padding: 10px; font-size: 15px; margin-top: 6px; }
}

/* ==========================================
   PRINT
   ========================================== */
@media print {
    .navbar, .footer, .cookie-banner, .btn { display: none !important; }
    .cv-preview { box-shadow: none; padding: 0; }
}
