* { -webkit-tap-highlight-color: transparent; outline: none; box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    background-color: #f8fafc; 
    display: flex; flex-direction: column; min-height: 100vh;
}

.main-container { 
    max-width: 1400px; margin: 0 auto; display: flex; 
    flex-direction: column; flex: 1; width: 100%; 
}

@media (min-width: 768px) { .main-container { flex-direction: row; } }

/* Sidebar Config */
.sidebar-config { 
    width: 100%; flex-shrink: 0; background: white; padding: 1.5rem; 
}
@media (min-width: 768px) { .sidebar-config { width: 330px; border-right: 1px solid #e2e8f0; } }

/* Área do Editor - Ampla e Centralizada */
.editor-workspace { 
    flex-grow: 1; display: flex; flex-direction: column; 
    align-items: center; justify-content: center; padding: 30px; 
    position: relative; overflow: hidden; background: #f1f5f9;
}

.adobe-card { background: white; border-radius: 16px; border: 1px solid #e2e8f0; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }

/* Preview da Foto */
#previewContainer { 
    position: relative; background: #cbd5e1; border: 4px solid white; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15); 
    overflow: hidden; flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#sourceImage { position: absolute; cursor: grab; user-select: none; transform-origin: center center; touch-action: none; }

.label-guide { font-size: 9px; font-weight: 800; color: #94a3b8; border-left: 3px solid #cbd5e1; padding-left: 8px; white-space: nowrap; height: 14px; display: flex; align-items: center; text-transform: uppercase; }
.label-guide.blue { color: #3b82f6; border-left-color: #3b82f6; }
.label-guide.red { border-left-color: #ef4444; }

.guide-line { position: absolute; width: 100%; border-top: 1px dashed rgba(239, 68, 68, 0.4); z-index: 20; pointer-events: none; }
.eye-line { border-top: 1px solid rgba(59, 130, 246, 0.3); }
.center-line { position: absolute; height: 100%; border-left: 1px dashed rgba(59, 130, 246, 0.2); left: 50%; z-index: 20; pointer-events: none; }

/* Navegação Abas */
.tab-content { display: none; width: 100%; }
.tab-content.active { display: flex; flex-direction: column; align-items: center; animation: fadeIn 0.3s ease; }

.model-card {
    background: white; padding: 15px; border-radius: 12px; border: 1px solid #e2e8f0;
    text-align: center; font-weight: 800; font-size: 11px; color: #1e293b;
    cursor: pointer; transition: all 0.2s; text-transform: uppercase;
}
.model-card:hover { border-color: #2563eb; color: #2563eb; transform: translateY(-2px); }

/* Modais */
#customModal, #authModal, #a4PreviewOverlay { 
    position: fixed; inset: 0; z-index: 200; 
    background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(4px); 
    display: none; align-items: center; justify-content: center; 
}
#customModal:not(.hidden), #authModal:not(.hidden), #a4PreviewOverlay:not(.hidden) { display: flex; }

.user-profile { display: flex; align-items: center; gap: 10px; padding: 4px 12px; background: #f1f5f9; border-radius: 99px; }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #3b82f6; object-fit: cover; }

.footer-compact { padding: 2rem 0; background: white; border-top: 1px solid #e2e8f0; margin-top: auto; }

.hidden { display: none !important; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }