/* ==========================================
   VARIÁVEIS E RESET - OTIMIZADO (MODERNO 2026)
   ========================================== */
:root {
    /* Paleta de Cores Moderna e Profissional */
    --primary-color: #2563eb;
    /* Azul vibrante principal */
    --primary-hover: #1d4ed8;
    /* Azul mais escuro para hover */
    --primary-light: #eff6ff;
    /* Fundo azul muito claro */

    --accent-color: #0f172a;
    /* Slate escuro para contrastes */
    --accent-hover: #1e293b;

    --text-main: #1e293b;
    /* Slate 800 - Texto principal (mais suave que preto) */
    --text-secondary: #475569;
    /* Slate 600 - Texto secundário */
    --text-muted: #94a3b8;
    /* Slate 400 - Texto desabilitado/placeholder */

    --bg-body: #f8fafc;
    /* Slate 50 - Fundo da página */
    --bg-surface: #ffffff;
    /* Branco - Superfícies de cartões/painéis */
    --bg-alt: #f1f5f9;
    /* Slate 100 - Fundo alternativo */

    --border-color: #e2e8f0;
    /* Slate 200 - Bordas sutis */
    --border-hover: #cbd5e1;
    /* Slate 300 - Bordas ao passar o mouse */

    /* Dimensões */
    --sidebar-width: 480px;
    /* Ligeiramente mais largo para conforto */
    --header-height: 70px;
    --a4-width: 210mm;
    --a4-height: 297mm;

    /* Sombras Suaves (Apple-like) */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.02);

    /* Animações e Transições */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;

    /* Compatibilidade */
    --user-color: var(--primary-color);
    --user-color-light: #60a5fa;
    --user-color-dark: var(--primary-hover);
    --bg-color: var(--bg-alt);
    --text-color: var(--text-main);

    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Reset Moderno */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

/* ==========================================
   HEADER - MODERNO E LIMPO
   ========================================== */
header {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    opacity: 0.98;
}

header h1 {
    font-size: 1.35rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

header h1 svg {
    color: var(--primary-color);
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.2));
}

nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

nav a:hover {
    color: var(--primary-color);
    background-color: var(--primary-light);
}

/* ==========================================
   MAIN LAYOUT - HORIZONTAL (EDITOR LEFT + PREVIEW RIGHT)
   ========================================== */
main {
    flex: 1;
    display: flex;
    flex-direction: row;
    height: calc(100vh - 70px);
    overflow: hidden;
}

/* ==========================================
   EDITOR PANEL - LEFT SIDEBAR COM STEPS
   ========================================== */
.editor-panel {
    width: 100%;
    max-width: 480px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
}

.editor-panel::-webkit-scrollbar {
    width: 6px;
}

.editor-panel::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}


/* Step Navigation Styles */
.step-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    background: var(--bg-body);
    border: 2px solid transparent;
    font-size: 0.85rem;
}

.step-indicator:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.step-indicator.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.step-indicator.completed {
    background: var(--bg-surface);
    border-color: var(--primary-color);
}

.step-number {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.step-indicator.active .step-number {
    background: white;
    color: var(--primary-color);
}

.step-indicator.completed .step-number {
    background: var(--primary-color);
    color: white;
}

.step-label {
    font-weight: 600;
    font-size: 0.8rem;
    display: none;
}

@media (min-width: 1400px) {
    .step-label {
        display: inline;
    }
}

.step-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
    gap: 1rem;
}

.step-actions .btn {
    min-width: 120px;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title .section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 0.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.825rem;
    color: var(--text-secondary);
}

input,
textarea,
select {
    width: 100%;
    padding: 0.65rem 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--bg-body);
    color: var(--text-main);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
    background: var(--bg-surface);
    color: var(--text-main);
}

/* Photo Upload */
.photo-upload {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    padding: 1rem;
    background: var(--bg-body);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-color);
}

.photo-preview {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--border-color);
    background-size: cover;
    background-position: center;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.7rem;
    overflow: hidden;
    flex-shrink: 0;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 36px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    font-size: 0.8rem;
    padding: 0.5rem;
}

.btn-secondary:hover {
    background: var(--bg-body);
    border-color: var(--text-secondary);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-light);
}

.btn-download {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    margin-top: 1.2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
}

/* Dynamic Items */
.dynamic-item {
    background: var(--bg-body);
    padding: 0.875rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 0.65rem;
    transition: var(--transition);
}

.dynamic-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    background: var(--bg-surface);
}

/* ==========================================
   PREVIEW PANEL - À DIREITA DO EDITOR
   ========================================== */
.preview-panel {
    flex: 1;
    background-color: #525659;
    /* Cor neutra escura padrão de visualizadores de PDF */
    padding: 3rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.preview-toolbar {
    width: 100%;
    max-width: var(--a4-width);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-surface);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    opacity: 0.98;
}

#resume-preview {
    background: white;
    width: var(--a4-width);
    min-height: var(--a4-height);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    /* Sombra mais realista */
    margin-bottom: 4rem;
    transform-origin: top center;
    transition: transform 0.2s ease;
}

.preview-title {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-body);
    padding: 0.25rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

.btn-zoom {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-surface);
    border-radius: 50%;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.btn-zoom:hover {
    background: var(--primary-color);
    color: white;
}

#zoom-level {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    min-width: 45px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.preview-content {
    flex: 1;
    display: flex;
    justify-content: center;
    width: 100%;
    padding-bottom: 4rem;
}

