:root {
    --primary: #22E232;
    --primary-dark: #1cd155;
    --primary-light: #6fff7d;
    --primary-rgb: 34, 226, 50;
    --accent: #22E232;
    --success: #1cd155;
    --warning: #ffb800;
    --danger: #ff3d71;
    --info: #00b8ff;
    --success-rgb: 28, 209, 85;
    --warning-rgb: 255, 184, 0;
    --danger-rgb: 255, 61, 113;
    --info-rgb: 0, 184, 255;

    --sidebar-width: 210px;
    --sidebar-collapsed: 80px;
    --header-height: 70px;

    --gradient-primary: linear-gradient(135deg, #22E232 0%, #1cd155 100%);
    --gradient-success: linear-gradient(135deg, #1cd155 0%, #22E232 100%);
    --gradient-danger: linear-gradient(135deg, #ff3d71 0%, #ff5583 100%);

    --brand-primary: #169068;
    --brand-touch: #1cd155;
    --brand-black: #000000;
}

/* Light theme */
body {
    --bg-main: #FFFFFF;
    --bg-sidebar: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-hover: #f3f4f6;
    --text-primary: #000000;
    --text-secondary: #444444;
    --text-muted: #000000;
    --border-color: #C3C3C3;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --menu-item: #f2f3f6;
}

/* Dark theme (Neutral Black/Green) */
body.dark-theme {
    --bg-main: #000000;
    --bg-sidebar: #050505;
    --bg-card: #3c3c3c;
    --bg-hover: #111111;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #ffffff;
    --border-color: #222222;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.9);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 1);
    --menu-item: #3c3c3c;
}

* {
    /* font-family: 'DM Sans', 'Roboto', sans-serif !important; */
    box-sizing: border-box;
}

body {
    background: var(--bg-main);
    color: var(--text-primary);
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-size: 12px;
    font-family: 'Poppins', 'Roboto', sans-serif !important
}

.text-contrast {
    color: var(--text-muted) !important;
}

.bg-primary-custom {
    background: var(--brand-primary) !important;
    color: #ffffff !important;
}

.text-touch {
    color: var(--brand-touch) !important;
}

.btn-brand {
    background: var(--brand-black) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
}

.btn-brand:hover {
    background: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #ffffff !important;
}

/* Global Accordion - Premium Style */
.accordion {
    border: none;
}

.accordion-item {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow) !important;
}

.accordion-item:hover {
    border-color: var(--brand-primary) !important;
}

.accordion-button {
    background: transparent !important;
    box-shadow: none !important;
    color: var(--text-primary) !important;
    padding: 20px 24px !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
}

.accordion-button:not(.collapsed) {
    color: var(--brand-primary) !important;
    border-bottom: 1px solid var(--border-color);
}

.accordion-body {
    color: var(--text-secondary) !important;
    padding: 24px !important;
    background: var(--bg-hover);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Statistics Cards */
.stat-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    border-color: var(--brand-primary) !important;
    background: var(--bg-hover) !important;
    transform: translateY(-5px);
}

/* Balance & Asset Cards */
.balance-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.balance-card:hover {
    border-color: var(--brand-primary);
}

.balance-card .stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.balance-card .stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1px;
    line-height: 1;
}

.balance-card .stat-sub {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 15px;
}

/* Plan Slider Cards */
.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.plan-card:hover {
    border-color: var(--brand-primary) !important;
    transform: translateY(-10px);
    background: var(--bg-hover);
}

.plan-card .icon-box {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: var(--brand-black);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

/* Typography improvements */
h1 {
    font-size: 20px;
    font-weight: 700;
}

h2 {
    font-size: 20px;
    font-weight: 600;
}

h3 {
    font-size: 20px;
    font-weight: 600;
}

h4 {
    font-size: 20px;
    font-weight: 600;
}

h5 {
    font-size: 20px;
    font-weight: 600;
}

h6 {
    font-size: 20px;
    font-weight: 600;
}

p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.text-sm {
    font-size: 12px;
}

.text-xs {
    font-size: 11px;
}

/* Main Layout Container */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    transition: all 0.3s ease;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    overflow-y: auto;
}

.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    transition: all 0.3s ease;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
    min-width: var(--sidebar-collapsed);
}

