:root {
    --bg-color: #0f172a;
    --panel-bg: rgba(30, 41, 59, 0.7);
    --panel-border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --secondary: #475569;
    --secondary-hover: #334155;
    --accent: #8b5cf6;
    --success: #22c55e;
    --danger: #ef4444;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Animated Shapes */
.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

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

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: #ec4899;
    top: 40%;
    left: 60%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(to right, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--panel-border);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed var(--panel-border);
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

.upload-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: inline-block;
}

.upload-zone h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.upload-zone p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    color: white;
}

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

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

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

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

.btn-glow {
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 0.75rem;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.btn-glow:hover:not(:disabled) {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* File Info */
.file-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

#remove-file {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.2rem;
}

/* Utilities */
.hidden {
    display: none !important;
}

.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.text-green { color: var(--success); }
.text-red { color: var(--danger); }
.text-muted { color: var(--text-muted); }

/* Loader */
#loading-state {
    text-align: center;
    padding: 3rem;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

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

/* Results Dashboard */
.score-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.score-card {
    text-align: center;
}

.circular-progress {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(var(--primary) 0deg, rgba(255,255,255,0.1) 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem auto 0;
}

.circular-progress::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background-color: #1e293b;
    border-radius: 50%;
}

.circular-progress span {
    position: relative;
    font-size: 2rem;
    font-weight: 700;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.result-list {
    list-style: none;
    margin-top: 1rem;
}

.result-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-muted);
}

.result-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.feedback-text {
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 1rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background: rgba(139, 92, 246, 0.2);
    color: #c084fc;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .score-container, .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .builder-layout {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   CV BUILDER STYLES
   ========================================= */

.mode-switcher {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem;
    border-radius: 0.5rem;
    border: 1px solid var(--panel-border);
}

.mode-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.75rem 1.5rem;
    border-radius: 0.4rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mode-btn:hover {
    color: var(--text-main);
}

.mode-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.builder-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    align-items: start;
}

#main-container {
    max-width: 1200px; /* Wider container for builder mode */
}

/* Form Styles */
.builder-form {
    max-height: 80vh;
    overflow-y: auto;
    padding-right: 1.5rem;
}

/* Custom Scrollbar for form */
.builder-form::-webkit-scrollbar {
    width: 6px;
}
.builder-form::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}
.builder-form::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 3px;
}

.builder-form h2 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--panel-border);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.3);
}

.form-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--panel-border);
    padding-bottom: 0.5rem;
}

.form-section-header h3 {
    font-size: 1rem;
    color: var(--text-main);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

/* Dynamic Items (Experience/Education) */
.dynamic-item {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--panel-border);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.remove-item-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.remove-item-btn:hover {
    background: var(--danger);
    color: white;
}

.grid-2-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Preview Styles */
.builder-preview {
    position: sticky;
    top: 2rem;
}

.cv-page {
    background: white;
    color: #333;
    width: 100%;
    max-width: 21cm; /* A4 width */
    min-height: 29.7cm; /* A4 height */
    margin: 0 auto;
    padding: 2.5cm; /* Standard margin */
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border-radius: 4px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Print CSS */
@media print {
    body * {
        visibility: hidden;
    }
    
    .cv-page, .cv-page * {
        visibility: visible;
    }
    
    .cv-page {
        position: absolute;
        left: 0;
        top: 0;
        margin: 0;
        padding: 2cm; /* Slightly smaller padding for print to maximize space */
        box-shadow: none;
        width: 100%;
        max-width: none;
        min-height: 100vh;
        border-radius: 0;
    }

    /* Hide shapes and backgrounds during print */
    .background-shapes, header, .mode-switcher, .builder-form {
        display: none !important;
    }
}

/* Inner CV Typography & Layout */
.cv-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 1.5rem;
}

.cv-header h1 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.cv-header h2 {
    font-size: 1.25rem;
    color: #3b82f6;
    font-weight: 500;
    margin-bottom: 1rem;
}

.cv-contact {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #64748b;
    flex-wrap: wrap;
}

.cv-contact span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.cv-section {
    margin-bottom: 1.5rem;
}

.cv-section-title {
    font-size: 1.1rem;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 0.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.cv-section p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
}

.cv-item {
    margin-bottom: 1.25rem;
}

.cv-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.25rem;
}

.cv-item-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 1.05rem;
}

.cv-item-subtitle {
    font-weight: 500;
    color: #3b82f6; /* secondary color in CV */
    font-size: 0.95rem;
}

.cv-item-date {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.cv-item-desc {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
}

.cv-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

    .cv-skills-list .cv-skill-tag {
        background: #f1f5f9;
        color: #334155;
        padding: 0.3rem 0.8rem;
        border-radius: 4px;
        font-size: 0.9rem;
        font-weight: 500;
    }

/* Form Additions */
.form-select {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--panel-border);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    appearance: none; /* custom arrow can be added if needed */
}
.form-select option {
    background: var(--bg-color);
    color: var(--text-main);
}

.action-buttons-group {
    display: flex;
    gap: 1rem;
}
.action-buttons-group .btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}


/* =========================================
   CV TEMPLATES
   ========================================= */

/* 1. ATS (Standard & Clean) */
.template-ats {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #000;
}
.template-ats .cv-header {
    text-align: center;
    border-bottom: 2px solid #000;
    margin-bottom: 20px;
    padding-bottom: 15px;
}
.template-ats .cv-header h1 {
    font-size: 28pt;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.template-ats .cv-header h2 {
    font-size: 14pt;
    font-weight: 400;
    margin-top: 5px;
}
.template-ats .cv-section-title {
    font-size: 14pt;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 1px solid #000;
    margin-bottom: 15px;
    padding-bottom: 5px;
}

/* 2. Modern (Two-Tone) */
.template-modern {
    font-family: 'Inter', sans-serif;
    color: #334155;
}
.template-modern .cv-header {
    background-color: #f8fafc;
    margin: -2.5cm -2.5cm 2rem -2.5cm; /* Pull header to edges */
    padding: 3cm 2.5cm 2.5cm 2.5cm;
    border-bottom: none;
    text-align: left;
    border-left: 12px solid #2563eb;
}
.template-modern .cv-header h1 {
    color: #0f172a;
    font-weight: 800;
    font-size: 32pt;
    letter-spacing: -1px;
}
.template-modern .cv-header h2 {
    color: #2563eb;
    font-weight: 500;
    font-size: 16pt;
    margin-top: 5px;
}
.template-modern .cv-contact {
    justify-content: flex-start;
    color: #64748b;
    margin-top: 15px;
    font-size: 10.5pt;
}
.template-modern .cv-section-title {
    color: #0f172a;
    font-size: 16pt;
    font-weight: 700;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
    margin-bottom: 20px;
    position: relative;
}
.template-modern .cv-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #2563eb;
}
.template-modern .cv-item-title {
    color: #0f172a;
    font-weight: 600;
    font-size: 13pt;
}