/* ==========================================
   TEMPLATES - REFINADOS E MODERNOS
   ========================================== */

/* 1. Moderno - REDESENHADO */
.template-modern {
    display: grid;
    grid-template-columns: 35% 65%;
    height: 100%;
    font-family: 'Inter', 'Roboto', system-ui, sans-serif;
    color: #334155;
}

.template-modern .resume-sidebar {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    /* Gradiente sutil para mais profundidade */
    color: white;
    padding: 2.5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Efeito decorativo no topo da sidebar */
.template-modern .resume-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--user-color) 0%, var(--user-color-light, #60a5fa) 100%);
}

.template-modern .resume-main {
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
}

.template-modern .resume-photo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.template-modern .resume-photo-placeholder {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

.template-modern h1.name {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    font-weight: 700;
    display: none;
    /* Nome vai no main */
}

.template-modern .sidebar-name {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.template-modern h2.role {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    display: none;
    /* Role vai no main */
}

.template-modern .side-sec-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--user-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    margin-top: 1.75rem;
    color: #ffffff;
    width: 100%;
    text-align: left;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.template-modern .contact-info {
    width: 100%;
    text-align: left;
}

.template-modern .contact-info div {
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #e2e8f0;
    line-height: 1.5;
    word-break: break-word;
}

.template-modern .main-title {
    font-size: 2.5rem;
    color: var(--user-color);
    line-height: 1.1;
    margin-bottom: 0.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.03em;
}

.template-modern .main-role {
    font-size: 1.2rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.template-modern .main-sec-title {
    font-size: 1.15rem;
    border-bottom: 3px solid var(--user-color);
    padding-bottom: 0.5rem;
    margin: 1.75rem 0 1rem;
    color: #0f172a;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.template-modern h3 {
    font-size: 1.05rem;
    color: #0f172a;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.template-modern h4 {
    font-size: 0.9rem;
    color: var(--user-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.template-modern .item-content {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #475569;
    text-align: justify;
    margin-bottom: 1.25rem;
}

.template-modern .skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    width: 100%;
}

.template-modern .tag {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    font-size: 0.8rem;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.template-modern .languages-list {
    width: 100%;
    text-align: left;
}

.template-modern .languages-list>div {
    margin-bottom: 0.65rem;
    font-size: 0.85rem;
    color: #e2e8f0;
}

.template-modern .languages-list strong {
    color: #ffffff;
    font-weight: 600;
}

.template-modern .signature-section {
    text-align: right;
    margin-top: auto;
    padding-top: 3rem;
}


/* 2. Clássico - Refinado */
.template-classic {
    font-family: 'Merriweather', serif;
    color: #1e293b;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2.5rem;
    line-height: 1.6;
}

.template-classic .header-classic {
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.template-classic h1 {
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 0.65rem;
    color: #0f172a;
    letter-spacing: 0.05em;
}

.template-classic .role {
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--user-color);
    font-weight: 400;
}

.template-classic .contact-classic {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    font-size: 0.825rem;
    font-family: 'Inter', sans-serif;
    color: #64748b;
}

.template-classic .sec-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    border-bottom: 1px solid #0f172a;
    margin: 1.5rem 0 0.85rem 0;
    font-weight: 900;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.1em;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.template-classic h3 {
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 0.2rem;
    color: #0f172a;
}

.template-classic h4 {
    font-size: 0.9rem;
    font-style: italic;
    color: #475569;
    font-weight: 400;
    margin-bottom: 0.4rem;
}

.template-classic .date {
    font-style: italic;
    color: #64748b;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
    display: block;
    font-family: 'Inter', sans-serif;
}

.template-classic .item-content {
    font-size: 0.875rem;
    color: #334155;
    text-align: justify;
}

/* 3. Criativo - Vibrante */
.template-creative {
    font-family: 'Inter', sans-serif;
    color: #334155;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.template-creative::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 35%;
    height: 100%;
    background: #f8fafc;
    z-index: 0;
    border-right: 1px solid var(--border-color);
}

.template-creative .header-creative {
    padding: 2.5rem 2rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.template-creative .resume-photo {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    border: 3px solid white;
}

.template-creative h1 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.4rem;
    color: #0f172a;
    line-height: 1;
}

.template-creative .role {
    color: var(--user-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.template-creative .content-grid {
    display: grid;
    grid-template-columns: 30% 65%;
    gap: 5%;
    padding: 0 2rem 2rem;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.template-creative .sec-title {
    color: #0f172a;
    font-size: 0.825rem;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 0.85rem;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.template-creative .sec-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--border-color);
}

.template-creative h3 {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 0.2rem;
}

.template-creative h4 {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--user-color);
    margin-bottom: 0.4rem;
}

.template-creative .date {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 500;
}

.template-creative .item-content {
    font-size: 0.875rem;
    line-height: 1.55;
    color: #475569;
}

.template-creative .skills-list li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
    list-style: none;
    font-weight: 500;
    color: #334155;
}

.template-creative .skills-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--user-color);
    position: absolute;
    left: 0;
    top: 8px;
    border-radius: 50%;
}

.template-creative .signature-section {
    grid-column: 2;
    text-align: right;
    margin-top: 3rem;
}

/* 4. Minimalista - Clean */
.template-minimal {
    font-family: 'Inter', sans-serif;
    color: #334155;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2.5rem;
    line-height: 1.55;
}

.template-minimal .header-minimal {
    margin-bottom: 2.5rem;
    flex-shrink: 0;
}

.template-minimal h1 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: -0.03em;
    margin-bottom: 0.4rem;
    color: #0f172a;
    line-height: 1;
}

.template-minimal .role {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.template-minimal .contact-row {
    display: flex;
    gap: 1.25rem;
    font-size: 0.825rem;
    color: #64748b;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.template-minimal .sec-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    margin: 1.75rem 0 1.1rem 0;
    color: #94a3b8;
}

.template-minimal .job-item,
.template-minimal .edu-item {
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 1.25rem;
}

.template-minimal h3 {
    font-weight: 600;
    font-size: 1rem;
    color: #0f172a;
    margin-bottom: 0.2rem;
}

.template-minimal .date {
    font-size: 0.825rem;
    color: #94a3b8;
    text-align: right;
    padding-top: 0.15rem;
}

.template-minimal .item-content {
    font-size: 0.9rem;
    color: #475569;
}

.template-minimal .skills-pill {
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.3rem 0.75rem;
    background: #f1f5f9;
    color: #334155;
    border-radius: 4px;
    font-size: 0.825rem;
    font-weight: 500;
}

.template-minimal .signature-section {
    text-align: left;
    margin-top: auto;
}

/* 5. Executivo - Premium */
.template-executive {
    display: grid;
    grid-template-columns: 32% 68%;
    font-family: 'Merriweather', serif;
    color: #334155;
    height: 100%;
}

.template-executive .sidebar-exec {
    background-color: #f8fafc;
    color: #334155;
    padding: 2rem 1.5rem;
    border-right: 1px solid var(--border-color);
}

.template-executive .main-exec {
    padding: 2.5rem 2rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.template-executive h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 0.4rem;
    line-height: 1;
    color: #0f172a;
}

.template-executive .role {
    font-family: 'Inter', sans-serif;
    font-size: 0.825rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--user-color);
    margin-bottom: 1.75rem;
    font-weight: 600;
}

.template-executive .sec-title-side {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin: 1.5rem 0 0.85rem;
    font-weight: 700;
}

.template-executive .sec-title-main {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    margin: 0 0 1.25rem 0;
    padding-bottom: 0.65rem;
    font-weight: 700;
    color: #0f172a;
}

.template-executive h3 {
    font-weight: 700;
    font-size: 1rem;
    color: #0f172a;
    margin-bottom: 0.2rem;
}

.template-executive h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.825rem;
    color: var(--user-color);
    margin-bottom: 0.5rem;
}

.template-executive .date {
    font-style: italic;
    color: #64748b;
    font-size: 0.825rem;
    margin-bottom: 0.4rem;
    display: block;
}

.template-executive .item-content {
    font-family: 'Merriweather', serif;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #334155;
}

.template-executive .contact-item {
    font-family: 'Inter', sans-serif;
    font-size: 0.825rem;
    margin-bottom: 0.75rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.template-executive .skill-item {
    margin-bottom: 0.5rem;
    font-size: 0.825rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.35rem;
    font-family: 'Inter', sans-serif;
}

.template-executive .signature-section {
    text-align: right;
    margin-top: auto;
}

/* 6. Tech - Moderno */
.template-tech {
    font-family: 'Roboto Mono', monospace;
    color: #c9d1d9;
    background-color: #0d1117;
    /* GitHub Dark */
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem;
    line-height: 1.5;
}

.template-tech .header-tech {
    border-bottom: 1px solid #30363d;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-shrink: 0;
}

.template-tech h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #58a6ff;
}

.template-tech .role {
    color: #8b949e;
    font-size: 1rem;
}

.template-tech .tech-bar {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.825rem;
    color: #8b949e;
}

.template-tech .sec-title {
    font-size: 0.9rem;
    color: #ff7b72;
    margin: 1.5rem 0 0.85rem 0;
    font-weight: 700;
}

.template-tech h3 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: #d2a8ff;
}