.sidebar.collapsed+.main-content {
    margin-left: var(--sidebar-collapsed);
    width: calc(100% - var(--sidebar-collapsed));
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
        width: 60%;
        min-width: 60%;
    }

    .sidebar.show {
        transform: translateX(0);
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }
}

.sidebar-header {
    padding: 1.5rem;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.sidebar.collapsed .sidebar-header {
    padding: 1.5rem 0;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 8px 16px rgba(var(--primary-rgb), 0.3);
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    background: var(--primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s;
}

.sidebar.collapsed .logo-text {
    display: none;
}

.sidebar-toggle {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-hover);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-secondary);
}

.sidebar-toggle:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.sidebar.collapsed .sidebar-toggle {
    transform: rotate(180deg);
}

.sidebar-close {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-hover);
    border: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .sidebar.show .sidebar-close {
        display: flex;
        position: absolute;
        right: 1rem;
        top: 1rem;
    }
}

/* Menu */
.sidebar-menu {
    padding: 1.5rem 0;
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-menu::-webkit-scrollbar {
    width: 5px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.menu-section {
    padding: 0 1.5rem;
    /* margin-bottom: 2rem; */
}

.sidebar.collapsed .menu-section {
    padding: 0 0.5rem;
}

.menu-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0 0.75rem;
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.sidebar.collapsed .menu-label {
    opacity: 0;
    height: 0;
    margin: 0;
    overflow: hidden;
}

/* Improved dropdown styles */
.menu-dropdown {
    position: relative;
    margin-bottom: 0.5rem;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-weight: 700 !important;
}

.menu-item:hover {
    color: var(--primary);
    background: var(--menu-item);
    transform: translateX(5px);
}

.menu-item.active {
    color: #5f14ff;
    background: var(--bg-main);
    font-weight: 600;
    /* box-shadow: 0 8px 16px rgba(var(--primary-rgb), 0.3); */
}

.menu-item i {
    font-size: 14px;
    width: 12px;
    margin-right: 12px;
    transition: all 0.3s;
}

.menu-text {
    transition: all 0.3s;
    flex: 1;
}

.dropdown-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 12px;
}

.menu-dropdown.show .dropdown-arrow {
    transform: rotate(180deg);
}

.sidebar.collapsed .menu-item {
    justify-content: center;
    padding: 1rem;
}

.sidebar.collapsed .menu-item i {
    margin-right: 0;
}

.sidebar.collapsed .menu-text,
.sidebar.collapsed .dropdown-arrow {
    display: none;
}

/* Submenu styles */
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    /* background: rgba(var(--primary-rgb), 0.05); */
    border-left: 1px solid #4a0fcc;
    /* border-radius: 8px; */
    margin-top: 0.5rem;
    margin-left: 20px;
}

.submenu.show {
    max-height: 500px;
    transition: max-height 0.3s ease-in;

}

.submenu-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem 0.5rem 0.7rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    margin: 0.25rem 0.5rem;
    transition: all 0.3s;
    font-size: 13px;
    font-weight: 700;
}

.submenu-item:hover {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
}

.submenu-item.active {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.15);
    font-weight: 500;
}

.sidebar.collapsed .submenu {
    display: none;
}

/* Tooltip for collapsed sidebar */
.menu-tooltip {
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1002;
    font-size: 12px;
}

.sidebar.collapsed .menu-item:hover .menu-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Header */
.header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.menu-toggle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg-hover);
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-secondary);
}

.menu-toggle.active {
    background: var(--primary);
    color: white;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
}