/* 3. Minimalis (Elegant Space) */
.template-minimalis {
    font-family: 'Inter', sans-serif;
    color: #4b5563;
    line-height: 1.8;
}
.template-minimalis .cv-header {
    text-align: center;
    border-bottom: none;
    margin-bottom: 2rem;
    padding-bottom: 0;
}
.template-minimalis .cv-header h1 {
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 26pt;
    color: #111827;
}
.template-minimalis .cv-header h2 {
    font-weight: 400;
    color: #6b7280;
    letter-spacing: 1px;
    font-size: 12pt;
    margin-top: 10px;
}
.template-minimalis .cv-contact {
    margin-top: 15px;
    font-size: 9.5pt;
    letter-spacing: 0.5px;
}
.template-minimalis .cv-section {
    margin-bottom: 2rem;
}
.template-minimalis .cv-section-title {
    border-bottom: none;
    letter-spacing: 3px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    font-size: 10pt;
    margin-bottom: 1.5rem;
    text-align: center;
}
.template-minimalis .cv-item-title {
    font-weight: 500;
    color: #1f2937;
    font-size: 12pt;
}
.template-minimalis .cv-item-date {
    font-size: 9pt;
    color: #9ca3af;
    letter-spacing: 0.5px;
}
.template-minimalis .cv-skills-list .cv-skill-tag {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #4b5563;
    border-radius: 4px;
    padding: 0.3rem 0.8rem;
}

/* 4. Profesional (Classic Serif) */
.template-profesional {
    font-family: 'Merriweather', 'Georgia', serif;
    color: #333;
    line-height: 1.6;
}
.template-profesional .cv-header {
    text-align: center;
    border-bottom: 1px solid #1e293b;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    position: relative;
}
.template-profesional .cv-header::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #1e293b;
}
.template-profesional .cv-header h1 {
    color: #0f172a;
    font-weight: 700;
    font-size: 30pt;
}
.template-profesional .cv-header h2 {
    color: #475569;
    font-style: italic;
    font-weight: 400;
    font-size: 14pt;
    margin-top: 8px;
}
.template-profesional .cv-section-title {
    border-bottom: 1px solid #cbd5e1;
    color: #0f172a;
    font-weight: 700;
    font-size: 15pt;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
}
.template-profesional .cv-item-title {
    font-weight: bold;
    font-size: 12.5pt;
    color: #0f172a;
}
.template-profesional .cv-item-subtitle {
    font-style: italic;
    color: #475569;
}
.template-profesional .cv-item-date {
    font-style: italic;
    font-family: 'Helvetica', sans-serif;
    font-size: 9.5pt;
}
.template-profesional .cv-skills-list .cv-skill-tag {
    border-radius: 2px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    font-family: 'Helvetica', sans-serif;
    font-size: 9.5pt;
}

/* 5. Creative (Bold & Vibrant) */
.template-creative {
    font-family: 'Outfit', 'Helvetica', sans-serif;
    color: #4b5563;
}
.template-creative .cv-header {
    background: linear-gradient(135deg, #6366f1, #d946ef);
    margin: -2.5cm -2.5cm 2rem -2.5cm;
    padding: 3.5cm 2.5cm 2.5cm;
    text-align: center;
    color: white;
    border-bottom: none;
    border-radius: 0 0 50px 50px;
}
.template-creative .cv-header h1 {
    color: white;
    font-weight: 800;
    font-size: 34pt;
    letter-spacing: -0.5px;
}
.template-creative .cv-header h2 {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 15pt;
    margin-top: 5px;
}
.template-creative .cv-contact {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.15);
    padding: 10px 20px;
    border-radius: 30px;
    display: inline-flex;
    margin-top: 20px;
}
.template-creative .cv-section-title {
    color: #7e22ce;
    border-bottom: none;
    font-weight: 700;
    font-size: 18pt;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: #f3e8ff;
    padding: 5px 15px;
    border-radius: 8px;
}
.template-creative .cv-item-title {
    font-weight: 700;
    font-size: 14pt;
    color: #1f2937;
}
.template-creative .cv-item-subtitle {
    color: #d946ef;
    font-weight: 500;
}
.template-creative .cv-item-date {
    background: #f3f4f6;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 9pt;
    font-weight: 600;
    color: #6b7280;
}
.template-creative .cv-skills-list .cv-skill-tag {
    background: #fdf4ff;
    color: #c026d3;
    border-radius: 20px;
    border: 1px solid #fae8ff;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* 6. Modern Split (2-Column) */
.template-modern-split {
    font-family: 'Inter', sans-serif;
    color: #333;
    display: grid;
    grid-template-columns: 35% 65%;
    gap: 0;
    padding: 0;
    margin: 0;
    min-height: 29.7cm; /* A4 */
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
}

.template-modern-split .cv-photo-section {
    grid-column: 1 / 2;
    background-color: #2f4858;
    text-align: center;
    padding-top: 3cm;
    padding-bottom: 1cm;
}

.template-modern-split .cv-photo-section img {
    width: 120px;
    height: 180px;
    border-radius: 4px;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.2);
}

.template-modern-split .cv-header {
    grid-column: 1 / 2;
    background-color: #2f4858;
    color: white;
    padding: 0 2cm;
    text-align: left;
    border: none;
    margin: 0;
}
.template-modern-split .cv-header h1 {
    color: white;
    font-size: 24pt;
    font-weight: 700;
}
.template-modern-split .cv-header h2 {
    color: #e2e8f0;
    font-size: 14pt;
    font-style: italic;
    font-weight: 400;
    margin-top: 5px;
}

.template-modern-split .cv-profil-section,
.template-modern-split .cv-keahlian-section,
.template-modern-split .cv-kontak-section {
    grid-column: 1 / 2;
    background-color: #2f4858;
    color: white;
    padding: 1.5rem 2cm;
}

.template-modern-split .cv-section-title {
    color: white;
    font-size: 16pt;
    text-transform: uppercase;
    font-weight: 800;
    border-bottom: none;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

/* Override title colors for right column */
.template-modern-split .cv-personal-section .cv-section-title,
.template-modern-split .cv-pendidikan-section .cv-section-title,
.template-modern-split .cv-pengalaman-section .cv-section-title,
.template-modern-split .cv-hobi-section .cv-section-title {
    color: #333;
    padding: 0;
}

.template-modern-split .cv-personal-section,
.template-modern-split .cv-pendidikan-section,
.template-modern-split .cv-pengalaman-section,
.template-modern-split .cv-hobi-section {
    grid-column: 2 / 3;
    padding: 1.5rem 2cm;
    background: #fff;
}

/* First item in right column needs top padding */
.template-modern-split .cv-personal-section {
    padding-top: 3cm;
}

.template-modern-split .personal-data-table {
    width: 100%;
    font-size: 10.5pt;
}
.template-modern-split .personal-data-table td {
    padding: 3px 0;
    vertical-align: top;
}
.template-modern-split .personal-data-table td:first-child {
    width: 45%;
    position: relative;
    padding-left: 15px;
}
.template-modern-split .personal-data-table td:first-child::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #333;
}