.template-tech .date {
    color: #8b949e;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    display: block;
}

.template-tech .item-content {
    font-size: 0.825rem;
    color: #c9d1d9;
}

.template-tech .skills-list li {
    list-style: none;
    margin-bottom: 0.4rem;
    color: #a5d6ff;
}

.template-tech .skills-list li::before {
    content: '> ';
    color: #79c0ff;
}

.template-tech .resume-photo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 2px solid #30363d;
    border-radius: 6px;
}

.template-tech .signature-section {
    border-top: 1px solid #30363d;
    padding-top: 2rem;
    margin-top: auto;
    text-align: right;
}

/* 7. Elegante - Luxo */
.template-elegant {
    font-family: 'Lato', sans-serif;
    color: #334155;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2.5rem;
}

.template-elegant h1,
.template-elegant h2 {
    font-family: 'Playfair Display', serif;
}

.template-elegant .header-elegant {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    flex-shrink: 0;
}

.template-elegant h1 {
    font-size: 2.5rem;
    color: var(--user-color);
    margin-bottom: 0.5rem;
    font-weight: 400;
    font-style: italic;
}

.template-elegant .role {
    font-size: 1.1rem;
    color: #64748b;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
}

.template-elegant .divider {
    width: 60px;
    height: 2px;
    background: var(--user-color);
    margin: 1.25rem auto;
}

