/* =========================================
VINTREZ - PROFESSIONAL DESIGN SYSTEM
========================================= */

/* === BASE STYLES === */
body { 
    background: linear-gradient(135deg, #0B0F17 0%, #0d1320 50%, #0B0F17 100%); 
    color: #E5E7EB; 
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(17, 24, 39, 0.5); border-radius: 10px; }
::-webkit-scrollbar-thumb { 
    background: linear-gradient(180deg, #4f46e5 0%, #6366f1 100%); 
    border-radius: 10px; 
}
::-webkit-scrollbar-thumb:hover { background: #818cf8; }

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.3); }
/* === ANIMATIONS === */
.fade-in { animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

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

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px -5px rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 0 30px -5px rgba(99, 102, 241, 0.6); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* === BLUR / PRIVACY LOGIC === */
body.blur-active .sensitive-text { 
    color: transparent !important; 
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.4); 
    user-select: none; 
}
body.blur-active .sensitive-block { 
    filter: blur(10px); 
    opacity: 0.5; 
    pointer-events: none; 
}
.price-text, .price-text * { 
    filter: none !important; 
    text-shadow: none !important; 
    color: inherit !important; 
    opacity: 1 !important; 
}

/* === GLASSMORPHISM EFFECTS === */
.glass-panel {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.6) 0%, rgba(17, 24, 39, 0.8) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 
        0 4px 24px -1px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

/* === INTERACTIVE ELEMENTS === */
.clickable-card { 
    cursor: pointer; 
    user-select: none; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}

.clickable-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px -10px rgba(99, 102, 241, 0.3);
}

.clickable-card:active {
    transform: translateY(0);
}

/* === SIDEBAR STYLES === */
aside {
    background: linear-gradient(180deg, #111827 0%, #0d1320 100%);
    box-shadow: 4px 0 30px -10px rgba(0, 0, 0, 0.5);
}

.nav-btn {
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #6366f1 0%, #818cf8 100%);
    border-radius: 0 4px 4px 0;
    transition: height 0.3s ease;
}

.nav-btn.active::before {
    height: 60%;
}

.nav-btn.active {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.05) 100%);
}

/* === HEADER STYLES === */
header {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.95) 0%, rgba(17, 24, 39, 0.85) 100%);
    box-shadow: 0 4px 30px -10px rgba(0, 0, 0, 0.4);
}

/* === CONFIGURATOR CARDS === */
.config-card { 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
    position: relative;
    overflow: hidden;
}

.config-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, transparent);
    transition: background 0.4s ease;
}

.config-card:hover::before {
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
}

.config-card.selected { 
    border-color: #6366f1 !important; 
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(99, 102, 241, 0.05) 100%); 
    box-shadow: 
        0 0 30px -10px rgba(99, 102, 241, 0.5),
        0 0 0 1px rgba(99, 102, 241, 0.2) inset; 
    transform: scale(1.02); 
    z-index: 10; 
}

.config-card.selected::before {
    background: linear-gradient(90deg, #6366f1, #818cf8, #6366f1);
    animation: shimmer 2s linear infinite;
    background-size: 200% 100%;
}

/* === MODULE/FEATURE CARDS === */
.feature-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.feature-card.included { 
    border-color: rgba(99, 102, 241, 0.15); 
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(31, 41, 55, 0.4) 100%); 
    cursor: default; 
}

.feature-card.included::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
}

.feature-card.optional {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card.optional:hover { 
    border-color: rgba(99, 102, 241, 0.5); 
    transform: translateY(-3px); 
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.2);
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8) 0%, rgba(17, 24, 39, 0.6) 100%);
}

.feature-card.optional.selected {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.05) 100%) !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 20px -5px rgba(99, 102, 241, 0.3);
}

/* === RANGE SLIDER === */
input[type=range] { 
    -webkit-appearance: none; 
    background: transparent; 
}

