/* ===========================================
   CV BUILDER - PREMIUM BUSINESS THEME
   Consistent with PelopJobs powerup.css
   =========================================== */

/* === BASE === */
body {
    background: var(--gray-50);
}

/* === MAIN CONTAINER === */
.cv-builder-container {
    min-height: 100vh;
    background: var(--gray-50);
    padding-top: 0;
}

/* ===========================================
   PROFESSIONAL HEADER (matches hero-section)
   =========================================== */

.cv-builder-header-pro {
    background: linear-gradient(135deg, #001D3D 0%, #003566 30%, #004E89 60%, #001A35 100%);
    color: white;
    padding: 80px 24px 44px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

/* Animated gradient orbs - same as hero */
.cv-builder-header-pro::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
    animation: heroGradientShift 15s ease-in-out infinite alternate;
    z-index: 1;
    pointer-events: none;
}

/* Grid overlay */
.cv-builder-header-pro::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 2;
    pointer-events: none;
}

/* Particles canvas inside header */
.cv-builder-header-pro .cv-particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

@keyframes heroGradientShift {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-2%, 1%) rotate(1deg); }
    66% { transform: translate(1%, -2%) rotate(-1deg); }
    100% { transform: translate(-1%, 2%) rotate(0.5deg); }
}

/* Header Top */
.header-top {
    max-width: 1400px;
    margin: 0 auto 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    position: relative;
    z-index: 10;
}

.header-title {
    flex: 1;
}

.header-title .cv-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 107, 53, 0.2);
    border: 1px solid rgba(255, 107, 53, 0.4);
    backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 14px;
    animation: fadeInDown 0.8s ease-out;
}

.header-title .cv-badge i {
    color: #FF8C5A;
}

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

.header-title h1 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.03em;
    color: #ffffff;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.header-title h1 span {
    background: linear-gradient(135deg, #FF8C5A 0%, #00BFA6 50%, #FF8C5A 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 4s ease-in-out infinite;
}

@keyframes gradientText {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.header-title .subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-weight: 400;
    line-height: 1.6;
    max-width: 500px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

/* Header Action Buttons */
.header-actions {
    display: flex;
    gap: 14px;
    position: relative;
    z-index: 10;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.btn-pro {
    padding: 14px 32px;
    border-radius: 12px;
    border: none;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-pro.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #FF8C5A 100%);
    color: #ffffff;
    box-shadow: 0 4px 24px rgba(255, 107, 53, 0.4);
}

.btn-pro.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-pro.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.55);
}

.btn-pro.btn-primary:hover::after {
    transform: translateX(100%);
}

.btn-pro.btn-outline {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-pro.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

/* ===========================================
   TEMPLATE SELECTOR
   =========================================== */

.template-selector {
    max-width: 1400px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 10;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.template-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.template-options {
    display: flex;
    gap: 14px;
}

.template-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.65);
    padding: 16px 28px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 120px;
    backdrop-filter: blur(12px);
}