.menu-toggle:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.crypto-ticker {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.crypto-price-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.crypto-price-item img {
    width: 20px;
    height: 20px;
}

.crypto-price-item .price {
    font-weight: 300;
    color: var(--text-primary);
    font-size: 10px;
}

.crypto-price-item .change {
    font-size: 12px;
    font-weight: 500;
}

.crypto-price-item .change.positive {
    color: var(--success);
}

.crypto-price-item .change.negative {
    color: var(--danger);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-btn {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--bg-hover);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-secondary);
    position: relative;
    padding: 0;
}

.header-btn#userDropdown {
    width: auto;
    padding: 0 8px;
    min-width: 44px;
}

.header-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.notification-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 61, 113, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 61, 113, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 61, 113, 0);
    }
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.5rem 1rem;
    background: var(--bg-hover);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.user-menu:hover {
    background: var(--primary);
    color: var(--text-primary) !important;
    box-shadow: 0 8px 16px rgba(var(--primary-rgb), 0.3);
}

.user-dropdown {
    width: 250px;
    padding: 0.5rem;
}

.dark-theme .user-dropdown {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

.dark-theme .user-dropdown-item {
    color: var(--text-primary) !important;
}

.dark-theme .user-dropdown-item:hover {
    background-color: var(--bg-hover) !important;
}

.dark-theme .notification-dropdown {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

.dark-theme .notification-item {
    color: var(--text-primary) !important;
}

.dark-theme .notification-item:hover {
    background-color: var(--bg-hover) !important;
}

.user-info-header {
    display: flex;
    align-items: center;
    padding: 0.5rem;
}

.user-avatar-large {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary) !important;
}

.dropdown-item {
    color: var(--text-primary) !important;
    font-size: 12px;
}

.user-role {
    font-size: 12px;
    color: var(--text-muted);
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
}

.user-dropdown-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Page Content */
.page-content {
    padding: 2rem;
}

/* Banner */
.welcome-banner {
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    color: white;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banner-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(25, 1, 74, 0.8), rgba(20, 1, 63, 0.6));
    z-index: 2;
}

.banner-content {
    position: relative;
    z-index: 3;
}

.banner-stats {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.banner-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.banner-stat-label {
    font-size: 14px;
    opacity: 0.8;
}

/* Buttons */
.btn-primary-custom {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 9px;
    padding: 6px 12px;
    font-weight: 700;
    font-size: 0.7rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.4);
}

.btn-secondary-custom {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.4);
}

/* Stat Cards */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0;
}




.stat-content {
    flex: 1;
}






.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.stat-icon.primary {
    background: rgba(var(--primary-rgb), 0.15);
    color: var(--primary);
}

.stat-icon.success {
    background: rgba(0, 220, 130, 0.15);
    color: var(--success);
}

.stat-icon.warning {
    background: rgba(255, 184, 0, 0.15);
    color: var(--warning);
}

.stat-icon.info {
    background: rgba(0, 184, 255, 0.15);
    color: var(--info);
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* Charts */
.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.chart-container {
    height: 350px;
    position: relative;
}

/* Activity */
.activity-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon.success {
    background: rgba(0, 220, 130, 0.15);
    color: var(--success);
}

.activity-icon.warning {
    background: rgba(255, 184, 0, 0.15);
    color: var(--warning);
}

.activity-icon.danger {
    background: rgba(255, 61, 113, 0.15);
    color: var(--danger);
}

.activity-title {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 12px;
    color: var(--text-muted);
}

/* Quick Actions */
.quick-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 99;
}

.quick-action-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.quick-action-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(var(--primary-rgb), 0.6);
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: none;
}

.mobile-overlay.show {
    display: block;
}

/* Modern Dropdown Styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    padding: 0.75rem;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark-theme .dropdown-menu {
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-item {
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
    color: var(--text-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

.dropdown-item:hover {
    background: rgba(95, 20, 255, 0.1);
    color: var(--primary);
    transform: translateX(4px);
}

.dropdown-item:active {
    background: rgba(95, 20, 255, 0.15);
}

.dropdown-item i {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* User Dropdown Specific */
.user-dropdown {
    width: 280px;
    padding: 1rem;
}

