/* --- VEXORA SYSTEMS: DUAL-ENGINE PREMIUM AESTHETIC --- */
:root {
    --bg-base: #050505; 
    --electric-blue: #00d4ff; /* Default Vexora Cyan */
    --bottom-glow: rgba(0, 150, 255, 0.15);
    --text-main: #ffffff;
    --text-dim: #8b92a5;
    --glass-bg: rgba(20, 20, 25, 0.35);
    --glass-border: rgba(255, 255, 255, 0.04);
}

/* THEME: MILLIONAIRE PRODUCTIONS (Neon Pink Override & UI Hiding) */
body.theme-millionaire {
    --electric-blue: #ff007a;
    --bottom-glow: rgba(255, 0, 122, 0.15);
}
body.theme-millionaire #nav-chargebacks,
body.theme-millionaire #stat-paid-card,
body.theme-millionaire #stat-backend-card,
body.theme-millionaire #top-chargeback-box {
    display: none !important;
}

* { box-sizing: border-box; }

body { margin: 0; font-family: 'Montserrat', sans-serif; color: var(--text-main); display: flex; min-height: 100vh; overflow-x: hidden; background-color: var(--bg-base); }
.site-background { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; background: radial-gradient(circle at 10% 90%, var(--bottom-glow) 0%, transparent 40%); pointer-events: none; transition: background 0.5s ease;}
.bg-watermark { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 15vw; font-weight: 900; color: rgba(255, 255, 255, 0.015); letter-spacing: 15px; white-space: nowrap; transition: 0.3s; }

/* SIDEBAR & TOGGLE */
nav { width: 260px; background: rgba(8, 8, 10, 0.8); backdrop-filter: blur(10px); border-right: 1px solid var(--glass-border); display: flex; flex-direction: column; padding: 40px 20px; flex-shrink: 0; overflow-y: auto; }
.brand-logo { font-size: 2rem; font-weight: 700; margin-bottom: 25px; text-align: center; letter-spacing: 1px; transition: 0.3s;}

.crm-switch { display: flex; background: rgba(0,0,0,0.5); border-radius: 6px; margin-bottom: 30px; padding: 4px; border: 1px solid var(--glass-border); }
.switch-btn { flex: 1; text-align: center; padding: 10px 0; font-size: 0.7rem; font-weight: 700; color: var(--text-dim); cursor: pointer; border-radius: 4px; transition: 0.3s; text-transform: uppercase; }
.switch-btn.active { background: var(--electric-blue); color: #000; }

.nav-link { color: var(--text-dim); text-decoration: none; padding: 12px 18px; margin-bottom: 2px; display: flex; align-items: center; gap: 15px; border-radius: 6px; font-size: 0.85rem; font-weight: 500; transition: 0.2s; cursor: pointer; border: none; background: transparent; text-align: left; width: 100%; }
.nav-link i { width: 20px; text-align: center; pointer-events: none; }
.nav-link:hover { color: var(--text-main); background: rgba(255, 255, 255, 0.03); }
.nav-link.active { background: rgba(0, 212, 255, 0.05); color: var(--electric-blue); }

/* MAIN CONTENT */
main { flex-grow: 1; padding: 50px 60px; height: 100vh; overflow-y: auto; }
.header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 50px; }
#page-title { margin: 0; font-size: 3.5rem; font-weight: 700; letter-spacing: -1px; line-height: 1.15; }
.subtitle { color: var(--electric-blue); font-size: 0.85rem; font-weight: 600; letter-spacing: 7px; text-transform: uppercase; margin-top: 15px; transition: 0.3s;}