.template-modern-split .cv-skills-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.template-modern-split .cv-skills-list .cv-skill-tag {
    background: transparent;
    border: none;
    color: white;
    padding: 0 0 0 15px;
    font-size: 11pt;
    position: relative;
}
.template-modern-split .cv-skills-list .cv-skill-tag::before {
    content: '•';
    position: absolute;
    left: 0;
}

.template-modern-split .contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.template-modern-split .contact-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 10.5pt;
}
.template-modern-split .contact-list i {
    font-size: 16pt;
}

.template-modern-split .hobbies-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.template-modern-split .hobbies-list li {
    position: relative;
    padding-left: 15px;
    font-size: 11pt;
    margin-bottom: 5px;
}
.template-modern-split .hobbies-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #333;
}

.template-modern-split .cv-item {
    margin-bottom: 15px;
}
.template-modern-split .cv-item-title {
    font-weight: 700;
    color: #333;
}
.template-modern-split .cv-item-subtitle {
    font-style: italic;
    color: #666;
    margin-bottom: 5px;
}
.template-modern-split .cv-item-desc ul {
    padding-left: 15px;
}
.template-modern-split .cv-item-desc li {
    margin-bottom: 5px;
    font-size: 10.5pt;
}

/* 7. Corporate Right (Kanan Navy) */
.template-corporate-right {
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
    color: #333;
    display: grid;
    grid-template-columns: 65% 35%;
    gap: 0;
    padding: 0;
    margin: 0;
    min-height: 29.7cm;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.template-corporate-right .cv-photo-section {
    grid-column: 2 / 3;
    grid-row: 1;
    background-color: #1e3a8a; /* Navy */
    text-align: center;
    padding-top: 2cm;
    padding-bottom: 0.5cm;
}
.template-corporate-right .cv-photo-section img {
    width: 120px;
    height: 180px;
    border-radius: 4px; /* 4x6 photo */
    object-fit: cover;
    border: 2px solid white;
}
.template-corporate-right .cv-header {
    grid-column: 1 / 2;
    grid-row: 1;
    background-color: #fff;
    color: #1e3a8a;
    padding: 2cm 2cm 1cm 2cm;
    text-align: left;
    border: none;
    margin: 0;
}
.template-corporate-right .cv-header h1 {
    color: #1e3a8a;
    font-size: 28pt;
    font-weight: 800;
    text-transform: uppercase;
}
.template-corporate-right .cv-header h2 {
    color: #64748b;
    font-size: 14pt;
    font-weight: 500;
    margin-top: 5px;
    letter-spacing: 2px;
}
.template-corporate-right .cv-profil-section,
.template-corporate-right .cv-keahlian-section,
.template-corporate-right .cv-kontak-section {
    grid-column: 2 / 3;
    background-color: #1e3a8a;
    color: white;
    padding: 1rem 1.5cm;
}
.template-corporate-right .cv-personal-section,
.template-corporate-right .cv-pendidikan-section,
.template-corporate-right .cv-pengalaman-section,
.template-corporate-right .cv-hobi-section {
    grid-column: 1 / 2;
    padding: 1rem 2cm;
    background: #fff;
}
.template-corporate-right .cv-section-title {
    color: #1e3a8a;
    font-size: 14pt;
    text-transform: uppercase;
    font-weight: 700;
    border-bottom: 2px solid #1e3a8a;
    margin-bottom: 1rem;
    padding-bottom: 5px;
}
.template-corporate-right .cv-profil-section .cv-section-title,
.template-corporate-right .cv-keahlian-section .cv-section-title,
.template-corporate-right .cv-kontak-section .cv-section-title {
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}
.template-corporate-right .personal-data-table td { padding: 4px 0; }
.template-corporate-right .cv-skills-list .cv-skill-tag { color: white; margin-bottom: 5px; display: block; border-bottom: 1px dashed rgba(255,255,255,0.2); padding-bottom: 5px; }
.template-corporate-right .contact-list { gap: 10px; }

/* 8. Elegant Split (Kiri Terang) */
.template-elegant-split {
    font-family: 'Merriweather', serif;
    color: #1f2937;
    display: grid;
    grid-template-columns: 35% 65%;
    gap: 0;
    padding: 0;
    margin: 0;
    min-height: 29.7cm;
    background: #fff;
    border: 1px solid #e5e7eb;
}
.template-elegant-split .cv-photo-section {
    grid-column: 1 / 2;
    background-color: #f8fafc;
    text-align: center;
    padding-top: 2.5cm;
    padding-bottom: 1cm;
    border-right: 1px solid #e2e8f0;
}
.template-elegant-split .cv-photo-section img {
    width: 120px;
    height: 180px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #cbd5e1;
    padding: 5px;
}
.template-elegant-split .cv-header {
    grid-column: 2 / 3;
    grid-row: 1;
    background-color: #fff;
    color: #0f172a;
    padding: 2.5cm 2cm 1cm 1.5cm;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
.template-elegant-split .cv-header h1 {
    font-size: 26pt;
    font-weight: 700;
    letter-spacing: 1px;
}
.template-elegant-split .cv-header h2 {
    color: #64748b;
    font-size: 13pt;
    font-style: italic;
    font-weight: 300;
    margin-top: 8px;
}
.template-elegant-split .cv-profil-section,
.template-elegant-split .cv-keahlian-section,
.template-elegant-split .cv-kontak-section {
    grid-column: 1 / 2;
    background-color: #f8fafc;
    color: #334155;
    padding: 1.5rem 1.5cm;
    border-right: 1px solid #e2e8f0;
    font-family: 'Inter', sans-serif;
    font-size: 9.5pt;
}
.template-elegant-split .cv-personal-section,
.template-elegant-split .cv-pendidikan-section,
.template-elegant-split .cv-pengalaman-section,
.template-elegant-split .cv-hobi-section {
    grid-column: 2 / 3;
    padding: 1.5rem 2cm 1.5rem 1.5cm;
    background: #fff;
}
.template-elegant-split .cv-section-title {
    color: #0f172a;
    font-size: 13pt;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-align: center;
}
.template-elegant-split .cv-personal-section .cv-section-title,
.template-elegant-split .cv-pendidikan-section .cv-section-title,
.template-elegant-split .cv-pengalaman-section .cv-section-title,
.template-elegant-split .cv-hobi-section .cv-section-title {
    text-align: left;
}
.template-elegant-split .cv-skills-list .cv-skill-tag {
    display: inline-block;
    border: 1px solid #cbd5e1;
    padding: 3px 8px;
    border-radius: 3px;
    margin: 0 5px 8px 0;
    font-size: 9pt;
}

/* 9. Emerald Split (Kiri Hijau) */
.template-emerald-split {
    font-family: 'Outfit', sans-serif;
    color: #1f2937;
    display: grid;
    grid-template-columns: 32% 68%;
    gap: 0;
    padding: 0;
    margin: 0;
    min-height: 29.7cm;
    background: #fff;
}
.template-emerald-split .cv-photo-section {
    grid-column: 1 / 2;
    background-color: #064e3b; /* Emerald Dark */
    text-align: center;
    padding-top: 2.5cm;
}
.template-emerald-split .cv-photo-section img {
    width: 120px;
    height: 180px;
    border-radius: 4px;
    object-fit: cover;
    border: 3px solid #34d399; /* Emerald Light */
}
.template-emerald-split .cv-header {
    grid-column: 1 / 2;
    background-color: #064e3b;
    color: white;
    padding: 1cm 1.5cm;
    text-align: center;
}
.template-emerald-split .cv-header h1 {
    font-size: 22pt;
    font-weight: 700;
}
.template-emerald-split .cv-header h2 {
    color: #34d399;
    font-size: 12pt;
    font-weight: 500;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.template-emerald-split .cv-profil-section,
.template-emerald-split .cv-keahlian-section,
.template-emerald-split .cv-kontak-section {
    grid-column: 1 / 2;
    background-color: #064e3b;
    color: rgba(255,255,255,0.9);
    padding: 1rem 1.5cm;
}
.template-emerald-split .cv-personal-section,
.template-emerald-split .cv-pendidikan-section,
.template-emerald-split .cv-pengalaman-section,
.template-emerald-split .cv-hobi-section {
    grid-column: 2 / 3;
    padding: 1.5rem 2cm;
    background: #fff;
}
.template-emerald-split .cv-personal-section { padding-top: 2.5cm; }

.template-emerald-split .cv-section-title {
    color: #064e3b;
    font-size: 15pt;
    font-weight: 800;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 5px;
}
.template-emerald-split .cv-personal-section .cv-section-title::after,
.template-emerald-split .cv-pendidikan-section .cv-section-title::after,
.template-emerald-split .cv-pengalaman-section .cv-section-title::after,
.template-emerald-split .cv-hobi-section .cv-section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 3px;
    background: #34d399;
}
.template-emerald-split .cv-profil-section .cv-section-title,
.template-emerald-split .cv-keahlian-section .cv-section-title,
.template-emerald-split .cv-kontak-section .cv-section-title {
    color: white;
    text-align: center;
    border-bottom: 1px dashed rgba(255,255,255,0.3);
}
.template-emerald-split .cv-skills-list .cv-skill-tag {
    background: rgba(255,255,255,0.1);
    color: #a7f3d0;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
    margin: 3px;
    font-size: 9pt;
}

/* 10. Classic Maroon (Kiri Merah) */
.template-maroon-split {
    font-family: Arial, Helvetica, sans-serif;
    color: #000;
    display: grid;
    grid-template-columns: 33% 67%;
    gap: 0;
    padding: 0;
    margin: 0;
    min-height: 29.7cm;
    background: #fff;
}
.template-maroon-split .cv-photo-section {
    grid-column: 1 / 2;
    background-color: #83151b; /* Maroon */
    text-align: center;
    padding-top: 1.5cm;
    padding-bottom: 0.5cm;
}
.template-maroon-split .cv-photo-section img {
    width: 80%;
    max-width: 140px;
    height: auto;
    aspect-ratio: 2/3;
    border-radius: 4px; /* 4x6 photo */
    object-fit: cover;
    border: none;
}
.template-maroon-split .cv-header {
    grid-column: 1 / 2;
    background-color: #83151b;
    color: white;
    padding: 0.5cm 1.5cm;
    text-align: left;
}
.template-maroon-split .cv-header h1 {
    font-size: 24pt;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 10px;
}
.template-maroon-split .cv-header h2 {
    display: none; /* Hide title if it clutters the look based on the image, or keep it small */
}
.template-maroon-split .cv-profil-section,
.template-maroon-split .cv-keahlian-section,
.template-maroon-split .cv-kontak-section {
    grid-column: 1 / 2;
    background-color: #83151b;
    color: white;
    padding: 0.5rem 1.5cm 1.5rem 1.5cm;
    font-size: 10pt;
}
.template-maroon-split .contact-list li {
    margin-bottom: 8px;
    gap: 8px;
}
.template-maroon-split .contact-list li::before {
    content: '•';
}
.template-maroon-split .contact-list i {
    display: none; /* Hide icons to match bullet style in image */
}
.template-maroon-split .cv-personal-section,
.template-maroon-split .cv-pendidikan-section,
.template-maroon-split .cv-pengalaman-section,
.template-maroon-split .cv-hobi-section {
    grid-column: 2 / 3;
    padding: 1rem 1.5cm;
    background: #fff;
}
.template-maroon-split .cv-personal-section { padding-top: 1.5cm; }

.template-maroon-split .cv-section-title {
    font-size: 12pt;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.template-maroon-split .cv-personal-section .cv-section-title,
.template-maroon-split .cv-pendidikan-section .cv-section-title,
.template-maroon-split .cv-pengalaman-section .cv-section-title,
.template-maroon-split .cv-hobi-section .cv-section-title {
    color: #000;
    border-bottom: 1.5px solid #000;
    padding-bottom: 5px;
}
.template-maroon-split .cv-profil-section .cv-section-title,
.template-maroon-split .cv-keahlian-section .cv-section-title,
.template-maroon-split .cv-kontak-section .cv-section-title {
    color: white;
    border-bottom: 1.5px solid white;
    padding-bottom: 5px;
}
.template-maroon-split .cv-skills-list .cv-skill-tag {
    display: list-item;
    list-style-type: disc;
    margin-left: 20px;
    background: transparent;
    color: white;
    padding: 0;
    border: none;
    font-size: 10pt;
    font-weight: normal;
}
.template-maroon-split .cv-skills-list .cv-skill-tag::before {
    display: none;
}
.template-maroon-split .hobbies-list li {
    color: white;
    font-size: 10pt;
}
.template-maroon-split .hobbies-list li::before { color: white; }

/* Main content items */
.template-maroon-split .cv-item { margin-bottom: 15px; display: flex; flex-wrap: wrap; justify-content: space-between; }
.template-maroon-split .cv-item-title { font-weight: 700; width: 60%; }
.template-maroon-split .cv-item-subtitle { width: 40%; text-align: right; font-weight: 700; font-style: normal; color: #000; }
.template-maroon-split .cv-item-desc { width: 100%; margin-top: 5px; color: #000; font-size: 10pt; }
.template-maroon-split .cv-item-desc ul { margin-left: 20px; }
.template-maroon-split .cv-item-desc li { list-style-type: disc; margin-bottom: 3px; }

/* =========================================
   NEW AI FEATURES STYLES (NAV, TABS, ETC)
   ========================================= */

/* Top Navigation */
.top-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    border-radius: 1rem;
    border: 1px solid var(--panel-border);
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Tabs */
.tabs-container {
    display: flex;
    border-bottom: 1px solid var(--panel-border);
    gap: 1rem;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--text-main);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Raw ATS View */
.raw-ats-box {
    background: #0f172a;
    border: 1px solid var(--panel-border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}
.raw-ats-box pre {
    white-space: pre-wrap;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #e2e8f0;
}

/* AI Rewrite Button & Overlay */
.btn-ai-rewrite {
    background: linear-gradient(to right, #8b5cf6, #ec4899);
    border: none;
    color: white;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 99px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
}
.btn-ai-rewrite:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.4);
}

#ai-rewrite-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-rewrite-modal {
    padding: 2rem 3rem;
    text-align: center;
    border: 1px solid rgba(236, 72, 153, 0.3);
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.2);
}

.sm-loader {
    width: 30px; height: 30px;
    border-width: 3px;
    border-left-color: #ec4899;
    margin-bottom: 1rem;
}

/* Cover Letter */
.cl-output-textarea {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--panel-border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    color: var(--text-main);
    font-family: 'Georgia', serif;
    font-size: 1.05rem;
    line-height: 1.6;
    resize: vertical;
}
.cl-result-panel {
    min-height: 400px;
}
.absolute-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
}

/* Utilities */
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.max-w-lg { max-width: 32rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.relative { position: relative; }

/* =========================================================
   NEW PREMIUM TEMPLATES & ENHANCEMENTS
   ========================================================= */

/* 11. Harvard / Ivy League (Ultra-Clean ATS Standard) */
.template-harvard {
    font-family: 'Merriweather', 'Georgia', serif;
    color: #111827;
    background: #ffffff;
    padding: 2.5cm 2cm;
    line-height: 1.5;
}
.template-harvard .cv-header {
    text-align: center;
    border-bottom: 2px solid #111827;
    padding-bottom: 12px;
    margin-bottom: 18px;
}
.template-harvard .cv-header h1 {
    font-size: 20pt;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #111827;
    margin-bottom: 4px;
}
.template-harvard .cv-header h2 {
    font-size: 11pt;
    font-weight: 400;
    font-style: italic;
    color: #4b5563;
    margin-bottom: 6px;
}
.template-harvard .cv-contact {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 9.5pt;
    color: #374151;
}
.template-harvard .cv-section {
    margin-bottom: 16px;
    page-break-inside: avoid;
}
.template-harvard .cv-section-title {
    font-size: 11pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #111827;
    border-bottom: 1px solid #111827;
    padding-bottom: 3px;
    margin-bottom: 10px;
}
.template-harvard .cv-item {
    margin-bottom: 12px;
    page-break-inside: avoid;
}
.template-harvard .cv-item-header {
    display: flex;
    justify-content: space-between;
    font-size: 10.5pt;
    font-weight: 700;
    color: #111827;
}
.template-harvard .cv-item-subtitle {
    font-size: 10pt;
    font-style: italic;
    color: #374151;
    margin-bottom: 4px;
}
.template-harvard .cv-item-date {
    font-size: 9.5pt;
    font-weight: 400;
    color: #4b5563;
}
.template-harvard .cv-item-desc {
    font-size: 9.5pt;
    color: #374151;
    text-align: justify;
}
.template-harvard .cv-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.template-harvard .cv-skills-list .cv-skill-tag {
    background: transparent;
    color: #111827;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 9pt;
    font-family: 'Inter', sans-serif;
}

/* 12. Tech Minimalist (Notion / Linear Style + Dynamic QR) */
.template-tech-minimal {
    font-family: 'Inter', sans-serif;
    color: #0f172a;
    background: #ffffff;
    padding: 2.5cm 2cm;
    line-height: 1.6;
}
.template-tech-minimal .cv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 18px;
    margin-bottom: 22px;
}
.template-tech-minimal .header-text-container {
    flex: 1;
}
.template-tech-minimal .cv-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 22pt;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
}
.template-tech-minimal .cv-header h2 {
    font-size: 12pt;
    font-weight: 500;
    color: #64748b;
    margin-top: 2px;
}
.template-tech-minimal .cv-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 9pt;
    color: #475569;
    margin-top: 8px;
}
.template-tech-minimal .cv-qr-code {
    width: 68px;
    height: 68px;
    border: 1px solid #e2e8f0;
    padding: 3px;
    border-radius: 6px;
    background: #fff;
    flex-shrink: 0;
    margin-left: 15px;
}
.template-tech-minimal .cv-section {
    margin-bottom: 18px;
    page-break-inside: avoid;
}
.template-tech-minimal .cv-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 11pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.template-tech-minimal .cv-section-title::before {
    content: '//';
    color: #3b82f6;
    font-weight: 800;
}
.template-tech-minimal .cv-item {
    margin-bottom: 14px;
    padding-left: 12px;
    border-left: 2px solid #e2e8f0;
}
.template-tech-minimal .cv-item-title {
    font-weight: 700;
    font-size: 10.5pt;
    color: #0f172a;
}
.template-tech-minimal .cv-item-subtitle {
    font-size: 9.5pt;
    color: #3b82f6;
    font-weight: 500;
}
.template-tech-minimal .cv-item-date {
    font-size: 8.5pt;
    color: #94a3b8;
}
.template-tech-minimal .cv-skills-list .cv-skill-tag {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 8.5pt;
    font-weight: 600;
}