.template-elegant .contact-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.825rem;
    color: #64748b;
}

.template-elegant .sec-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #0f172a;
    margin: 1.75rem 0 1.1rem 0;
    text-align: center;
    font-style: italic;
}

.template-elegant h3 {
    font-weight: 700;
    font-size: 1.05rem;
    color: #0f172a;
    margin-bottom: 0.2rem;
}

.template-elegant h4 {
    font-weight: 400;
    color: var(--user-color);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.template-elegant .date {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
    letter-spacing: 1px;
}

.template-elegant .item-content {
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: justify;
    color: #475569;
}

.template-elegant .signature-section {
    text-align: center;
    margin-top: auto;
}

/* 8. Corporativo - Sóbrio */
.template-corporate {
    font-family: 'Inter', sans-serif;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #334155;
}

.template-corporate .header-corp {
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    padding: 2.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.template-corporate .header-left h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.4rem;
    letter-spacing: -0.03em;
}

.template-corporate .header-left .role {
    font-size: 1rem;
    color: var(--user-color);
    font-weight: 600;
}

.template-corporate .header-right {
    text-align: right;
    font-size: 0.825rem;
    line-height: 1.55;
    color: #64748b;
}

.template-corporate .main-body {
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.template-corporate .body-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
}

.template-corporate .sec-title {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
    margin-bottom: 0.85rem;
    color: #0f172a;
    letter-spacing: 0.05em;
}

.template-corporate .job-item,
.template-corporate .edu-item {
    margin-bottom: 1.25rem;
}

.template-corporate h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.2rem;
}

.template-corporate .date {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 0.4rem;
    display: block;
}

.template-corporate .item-content {
    font-size: 0.875rem;
    line-height: 1.55;
    color: #475569;
}

.template-corporate .side-sec-title {
    font-size: 0.825rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.85rem;
    margin-top: 1.25rem;
}

.template-corporate .skill-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
    padding: 0.4rem 0;
    font-size: 0.825rem;
    color: #334155;
}

.template-corporate .signature-section {
    text-align: right;
    margin-top: auto;
}

/* ==========================================
   FOOTER - OTIMIZADO
   ========================================== */
footer {
    background: white;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: #64748b;
}

footer h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.feature-item {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--user-color);
}

.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.feature-item h3 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

footer nav {
    margin-top: 2rem;
}

footer nav a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 1rem;
    transition: var(--transition);
}

footer nav a:hover {
    color: var(--user-color);
}

/* ==========================================
   TOAST - OTIMIZADO
   ========================================== */
#toast {
    visibility: hidden;
    min-width: 280px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #fff;
    text-align: center;
    border-radius: 12px;
    padding: 16px 24px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    font-weight: 500;
    will-change: opacity, transform;
}

#toast.show {
    opacity: 1;
    bottom: 50px;
}

#toast.success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

#toast.error {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

/* ==========================================
   HERO SECTION - IMPACTANTE
   ========================================== */
.hero-section {
    background:
        radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(15, 23, 42, 0.05) 0%, transparent 40%);
    background-color: var(--bg-body);
    padding: 8rem 2rem 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    min-height: 90vh;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 10;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--primary-color);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--primary-light);
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    background: linear-gradient(to right, var(--text-main), #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 90%;
}

.hero-stats {
    display: flex;
    gap: 3.5rem;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
}

.hero-cta:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 20px 30px -10px rgba(37, 99, 235, 0.5);
}

.hero-visual {
    position: relative;
    z-index: 1;
}

.floating-cv-preview {
    width: 380px;
    height: 520px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}

.floating-cv-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.floating-cv-preview:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0) scale(1.02);
}

.cv-mockup {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 100%;
}

