:root {
    /* Modern Tech Palette */
    --cp-primary: #2563eb;
    --cp-primary-dark: #1d4ed8;
    --cp-secondary: #7c3aed;
    --cp-accent: #06b6d4;
    --cp-dark-bg: #0f172a;
    --cp-dark-card: #1e293b;
    --cp-light-bg: #f8fafc;
    --cp-light-card: #ffffff;
    
    /* Bootstrap Variable Overrides */
    --bs-body-font-family: 'Plus Jakarta Sans', sans-serif;
    --bs-primary: var(--cp-primary);
    --bs-body-bg: var(--cp-light-bg);
}

/* --- GLOBAL STYLES & ANIMATIONS --- */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

/* Gradient Text Utility */
.text-gradient {
    background: linear-gradient(135deg, var(--cp-primary) 0%, var(--cp-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism Utility */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px 0 rgba(31, 38, 135, 0.1);
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.animate-float { animation: float 6s ease-in-out infinite; }

/* Background Blobs for Visual Interest */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

/* Typing Cursor */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-start infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* --- DARK MODE OVERRIDES --- */
[data-bs-theme="dark"] {
    --bs-body-bg: var(--cp-dark-bg);
    --bs-body-color: #e2e8f0;
}
[data-bs-theme="dark"] .glass-card {
    background: rgba(30, 41, 59, 0.7); /* Darker glass */
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}
[data-bs-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.8) !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
[data-bs-theme="dark"] .card {
    background-color: var(--cp-dark-card);
    border-color: rgba(255,255,255,0.05);
}
[data-bs-theme="dark"] .bg-blob {
    opacity: 0.2;
}

/* --- NAVBAR STYLING --- */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}
.nav-link {
    font-weight: 600;
    color: var(--bs-body-color);
    margin: 0 10px;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--cp-primary);
    transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    padding: 140px 0 100px;
    overflow: hidden;
}
.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--cp-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

/* --- FEATURE CARDS (Bento Grid Style) --- */
.feature-box {
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    position: relative;
}
.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
    color: var(--cp-primary);
}

/* --- PRICING CARDS --- */
.pricing-card-header {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 20px;
    margin-bottom: 20px;
}
[data-bs-theme="dark"] .pricing-card-header {
    border-bottom-color: rgba(255,255,255,0.05);
}
.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cp-secondary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.3);
}

/* --- ADMIN DASHBOARD --- */
#admin-sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--cp-dark-bg);
    border-right: 1px solid rgba(255,255,255,0.05);
    z-index: 1000;
    color: #94a3b8;
    transition: transform 0.3s ease;
}
.admin-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin: 4px 16px;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}
.admin-link:hover, .admin-link.active {
    background: var(--cp-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.admin-main {
    margin-left: 260px;
    padding: 2rem;
    background-color: var(--bs-body-bg);
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}
@media (max-width: 991px) {
    #admin-sidebar { transform: translateX(-100%); }
    #admin-sidebar.show { transform: translateX(0); }
    .admin-main { margin-left: 0; }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
[data-bs-theme="dark"] ::-webkit-scrollbar-thumb { background: #334155; }

/* Simulating Charts with CSS */
.chart-bar {
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    overflow: hidden;
    margin-top: 8px;
}
.chart-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--cp-primary), var(--cp-secondary));
    width: 0;
    transition: width 1.5s ease-out;
}