/* 13. Executive Leadership (Corporate Banner Style) */
.template-executive {
    font-family: 'Outfit', sans-serif;
    color: #1e293b;
    background: #ffffff;
    padding: 0;
    margin: 0;
    min-height: 29.7cm;
}
.template-executive .cv-header {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #ffffff;
    padding: 2.2cm 2cm 1.5cm 2cm;
    border-bottom: 4px solid #3b82f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.template-executive .cv-header h1 {
    font-size: 24pt;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}
.template-executive .cv-header h2 {
    font-size: 13pt;
    font-weight: 400;
    color: #93c5fd;
    margin-top: 4px;
}
.template-executive .cv-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 9pt;
    color: #cbd5e1;
    margin-top: 10px;
}
.template-executive .cv-body-content {
    padding: 1.5cm 2cm 2cm 2cm;
}
.template-executive .cv-section {
    margin-bottom: 20px;
    page-break-inside: avoid;
}
.template-executive .cv-section-title {
    font-size: 12pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0f172a;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 5px;
    margin-bottom: 12px;
}
.template-executive .cv-item-title {
    font-weight: 700;
    font-size: 11pt;
    color: #0f172a;
}
.template-executive .cv-item-subtitle {
    font-size: 10pt;
    color: #1e40af;
    font-weight: 600;
}
.template-executive .cv-skills-list .cv-skill-tag {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 9pt;
    font-weight: 600;
}