.cv-header-mock {
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.cv-line-mock {
    height: 14px;
    background: var(--bg-body);
    border-radius: 4px;
}

.cv-line-mock.short {
    width: 70%;
}

/* ==========================================
   ANIMAÇÕES
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================
   SEÇÕES GERAIS
   ========================================== */
.section-heading {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.section-subheading {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ==========================================
   FEATURES SECTION
   ========================================== */
.features-section {
    padding: 6rem 2rem;
    background: var(--bg-surface);
}

.features-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-icon-wrapper {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* ==========================================
   PROGRESS BAR
   ========================================== */
.progress-container {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.progress-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}

.progress-percent {
    font-weight: 700;
    color: var(--user-color);
}

.progress-bar-container {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* ==========================================
   SECTION NUMBERS
   ========================================== */
.section-title .section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--user-color);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 0.5rem;
}

/* ==========================================
   TIPS SECTION
   ========================================== */
.tips-section {
    padding: 6rem 2rem;
    background: var(--bg-alt);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tip-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.tip-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.tip-number {
    position: absolute;
    top: -1.25rem;
    left: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.tip-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    margin-top: 1rem;
}

.tip-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* ==========================================
   FAQ SECTION
   ========================================== */
.faq-section {
    padding: 5rem 2rem;
    background: #ffffff;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.2s ease;
    background: #ffffff;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question span {
    color: #1e293b;
}

.faq-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    color: #64748b;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #ffffff;
}

.faq-answer.open {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: #475569;
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

/* ==========================================
   ADSENSE CONTAINERS
   ========================================== */
/* ==========================================
   ADSENSE CONTAINERS
   ========================================== */
.adsense-container {
    padding: 2rem;
    background: transparent;
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.adsense-inline {
    margin: 1.5rem 0;
    padding: 0.5rem;
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-color);
}

.ad-placeholder-small {
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 1rem;
    background-color: var(--bg-surface);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ad-placeholder {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 2rem;
    border-radius: var(--radius-md);
    background-color: var(--bg-alt);
    border: 1px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 728px;
}

/* ==========================================
   FOOTER PROFISSIONAL
   ========================================== */
footer {
    background: var(--bg-dark);
    color: white;
    padding: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-brand p {
    color: #94a3b8;
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.footer-column a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    padding: 0.3rem 0;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-column a:hover {
    color: var(--user-color-light);
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #64748b;
    font-size: 0.9rem;
}

.footer-seo {
    margin-top: 0.5rem;
    font-size: 0.8rem !important;
    color: #475569 !important;
}

/* ==========================================
   BOTÃO DOWNLOAD PREMIUM
   ========================================== */
.btn-download {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    gap: 0.75rem;
}

/* ==========================================
   MEDIA QUERIES - RESPONSIVAS E OTIMIZADAS
   ========================================== */

@media print {
    @page {
        size: A4;
        margin: 0;
        /* Margem zero para o @page, controlaremos no body/container */
    }

    html,
    body {
        width: 100%;
        height: auto !important;
        /* Permite múltiplas páginas */
        margin: 0;
        padding: 0;
        background: white;
        overflow: visible !important;
    }

    /* Elementos de UI a esconder */
    header,
    footer,
    .hero-section,
    .features-section,
    .tips-section,
    .faq-section,
    #toast,
    .adsense-banner,
    .adsense-inline,
    .quick-actions,
    .progress-container,
    .btn,
    .photo-controls,
    .field-hint,
    .editor-panel,
    .preview-toolbar,
    .zoom-controls,
    .preview-title {
        display: none !important;
    }

    /* Container Principal */
    main {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }

    .preview-panel {
        display: block !important;
        background: white !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        position: relative !important;
    }

    .preview-content {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        height: auto !important;
    }

    /* O Currículo */
    #resume-preview {
        display: block !important;
        position: relative !important;
        /* Relativo para fluir naturalmente */
        width: 100% !important;
        max-width: 210mm !important;
        /* Largura A4 */
        min-height: 297mm !important;
        /* Mínimo de uma página */
        height: auto !important;
        /* Cresce conforme o conteúdo */
        margin: 0 auto !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
        transform: none !important;
        background: white;
        visibility: visible !important;
        z-index: 9999;
    }

    /* === AJUSTES DE TEMPLATES PARA MULTIPÁGINA === */

    /* PRESERVA o layout exato de cada template */

    /* Templates com SIDEBAR (Modern, Executive, Corporate) - MANTÉM GRID */
    .template-modern,
    .template-executive,
    .template-corporate {
        height: auto !important;
        min-height: 100% !important;
        display: grid !important;
        /* PRESERVA grid-template-columns definido no template */
    }

    /* Template Modern - Preserva layout sidebar + main */
    .template-modern {
        grid-template-columns: 35% 65% !important;
    }

    /* Template Executive - Preserva layout sidebar + main */
    .template-executive {
        grid-template-columns: 30% 70% !important;
    }

    /* Template Corporate - Preserva layout sidebar + main */
    .template-corporate {
        grid-template-columns: 32% 68% !important;
    }

    /* Templates VERTICAIS (Classic, Minimal, Elegant) - BLOCK */
    .template-classic,
    .template-minimal,
    .template-elegant {
        height: auto !important;
        min-height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Template Tech - Preserva layout vertical */
    .template-tech {
        height: auto !important;
        min-height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 2.5rem !important;
    }

    /* Template Creative - Preserva layout especial */
    .template-creative {
        height: auto !important;
        min-height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .template-creative .content-grid {
        display: grid !important;
        grid-template-columns: 30% 65% !important;
    }

    /* Evita quebras feias de página dentro de itens */
    .job-item,
    .edu-item,
    .dynamic-item,
    .section-title,
    .main-sec-title,
    .side-sec-title,
    h3,
    h4,
    p,
    li {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    /* Ajuste de margens para impressão limpa */
    .template-modern .resume-main,
    .template-modern .resume-sidebar {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Garante cores de fundo (backgrounds) */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
}

@media (max-width: 1200px) {
    .adsense-banner {
        max-width: 728px;
    }
}

@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding: 3rem 1.5rem;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 1.5rem;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    main {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }

    .editor-panel {
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .preview-panel {
        min-height: 500px;
    }

    #resume-preview {
        width: 100%;
        transform: scale(1) !important;
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid,
    .features-grid-new,
    .tips-grid {
        grid-template-columns: 1fr;
    }

    .adsense-banner {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    header {
        padding: 1rem;
    }

    header h1 {
        font-size: 1.2rem;
    }

    nav {
        gap: 1rem;
    }

    nav a {
        margin-left: 1rem;
        font-size: 0.9rem;
    }

    .editor-panel {
        padding: 1.5rem;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .preview-toolbar {
        flex-direction: column;
        gap: 1rem;
    }

    .adsense-banner {
        min-height: 250px;
        /* Mobile ad size */
    }
}

/* ==========================================
   PREFERS-REDUCE-MOTION - ACESSIBILIDADE
   ========================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================
   PREFERS-COLOR-SCHEME - DARK MODE
   ========================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-body: #0f172a;
        /* Slate 900 */
        --bg-surface: #1e293b;
        /* Slate 800 */
        --bg-alt: #334155;
        /* Slate 700 */

        --text-main: #f8fafc;
        /* Slate 50 */
        --text-secondary: #cbd5e1;
        /* Slate 300 */
        --text-muted: #94a3b8;
        /* Slate 400 */

        --border-color: #334155;
        /* Slate 700 */
    }

    body {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    }
}

/* ==========================================
   CRITICAL CSS - INLINE PARA PERFORMANCE
   ========================================== */
/* Estilos críticos que devem ser carregados imediatamente para reduzir LCP */
.critical-above-fold {
    display: block;
    font-size: 16px;
}

/* Placeholder styles para evitar layout shift antes do carregamento */
[style*="display: none"],
[style*="visibility: hidden"] {
    display: block !important;
    visibility: visible !important;
}

/* Otimização de fonte para renderização rápida */
@font-face {
    font-display: swap;
}

/* ==========================================
   ESTILOS DE IMPRESSÃO - APENAS O CV
   ========================================== */
@media print {

    /* Esconde elementos da UI */
    header,
    .editor-panel,
    .preview-toolbar,
    .zoom-controls,
    .hero-section,
    .features-section,
    .tips-section,
    .faq-section,
    footer,
    .step-navigation,
    .step-actions,
    .quick-actions,
    .progress-container,
    nav,
    button,
    .btn,
    .adsense-inline,
    .ad-placeholder-small {
        display: none !important;
    }

    /* Remove margens e padding do body */
    body {
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
    }

    /* Garante que main não tenha layout flexbox */
    main {
        display: block !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* Preview panel ocupa toda a página */
    .preview-panel {
        background: white !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        display: block !important;
        position: static !important;
    }

    /* Preview content sem padding */
    .preview-content {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        display: block !important;
    }

    /* O CV em si - mantém todos os estilos do template */
    #resume-preview {
        position: static !important;
        width: 210mm !important;
        min-height: 297mm !important;
        height: auto !important;
        margin: 0 auto !important;
        padding: 0 !important;
        box-shadow: none !important;
        transform: none !important;
        page-break-after: always !important;
        overflow: visible !important;
        /* IMPORTANTE: mantém a classe do template */
        display: grid !important;
    }

    /* Garante que o grid do template Modern funcione */
    #resume-preview.template-modern {
        display: grid !important;
        grid-template-columns: 35% 65% !important;
        height: 100% !important;
    }

    /* Outros templates também */
    #resume-preview.template-executive {
        display: grid !important;
        grid-template-columns: 30% 70% !important;
    }

    #resume-preview.template-corporate {
        display: flex !important;
        flex-direction: column !important;
    }

    #resume-preview.template-creative {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Configurações de página */
    @page {
        size: A4 portrait;
        margin: 0;
    }

    /* Evita quebras de página indesejadas */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        page-break-after: avoid !important;
        page-break-inside: avoid !important;
    }

    /* Evita quebras em seções */
    .resume-sidebar,
    .resume-main,
    .job-item,
    .edu-item,
    .dynamic-item {
        page-break-inside: avoid !important;
    }

    /* Força cores de fundo a imprimir (CRÍTICO para templates com sidebar) */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    /* Garante que backgrounds sejam impressos */
    .resume-sidebar,
    .sidebar-exec,
    .left-col,
    .right-col {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Remove qualquer transformação de zoom */
    * {
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}    
    /* ==========================================
       COMPACTAÇÃO MÁXIMA PARA UMA PÁGINA A4
       ========================================== */
    
    /* Reduz fontes globalmente */
    #resume-preview {
        font-size: 10px !important;
        line-height: 1.3 !important;
    }
    
    /* Compacta headings */
    #resume-preview h1 {
        font-size: 1.4rem !important;
        margin-bottom: 0.2rem !important;
        line-height: 1.1 !important;
    }
    
    #resume-preview h2 {
        font-size: 1.1rem !important;
        margin-bottom: 0.2rem !important;
    }
    
    #resume-preview h3 {
        font-size: 0.95rem !important;
        margin-bottom: 0.15rem !important;
    }
    
    /* Compacta parágrafos */
    #resume-preview p,
    #resume-preview .item-content {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.3rem !important;
    }
    
    /* Compacta títulos de seção */
    #resume-preview .main-sec-title,
    #resume-preview .sec-title {
        font-size: 0.9rem !important;
        margin-top: 0.5rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    /* Reduz padding */
    #resume-preview.template-modern .resume-sidebar {
        padding: 1.2rem 1rem !important;
    }
    
    #resume-preview.template-modern .resume-main {
        padding: 1.2rem 1.5rem !important;
    }
    
    /* Compacta foto */
    #resume-preview .resume-photo {
        width: 80px !important;
        height: 80px !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Compacta nome */
    #resume-preview .main-title {
        font-size: 1.8rem !important;
        margin-bottom: 0.2rem !important;
    }
    
    /* Compacta items */
    #resume-preview .job-item,
    #resume-preview .edu-item {
        margin-bottom: 0.6rem !important;
    }
    
    /* Compacta tags */
    #resume-preview .tag {
        font-size: 0.65rem !important;
        padding: 0.2rem 0.4rem !important;
    }
}