/* HEADER RIGHT & CHARGEBACK COUNTER */
.header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
#current-date { color: var(--text-dim); font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; text-align: right; line-height: 1.6; font-weight: 500; }
.chargeback-stat-box { background: rgba(255, 51, 102, 0.1); border: 1px solid rgba(255, 51, 102, 0.3); padding: 8px 15px; border-radius: 6px; font-size: 0.8rem; color: #ff3366; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.chargeback-stat-box span { font-size: 1.1rem; font-weight: 700; margin-left: 5px; }

/* PANELS & CARDS */
.glass-panel { background: var(--glass-bg); backdrop-filter: blur(10px); padding: 40px; border-radius: 8px; border: 1px solid var(--glass-border); margin-bottom: 30px; }
.panel-title { margin: 0 0 30px 0; font-size: 1.4rem; font-weight: 400; letter-spacing: 1px; }
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.panel-header h2 { margin: 0; font-size: 1.2rem; font-weight: 400; letter-spacing: 1px; }

.dashboard-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.card { background: var(--glass-bg); backdrop-filter: blur(10px); padding: 30px; border-radius: 8px; border: 1px solid var(--glass-border); }
.card h3 { margin: 0; font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 500; }
.card .value { font-size: 2.5rem; font-weight: 400; margin-top: 15px; display: block; color: var(--text-main); }
.glow-text { color: var(--electric-blue); text-shadow: 0 0 15px rgba(0, 212, 255, 0.4); }

/* MAP */
.map-panel { display: flex; flex-direction: column; }
.map-placeholder { flex-grow: 1; min-height: 250px; border-radius: 6px; background: rgba(0,0,0,0.5); border: 1px solid var(--glass-border); display: flex; justify-content: center; align-items: center; }
.map-overlay { text-align: center; color: var(--text-dim); }

/* FORMS & INPUTS */
.custom-form { display: flex; flex-direction: column; gap: 15px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
input, select, textarea { background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.1); padding: 14px 20px; border-radius: 4px; color: var(--text-main); font-size: 0.95rem; outline: none; transition: 0.3s; font-family: 'Montserrat', sans-serif; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: rgba(0, 212, 255, 0.5); }
select option { background: #111; color: #fff; }

/* BUTTONS */
.btn-action { background: transparent; border: 1px solid var(--electric-blue); color: var(--electric-blue); padding: 12px 30px; border-radius: 4px; cursor: pointer; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; transition: all 0.3s ease; }
.btn-action:hover { background: rgba(0, 212, 255, 0.1); }
.btn-outline { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: var(--text-main); padding: 6px 16px; border-radius: 4px; cursor: pointer; font-size: 0.8rem; transition: 0.3s; }
.btn-outline:hover { border-color: var(--electric-blue); color: var(--electric-blue); }
.btn-micro { background: transparent; border: 1px solid rgba(255,255,255,0.1); color: var(--text-dim); padding: 4px 10px; border-radius: 4px; font-size: 0.7rem; cursor: pointer; transition: 0.2s; text-transform: uppercase; }
.btn-micro:hover { border-color: var(--text-main); color: var(--text-main); }
.btn-danger { border-color: #ff3366 !important; color: #ff3366 !important; }
.btn-danger:hover { background: rgba(255, 51, 102, 0.1) !important; }
.btn-warm { border-color: #ff9933 !important; color: #ff9933 !important; }
.btn-warm:hover { background: rgba(255, 153, 51, 0.1) !important; }
.btn-success { border-color: #00ffcc !important; color: #00ffcc !important; }
.btn-success:hover { background: rgba(0, 255, 204, 0.1) !important; }

/* PIPELINE CARDS */
.data-grid { display: flex; flex-direction: column; gap: 15px; }
.pipeline-card { background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); padding: 25px; border-radius: 6px; display: flex; justify-content: space-between; align-items: flex-start; transition: 0.3s; }
.pipeline-card.chargeback-state { opacity: 0.5; border-color: #ff3366; background: rgba(255, 51, 102, 0.05); }
.card-info h3 { margin: 0 0 10px 0; font-size: 1.1rem; color: var(--electric-blue); }
.card-info p { margin: 6px 0; font-size: 0.9rem; color: #e2e8f0; }
.card-meta { font-size: 0.8rem; color: var(--text-dim); margin-top: 15px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.card-actions { display: flex; gap: 10px; flex-direction: column; min-width: 140px;}
.empty-state { color: var(--text-dim); font-style: italic; }

.status-badge { display: inline-block; padding: 4px 8px; border-radius: 2px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; border: 1px solid; margin-right: 5px; }
.badge-paid { color: #bc13fe; border-color: #bc13fe; background: rgba(188,19,254,0.1); }
.badge-full { color: #00d4ff; border-color: #00d4ff; background: rgba(0,212,255,0.1); }
.badge-installed { color: #00ffcc; border-color: #00ffcc; background: rgba(0,255,204,0.1); }

/* MODALS */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px); display: flex; justify-content: center; align-items: center; z-index: 100; }
.modal-content { width: 100%; max-width: 500px; padding: 40px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 15px; margin-top: 30px; }

/* NOTEBOOKS */
.notebook-item { padding: 15px 20px; border-radius: 4px; border: 1px solid var(--glass-border); cursor: pointer; transition: 0.2s; background: rgba(0,0,0,0.2); }
.notebook-item:hover { border-color: var(--electric-blue); }
.notebook-item h4 { margin: 0 0 5px 0; color: var(--text-main); }
.notebook-item p { margin: 0; font-size: 0.75rem; color: var(--text-dim); }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: #222; border-radius: 4px; }


/* --- NEW MOBILE FIXES --- */
@media (max-width: 768px) {
    /* Stack cards in data grids */
    .pipeline-card {
        flex-direction: column;
    }
    
    .card-actions {
        width: 100%;
        margin-top: 15px;
        flex-direction: row; /* Keep buttons next to each other if they fit */
        flex-wrap: wrap; /* Let them wrap if there are too many */
    }

    .card-actions button {
        flex: 1; /* Make buttons share the width */
        min-width: 120px; /* But don't let them get too tiny */
    }
}