/* Template Card Visual Selector */
.template-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin-bottom: 1.5rem;
}
.template-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.template-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}
.template-card.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}
.template-card-preview {
    height: 60px;
    border-radius: 6px;
    margin-bottom: 6px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    padding: 5px;
    gap: 3px;
    overflow: hidden;
}
.template-card-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Builder Actions Toolbar */
.builder-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    align-items: center;
    justify-content: space-between;
}
.toolbar-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.autosave-status {
    font-size: 0.75rem;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Print Optimization */
@media print {
    body { background: #ffffff !important; color: #000 !important; }
    .background-shapes, header, .builder-form, .top-nav, .analyze-action, .tabs-container, .btn, #ai-rewrite-overlay, .builder-toolbar, .template-cards-grid, .template-selector {
        display: none !important;
    }
    .container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .builder-layout {
        display: block !important;
    }
    .cv-preview-container {
        margin: 0 !important;
        padding: 0 !important;
    }
    .cv-page {
        box-shadow: none !important;
        margin: 0 auto !important;
        border-radius: 0 !important;
        width: 100% !important;
        min-height: auto !important;
    }
    .cv-item, .cv-section, .cv-header {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
}

/* =========================================================
   ADDITIONAL 12+ COMMERCIAL-GRADE CV TEMPLATES
   ========================================================= */

/* 14. Silicon Valley (Modern Tech Monospace / Slate Accent) */
.template-silicon-valley {
    font-family: 'Inter', system-ui, sans-serif;
    color: #0f172a;
    background: #ffffff;
    padding: 2.2cm 2cm;
    line-height: 1.55;
}
.template-silicon-valley .cv-header {
    border-bottom: 3px solid #0f172a;
    padding-bottom: 14px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.template-silicon-valley .cv-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 24pt;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #0f172a;
    margin: 0;
}
.template-silicon-valley .cv-header h2 {
    font-family: monospace;
    font-size: 11pt;
    font-weight: 600;
    color: #2563eb;
    margin-top: 4px;
}
.template-silicon-valley .cv-contact {
    font-family: monospace;
    font-size: 8.5pt;
    color: #475569;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}
.template-silicon-valley .cv-section {
    margin-bottom: 16px;
    page-break-inside: avoid;
}
.template-silicon-valley .cv-section-title {
    font-family: monospace;
    font-size: 10.5pt;
    font-weight: 700;
    color: #0f172a;
    background: #f1f5f9;
    padding: 4px 10px;
    border-left: 4px solid #2563eb;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.template-silicon-valley .cv-item-title {
    font-weight: 700;
    font-size: 10.5pt;
    color: #0f172a;
}
.template-silicon-valley .cv-item-subtitle {
    font-size: 9.5pt;
    color: #2563eb;
    font-weight: 600;
}
.template-silicon-valley .cv-item-date {
    font-family: monospace;
    font-size: 8.5pt;
    color: #64748b;
}
.template-silicon-valley .cv-skills-list .cv-skill-tag {
    font-family: monospace;
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 8.5pt;
    font-weight: 600;
}

/* 15. Nordic Clean (Scandinavian Minimalist) */
.template-nordic-clean {
    font-family: 'Outfit', sans-serif;
    color: #2d3748;
    background: #fafafa;
    padding: 2.5cm 2.2cm;
    line-height: 1.6;
}
.template-nordic-clean .cv-header {
    text-align: left;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}
.template-nordic-clean .cv-header h1 {
    font-size: 26pt;
    font-weight: 300;
    color: #1a202c;
    letter-spacing: -0.5px;
}
.template-nordic-clean .cv-header h2 {
    font-size: 12pt;
    font-weight: 500;
    color: #718096;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 4px;
}
.template-nordic-clean .cv-contact {
    display: flex;
    gap: 16px;
    font-size: 9pt;
    color: #718096;
    margin-top: 12px;
}
.template-nordic-clean .cv-section-title {
    font-size: 10.5pt;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #4a5568;
    margin-bottom: 12px;
    padding-bottom: 4px;
    border-bottom: 1px solid #cbd5e0;
}
.template-nordic-clean .cv-item-title {
    font-weight: 600;
    font-size: 10.5pt;
    color: #2d3748;
}
.template-nordic-clean .cv-item-subtitle {
    font-size: 9.5pt;
    color: #718096;
}
.template-nordic-clean .cv-skills-list .cv-skill-tag {
    background: #ffffff;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 8.5pt;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

/* 16. Swiss International (Helvetica Style Modern Grid) */
.template-swiss-international {
    font-family: 'Inter', sans-serif;
    color: #000000;
    background: #ffffff;
    padding: 2.2cm 2cm;
    line-height: 1.45;
}
.template-swiss-international .cv-header {
    border-top: 6px solid #e11d48;
    padding-top: 14px;
    margin-bottom: 22px;
}
.template-swiss-international .cv-header h1 {
    font-size: 28pt;
    font-weight: 900;
    letter-spacing: -1px;
    color: #000000;
    margin: 0;
    line-height: 1.1;
}
.template-swiss-international .cv-header h2 {
    font-size: 13pt;
    font-weight: 700;
    color: #e11d48;
    margin-top: 4px;
}
.template-swiss-international .cv-contact {
    display: flex;
    gap: 14px;
    font-size: 9pt;
    font-weight: 600;
    color: #52525b;
    margin-top: 8px;
    border-top: 1px solid #000;
    padding-top: 8px;
}
.template-swiss-international .cv-section-title {
    font-size: 11pt;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000000;
    border-bottom: 2px solid #000000;
    padding-bottom: 2px;
    margin-bottom: 10px;
}
.template-swiss-international .cv-item-title {
    font-weight: 800;
    font-size: 10.5pt;
    color: #000;
}
.template-swiss-international .cv-item-subtitle {
    font-weight: 600;
    font-size: 9.5pt;
    color: #e11d48;
}
.template-swiss-international .cv-skills-list .cv-skill-tag {
    background: #000000;
    color: #ffffff;
    border-radius: 0;
    padding: 2px 8px;
    font-size: 8.5pt;
    font-weight: 700;
}

/* 17. Luxury Gold & Charcoal */
.template-gold-luxury {
    font-family: 'Outfit', sans-serif;
    color: #1e1e24;
    background: #ffffff;
    padding: 0;
    min-height: 29.7cm;
}
.template-gold-luxury .cv-header {
    background: #18181b;
    color: #ffffff;
    padding: 2.2cm 2cm 1.5cm 2cm;
    border-bottom: 4px solid #d97706;
}
.template-gold-luxury .cv-header h1 {
    font-size: 24pt;
    font-weight: 700;
    color: #fef08a;
    letter-spacing: 0.5px;
}
.template-gold-luxury .cv-header h2 {
    font-size: 12pt;
    font-weight: 400;
    color: #fbbf24;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.template-gold-luxury .cv-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 9pt;
    color: #d4d4d8;
    margin-top: 10px;
}
.template-gold-luxury .cv-profil-section,
.template-gold-luxury .cv-pengalaman-section,
.template-gold-luxury .cv-pendidikan-section,
.template-gold-luxury .cv-keahlian-section {
    padding: 0.8rem 2cm;
}
.template-gold-luxury .cv-profil-section {
    padding-top: 1.5rem;
}
.template-gold-luxury .cv-section-title {
    font-size: 11pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #92400e;
    border-bottom: 1.5px solid #fde68a;
    padding-bottom: 4px;
    margin-bottom: 10px;
}
.template-gold-luxury .cv-item-title {
    font-weight: 700;
    font-size: 10.5pt;
    color: #18181b;
}
.template-gold-luxury .cv-item-subtitle {
    font-size: 9.5pt;
    color: #b45309;
    font-weight: 600;
}
.template-gold-luxury .cv-skills-list .cv-skill-tag {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 8.5pt;
    font-weight: 600;
}

/* 18. Tokyo Compact (Dense High-Density Space Saver) */
.template-tokyo-compact {
    font-family: 'Inter', sans-serif;
    color: #1f2937;
    background: #ffffff;
    padding: 1.8cm 1.6cm;
    line-height: 1.4;
}
.template-tokyo-compact .cv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #2563eb;
    padding-bottom: 8px;
    margin-bottom: 14px;
}
.template-tokyo-compact .cv-header h1 {
    font-size: 18pt;
    font-weight: 800;
    color: #111827;
    margin: 0;
}
.template-tokyo-compact .cv-header h2 {
    font-size: 10.5pt;
    font-weight: 600;
    color: #2563eb;
    margin: 0;
}
.template-tokyo-compact .cv-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 8pt;
    color: #4b5563;
    margin-top: 4px;
}
.template-tokyo-compact .cv-section {
    margin-bottom: 12px;
}
.template-tokyo-compact .cv-section-title {
    font-size: 9.5pt;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1e3a8a;
    border-bottom: 1px solid #93c5fd;
    padding-bottom: 2px;
    margin-bottom: 6px;
}
.template-tokyo-compact .cv-item {
    margin-bottom: 8px;
}
.template-tokyo-compact .cv-item-title {
    font-size: 9.5pt;
    font-weight: 700;
}
.template-tokyo-compact .cv-item-subtitle {
    font-size: 8.5pt;
    color: #2563eb;
}
.template-tokyo-compact .cv-item-date {
    font-size: 8pt;
    color: #6b7280;
}
.template-tokyo-compact .cv-item-desc {
    font-size: 8.5pt;
}
.template-tokyo-compact .cv-skills-list .cv-skill-tag {
    background: #f3f4f6;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-radius: 3px;
    padding: 1px 6px;
    font-size: 8pt;
    font-weight: 600;
}

/* 19. Creative Designer (Pastel Violet & Coral) */
.template-creative-designer {
    font-family: 'Outfit', sans-serif;
    color: #2e1065;
    background: #ffffff;
    display: grid;
    grid-template-columns: 34% 66%;
    min-height: 29.7cm;
    border-radius: 24px;
    overflow: hidden;
}
.template-creative-designer .cv-photo-section,
.template-creative-designer .cv-header,
.template-creative-designer .cv-profil-section,
.template-creative-designer .cv-keahlian-section,
.template-creative-designer .cv-kontak-section {
    grid-column: 1 / 2;
    background: #f5f3ff;
    padding: 1rem 1.6cm;
}
.template-creative-designer .cv-photo-section {
    padding-top: 2.5cm;
    text-align: center;
}
.template-creative-designer .cv-photo-section img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid #8b5cf6;
    object-fit: cover;
}
.template-creative-designer .cv-header h1 {
    font-size: 20pt;
    font-weight: 800;
    color: #4c1d95;
}
.template-creative-designer .cv-header h2 {
    font-size: 11pt;
    font-weight: 600;
    color: #ec4899;
}
.template-creative-designer .cv-section-title {
    font-size: 10.5pt;
    font-weight: 800;
    text-transform: uppercase;
    color: #6d28d9;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.template-creative-designer .cv-pengalaman-section,
.template-creative-designer .cv-pendidikan-section,
.template-creative-designer .cv-personal-section,
.template-creative-designer .cv-hobi-section {
    grid-column: 2 / 3;
    padding: 1.2rem 1.8cm;
    background: #ffffff;
}
.template-creative-designer .cv-pengalaman-section {
    padding-top: 2.5cm;
}
.template-creative-designer .cv-item-title {
    font-weight: 700;
    font-size: 11pt;
    color: #4c1d95;
}
.template-creative-designer .cv-item-subtitle {
    font-size: 9.5pt;
    color: #ec4899;
    font-weight: 600;
}
.template-creative-designer .cv-skills-list .cv-skill-tag {
    background: #ede9fe;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
    border-radius: 12px;
    padding: 3px 10px;
    font-size: 8.5pt;
    font-weight: 600;
}

/* 20. Academic & Researcher (Latinate Serif Standard) */
.template-academic-cv {
    font-family: 'Merriweather', 'Times New Roman', serif;
    color: #000000;
    background: #ffffff;
    padding: 2.5cm 2.2cm;
    line-height: 1.6;
}
.template-academic-cv .cv-header {
    text-align: center;
    margin-bottom: 24px;
    border-bottom: 1px solid #000000;
    padding-bottom: 12px;
}
.template-academic-cv .cv-header h1 {
    font-size: 20pt;
    font-weight: 700;
    color: #000000;
}
.template-academic-cv .cv-header h2 {
    font-size: 11pt;
    font-style: italic;
    color: #333333;
}
.template-academic-cv .cv-contact {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 9pt;
    color: #333333;
    margin-top: 6px;
}
.template-academic-cv .cv-section-title {
    font-size: 11pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000000;
    margin-top: 14px;
    margin-bottom: 8px;
    border-bottom: 0.5px solid #666;
}
.template-academic-cv .cv-item-title {
    font-size: 10pt;
    font-weight: 700;
}
.template-academic-cv .cv-item-subtitle {
    font-size: 9.5pt;
    font-style: italic;
}
.template-academic-cv .cv-skills-list .cv-skill-tag {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 9pt;
    color: #000;
}
.template-academic-cv .cv-skills-list .cv-skill-tag::after {
    content: " • ";
    margin: 0 4px;
}
.template-academic-cv .cv-skills-list .cv-skill-tag:last-child::after {
    content: "";
}

/* 21. Teal Corporate Modern */
.template-teal-corporate {
    font-family: 'Outfit', sans-serif;
    color: #134e4a;
    background: #ffffff;
    padding: 2.2cm 2cm;
    line-height: 1.55;
}
.template-teal-corporate .cv-header {
    background: #0f766e;
    color: #ffffff;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 20px;
}
.template-teal-corporate .cv-header h1 {
    color: #ffffff;
    font-size: 22pt;
    font-weight: 800;
}
.template-teal-corporate .cv-header h2 {
    color: #99f6e4;
    font-size: 12pt;
    font-weight: 500;
}
.template-teal-corporate .cv-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 9pt;
    color: #ccfbf1;
    margin-top: 8px;
}
.template-teal-corporate .cv-section-title {
    font-size: 11pt;
    font-weight: 800;
    text-transform: uppercase;
    color: #0f766e;
    border-bottom: 2px solid #5eead4;
    padding-bottom: 4px;
    margin-bottom: 12px;
}
.template-teal-corporate .cv-item-title {
    font-weight: 700;
    font-size: 10.5pt;
    color: #134e4a;
}
.template-teal-corporate .cv-item-subtitle {
    font-size: 9.5pt;
    color: #0d9488;
    font-weight: 600;
}
.template-teal-corporate .cv-skills-list .cv-skill-tag {
    background: #f0fdfa;
    color: #0f766e;
    border: 1px solid #99f6e4;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 8.5pt;
    font-weight: 600;
}

/* 22. Berlin Slate (Industrial Bold Tech) */
.template-berlin-slate {
    font-family: 'Inter', sans-serif;
    color: #0f172a;
    background: #ffffff;
    padding: 2.2cm 2cm;
}
.template-berlin-slate .cv-header {
    border-left: 6px solid #06b6d4;
    padding-left: 16px;
    margin-bottom: 24px;
}
.template-berlin-slate .cv-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 26pt;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #0f172a;
}
.template-berlin-slate .cv-header h2 {
    font-size: 12pt;
    font-weight: 700;
    color: #0891b2;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.template-berlin-slate .cv-contact {
    display: flex;
    gap: 14px;
    font-size: 9pt;
    color: #64748b;
    margin-top: 6px;
}
.template-berlin-slate .cv-section-title {
    font-size: 11pt;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #0f172a;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 4px;
    margin-bottom: 12px;
}
.template-berlin-slate .cv-item-title {
    font-weight: 700;
    font-size: 10.5pt;
    color: #0f172a;
}
.template-berlin-slate .cv-item-subtitle {
    color: #0891b2;
    font-weight: 600;
    font-size: 9.5pt;
}
.template-berlin-slate .cv-skills-list .cv-skill-tag {
    background: #ecfeff;
    color: #0e7490;
    border: 1px solid #a5f3fc;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 8.5pt;
    font-weight: 600;
}