.template-btn i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.template-btn span {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.template-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.template-btn:hover i {
    transform: scale(1.15);
}

.template-btn.active {
    background: #ffffff;
    color: var(--primary);
    border-color: transparent;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.template-btn.active i {
    color: var(--primary);
}

/* ===========================================
   PROGRESS STEPS
   =========================================== */

.progress-steps {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    z-index: 10;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.step.active .step-number {
    background: linear-gradient(135deg, var(--primary) 0%, #FF8C5A 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.45);
}

.step.completed .step-number {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.step-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.step.active .step-label {
    color: #ffffff;
    font-weight: 700;
}

.step-line {
    width: 70px;
    height: 2px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 16px;
    margin-bottom: 32px;
    border-radius: 1px;
    position: relative;
}

.step-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), #FF8C5A);
    border-radius: 1px;
    transition: width 0.6s ease;
}

/* ===========================================
   LAYOUT
   =========================================== */

.cv-builder-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

/* ===========================================
   FORM SECTION
   =========================================== */

.cv-form-section {
    background: var(--white);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-200);
}

.cv-section {
    background: var(--gray-50);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.cv-section:hover {
    border-color: var(--gray-300);
}

.cv-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary);
}

.cv-section .section-header h2 {
    font-size: 1.25rem;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.cv-section .section-header h2 i {
    color: var(--primary);
    font-size: 1.125rem;
}

/* Add Button */
.btn-add {
    background: linear-gradient(135deg, var(--primary) 0%, #FF8C5A 100%);
    color: #ffffff;
    border: none;
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.35);
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: var(--white);
    color: var(--gray-800);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.12);
}

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

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

/* ===========================================
   CV ITEMS
   =========================================== */

.items-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cv-item {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    border: 1.5px solid var(--gray-200);
    position: relative;
    transition: all 0.3s ease;
    animation: fadeIn 0.3s ease-out;
}

.cv-item:hover {
    border-color: rgba(255, 107, 53, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

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

.cv-item-header h4 {
    color: var(--gray-900);
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.btn-remove {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-remove:hover {
    background: #dc2626;
    color: #ffffff;
}

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

/* ===========================================
   PHOTO UPLOAD
   =========================================== */

.photo-upload-section {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 28px;
    background: var(--white);
    border-radius: 16px;
    margin-bottom: 24px;
    border: 2px dashed var(--gray-200);
    transition: all 0.3s ease;
}

.photo-upload-section:hover {
    border-color: var(--primary);
    border-style: dashed;
}

.photo-preview-container {
    position: relative;
}

.photo-preview {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 3px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    background: var(--gray-50);
    transition: all 0.3s ease;
}

.photo-preview i {
    font-size: 2.5rem;
    margin-bottom: 8px;
    opacity: 0.4;
}

.photo-preview p {
    font-size: 0.75rem;
    text-align: center;
    margin: 0;
}

.photo-preview.has-photo {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.15);
}

.btn-remove-photo {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #dc2626;
    color: #ffffff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
    font-size: 0.75rem;
}

.btn-remove-photo:hover {
    background: #b91c1c;
    transform: scale(1.1);
}

.photo-upload-controls {
    flex: 1;
}

.btn-upload-photo {
    background: linear-gradient(135deg, var(--primary) 0%, #FF8C5A 100%);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.2);
}

.btn-upload-photo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.35);
}

.photo-help-text {
    margin-top: 12px;
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-bottom: 0;
}

/* ===========================================
   SKILLS TAGS
   =========================================== */

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.skill-tag {
    background: linear-gradient(135deg, var(--primary) 0%, #FF8C5A 100%);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeIn 0.3s ease-out;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

.skill-tag button {
    background: rgba(255, 255, 255, 0.25);
    border: none;
    color: #ffffff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.625rem;
}

.skill-tag button:hover {
    background: rgba(255, 255, 255, 0.45);
}

/* ===========================================
   CV ACTIONS
   =========================================== */

.cv-actions {
    display: flex;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
    margin-top: 8px;
}

.cv-actions .btn {
    flex: 1;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
}

.cv-actions .btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.cv-actions .btn-secondary:hover {
    background: var(--gray-200);
}

.cv-actions .btn-primary {
    background: var(--gray-900);
    color: #ffffff;
}

.cv-actions .btn-primary:hover {
    background: var(--gray-800);
    transform: translateY(-1px);
}

.cv-actions .btn-success {
    background: linear-gradient(135deg, var(--primary) 0%, #FF8C5A 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.cv-actions .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

/* ===========================================
   PREVIEW SECTION
   =========================================== */

.cv-preview-section {
    position: relative;
}

.preview-sticky {
    position: sticky;
    top: 90px;
    background: var(--white);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-200);
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

.preview-sticky h3 {
    font-size: 1.25rem;
    color: var(--gray-900);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.preview-sticky h3 i {
    color: var(--primary);
}

.cv-preview {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    min-height: 500px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    color: var(--gray-400);
    text-align: center;
}

.preview-placeholder i {
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 0.3;
    background: linear-gradient(135deg, var(--primary), #FF8C5A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.preview-placeholder p {
    font-size: 1rem;
    color: var(--gray-500);
}

/* ===========================================
   CV PREVIEW CONTENT
   =========================================== */

.cv-preview-content {
    padding: 40px;
    font-family: 'Georgia', serif;
    color: var(--gray-800);
}

.preview-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 3px solid var(--primary);
    margin-bottom: 32px;
}

.preview-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 4px solid var(--primary);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.15);
}

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

.preview-header-text {
    width: 100%;
}

.preview-header h1 {
    font-size: 2rem;
    color: var(--gray-900);
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.preview-header .profession {
    font-size: 1.0625rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.preview-contact {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.preview-contact span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.preview-section {
    margin-bottom: 28px;
}

.preview-section h2 {
    font-size: 1.25rem;
    color: var(--gray-900);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-section h2 i {
    color: var(--primary);
    font-size: 1rem;
}

.preview-summary {
    color: var(--gray-700);
    line-height: 1.8;
    font-size: 0.9375rem;
    text-align: justify;
}

.preview-item {
    margin-bottom: 20px;
}

.preview-item h3 {
    font-size: 1rem;
    color: var(--gray-900);
    margin-bottom: 4px;
    font-weight: 700;
}

.preview-item .item-subtitle {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.9375rem;
}

.preview-item .item-date {
    color: var(--gray-500);
    font-size: 0.8125rem;
    margin-bottom: 8px;
    font-style: italic;
}

.preview-item .item-description {
    color: var(--gray-700);
    line-height: 1.6;
    font-size: 0.875rem;
}

.preview-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preview-skill {
    background: linear-gradient(135deg, var(--primary) 0%, #FF8C5A 100%);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===========================================
   TEMPLATE VARIATIONS
   =========================================== */

/* Modern Template */
.cv-preview-content.template-modern {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 0;
}

.template-modern .preview-header {
    background: linear-gradient(135deg, #001D3D 0%, #003566 50%, #004E89 100%);
    color: #ffffff;
    padding: 40px;
    border-bottom: none;
    margin-bottom: 0;
    border-radius: 12px 12px 0 0;
}

.template-modern .preview-photo {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.template-modern .preview-header h1 {
    color: #ffffff;
}

.template-modern .preview-header .profession {
    color: rgba(255, 255, 255, 0.7);
}

.template-modern .preview-contact {
    color: rgba(255, 255, 255, 0.8);
}

.template-modern .preview-section {
    background: var(--white);
    padding: 24px 32px;
    margin: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.template-modern .preview-section h2 {
    background: linear-gradient(135deg, var(--primary) 0%, #FF8C5A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-bottom: none;
    padding-left: 16px;
    border-left: 3px solid var(--primary);
}

.template-modern .preview-item {
    background: var(--gray-50);
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.template-modern .preview-skill {
    background: linear-gradient(135deg, #001D3D 0%, #004E89 100%);
}

/* Executive Template */
.cv-preview-content.template-executive {
    font-family: 'Times New Roman', Georgia, serif;
    padding: 48px;
    background: #ffffff;
}

.template-executive .preview-header {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    border-bottom: 4px double var(--primary);
    padding-bottom: 20px;
    gap: 24px;
}

.template-executive .preview-photo {
    flex-shrink: 0;
    margin-bottom: 0;
}

.template-executive .preview-header-text {
    flex: 1;
    text-align: left;
}

.template-executive .preview-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.template-executive .preview-header .profession {
    font-size: 1.125rem;
    font-style: italic;
    text-transform: none;
    letter-spacing: 0;
}

.template-executive .preview-contact {
    justify-content: flex-start;
    margin-top: 10px;
    font-size: 0.875rem;
}

.template-executive .preview-section h2 {
    font-size: 1.375rem;
    font-variant: small-caps;
    border-bottom: 2px solid var(--primary);
    letter-spacing: 2px;
}

.template-executive .preview-item {
    margin-left: 20px;
}

.template-executive .preview-item h3 {
    font-size: 1.0625rem;
    font-weight: bold;
}

.template-executive .preview-skill {
    background: var(--primary);
    border-radius: 4px;
    font-family: Arial, sans-serif;
}

/* Minimal Template */
.cv-preview-content.template-minimal {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    padding: 40px;
    color: #333333;
}

.template-minimal .preview-header {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    border-bottom: 1px solid #000000;
    padding-bottom: 16px;
    gap: 20px;
}

.template-minimal .preview-photo {
    width: 100px;
    height: 100px;
    border: 2px solid #000000;
    border-radius: 8px;
    flex-shrink: 0;
    margin-bottom: 0;
}

.template-minimal .preview-header-text {
    flex: 1;
    text-align: left;
}

.template-minimal .preview-header h1 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: -1px;
    color: #000000;
}

.template-minimal .preview-header .profession {
    font-size: 1rem;
    color: #666666;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

.template-minimal .preview-contact {
    justify-content: flex-start;
    color: #666666;
    font-size: 0.8125rem;
}

.template-minimal .preview-section h2 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #000000;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 16px;
    padding-bottom: 6px;
    border-bottom: 1px solid #dddddd;
}

.template-minimal .preview-section h2 i {
    display: none;
}

.template-minimal .preview-item h3 {
    font-size: 1rem;
    font-weight: 600;
}

.template-minimal .preview-item .item-subtitle {
    color: #666666;
    font-weight: 400;
}

.template-minimal .preview-item .item-date {
    color: #999999;
}

.template-minimal .preview-skill {
    background: #000000;
    border-radius: 2px;
    font-size: 0.6875rem;
    padding: 4px 10px;
}

/* Classic Template (Default) */
.cv-preview-content.template-classic {
    /* Uses the default styles above */
}

/* ===========================================
   SUCCESS / ERROR MESSAGES
   =========================================== */

.success-message {
    position: fixed;
    top: 90px;
    right: 24px;
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    color: #ffffff;
    padding: 16px 28px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    font-weight: 600;
    font-size: 0.9375rem;
}

.error-message {
    position: fixed;
    top: 90px;
    right: 24px;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: #ffffff;
    padding: 16px 28px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    font-weight: 600;
    font-size: 0.9375rem;
}

/* ===========================================
   ANIMATIONS
   =========================================== */

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

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

/* ===========================================
   RESPONSIVE
   =========================================== */

@media (max-width: 1200px) {
    .cv-builder-layout {
        grid-template-columns: 1fr;
    }

    .preview-sticky {
        position: relative;
        top: 0;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .cv-builder-header-pro {
        padding: 75px 20px 32px;
    }

    .header-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-title h1 {
        font-size: 2rem;
    }

    .header-title .subtitle {
        font-size: 1rem;
    }

    .header-actions {
        width: 100%;
    }

    .btn-pro {
        flex: 1;
        justify-content: center;
        padding: 12px 20px;
    }

    .template-options {
        flex-wrap: wrap;
    }

    .template-btn {
        flex: 1;
        min-width: 75px;
        padding: 12px 14px;
    }

    .template-btn i {
        font-size: 1.25rem;
    }

    .progress-steps {
        flex-wrap: wrap;
        gap: 10px;
    }

    .step-line {
        display: none;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }

    .cv-builder-layout {
        padding: 24px 16px 60px;
    }

    .cv-form-section {
        padding: 20px;
        border-radius: 16px;
    }

    .cv-section {
        padding: 20px;
    }

    .form-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .cv-actions {
        flex-direction: column;
    }

    /* Photo upload mobile */
    .photo-upload-section {
        flex-direction: column;
        text-align: center;
    }

    .photo-upload-controls {
        width: 100%;
    }

    .btn-upload-photo {
        width: 100%;
        justify-content: center;
    }

    /* Preview header mobile */
    .template-executive .preview-header,
    .template-minimal .preview-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .template-executive .preview-header-text,
    .template-minimal .preview-header-text {
        text-align: center;
    }

    .template-executive .preview-contact,
    .template-minimal .preview-contact {
        justify-content: center;
    }
}