.user-info-header {
    padding: 0.75rem;
    background: rgba(95, 20, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dark-theme .user-info-header {
    background: rgba(95, 20, 255, 0.1);
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(95, 20, 255, 0.3);
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-role {
    font-size: 13px;
    color: var(--text-muted);
    background: rgba(0, 220, 130, 0.1);
    color: var(--success);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-weight: 500;
    display: inline-block;
}

.dropdown-divider {
    margin: 0.75rem 0;
    border-color: var(--border-color);
    opacity: 0.3;
}

/* Notification Dropdown Specific */
.notification-dropdown {
    width: 360px;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.5rem 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.75rem;
}

.notification-header h6 {
    margin: 0;
    font-weight: 600;
    color: var(--text-primary);
}

.mark-all-read {
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.mark-all-read:hover {
    color: var(--primary-dark);
}

.notification-item {
    padding: 1rem 0.75rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    display: flex;
    align-items: flex-start;
}

.notification-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-color);
    transform: translateX(4px);
}

.notification-item.unread {
    background: rgba(var(--primary-rgb), 0.03);
    border-color: rgba(var(--primary-rgb), 0.08);
}

.notification-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    font-size: 18px;
}

.notification-icon.success {
    background: rgba(var(--success-rgb), 0.1);
    color: var(--success);
}

.notification-icon.danger {
    background: rgba(var(--danger-rgb), 0.1);
    color: var(--danger);
}

.notification-icon.warning {
    background: rgba(var(--warning-rgb), 0.1);
    color: var(--warning);
}

.notification-icon.info {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.notification-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.notification-time {
    font-size: 12px;
    color: var(--text-muted);
}

.notification-footer {
    text-align: center;
    padding: 0.75rem 0 0 0;
    border-top: 1px solid var(--border-color);
    margin-top: 0.75rem;
}

.view-all-notifications {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.view-all-notifications:hover {
    color: var(--primary-dark);
}

/* Page content styles */
.page-container {
    display: none;
}

.page-container.active {
    display: block;
}

.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
}

.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-container {
        display: block;
    }

    .crypto-ticker {
        display: none;
    }

    .user-info {
        display: none;
    }

    .page-content {
        padding: 1rem;
    }

    .welcome-banner {
        padding: 2rem 1.5rem;
    }

    .banner-title {
        font-size: 1.5rem;
    }

    .stat-value {
        font-size: 1rem;
    }

    .sidebar.show .menu-item {
        justify-content: flex-start;
    }

    .sidebar.show .menu-item i {
        margin-right: 12px;
    }

    .sidebar.show .menu-text,
    .sidebar.show .menu-label,
    .sidebar.show .logo-text {
        display: block !important;
    }
}

/* Mobile Tabs Scrolling */
.mobile-tabs {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

.mobile-tabs::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

/* 8. MOBILE OPTIMIZATIONS (New Request) */
/* Blue Stripe Background for Stats - Skyblue Variant */
.blue-stripe-bg,
body.dark-theme .blue-stripe-bg {
    background: repeating-linear-gradient(45deg,
            #38bdf8,
            #38bdf8 10px,
            #0ea5e9 10px,
            #0ea5e9 20px) !important;
    color: white !important;
    /* Glassmorphism touch */
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.3) !important;
    border: none !important;
}

/* Modern Active Plan Card */
.active-plan-card {
    background: #1e293b;
    /* Fallback */
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.active-plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
    pointer-events: none;
}

body.dark-theme .active-plan-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Horizontal Scroll Snap for Stats */
@media (min-width: 768px) {
    .mobile-stats-scroll {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        overflow: visible !important;
    }

    .mobile-stats-scroll>div {
        width: auto !important;
        max-width: none !important;
    }

    /* Hide indicators on desktop */
    .slider-indicators {
        display: none !important;
    }
}

/* Slider Indicators */
.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    background-color: #cbd5e1;
    /* Inactive color */
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.indicator-dot.active {
    width: 24px;
    /* Expand width */
    border-radius: 10px;
    /* Pill shape */
    background-color: var(--primary);
    /* Active color */
}

/* Smaller Text on Mobile */
@media (max-width: 576px) {

    body,
    .page-content {
        font-size: 11px !important;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-size: 90% !important;
        /* Scale headers down slightly */
    }

    .fs-2 {
        font-size: 1.5rem !important;
    }

    /* Adjust large display text */
    .fs-3 {
        font-size: 1.25rem !important;
    }

    .fs-4 {
        font-size: 1.1rem !important;
    }

    .fs-5 {
        font-size: 1rem !important;
    }

    .btn {
        font-size: 11px !important;
        padding: 0.5rem 1rem !important;
    }

    .navbar-brand,
    .menu-text {
        font-size: 13px !important;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Add these CSS classes for hide/show functionality */
.sidebar.hidden {
    transform: translateX(-100%);
}

.main-content.full-width {
    margin-left: 0;
    width: 100%;
}

/* Update sidebar toggle button rotation */
.sidebar.hidden+.main-content .sidebar-toggle {
    transform: rotate(180deg);
}

.sidebar.hidden+.main-content .sidebar-toggle:hover {
    transform: rotate(180deg) scale(1.05);
}




.banner-slider {
    position: relative;
    width: 100%;
    height: 210px;
    overflow: hidden;
}

.welcome-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.welcome-banner.active {
    opacity: 1;
}

.banner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.banner-content {
    position: absolute;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    color: white;
    z-index: 2;
}





.pause-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pause-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .slider-controls {
        right: 15px;
    }

    .slider-line {
        width: 1px;
        height: 40px;
    }

    .slider-dot {
        width: 6px;
        height: 6px;
        margin: 6px 0;
    }

    .slider-dot.active {
        transform: scale(1.2);
    }

    .pause-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
        top: 10px;
        left: 10px;
    }
}

.slider-controls {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
}

.slider-indicator {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.slider-line {
    width: 2px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
    position: relative;
    overflow: hidden;
}

.slider-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 1px;
    transition: height 0.1s linear;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 8px 0;
    border: 2px solid transparent;
    position: relative;
}

.slider-dot.active {
    background: white;
    transform: scale(1.3);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

#add-to-cart {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#add-to-cart:hover {
    transform: scale(1.05);
}

.add-to-cart-counter {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: rgb(246, 95, 95);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transform: translate(50%, -50%);
}

/* =========================================
   DS STANDARDIZED SIDEBAR (Custom Rewrite)
   ========================================= */


/* 1. Header & Logo Area */
.ds-sidebar {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    overflow: hidden !important;
}

.ds-header {
    padding: 1.5rem 1rem;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.ds-menu {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 1rem;
}

/* Custom Scrollbar for Menu */
.ds-menu::-webkit-scrollbar {
    width: 4px;
}

.ds-menu::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.ds-menu:hover::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
}

.ds-logo-container {
    position: relative;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ds-logo-container img {
    max-height: 40px;
    transition: all 0.3s ease;
    display: none;
    /* Default hidden */
}

/* --- LOGO VISIBILITY LOGIC (STRICT) --- */

/* Expanded + Light Theme = Full Light Logo */
body:not(.dark-theme) .ds-sidebar:not(.collapsed) .ds-logo-full-light {
    display: block !important;
    /* width: 140px; */
}

/* Expanded + Dark Theme = Full Dark Logo */
body.dark-theme .ds-sidebar:not(.collapsed) .ds-logo-full-dark {
    display: block !important;
    /* width: 140px; */
}

/* Collapsed + Light Theme = Icon Light */
body:not(.dark-theme) .ds-sidebar.collapsed .ds-logo-icon-light {
    display: block !important;
    width: 40px;
}

/* Collapsed + Dark Theme = Icon Dark */
body.dark-theme .ds-sidebar.collapsed .ds-logo-icon-dark {
    display: block !important;
    width: 40px;
}

/* 2. Profile Footer Area */
.ds-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    background: var(--bg-sidebar);
}

.ds-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ds-profile:hover {
    background: var(--bg-hover);
}

.ds-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}

.ds-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ds-user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.2s ease;
    flex: 1;
}