/* 23. Warm Editorial (Vogue / NYT Style) */
.template-warm-editorial {
    font-family: 'Merriweather', 'Georgia', serif;
    color: #292524;
    background: #fdfbf7;
    padding: 2.5cm 2.2cm;
    line-height: 1.65;
}
.template-warm-editorial .cv-header {
    text-align: center;
    border-bottom: 1px solid #d6d3d1;
    padding-bottom: 18px;
    margin-bottom: 22px;
}
.template-warm-editorial .cv-header h1 {
    font-size: 24pt;
    font-weight: 300;
    color: #1c1917;
    letter-spacing: 1px;
}
.template-warm-editorial .cv-header h2 {
    font-size: 11pt;
    font-style: italic;
    font-weight: 400;
    color: #78716c;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 4px;
}
.template-warm-editorial .cv-contact {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 9pt;
    color: #78716c;
    margin-top: 8px;
}
.template-warm-editorial .cv-section-title {
    font-size: 10.5pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #44403c;
    border-bottom: 1px solid #e7e5e4;
    padding-bottom: 4px;
    margin-bottom: 12px;
}
.template-warm-editorial .cv-item-title {
    font-size: 10.5pt;
    font-weight: 700;
    color: #1c1917;
}
.template-warm-editorial .cv-item-subtitle {
    font-size: 9.5pt;
    font-style: italic;
    color: #78716c;
}
.template-warm-editorial .cv-skills-list .cv-skill-tag {
    background: #f5f5f4;
    color: #44403c;
    border: 1px solid #e7e5e4;
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 8.5pt;
}

/* 24. Monochrome Bold Edge */
.template-monochrome-edge {
    font-family: 'Inter', sans-serif;
    color: #18181b;
    background: #ffffff;
    padding: 2.2cm 2cm;
    border: 8px solid #18181b;
    margin: 0;
}
.template-monochrome-edge .cv-header {
    border-bottom: 4px solid #18181b;
    padding-bottom: 12px;
    margin-bottom: 18px;
}
.template-monochrome-edge .cv-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 26pt;
    font-weight: 900;
    text-transform: uppercase;
    color: #18181b;
}
.template-monochrome-edge .cv-header h2 {
    font-size: 12pt;
    font-weight: 700;
    color: #71717a;
}
.template-monochrome-edge .cv-contact {
    display: flex;
    gap: 12px;
    font-size: 9pt;
    color: #52525b;
    margin-top: 6px;
}
.template-monochrome-edge .cv-section-title {
    font-size: 11pt;
    font-weight: 900;
    text-transform: uppercase;
    color: #18181b;
    border-bottom: 2px solid #18181b;
    padding-bottom: 2px;
    margin-bottom: 10px;
}
.template-monochrome-edge .cv-item-title {
    font-weight: 800;
    font-size: 10.5pt;
}
.template-monochrome-edge .cv-skills-list .cv-skill-tag {
    background: #18181b;
    color: #ffffff;
    padding: 2px 8px;
    font-size: 8.5pt;
    font-weight: 700;
}