/* ==========================================
   ESTILOS DO SELETOR DE CORES
   ========================================== */

.color-picker-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#color-picker {
    width: 100%;
    height: 50px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

#color-picker:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.preset-colors {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.preset-color {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.preset-color:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.preset-color.active {
    border-color: white;
    box-shadow: 0 0 0 3px var(--primary-color);
    transform: scale(1.05);
}


/* ==========================================
   ESTILOS DA ASSINATURA
   ========================================== */

.signature-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.signature-line {
    width: 250px;
    height: 2px;
    background-color: var(--text-main);
    margin-bottom: 0.3rem;
}

.signature-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Compactação para impressão */
@media print {
    .signature-section {
        margin-top: 1rem !important;
        padding-top: 0.5rem !important;
    }
    
    .signature-line {
        width: 200px !important;
    }
}


/* ==========================================
   ESTILOS DA ASSINATURA - ATUALIZADO
   ========================================== */

.signature-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.signature-line {
    width: 300px;
    height: 1px;
    border-top: 1.5px solid #000;
    background: transparent;
}

.signature-text {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin-top: 0.3rem;
}

/* Compactação para impressão */
@media print {
    .signature-section {
        margin-top: 1.5rem !important;
        padding-top: 1rem !important;
    }
    
    .signature-line {
        width: 250px !important;
        border-top: 1px solid #000 !important;
    }
    
    .signature-text {
        font-size: 0.75rem !important;
        color: #000 !important;
    }
}

/* ==========================================
   TEMPLATE 9: ACADEMIC
   ========================================== */
.template-academic {
    font-family: 'Georgia', 'Times New Roman', serif;
    padding: 2rem 3rem;
    background: white;
    color: #1a1a1a;
}

.academic-header {
    text-align: center;
    border-bottom: 3px double #003366;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.academic-header h1 {
    font-size: 2.2rem;
    color: #003366;
    margin-bottom: 0.3rem;
}

.academic-header .role {
    font-size: 1.1rem;
    color: #555;
    font-style: italic;
}

.academic-header .contact-row {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.template-academic .sec-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #003366;
    border-bottom: 2px solid #003366;
    padding-bottom: 0.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.academic-item {
    margin-bottom: 1.2rem;
}

.academic-item h3 {
    font-size: 1rem;
    color: #1a1a1a;
    margin-bottom: 0.2rem;
}

.academic-item h4 {
    font-size: 0.95rem;
    color: #555;
    font-weight: normal;
    margin-bottom: 0.3rem;
}

/* ==========================================
   TEMPLATE 10: DESIGNER
   ========================================== */
.template-designer {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: #fff;
    padding: 0;
}

.designer-header {
    background: linear-gradient(135deg, var(--user-color) 0%, #9333ea 100%);
    color: white;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.designer-header img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
}

.designer-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.3rem;
    font-weight: 800;
}

.designer-header h2 {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 300;
}

.designer-contact {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.designer-objective {
    background: #f8f9fa;
    padding: 1.5rem 2.5rem;
    font-size: 1.1rem;
    font-style: italic;
    color: #333;
    border-left: 4px solid var(--user-color);
}

.template-designer .sec-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--user-color);
    margin: 2rem 2.5rem 1rem 2.5rem;
}

.designer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 2.5rem 1.5rem 2.5rem;
}

.designer-project {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-top: 3px solid var(--user-color);
}

.designer-project h3 {
    color: var(--user-color);
    margin-bottom: 0.5rem;
}

.designer-exp,
.designer-skills {
    padding: 0 2.5rem 1rem 2.5rem;
}

.designer-exp {
    margin-bottom: 1.2rem;
}

.designer-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.designer-tag {
    background: var(--user-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ==========================================
   TEMPLATE 11: SALES
   ========================================== */
.template-sales {
    font-family: 'Arial Black', 'Arial', sans-serif;
    background: white;
    padding: 0;
}

.sales-header {
    background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);
    color: white;
    padding: 2rem 3rem;
    text-align: center;
}

.sales-header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sales-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    opacity: 0.95;
}

.sales-contact {
    margin-top: 0.8rem;
    font-size: 1rem;
}

.sales-objective {
    background: #fef3c7;
    padding: 1.5rem 3rem;
    font-size: 1.1rem;
    border-left: 5px solid #f59e0b;
}

.template-sales .sec-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: #dc2626;
    text-transform: uppercase;
    margin: 2rem 3rem 1rem 3rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #dc2626;
}

.sales-achievement {
    padding: 0 3rem 1rem 3rem;
    margin-bottom: 1rem;
}

.sales-role {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.sales-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.sales-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 3rem 2rem 3rem;
}

.sales-skill {
    background: #dc2626;
    color: white;
    padding: 0.6rem 1.2rem;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 4px;
}

/* ==========================================
   TEMPLATE 12: STARTUP
   ========================================== */
.template-startup {
    font-family: 'Inter', -apple-system, sans-serif;
    background: white;
    padding: 2rem 3rem;
    color: #0f172a;
}

.startup-header {
    margin-bottom: 2rem;
}

.startup-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.3rem;
    letter-spacing: -1px;
}

.startup-header h2 {
    font-size: 1.2rem;
    color: #64748b;
    font-weight: 400;
    margin-bottom: 0.8rem;
}

.startup-links {
    font-size: 0.95rem;
    color: var(--user-color);
}

.startup-bio {
    background: #f1f5f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #475569;
}

.template-startup .sec-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.startup-exp,
.startup-project {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.startup-exp h3,
.startup-project h3 {
    font-size: 1.1rem;
    color: #0f172a;
    margin-bottom: 0.3rem;
}

.startup-exp h4 {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.startup-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.startup-tech {
    background: #0f172a;
    color: #10b981;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
}

/* ==========================================
   TEMPLATE 13: BANKING
   ========================================== */
.template-banking {
    font-family: 'Garamond', 'Georgia', serif;
    background: white;
    padding: 3rem 4rem;
    color: #1a1a1a;
}

.banking-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
}

.banking-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #002147;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.banking-divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #002147 0%, #b8860b 100%);
    margin: 1rem auto;
}

.banking-role {
    font-size: 1.2rem;
    color: #555;
    font-style: italic;
    margin-bottom: 0.8rem;
}

.banking-contact {
    font-size: 0.9rem;
    color: #666;
}

.template-banking .sec-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #002147;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #002147;
}

.banking-item {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* ==========================================
   TEMPLATE 14: CONSULTING
   ========================================== */
.template-consulting {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background: white;
    padding: 2rem 3.5rem;
    color: #2d2d2d;
}

.consulting-header {
    border-bottom: 4px solid #000;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.consulting-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.consulting-title {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.consulting-contact {
    font-size: 0.85rem;
    color: #666;
}

.template-consulting .sec-title {
    font-size: 1rem;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

.consulting-exec-summary {
    background: #f5f5f5;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--user-color);
}

.consulting-exp {
    margin-bottom: 1.5rem;
}

.consulting-exp-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.consulting-bullets {
    margin: 0;
    padding-left: 1.2rem;
}

.consulting-bullets li {
    margin-bottom: 0.3rem;
    line-height: 1.6;
}

.consulting-skills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.consulting-skill {
    font-size: 0.95rem;
    color: #2d2d2d;
}

/* ==========================================
   PRINT OPTIMIZATIONS FOR NEW TEMPLATES
   ========================================== */
@media print {

    .template-academic,
    .template-designer,
    .template-sales,
    .template-startup,
    .template-banking,
    .template-consulting {
        padding: 1rem 1.5rem !important;
    }

    .designer-header {
        padding: 1.5rem !important;
    }

    .designer-grid {
        grid-template-columns: 1fr !important;
    }

    .sales-header {
        padding: 1.2rem 2rem !important;
    }
}

/* ==========================================
   FIX: CONTRASTE DE TEXTO DOS CARDS
   ========================================== */

/* Aumenta contraste dos textos nos feature cards */
.feature-card h3 {
    color: #1a1a1a !important;
    font-weight: 700 !important;
}

.feature-card p {
    color: #333333 !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
}

/* Hero section text */
.hero-section h1 {
    color: #ffffff !important;
}

.hero-section p {
    color: #e5e7eb !important;
}

/* Tips section */
.tip-card h3 {
    color: #1a1a1a !important;
}

.tip-card p {
    color: #333333 !important;
}

/* FAQ section */
.faq-item button {
    color: #1a1a1a !important;
}

.faq-answer {
    color: #444444 !important;
}

/* Section titles */
.section-title {
    color: #0f172a !important;
}


/* ==========================================
   FIX: AUMENTA CONTRASTE DE FONTES NOS TEMPLATES
   ========================================== */

/* Textos principais - preto forte */
#resume-preview h1,
#resume-preview h2,
#resume-preview h3,
#resume-preview h4,
#resume-preview .name,
#resume-preview .main-title,
#resume-preview .sidebar-name {
    color: #000000 !important;
}

/* Textos secundários - cinza escuro ao invés de claro */
#resume-preview .role,
#resume-preview .main-role,
#resume-preview .date,
#resume-preview h4,
#resume-preview .contact-info,
#resume-preview .contact-classic,
#resume-preview .contact-row,
#resume-preview .contact-item,
#resume-preview .designer-contact,
#resume-preview .sales-contact,
#resume-preview .startup-links,
#resume-preview .banking-contact,
#resume-preview .consulting-contact,
#resume-preview .consulting-title {
    color: #333333 !important;
}

/* Conteúdo de texto - preto */
#resume-preview .item-content,
#resume-preview p {
    color: #1a1a1a !important;
}

/* Academic template */
.template-academic .academic-header .role {
    color: #444444 !important;
}

.template-academic .academic-item h4 {
    color: #333333 !important;
}

/* Sales template */
.template-sales .sales-date {
    color: #555555 !important;
}

/* Startup template */
.template-startup .startup-exp h4 {
    color: #4a5568 !important;
}

/* Banking template */
.template-banking .banking-role {
    color: #444444 !important;
}

/* Consulting template */
.template-consulting .consulting-title {
    color: #444444 !important;
}

.template-consulting .consulting-contact {
    color: #555555 !important;
}

/* Corporate template */
.template-corporate .header-right {
    color: #333333 !important;
}

/* Minimal template */
.template-minimal .contact-row {
    color: #444444 !important;
}

/* Classic template date */
.template-classic .date {
    color: #555555 !important;
}


/* ==========================================
   REMOVE TÍTULO DA PÁGINA NA IMPRESSÃO
   ========================================== */

@media print {
    @page {
        size: A4 portrait;
        margin: 0;
    }
    
    /* Remove cabeçalho e rodapé padrão do navegador */
    body {
        margin: 0 !important;
    }
}

