/* ============================================
   BRAND COLORS - NEO VERSATILE / sabiweb
   ============================================ */
:root {
    --brand-primary: #8b5cf6;
    --brand-primary-dark: #7c3aed;
    --brand-primary-light: #a78bfa;
    --brand-primary-lighter: #ede9fe;
    --brand-secondary: #1e293b;
    --brand-accent: #f59e0b;
    --brand-accent-light: #fbbf24;
    --brand-text-dark: #f1f5f9;
    --brand-text-muted: #94a3b8;
    --brand-bg-dark: #0f172a;
    --brand-bg-card: #1e293b;
    --brand-bg-card-hover: #2d3a4f;
    --brand-success: #22c55e;
    --brand-whatsapp: #25D366;
    --brand-border: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #fff !important;
}

body { 
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; 
    background: var(--brand-bg-dark);
    color: var(--brand-text-dark);
}

/* ============================================
   HEADER - Dark Theme
   ============================================ */
.brand-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    border-bottom: 2px solid var(--brand-primary);
    padding: 40px 0 30px;
    position: relative;
    overflow: hidden;
}
.brand-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.brand-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}
.brand-header .container {
    position: relative;
    z-index: 1;
}
.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.brand-logo img {
    height: 50px;
    width: auto;
}
.brand-logo-text {
    font-weight: 900;
    letter-spacing: -0.5px;
    font-size: 2.2rem;
}
.brand-logo-text .sabi {
    color: white;
}
.brand-logo-text .web {
    color: var(--brand-accent);
}
.brand-logo-text .dot {
    color: var(--brand-text-muted);
    font-weight: 300;
    font-size: 1.6rem;
}
.brand-logo-text .comng {
    color: var(--brand-text-muted);
    font-weight: 300;
    font-size: 1.2rem;
}
.brand-tagline {
    color: var(--brand-text-muted);
    font-size: 1.1rem;
    margin-top: 8px;
    letter-spacing: 0.3px;
}
.brand-tagline span {
    color: var(--brand-primary-light);
}
.brand-badge {
    background: var(--brand-accent);
    color: #0f172a;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-top: 10px;
}
.brand-sub {
    color: var(--brand-text-muted);
    font-size: 0.7rem;
    letter-spacing: 2px;
    font-weight: 600;
}

/* ============================================
   CARDS - Dark Theme
   ============================================ */
.card {
    background: var(--brand-bg-card);
    border: 1px solid var(--brand-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}
.card:hover {
    border-color: var(--brand-primary);
}
.card .card-title {
    color: white;
    font-weight: 700;
}
.card .card-subtitle {
    color: var(--brand-text-muted);
}
.card .text-muted {
    color: var(--brand-text-muted) !important;
}
.card .text-brand {
    color: var(--brand-primary-light) !important;
}
.card .border {
    border-color: var(--brand-border) !important;
}
.card .bg-light {
    background: #2d3a4f !important;
}
.card .bg-white {
    background: #1e293b !important;
}
.card .bg-white.border-success {
    border-color: var(--brand-success) !important;
}
.card .bg-white .text-success {
    color: var(--brand-accent) !important;
}

/* Selected card */
.selected-card {
    border-color: var(--brand-primary) !important;
    background: rgba(139, 92, 246, 0.12) !important;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.08);
}
.selected-card .card-body {
    background: transparent !important;
}

/* Base features */
.base-features {
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    padding: 10px 15px;
    margin-top: 8px;
    border: 1px solid rgba(255,255,255,0.06);
}
.base-features ul { margin: 5px 0 0 0; padding-left: 20px; }
.base-features li { 
    font-size: 0.78rem; 
    color: var(--brand-text-muted);
    padding: 2px 0;
}
.base-features .feature-check {
    color: var(--brand-primary-light);
    margin-right: 4px;
}

/* Form elements - Dark theme */
.form-control, .form-select {
    background: #0f172a;
    border: 1px solid var(--brand-border);
    color: white;
    border-radius: 8px;
}
.form-control:focus, .form-select:focus {
    background: #0f172a;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
    color: white;
}
.form-control::placeholder {
    color: var(--brand-text-muted);
}
.form-check-label {
    color: var(--brand-text-dark);
}
.form-check-label .text-muted {
    color: var(--brand-text-muted) !important;
}
.form-check-input {
    background-color: #0f172a;
    border: 1px solid var(--brand-border);
}
.form-check-input:checked {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}
.form-check-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.form-check{
    padding: 2rem !important;
}

/* Buttons */
.btn-primary {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
    font-weight: 600;
}
.btn-primary:hover {
    background: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
    color: white;
}
.btn-outline-secondary {
    color: var(--brand-text-muted);
    border-color: var(--brand-border);
}
.btn-outline-secondary:hover {
    background: rgba(255,255,255,0.05);
    color: white;
    border-color: var(--brand-primary);
}
.btn-primary.active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

