/* ====================================================
   Estilos do Editor / Gerador Interativo - CurrículoClick
   Identidade Visual LinkedIn (#0a66c2)
   ==================================================== */

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --success-color: #059669;
    --bg-editor: #f3f6f8;
    --bg-card: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --border-color: #dce6f1;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 14px rgba(37, 99, 235, 0.1);
    --radius-md: 8px;
    --radius-lg: 14px;
}

body.mod-editor {
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-editor);
    color: var(--text-dark);
    height: 100vh;
    overflow: hidden;
}

/* Header do Gerador */
.editor-header {
    height: 65px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.75rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 100;
}

.editor-header .logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.editor-header .logo-area img {
    height: 36px;
    width: auto;
}

.editor-header .actions-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-header {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary-custom {
    background: #eef3f8;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.btn-secondary-custom:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary-custom:hover {
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

.btn-success-custom {
    background: linear-gradient(135deg, var(--success-color) 0%, #047857 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

.btn-success-custom:hover {
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.4);
    transform: translateY(-1px);
}

/* Layout Split Screen */
.editor-container {
    display: flex;
    height: calc(100vh - 65px);
    width: 100vw;
}

/* Painel da Esquerda (Formulário) */
.form-panel {
    width: 45%;
    min-width: 380px;
    height: 100%;
    overflow-y: auto;
    background: #ffffff;
    border-right: 1px solid var(--border-color);
    padding: 1.75rem;
    box-sizing: border-box;
}

/* Painel da Direita (Preview) */
.preview-panel {
    width: 55%;
    height: 100%;
    background: #ffffff;
    position: relative;
    overflow: auto;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
    box-sizing: border-box;
}

/* Container do Curriculo Visual dentro do Preview */
.preview-wrapper {
    background: #ffffff;
    width: 210mm;
    min-height: 297mm;
    box-shadow: 0 15px 35px rgba(0,0,0,0.35);
    position: relative;
    transform-origin: top center;
    transition: transform 0.2s ease;
}

/* Seções do Formulário */
.form-section {
    margin-bottom: 2rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.35rem;
    box-shadow: var(--shadow-sm);
}

.form-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0.6rem;
}

.form-section-title i {
    color: var(--primary-color);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

textarea.form-control {
    resize: vertical;
    min-height: 85px;
}

/* Itens Repetíveis */
.repeater-item {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.btn-remove-item {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #fee2e2;
    color: #ef4444;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-remove-item:hover {
    background: #fca5a5;
}

.btn-add-item {
    width: 100%;
    padding: 0.65rem;
    background: #eef3f8;
    color: var(--primary-color);
    border: 1px dashed var(--primary-color);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-add-item:hover {
    background: #dbeafe;
    border-style: solid;
}

/* Modal de Checkout */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.checkout-modal {
    background: #ffffff;
    border-radius: 24px;
    width: 90%;
    max-width: 520px;
    padding: 2.25rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    text-align: center;
}

.checkout-modal .close-modal {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
}

.checkout-modal .price-badge {
    display: inline-block;
    background: #dcfce7;
    color: #15803d;
    font-weight: 800;
    font-size: 1.6rem;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    margin: 1rem 0;
}

.pix-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin: 1.25rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.pix-qr-code {
    width: 180px;
    height: 180px;
    background: #ffffff;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.pix-code-input {
    width: 100%;
    font-family: monospace;
    font-size: 0.8rem;
    text-align: center;
    background: #ffffff;
}

/* Loader de Status de Pagamento */
.payment-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsividade */
@media (max-width: 900px) {
    .editor-header {
        height: auto;
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .editor-header .actions-area {
        flex-wrap: wrap;
        justify-content: center;
    }

    .editor-container {
        flex-direction: column;
        overflow-y: auto;
    }
    
    .form-panel, .preview-panel {
        width: 100%;
        min-width: unset;
        height: auto;
    }

    .preview-panel {
        padding: 1rem;
    }

    .preview-wrapper {
        width: 100%;
        min-height: unset;
    }
}



.coupon-checkout{display:grid;gap:.4rem;margin:.85rem 0 1rem;text-align:left}.coupon-checkout label{font-size:.75rem;font-weight:700;color:#334155}.coupon-checkout>div{display:flex;gap:.45rem}.coupon-checkout input{flex:1;min-width:0;border:1px solid #cbd5e1;border-radius:8px;padding:.65rem .75rem;text-transform:uppercase}.coupon-checkout small{min-height:1rem;font-size:.72rem}.coupon-success{color:#087b58}.coupon-error{color:#b42318}