input[type=range]::-webkit-slider-thumb { 
    -webkit-appearance: none; 
    height: 22px; 
    width: 22px; 
    border-radius: 50%; 
    background: linear-gradient(135deg, #ffffff 0%, #e5e7eb 100%); 
    cursor: pointer; 
    margin-top: -9px; 
    box-shadow: 
        0 2px 10px rgba(0,0,0,0.3),
        0 0 0 4px rgba(99, 102, 241, 0.2);
    border: 3px solid #6366f1;
    transition: all 0.2s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 
        0 4px 15px rgba(0,0,0,0.4),
        0 0 0 6px rgba(99, 102, 241, 0.3);
}

input[type=range]::-webkit-slider-runnable-track { 
    width: 100%; 
    height: 4px; 
    cursor: pointer; 
    background: linear-gradient(90deg, #374151 0%, #374151 100%);
    border-radius: 4px; 
    transition: background 0.2s ease;
}

input[type=range]:focus { outline: none; }

/* === STEPS & PROGRESS === */
.step-line { 
    flex-grow: 1; 
    height: 2px; 
    background: linear-gradient(90deg, #374151, #374151); 
    margin: 0 1rem;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.step-line.active { 
    background: linear-gradient(90deg, #6366f1, #818cf8);
}

.step-line.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 1.5s linear infinite;
    background-size: 200% 100%;
}

/* === BUTTONS === */
.btn-loading { 
    pointer-events: none; 
    opacity: 0.85; 
}

.btn-loading iconify-icon { display: none; }

.btn-loading::after { 
    content: ""; 
    width: 18px; 
    height: 18px; 
    border: 2px solid rgba(255,255,255,0.3); 
    border-top-color: #ffffff; 
    border-radius: 50%; 
    animation: spin 0.7s linear infinite; 
    display: inline-block; 
    margin-left: 10px; 
}

@keyframes spin { to { transform: rotate(360deg); } }

/* === STAT CARDS === */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 100%);
    pointer-events: none;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.stat-card:hover::after {
    opacity: 1;
}

/* === SUMMARY PANEL === */
.summary-panel {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.95) 0%, rgba(11, 15, 23, 0.98) 100%);
    box-shadow: 
        -10px 0 40px -10px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

/* === TABLE/LIST ROWS === */
.list-row {
    transition: all 0.2s ease;
    position: relative;
}

.list-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: transparent;
    transition: background 0.2s ease;
}

.list-row:hover {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.08) 0%, transparent 100%);
}

.list-row:hover::before {
    background: linear-gradient(180deg, #6366f1, #818cf8);
}

/* === BADGE STYLES === */
.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.status-badge.active {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-badge.onboarding {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.05) 100%);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.status-badge.paused {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(251, 191, 36, 0.05) 100%);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

/* === GLOW EFFECTS === */
.glow-brand {
    box-shadow: 0 0 30px -10px rgba(99, 102, 241, 0.5);
}

.glow-success {
    box-shadow: 0 0 30px -10px rgba(34, 197, 94, 0.5);
}

/* === GRADIENT TEXT === */
.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === DIVIDER === */
.divider-gradient {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
}

/* === PIPELINE COLUMNS === */
.pipeline-column {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.6) 0%, rgba(17, 24, 39, 0.3) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pipeline-card {
    transition: all 0.3s ease;
}

.pipeline-card:hover {
    transform: translateX(4px);
    border-color: rgba(99, 102, 241, 0.4) !important;
    box-shadow: -4px 0 0 0 #6366f1;
}

/* === INPUT FIELDS === */
input[type="text"]:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* === TOAST NOTIFICATION === */
.toast-notification {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(11, 15, 23, 0.98) 100%);
    box-shadow: 
        0 20px 40px -10px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(99, 102, 241, 0.2);
}

/* === AMBIENT BACKGROUND === */
.ambient-glow {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.ambient-glow::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    filter: blur(60px);
}

.ambient-glow::after {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    filter: blur(60px);
}