.whatsapp-btn {
    background: var(--brand-whatsapp);
    border: none;
    transition: all 0.3s ease;
    color: white;
    font-weight: 600;
}
.whatsapp-btn:hover {
    background: #1da851;
    transform: scale(1.02);
    color: white;
}
.whatsapp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Upload area - Dark */
.upload-area {
    border: 2px dashed var(--brand-border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--brand-text-muted);
}
.upload-area:hover {
    border-color: var(--brand-primary);
    background: rgba(139, 92, 246, 0.08);
}
.upload-area.dragover {
    border-color: var(--brand-primary);
    background: rgba(139, 92, 246, 0.12);
}
.upload-area .file-name {
    color: var(--brand-primary-light);
    font-weight: bold;
}
.upload-area i {
    font-size: 32px;
    color: var(--brand-text-muted);
}
.file-upload-wrapper {
    position: relative;
    overflow: hidden;
}
.file-upload-wrapper input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Consulting cards - Dark */
.consulting-card {
    border-left: 4px solid var(--brand-primary);
    background: rgba(139, 92, 246, 0.06) !important;
}
.consulting-card.best-value {
    border-left-color: var(--brand-accent);
    background: rgba(245, 158, 11, 0.08) !important;
}
.consulting-card .badge-save {
    background: var(--brand-accent);
    color: #0f172a;
    font-size: 0.7rem;
    padding: 2px 12px;
    border-radius: 12px;
    font-weight: 700;
}
.consulting-card .text-dark {
    color: white !important;
}

/* Summary - Dark */
.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--brand-border);
}
.summary-item:last-child { border-bottom: none; }
.summary-item .price {
    color: var(--brand-primary-light);
    font-weight: bold;
}
.summary-item .text-muted {
    color: var(--brand-text-muted) !important;
}

/* Sidebar - Dark */
.sidebar-card {
    background: var(--brand-bg-card);
    border: 1px solid var(--brand-border);
    border-radius: 12px;
}
.sidebar-card .text-brand {
    color: var(--brand-primary-light) !important;
}
.sidebar-card .bg-brand-light {
    background: rgba(139, 92, 246, 0.12) !important;
}
.sidebar-card .total-display {
    color: var(--brand-primary-light);
}

/* Toast - Dark */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99997;
}
.toast-custom {
    background: var(--brand-secondary);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
    border: 1px solid var(--brand-border);
}
.toast-custom .icon { font-size: 20px; }
.toast-custom .text { font-size: 14px; }
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Loading overlay - Dark */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.92);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    flex-direction: column;
    backdrop-filter: blur(8px);
}
.loading-overlay .spinner-border {
    width: 60px;
    height: 60px;
    color: var(--brand-accent) !important;
}
.loading-overlay .loading-text {
    color: white;
    margin-top: 15px;
    font-size: 18px;
}
.loading-overlay .loading-subtext {
    color: var(--brand-text-muted);
    margin-top: 5px;
    font-size: 14px;
}

/* Success overlay - Dark */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.92);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99998;
    backdrop-filter: blur(8px);
}
.success-overlay .success-box {
    background: var(--brand-bg-card);
    padding: 40px;
    border-radius: 16px;
    max-width: 550px;
    text-align: center;
    animation: fadeIn 0.5s ease;
    border: 1px solid var(--brand-border);
}
.success-overlay .success-box .icon {
    font-size: 64px;
    margin-bottom: 10px;
}
.success-overlay .success-box h3 {
    color: white;
    margin-bottom: 10px;
}
.success-overlay .success-box p {
    color: var(--brand-text-muted);
    margin-bottom: 20px;
}
.success-overlay .success-box .btn-primary {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}
.success-overlay .success-box .btn-primary:hover {
    background: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
}
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Footer - Dark */
.brand-footer {
    background: #0a0f1a;
    border-top: 1px solid var(--brand-border);
    padding: 30px 0;
}
.brand-footer .footer-text {
    color: var(--brand-text-muted);
}
.brand-footer .footer-brand {
    font-weight: 900;
    font-size: 1.2rem;
}
.brand-footer .footer-brand .sabi {
    color: white;
}
.brand-footer .footer-brand .web {
    color: var(--brand-accent);
}
.brand-footer .footer-brand .dot {
    color: var(--brand-text-muted);
}
.brand-footer .footer-brand .comng {
    color: var(--brand-text-muted);
    font-weight: 300;
    font-size: 0.9rem;
}

/* Error message - Dark */
.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}
.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

/* Order Summary Container - Dark */
#orderSummaryContainer {
    background: var(--brand-bg-card) !important;
    border: 1px solid var(--brand-border);
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
    display: none;
}
#orderSummaryContainer .text-muted {
    color: var(--brand-text-muted) !important;
}
#orderSummaryContainer .text-dark {
    color: white !important;
}
#orderSummaryContainer .border-bottom {
    border-bottom-color: var(--brand-border) !important;
}
#orderSummaryContainer .bg-light {
    background: rgba(255,255,255,0.04) !important;
}
#orderSummaryContainer .bg-white {
    background: #1e293b !important;
}
#orderSummaryContainer .border {
    border-color: var(--brand-border) !important;
}
#orderSummaryContainer .text-primary {
    color: var(--brand-primary-light) !important;
}
#orderSummaryContainer .text-success {
    color: var(--brand-accent) !important;
}
#orderSummaryContainer .bg-brand-light {
    background: rgba(139, 92, 246, 0.12) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .brand-logo-text {
        font-size: 1.6rem;
    }
    .brand-logo-text .comng {
        font-size: 0.9rem;
    }
    .brand-logo img {
        height: 35px;
    }
    .brand-tagline {
        font-size: 0.9rem;
    }
}