.ds-user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.ds-user-role {
    font-size: 11px;
    color: var(--text-muted);
}

.ds-options-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 4px;
    cursor: pointer;
}

/* --- COLLAPSED STATE ADJUSTMENTS --- */
.ds-sidebar.collapsed .ds-user-info {
    display: none !important;
    opacity: 0;
}

.ds-sidebar.collapsed .ds-options-btn {
    display: none !important;
}

.ds-sidebar.collapsed .ds-profile {
    justify-content: center;
    padding: 0;
}

.ds-sidebar.collapsed .ds-footer {
    padding: 1.5rem 0.5rem;
    display: flex;
    justify-content: center;
}

/* Hide Old Classes if present */
.user-profile-compact {
    display: none;
}

/* End of DS Styles */

/* =========================================
   GLOBAL DARK MODE MODERN DESIGN (Glassmorphism)
   ========================================= */

/* 1. CARDS - Glassy Look */
body.dark-theme .card {
    background: var(--bg-card) !important;
    /* Slightly more solid for readability */
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
}

/* 2. TABLES - Transparent & Sleek */
body.dark-theme .table {
    color: #e2e8f0 !important;
    --bs-table-bg: transparent !important;
    --bs-table-color: #e2e8f0 !important;
    --bs-table-border-color: rgba(255, 255, 255, 0.08) !important;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.05) !important;
    --bs-table-hover-color: #ffffff !important;
}