/* 25. Compact 1-Page ATS */
.template-compact-ats {
    font-family: 'Calibri', 'Arial', sans-serif;
    color: #000000;
    background: #ffffff;
    padding: 1.5cm 1.5cm;
    line-height: 1.35;
}
.template-compact-ats .cv-header {
    text-align: center;
    border-bottom: 1.5px solid #000;
    padding-bottom: 6px;
    margin-bottom: 10px;
}
.template-compact-ats .cv-header h1 {
    font-size: 18pt;
    font-weight: bold;
    margin: 0;
}
.template-compact-ats .cv-header h2 {
    font-size: 10pt;
    font-weight: normal;
    font-style: italic;
    margin: 2px 0;
}
.template-compact-ats .cv-contact {
    font-size: 8.5pt;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.template-compact-ats .cv-section {
    margin-bottom: 10px;
}
.template-compact-ats .cv-section-title {
    font-size: 10pt;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 1px solid #000;
    padding-bottom: 1px;
    margin-bottom: 4px;
}
.template-compact-ats .cv-item {
    margin-bottom: 6px;
}
.template-compact-ats .cv-item-title {
    font-size: 9.5pt;
    font-weight: bold;
}
.template-compact-ats .cv-item-subtitle {
    font-size: 9pt;
    font-style: italic;
}
.template-compact-ats .cv-item-date {
    font-size: 8.5pt;
}
.template-compact-ats .cv-item-desc {
    font-size: 8.5pt;
}
.template-compact-ats .cv-skills-list .cv-skill-tag {
    background: transparent;
    padding: 0;
    font-size: 8.5pt;
}
.template-compact-ats .cv-skills-list .cv-skill-tag::after {
    content: ", ";
}
.template-compact-ats .cv-skills-list .cv-skill-tag:last-child::after {
    content: "";
}