body.dark-theme .table thead th {
    background: #0f0f23 !important;
    /* Solid dark specifically for headers to hide scrollunder */
    color: #94a3b8 !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.dark-theme .table td {
    background-color: transparent !important;
    border-bottom-color: rgba(255, 255, 255, 0.05) !important;
    vertical-align: middle;
}

/* 3. MODALS - Deep & Floating */
body.dark-theme .modal-content {
    background: #1a1a2e !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
}

body.dark-theme .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* 4. FORMS & INPUTS - Dark & Clean */
body.dark-theme .form-control,
body.dark-theme .form-select,
body.dark-theme .input-group-text,
body.dark-theme textarea {
    background-color: #0f0f23 !important;
    /* Very dark blue */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

body.dark-theme .form-control:focus,
body.dark-theme .form-select:focus {
    background-color: #0f0f23 !important;
    border-color: #0052FF !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.2) !important;
}

body.dark-theme .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* 5. DROPDOWNS - Matching Glass/Dark Theme */
body.dark-theme .dropdown-menu {
    background-color: #1a1a2e !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

body.dark-theme .dropdown-item {
    color: #cbd5e1 !important;
}

body.dark-theme .dropdown-item:hover,
body.dark-theme .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}

body.dark-theme .dropdown-divider {
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

/* 6. BUTTONS - Modern Gradient & Glow */
body.dark-theme .btn-primary {
    background: linear-gradient(135deg, #22e232 0%, #22e232 100%) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 82, 255, 0.4) !important;
    transition: all 0.3s ease !important;
    color: white !important;
}

body.dark-theme .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 82, 255, 0.6) !important;
    transform: translateY(-2px);
}

body.dark-theme .btn-outline-secondary {
    color: #cbd5e1 !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

body.dark-theme .btn-outline-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

body.dark-theme .btn-danger,
body.dark-theme .btn-outline-danger {
    box-shadow: 0 4px 15px rgba(255, 61, 113, 0.3) !important;
}

/* 7. MODAL ENHANCEMENTS - Softer & cleaner */
body.dark-theme .modal-content {
    border-radius: 20px !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .modal-header {
    background: rgba(255, 255, 255, 0.02) !important;
    padding: 1.5rem 2rem !important;
}

body.dark-theme .modal-body {
    padding: 2rem !important;
}

body.dark-theme .modal-footer {
    padding: 1.5rem 2rem !important;
    background: rgba(0, 0, 0, 0.2) !important;
}