@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');
:root {
    --primary-color: hsl(275, 51%, 32%);
    --secondary-color: hsl(251, 51%, 29%);
    --primary-color-with-opacity: hsla(276, 51%, 31%, 0.4);
    --secondary-color-with-opacity: hsla(251, 51%, 29%, 0.4);
    /* Futuristic Font */
    --font-futuristic: 'Montserrat', sans-serif;
    /* Fancy Font from google fonts */
    --font-text: 'Poppins', sans-serif;

    /* Warning */
    --warning-color: hsl(12, 95%, 36%);
    --warning-color-with-opacity: rgba(215, 69, 33, 0.102);

    --black: #000000;
    --white: #ffffff;


    /* Dark Theme (Default) */
    --bkg-dark: hsl(240, 51%, 14%);
    --text-dark: #ffffff;
    --text-dark-secondary: #8ab2d4;
    --card-bg-dark: hsla(231, 51%, 28%, 0.498);
    --card-border-dark: rgba(255, 255, 255, 0.05);
    --card-shadow-dark: inset 1px 1px 2px 0px rgba(255, 255, 255, 0.25), inset -1px -1px 1px 0px rgba(0, 0, 0, 0.25), inset 1px 1px 1px 0px rgba(255, 255, 255, 0.25), inset -1px -1px 1px 0px rgba(0, 0, 0, 0.25);
    --card-glass-inset: inset 1px 1px 2px 0px rgba(255, 255, 255, 0.25), inset -1px -1px 1px 0px rgba(0, 0, 0, 0.25), inset 1px 1px 1px 0px rgba(255, 255, 255, 0.25), inset -1px -1px 1px 0px rgba(0, 0, 0, 0.25);
    --chart-bg-dark: rgba(26, 26, 46, 0.95);
    --blob-opacity-dark: 0.8;
    --glass-bg-dark: hsla(260, 51%, 34%, 0.08);
    --blob-blur-dark: 80px;
    /* Light Theme */
    --primary-color-light: #356fc7;
    --secondary-color-light: #6835c7;
    --primary-color-with-opacity-light: rgba(47, 91, 158, 0.8);
    --secondary-color-with-opacity-light: rgba(53, 111, 199, 0.4);
    --bkg-light: #ffffffd6;
    --text-light: #0f3963;
    --text-light-secondary: #265a88;
    --card-bg-light: rgba(149, 204, 255, 0.419);
    --card-border-light: rgba(40, 86, 166, 0.2);
    --card-shadow-light: inset 3px 3px 6px 0px rgba(255, 255, 255, 0.25), inset -3px -3px 6px 0px rgba(0, 0, 0, 0.25), inset 3px 3px 6px 0px rgba(255, 255, 255, 0.25), inset -3px -3px 6px 0px rgba(0, 0, 0, 0.25);
    --chart-bg-light: rgba(255, 255, 255, 0.95);
    --blob-opacity-light: 0.6;
    --glass-bg-light: rgba(213, 208, 216, 0.124);

    /* Current Theme (Default: Dark) */
    --background-color: var(--bkg-dark);
    --text-color: var(--text-dark);
    --text-color-secondary: var(--text-dark-secondary);
    --card-background: var(--card-bg-dark);
    --card-border: var(--card-border-dark);
    --card-shadow: var(--card-shadow-dark);
    --card-backdrop: blur(25px);
    --card-glass: var(--glass-bg-dark);
    --chart-background: var(--chart-bg-dark);
    --chart-border: var(--primary-color);
    --blob-opacity: var(--blob-opacity-dark);
    --blob-blur: 40px;

    /* VIBGYOR Colors - Dark Mode (Lighter versions) */
    --violet-dark: #b19cd9;
    --indigo-dark: #9bb5ff;
    --blue-dark: #87ceeb;
    --green-dark: #90ee90;
    --yellow-dark: #ffff99;
    --orange-dark: #ffb366;
    --red-dark: #fe7a7a;

    /* VIBGYOR Colors - Light Mode (Darker versions) */
    --violet-light: #8b5a96;
    --indigo-light: #4b69b8;
    --blue-light: #4682b4;
    --green-light: #32cd32;
    --yellow-light: #ffd700;
    --orange-light: #ff8c00;
    --red-light: #dc143c;

    /* Sidebar Colors */
    --sidebar-width: 280px;
    --sidebar-background: linear-gradient(180deg, var(--primary-color), var(--secondary-color) 70%);
    --sidebar-padding: 4px 0;
    --sidebar-height: calc(100vh - 48px);
    --sidebar-transition: transform 0.3s ease;
    --sidebar-logo-height: 40px;
    --sidebar-title-font: var(--font-text);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

::selection {
    background: var(--primary-color-with-opacity);
    color: var(--text-color);
}

body {
    font-family: var(--font-text);
    /* background: var(--background-color); */
    background: linear-gradient(45deg, var(--background-color), var(--primary-color), var(--secondary-color), var(--background-color));
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.hidden {
    display: none;
}

/* Smooth transitions for theme switching */
.info-card, .financial-card, .wallet-distribution-section, .earnings-graph-section,
.graph-container, .stat-item, .wallet-item, .referral-input input,
.copy-btn, .whatsapp-btn, .telegram-btn, .pdf-btn,
.investment, .earning, .detail-row, .chart-header h3,
.wallet-amount, .total-amount, .period-tab {
    transition: all 0.5s ease;
}

/* Gradient Blobs Background */
/* .gradient-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

@media screen and (max-width: 768px) {
    .gradient-blobs {
        display: none;
        max-width: 100vw;
    }
}

.blob {
    position: fixed;
    border-radius: 10%;
    filter: blur(var(--blob-blur));
    opacity: var(--blob-opacity);
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-color), transparent);
    top: 10%;
    left: 10%;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--secondary-color), transparent);
    top: 60%;
    right: 15%;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #8e44ad, transparent);
    bottom: 20%;
    left: 20%;
}

.blob-4 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #9b59b6, transparent);
    top: 30%;
    right: 30%;
}

.blob-5 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, #7d3c98, transparent);
    bottom: 40%;
    right: 10%;
}

.blob-6 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, #6c3483, transparent);
    top: 70%;
    left: 50%;
} */

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) translateX(15px) scale(1.1) rotate(90deg);
    }
    50% {
        transform: translateY(20px) translateX(-25px) scale(0.9) rotate(180deg);
    }
    75% {
        transform: translateY(-25px) translateX(30px) scale(1.05) rotate(270deg);
    }
}

/* Enhanced glassmorphism effects */
.info-card, .financial-card, .wallet-distribution-section, .earnings-graph-section {
    backdrop-filter: var(--card-backdrop);
    -webkit-backdrop-filter: var(--card-backdrop);
    background: var(--card-background);
    box-shadow: var(--card-shadow);
}

/* Add subtle glow effect on hover */
.info-card:hover, .financial-card:hover, .wallet-distribution-section:hover, .earnings-graph-section:hover {
    box-shadow: var(--card-shadow);
}

/* Light Theme Styles */
body.light-theme {
    --primary-color: var(--primary-color-light);
    --secondary-color: var(--secondary-color-light);
    --primary-color-with-opacity: var(--primary-color-with-opacity-light);
    --secondary-color-with-opacity: var(--secondary-color-with-opacity-light);
    --background-color: var(--bkg-light);
    --text-color: var(--text-light);
    --card-background: var(--card-bg-light);
    --card-border: var(--card-border-light);
    --card-shadow: var(--card-shadow-light);
    --card-glass: var(--glass-bg-light);
    --chart-background: var(--chart-bg-light);
    --blob-opacity: var(--blob-opacity-light);
    --text-color: var(--text-light);
    --text-color-secondary: var(--text-light-secondary);
}



/* Light theme blob color adjustments */
body.light-theme .blob-1 {
    background: radial-gradient(circle, var(--primary-color-with-opacity-light), transparent);
}

body.light-theme .blob-2 {
    background: radial-gradient(circle, var(--secondary-color-with-opacity-light), transparent);
}

body.light-theme .blob-3 {
    background: radial-gradient(circle, var(--primary-color-with-opacity-light), transparent);
}

body.light-theme .blob-4 {
    background: radial-gradient(circle, var(--secondary-color-with-opacity-light), transparent);
}

body.light-theme .blob-5 {
    background: radial-gradient(circle, var(--primary-color-with-opacity-light), transparent);
}

body.light-theme .blob-6 {
    background: radial-gradient(circle, var(--secondary-color-with-opacity-light), transparent);
}

body.light-theme .sidebar {
    --sidebar-background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

body.light-theme .info-card,
body.light-theme .financial-card,
body.light-theme .wallet-distribution-section,
body.light-theme .earnings-graph-section,
body.light-theme .profit-comparison-section {
    background: var(--card-background);
    border-color: var(--card-border);
    box-shadow: var(--card-shadow);
}

body.light-theme .graph-container {
    background: var(--chart-background);
    border-color: var(--card-border);
}

body.light-theme .bar-chart-container {
    background: var(--chart-background);
    border-color: var(--card-border);
}

body.light-theme .stat-item,
body.light-theme .wallet-item {
    background: var(--card-background);
    border-color: var(--card-border);
}

body.light-theme .dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-light);
}

body.light-theme .dropdown-item {
    color: var(--text-light);
}

body.light-theme .dropdown-item:hover {
    background-color: #4a0f73cc;
    color: #ffffff;
}

body.light-theme .referral-input input {
    background: #fff;
    border-color: var(--primary-color);
    color: var(--text-light);
}

body.light-theme .referral-input input::selection {
    background: white;
}

body.light-theme .copy-btn,
body.light-theme .whatsapp-btn,
body.light-theme .telegram-btn,
body.light-theme .pdf-btn {
    color: #ffffff;
}

body.light-theme .investment,
body.light-theme .earning {
    background: var(--primary-color-with-opacity);
    border: 1px solid var(--primary-color);
}

body.light-theme .detail-row {
    border-bottom-color: var(--primary-color-with-opacity-light);
    color: var(--text-light-secondary);
}

body.light-theme .status-active {
    color: var(--primary-color) !important;
}

body.light-theme .chart-header h3 {
    color: var(--black);
}

body.light-theme .wallet-amount,
body.light-theme .total-amount {
    color: var(--text-color);
}

body.light-theme .period-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
}

body.light-theme .period-tab:hover:not(.active) {
    background: var(--primary-color-with-opacity);
    color: var(--text-light);
}

body.light-theme .notification-bell {
    background: var(--primary-color-with-opacity);
}

body.light-theme .notification-bell:hover {
    background: var(--secondary-color-with-opacity);
}

body.light-theme .notification-bell i {
    color: var(--text-color);
}

body.light-theme .notification-badge {
    border-color: var(--bkg-light);
}

body.light-theme .trading-news-banner {
    background: rgba(0, 0, 0, 0.7);
}

body.light-theme .trading-news-banner::before {
    background: linear-gradient(90deg, var(--primary-color-with-opacity), var(--secondary-color-with-opacity));
}

body.light-theme .news-time {
    background: var(--warning-color-with-opacity);
    color: #ffffff;
    font-weight: 600;
    font-family: var(--font-futuristic);
}

body.light-theme .news-text {
    color: #ffffff;
    font-weight: 600;
    font-family: var(--font-futuristic);
}

body.light-theme .overview-tabs {
    background: var(--primary-color-with-opacity);
}

body.light-theme .overview-tab {
    color: #ffffff;
}

body.light-theme .overview-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
}

body.light-theme .overview-tab:hover:not(.active) {
    background: var(--primary-color-with-opacity);
    color: #ffffff;
}

body.light-theme .nav-item {
    color: white;
}

/* Responsive blob adjustments */
@media (max-width: 768px) {
    .blob {
        filter: blur(60px);
        opacity: calc(var(--blob-opacity) * 0.75);
    }
    
    .blob-1, .blob-2, .blob-3, .blob-4, .blob-5, .blob-6 {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .blob {
        filter: blur(40px);
        opacity: calc(var(--blob-opacity) * 0.6);
    }
    
    .blob-1, .blob-2, .blob-3, .blob-4, .blob-5, .blob-6 {
        width: 150px;
        height: 150px;
    }
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
    z-index: 2;
    padding-top: 48px; /* Account for fixed news banner */
}

@media screen and (max-width: 768px) {
    .dashboard-container {  
        padding-top: 80px;
    }
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-background);
    padding: var(--sidebar-padding);
    position: fixed;
    height: var(--sidebar-height);
    overflow-y: auto;
    z-index: 1000;
    font-family: var(--sidebar-title-font);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: translateX(0);
}

.logo {
    text-align: center;
    margin-bottom: 4px;
    width: 100%;
    height: var(--sidebar-logo-height);
}

.logo i {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: block;
}

.logo-image {
    width: 100%;
    height: var(--sidebar-logo-height);
    display: block;
    object-fit: contain;
    /* Make it white */
    filter: brightness(0) invert(1);
}

.logo span {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
    display: block;
}

.logo small {
    font-size: 11px;
    color: var(--text-color);
    display: block;
    margin-top: 4px;
}

.sidebar-nav {
    padding: 0 10px;
    overflow-y: auto;
    height: calc(100% - 200px);
    border-top: 1px solid var(--card-border);
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin: 2px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-item:hover::before {
    left: 100%;
}

.nav-item:hover {
    background: var(--card-background);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateX(8px);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--primary-color);
    border-radius: 2px 0 0 2px;
    box-shadow: 0 0 10px var(--primary-color);
}

.nav-item i {
    width: 20px;
    margin-right: 12px;
    text-align: center;
    font-size: 16px;
}

.social-media-icons {
    display: flex;
    padding-top: 10px;
    gap: 10px;
    justify-content: center;
    align-items: center;
    width: 100%;
    z-index: 1000;
}

.social-media-icons a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-media-icons a:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(92, 19, 141, 0.3);
}

.social-media-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
    background-color: #fff;
    padding: 3px;
    border-radius: 2rem;
    width: 30px;
    aspect-ratio: 1/1 !important;
    font-size: 24px;
}

.social-media-icon i {
    vertical-align: middle;
}

.social-media-icon i.fa-facebook {
    color: #3b5998;
}

.social-media-icon i.fa-twitter {
    color: #1da1f2;
}

.social-media-icon i.fa-instagram {
    color: #c13584;
}

.social-media-icon i.fa-telegram {
    color: #0088cc;
}

.nav-item.logout-btn span {
    color: #F44336;
}

.nav-item.logout-btn i {
    color: #F44336;
}

.nav-item span {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.nav-item .fas.fa-chevron-down {
    margin-left: auto;
    margin-right: 0;
    font-size: 12px;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.nav-item .fas.fa-chevron-down.rotated {
    transform: rotate(180deg);
}

/* Wallet Balance Section */
.my-wallet {
    display: flex;
    align-items: center;
    padding: 4px 6px;
    margin-inline: 36px;
    margin-block: 6px;
    background: #6b91d1d9;
    border-radius: 10px;
    gap: 15px;
    font-family: var(--font-futuristic);
}

.light-theme .my-wallet {
    background: var(--secondary-color);
}

.my-wallet svg {
    max-height: 36px;
    max-width: 36px;
    aspect-ratio: 1/1 !important;
}

.my-wallet div {
    flex: 1;
}

.my-wallet p {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.my-wallet b {
    font-size: 16px;
    font-weight: 600;
    margin-right: 8px;
}

.my-wallet i {
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    color: #ffffff;
}

.my-wallet i:hover {
    opacity: 1;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    display: none;
    margin-top: 5px;
    padding: 10px;
    background: rgba(236, 236, 243, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-bottom: 2px;
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.4s ease;
}

.dropdown-item:hover::before {
    left: 100%;
}

.dropdown-item:hover {
    background: #2a5bb3;
    color: var(--text-color);
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.dropdown-item:active {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), #f0f0f00f);
    color: var(--text-color);
}

.dropdown-item i {
    width: 18px;
    margin-right: 10px;
    text-align: center;
    font-size: 14px;
}

.dropdown-item span {
    font-size: 13px;
    font-weight: 500;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    margin-left: 280px;
    background: var(--background-color);
    transition: margin-left 0.3s ease;
}

/* Sidebar toggle states */
.sidebar.sidebar-closed {
    transform: translateX(-100%);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Desktop sidebar toggle behavior */
@media (min-width: 769px) {
    .sidebar {
        transform: translateX(0); /* Open by default on desktop */
    }
    
    .sidebar.sidebar-closed {
        transform: translateX(-100%);
    }
    
    .main-content {
        transition: margin-left 0.3s ease;
        margin-left: var(--sidebar-width);
    }
    
    .sidebar.sidebar-closed + .main-content {
        margin-left: 0;
    }
}

.main-content.main-content-expanded {
    margin-left: 0;
}

/* Enhanced mobile sidebar overlay - only on mobile */
@media (max-width: 768px) {
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-width: 100vw;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* Hide overlay on desktop */
@media (min-width: 769px) {
    .sidebar-overlay {
        display: none !important;
    }
}

/* Mobile-specific features */
.pull-to-refresh {
    position: fixed;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(92, 19, 141, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 0 0 15px 15px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1002;
    transition: top 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.pull-to-refresh.show {
    top: 0;
}

.pull-to-refresh i {
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

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

/* Mobile loading states */
.mobile-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    max-width: 100vw;
}

.mobile-loading.show {
    opacity: 1;
    visibility: visible;
}

.mobile-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.mobile-loading-text {
    color: white;
    font-size: 16px;
    font-weight: 500;
}

/* Performance optimizations for mobile */
@media (max-width: 768px) {
    
    /* Disable expensive effects on mobile */
    .blob {
        display: none;
    }
    
    /* Optimize backdrop filters */
    .info-card, .financial-card, .wallet-item, .stat-item {
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    .info-card {
        min-height: fit-content;
        flex-shrink: 0;
    }

    .financial-card {
        height: fit-content;
    }
    
    /* Reduce shadow complexity */
    .info-card, .financial-card, .wallet-item, .stat-item, .bonus-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Optimize gradients */
    .nav-item.active {
        background: rgba(255, 255, 255, 0.15);
    }
    
    /* Reduce transform complexity */
    .nav-item:hover {
        transform: translateX(3px);
    }
    
    .nav-item.active {
        transform: translateX(5px);
    }
}

/* Mobile sidebar improvements */
@media (max-width: 768px) {
    .sidebar {
        width: 280px;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
        transform: translateX(-100%);
    }
    
    .sidebar.sidebar-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Enhanced touch targets for mobile */
    .nav-item {
        padding: 16px 15px;
        margin: 3px 0;
        min-height: 48px;
        touch-action: manipulation;
    }
    
    .nav-item i {
        font-size: 18px;
        width: 24px;
    }
    
    .nav-item span {
        font-size: 15px;
    }
    
    /* Better dropdown handling on mobile */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        margin: 5px 0 0 20px;
        border-radius: 8px;
        border-left: 3px solid rgba(255, 255, 255, 0.3);
    }
    
    .dropdown-item {
        padding: 12px 15px;
        min-height: 44px;
        font-size: 14px;
    }
    
    .dropdown-item i {
        font-size: 16px;
        width: 20px;
    }
    
    /* Enhanced mobile header */
    .header {
        position: sticky;
        top: 0;
        z-index: 100;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .menu-toggle {
        padding: 8px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
        touch-action: manipulation;
    }
    
    .menu-toggle:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 0.2);
    }
    
    /* Enhanced touch interactions */
    .icon-btn {
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .icon-btn:active {
        transform: scale(0.95);
    }
    
    .btn {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    /* Better scroll behavior */
    .main-content {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* Improved tab navigation */
    .overview-tab, .period-tab {
        touch-action: manipulation;
    }
    
    .overview-tab:active, .period-tab:active {
        transform: scale(0.98);
    }
}

.header {
    background: color-mix(in srgb, var(--primary-color), transparent 70%);
    padding: 4px 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-family: var(--font-futuristic);
    z-index: 2;
}

.header-left {
    display: flex;
    align-items: center;
}

.menu-toggle {
    margin-right: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.menu-toggle i {
    font-size: 18px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.menu-toggle:hover i {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.breadcrumb {
    font-size: 16px;
    font-weight: 600;
}

.nav-below-wallet {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-inline: 36px;
    margin-block: 2px;
    font-size: 12px;
    font-weight: 600;
}

.nav-below-wallet span:first-child {
    color: #fe7a7a;
    font-weight: 500;
}
.nav-below-wallet span:last-child {
    color: #38b97d;
    font-weight: 500;
}

@media (max-width: 768px) {
    .breadcrumb {
        font-size: 14px;
    }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-inline: 0 10px;
}

.header-right-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    justify-content: center;
    font-family: var(--font-futuristic);font-size: 12px;
    margin-inline: 0 12px;
}

.header-right-item-label {
    color: gold;
    font-weight: 500;
}

body.light-theme .header-right-item-label {
    color: var(--text-color-secondary);
}

.header-right-item-value {
    color: var(--text-color);
    font-weight: 600;
}


@media (max-width: 768px) {
    .header {
        padding: 10px 15px;
    }

    .header-right {
        gap: 4px;
    }
}

.theme-toggle {
    background: var(--primary-color-with-opacity);
    color: var(--text-color);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--secondary-color-with-opacity);
    transform: scale(1.1);
    box-shadow: 0 4px 12px var(--primary-color-with-opacity);
}

.theme-toggle i {
    color: var(--text-color);
    font-size: 16px;
}

@media (max-width: 768px) {
    .theme-toggle {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

.notification-bell {
    position: relative;
    width: 32px;
    height: 32px;
    background: var(--primary-color-with-opacity);
    box-shadow: inset 2px 2px 4px rgba(255, 255, 255, 0.25), inset -2px -2px 4px rgba(0, 0, 0, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.notification-bell:hover {
    background: var(--secondary-color-with-opacity);
    transform: scale(1.1);
    box-shadow: 0 4px 12px var(--primary-color-with-opacity), inset 2px 2px 4px rgba(255, 255, 255, 0.25), inset -2px -2px 4px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    .notification-bell {
        width: 30px;
        height: 30px;
    }
}

.notification-bell i {
    color: var(--text-color);
    font-size: 16px;
}

@media (max-width: 768px) {
    .notification-bell i {
        font-size: 14px;
    }
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    border: 2px solid var(--background-color);
    z-index: 10;
}

/* Notification Dropdown */
.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    max-height: 500px;
    background: var(--card-background);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100002;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 10px;
    pointer-events: none;
}

.notification-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 15px 20px;
    border-bottom: 1px solid var(--card-border);
}

.notification-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}


.notification-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px 0;
}

/* Custom scrollbar for notification list */
.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    transition: all 0.3s ease;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Firefox scrollbar */
.notification-list {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.1);
}

.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 20px;
    border-bottom: 1px solid var(--card-border);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: var(--primary-color-with-opacity);
}

.notification-item.unread {
    background: rgba(255, 215, 0, 0.05);
    border-left: 3px solid #FFD700;
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #FFD700;
    border-radius: 50%;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 5px 0;
    line-height: 1.4;
}

.notification-message {
    font-size: 13px;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.4;
    opacity: 0.9;
}

.notification-time {
    font-size: 11px;
    color: #ffffff;
    opacity: 0.7;
}



/* Light theme adjustments for notifications */
body.light-theme .notification-dropdown {
    background: var(--primary-color-with-opacity);
    border-color: var(--card-border);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

body.light-theme .notification-item.unread {
    background: rgba(255, 215, 0, 0.08);
    border-left-color: #B8860B;
}
body.light-theme .notification-item.unread:hover {
    background: var(--primary-color-with-opacity);
    border-left-color: #B8860B;
}
body .notification-item.unread:hover {
    background: var(--primary-color-with-opacity);
    border-left-color: #B8860B;
}

body.light-theme .notification-item.unread::before {
    background: #B8860B;
}


/* User Profile Dropdown */
.user-avatar {
    position: relative;
    cursor: pointer;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: var(--primary-color-with-opacity);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 100003;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
    margin-top: 8px;
    overflow: hidden;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: #ffffff;
}

.user-dropdown-item:last-child {
    border-bottom: none;
}

.user-dropdown-item:hover {
    background: var(--primary-color-with-opacity);
    border-left: 3px solid #a0a0a0;
}

.user-dropdown-item i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
    font-size: 12px;
    color: #f0f0f0;
}

.user-dropdown-item span {
    font-weight: 500;
    color: #ffffff;
}

/* Light theme adjustments for user dropdown */
body.light-theme .user-dropdown {
    background: var(--primary-color-with-opacity);
    border-color: var(--card-border);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

body.light-theme .user-dropdown-item:hover {
    background: var(--primary-color-with-opacity);
    border-left-color: #a0a0a0;
}

body .user-dropdown-item:hover {
    background: var(--primary-color-with-opacity);
    border-left-color: #a0a0a0;
}

/* Mobile responsiveness for notifications */
@media (max-width: 768px) {
    .notification-dropdown {
        width: 300px;
        right: -50px;
    }
    
    .user-dropdown {
        width: 180px;
        right: -10px;
    }
}

@media (max-width: 480px) {
    .notification-dropdown {
        width: 280px;
        right: -80px;
    }
    
    .notification-header {
        padding: 15px 15px 10px 15px;
    }
    
    .notification-item {
        padding: 12px 15px;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar i {
    font-size: 16px;
}

.user-avatar.registered {
    background: #d74521;
}

.user-avatar.active {
    background: #25d366;
}

/* Trading News Banner */
.trading-news-banner {
    background: rgba(45, 53, 97, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    overflow: hidden;
    max-width: 100vw;
}

.trading-news-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(92, 19, 141, 0.05), rgba(79, 20, 176, 0.05));
    z-index: -1;
}

.news-container {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 100%;
    margin: 0 0 0 30px;
}

.news-label {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.news-label i {
    font-size: 11px;
}

.news-ticker {
    height: 44px;
    flex: 1;
}


/* Dashboard Content */
.dashboard-content {
    padding: 30px;
    background: var(--background-color);
}

.top-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .dashboard-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
        margin-inline: auto;
    }

    .top-cards {
        display: flex;
        flex-direction: column;
        max-width: 90vw;
        margin-inline: auto;
        gap: 15px;
    }
}

.top-cards .header {
    display: flex;
    align-items: center;
    flex-direction: column;
    background: #6e3097af;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.light-theme .top-cards .header {
    background: var(--primary-color-with-opacity);
}

.top-cards .header h3 {
    line-height: 1;
    margin: 6px 0;
    font-family: var(--font-text);
}

.light-theme .top-cards .header h3 {
    color: var(--text-dark);
}

.info-card {
    background: var(--card-background);
    backdrop-filter: var(--card-backdrop);
    -webkit-backdrop-filter: var(--card-backdrop);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--card-glass);
    z-index: -1;
}

.info-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 600;
    font-family: var(--font-futuristic);
}

.info-card p {
    color: var(--text-color);
    font-size: 14px;
    margin-bottom: 20px;
    font-family: var(--font-text);
}

.user-details, .business-details {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.user-details {
    padding-inline: 12px;
    padding-block: 8px;
}

.info-card-inner-container .business-details {
    padding-inline: 24px;
    padding-block: 8px;
}

.user-details.info-card-inner-container{
    padding-inline: 24px;
    padding-block: 16px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid var(--card-border);
    text-transform: capitalize;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row span:first-child {
    color: #e0e0e0;
    font-size: 13px;
    font-family: var(--font-text);
}

.light-theme .detail-row span:first-child {
    color: var(--text-light);
}

.detail-row span:last-child {
    color: var(--black);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-futuristic);
}

body:not(.light-theme) .detail-row span:last-child {
    color: var(--white);
}

@media (max-width: 768px) {

    .detail-row span:first-child {
        font-size: 11px;
        text-align: left;
    }
    
    .detail-row span:last-child {
        font-size: 11px;
        text-align: left;
    }
}


.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 10px;
    display: inline-block;
}

/* .status-active {
    color: #38b97d !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    display: flex;
    align-items: center;
    gap: 2px;
}

.status-inactive {
    color: #d74521 !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    display: flex;
    align-items: center;
    gap: 2px;
} */

.status-inactive .dot {
    background: #d74521;
}

.status-active .dot {
    background: #38b97d;
}



/* Referral Link Card */
.referral-input {
    display: flex;
    margin-bottom: 25px;
}

.referral-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px 0 0 8px;
    padding: 10px 12px;
    color: var(--text-color);
    font-size: 12px;
    max-width: 100%;    
}

.copy-btn {
    background: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 10px 15px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.copy-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(92, 19, 141, 0.3);
}

.copy-btn:active {
    background-color: #25d366;
}

.copy-btn.copied {
    background-color: #25d366 !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.copy-btn .tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #25d366;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.copy-btn .tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #25d366;
}

.copy-btn .tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

.referral-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.whatsapp-btn, .telegram-btn, .pdf-btn {
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-color);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    min-width: 80px;
    justify-content: center;
}

.whatsapp-btn {
    background: #25d366;
}

.telegram-btn {
    background: #0088cc;
}

/* .pdf-btn {
    background: #d74521;
} */
.pdf-btn {
    background: var(--red-dark);
}

.whatsapp-btn:hover, .telegram-btn:hover, .pdf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover, .telegram-btn:hover, .pdf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.pdf-btn:active {
    transform: translateY(-2px);
    background-color: var(--red-light);
}

.investment-earning {
    display: flex;
    gap: 8px;
    padding: 8px 0;
}

.investment, .earning {
    flex: 1;
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.light-theme .investment, .light-theme .earning {
    color: #fff;
}

.investment .icon, .earning .icon {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.investment .icon i, .earning .icon i {
    font-size: 36px;
}

.investment .amount, .earning .amount {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.investment .label, .earning .label {
    font-size: 12px;
    color: var(--text-color);
}

.light-theme .investment .amount, .light-theme .earning .amount {
    color: #fff;
}

.light-theme .investment .label, .light-theme .earning .label {
    color: #fff;
}

/* Financial Cards Layout */
.financial-cards-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    grid-column: span 3;
    height: 100%;
}

/* Financial Card Base Styles */
.financial-card {
    background: linear-gradient(135deg, rgba(106, 90, 205, 0.15), rgba(72, 61, 139, 0.15));
    border-radius: 12px;
    padding: 25px;
    position: relative;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(20px);
    border: 0px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-width: 280px;
}

.light-theme .financial-card .card-title {
    color: var(--text-light);
}

.light-theme .financial-card .card-amount {
    color: var(--text-light);
}

.light-theme .financial-card .card-icon {
    background: var(--primary-color-with-opacity);
}

/* Light theme adjustments for link buttons */
.light-theme .card-amount.link-btn {
    background: linear-gradient(135deg, #356fc7, #5c138d);
    box-shadow: 0 2px 8px rgba(53, 111, 199, 0.3);
}

.light-theme .card-amount.link-btn:hover {
    background: linear-gradient(135deg, #5c138d, #356fc7);
    box-shadow: 0 4px 15px rgba(53, 111, 199, 0.4);
}

.financial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);  
    z-index: -1;
}

.financial-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 1;
    border-radius: 20px;
}

.financial-card:hover::after {
    left: 100%;
}

.financial-card:hover {
    transform: translateY(-2px);
}

/* Purple gradient cards */
.financial-card.purple {
    background: rgba(106, 90, 205, 0.25);
}

.financial-card.purple::before {
    background: linear-gradient(135deg, rgba(106, 90, 205, 0.3), rgba(72, 61, 139, 0.3));
}

/* Blue gradient cards */
.financial-card.blue {
    background: rgba(74, 144, 226, 0.25);
}

.financial-card.blue::before {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.15), rgba(53, 122, 189, 0.15));
}

.financial-card.purple .card-amount.link-btn {
    background: linear-gradient(135deg, #2d138d, #356fc7);
}

/* Card Header */
.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.card-indicator {
    color: #4caf50;
    font-size: 8px;
    margin-right: 8px;
}

.card-title {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-futuristic);
}

/* Card Content */
.card-content {
    flex: 1;
}

.card-content .card-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 10px;
    text-transform: none;
    letter-spacing: normal;
}

.card-amount {
    font-size: 32px;
    font-weight: bold;
    color: var(--text-color);
    font-family: var(--font-futuristic);
    font-weight: 400;
    text-align: right;
}

/* Link Button Styling */
.card-amount.link-btn {
    position: relative;
    display: inline-block;
    margin-left: auto;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    border-radius: 8px;
    text-decoration: none;
    font-size: 20px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: none;
    text-align: center;
    max-width: max-content;
}

.card-amount.link-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.card-amount.link-btn:hover::after {
    opacity: 1;
    transform: scale(1.2);
}

.card-amount.link-btn a {
    color: white !important;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
    line-height: 1.2;
}

.card-amount.link-btn a:hover {
    color: white !important;
    text-decoration: none;
}

.card-amount.link-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Card Icon */
.card-icon {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 24px;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.15);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon i {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

/* Status Card Specific Styles */
.status-card .card-status {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header .icon-btn {
    background: var(--primary-color);
    color: var(--text-color);
    border: none;
    aspect-ratio: 1/1;
    border-radius: 50%;
    cursor: pointer;
    padding: 0 10px;
    min-width: none !important;
    max-width: none !important;
}

.header .icon-btn.whatsapp-btn {
    background: #25d366;
    min-width: 40px;
}

.header .icon-btn.telegram-btn {
    background: #0088cc;
    min-width: 40px;
}

.status-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
    font-family: var(--font-futuristic);
    text-align: right;
}

.status-subtext {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: var(--text-color);
    font-family: var(--font-futuristic);
    font-weight: 500;
    background: rgba(182, 167, 192, 0.08);
    border-radius: 16px;
    padding: 4px 14px;
    min-height: 28px;
    box-shadow: 0 1px 4px rgba(153, 141, 162, 0.07);
    border: 1px solid rgba(130, 114, 141, 0.15);
    width: auto;
    margin-left: auto;
    text-align: center;
    letter-spacing: 0.02em;
    transition: background 0.2s, color 0.2s;
}

@media (max-width: 768px) {
    .financial-cards-row {
        flex-wrap: wrap;
        gap: 15px;
        height: fit-content;
        margin-bottom: 0;
    }
    
    .financial-card {
        padding: 20px;
        min-height: 100px;
    }
    
    .card-amount {
        font-size: 24px;
    }
    
    .card-amount.link-btn {
        font-size: 14px !important;
        padding: 6px 12px;
        min-width: 70px;
    }
    
    .card-amount.link-btn::after {
        font-size: 10px;
        top: -1px;
        right: -1px;
    }
    
    .card-icon {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

/* @media (max-width: 480px) {
    .financial-cards-row {
        grid-template-columns: 1fr;
    }
} */

/* Royalty Section */
.royalty-section {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.15) 0%, 
        rgba(255, 193, 7, 0.15) 25%, 
        rgba(255, 152, 0, 0.15) 50%, 
        rgba(255, 193, 7, 0.15) 75%, 
        rgba(255, 215, 0, 0.15) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 
        inset 0 1px 0 rgba(255, 215, 0, 0.1),
        0 8px 32px rgba(255, 215, 0, 0.1),
        var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.royalty-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.05) 0%, 
        rgba(255, 193, 7, 0.05) 50%, 
        rgba(255, 152, 0, 0.05) 100%);
    z-index: -1;
}

.royalty-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.03) 0%, transparent 70%);
    animation: royaltyGlow 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes royaltyGlow {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.5; }
    50% { transform: scale(1.1) rotate(180deg); opacity: 0.8; }
}

.royalty-header {
    text-align: left;
    margin-bottom: 30px;
}

.royalty-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: #e5c300;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    font-family: var(--font-futuristic);
}

.royalty-header h3 i {
    font-size: 32px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.royalty-header p {
    color: var(--text-color);
    font-size: 16px;
    opacity: 0.9;
}

.royalty-content {
    display: flex;
    gap: 30px;
    align-items: start;
    justify-content: space-between;
    width: 100%;
    margin-top: 100px;
}

.royalty-stats {
    display: flex;
    gap: 20px;
    flex: 1;
}

.royalty-stat-item {
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: var(--text-color);
}

.royalty-stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 193, 7, 0.1));
    z-index: -1;
}

.royalty-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.3);
}

.royalty-stat-item.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.royalty-stat-item.clickable:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.4);
}

.royalty-stat-item.clickable:active {
    transform: translateY(0) scale(0.98);
}

.stat-label {
    font-size: 14px;
    color: var(--text-color) !important;
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-amount {
    font-size: 24px;
    font-weight: 700;
    color: #ddbc01;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.stat-change {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

.stat-change.positive {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.stat-change.negative {
    color: #F44336;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.2);
}

.royalty-images {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 25%;
}

.royalty-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #F9B203;
    box-shadow: 0 0 10px rgba(249, 178, 3, 0.5);
}


body.light-theme .royalty-section {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.1) 0%, 
        rgba(255, 193, 7, 0.1) 25%, 
        rgba(255, 152, 0, 0.1) 50%, 
        rgba(255, 193, 7, 0.1) 75%, 
        rgba(255, 215, 0, 0.1) 100%);
    border-color: rgba(255, 215, 0, 0.3);
}

body.light-theme .royalty-header h3 {
    color: #B8860B;
    text-shadow: 0 0 15px rgba(184, 134, 11, 0.3);
}

body.light-theme .royalty-header h3 i {
    filter: drop-shadow(0 0 8px rgba(184, 134, 11, 0.4));
}

body.light-theme .stat-amount {
    color: #B8860B;
    text-shadow: 0 0 8px rgba(184, 134, 11, 0.3);
}

body.light-theme .royalty-chart-container .chart-header h4 {
    color: #B8860B;
}

body.light-theme .period-btn.active {
    background: linear-gradient(135deg, #B8860B, #DAA520);
    color: #ffffff;
}

/* Responsive design for royalty section */
@media (max-width: 768px) {
    .royalty-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-top: 11rem;
    }

    .royalty-images {
        top: 6rem;
        right: 0;
        left: 0;
        margin: 0 auto;
        width: 240px;
        height: 240px;
    }
    
    .royalty-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .royalty-stat-item {
        flex: 1;
        min-width: 150px;
        padding: 15px;
    }
    
    .stat-amount {
        font-size: 20px;
    }
    
    .chart-wrapper {
        height: 250px;
    }
    
    .chart-controls {
        flex-wrap: wrap;
    }
    
    .period-btn {
        font-size: 11px;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .royalty-section {
        padding: 20px;
    }
    
    .royalty-header h3 {
        font-size: 24px;
    }
    
    .royalty-stats {
        flex-direction: column;
    }
    
    .royalty-stat-item {
        min-width: auto;
    }
    
    .chart-wrapper {
        height: 200px;
    }
}

/* Wallet Distribution Chart Section */
.wallet-distribution-section {
    background: rgba(45, 53, 97, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
    overflow: hidden;
}

.wallet-distribution-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(155, 89, 182, 0.1));
    border-radius: 20px;
    z-index: 0;
}

.chart-header {
    text-align: center;
    margin-bottom: 30px;
    color: #F9B203;
}

.chart-header h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-futuristic);
}

.chart-header h3 i {
    font-size: 20px;
}

.chart-header p {
    font-size: 14px;
    color: var(--text-color);
    margin: 0;
}

.chart-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.profit-comparison-section .chart-content {
    grid-template-columns: 1fr 1fr;
}

.wallet-list-left,
.wallet-list-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wallet-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wallet-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.wallet-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    z-index: -1;
}

.wallet-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.12);
}

.wallet-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex-shrink: 0;
}

.wallet-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wallet-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.wallet-amount {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    font-family: var(--font-futuristic);
}

.wallet-percentage {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color-secondary);
    background: var(--card-background);
    padding: 4px 8px;
    border-radius: 12px;
    min-width: 50px;
    text-align: center;
}

.pie-chart-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.chart-center-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.total-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 4px;
    font-family: var(--font-futuristic);
}

.total-label {
    font-size: 12px;
    color: var(--text-color-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced mobile chart responsiveness */
@media (max-width: 1024px) {
    .chart-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .wallet-list-left,
    .wallet-list-right {
        order: 2;
    }
}

@media (max-width: 768px) {
    /* Mobile chart optimizations */
    .wallet-list-left,
    .wallet-list-right {
        min-width: 100%;    
    }


    .chart-content {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .pie-chart-container {
        padding: 10px;
    }
    
    .wallet-item {
        padding: 12px;
        flex-direction: row;
        gap: 8px;
    }
    
    .wallet-info {
        align-items: flex-start;
    }
    
    .wallet-percentage {
        align-self: center;
        margin-top: 5px;
    }
    
    /* Chart touch interactions */
    .graph-container {
        touch-action: pan-x pan-y;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Better chart readability on mobile */
    .chart-header h3 {
        font-size: 18px;
        text-align: center;
    }
    
    .chart-header p {
        font-size: 13px;
        text-align: center;
    }

    .hidden-mobile {
        display: none;
    }
}

/* Responsive adjustments for referral buttons */
@media (max-width: 768px) {
    .referral-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .whatsapp-btn, .telegram-btn, .pdf-btn {
        min-width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .referral-input {
        flex-direction: column;
        gap: 10px;
    }
    
    .referral-input input {
        border-radius: 8px;
    }
    
    .copy-btn {
        border-radius: 8px;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .wallet-distribution-section {
        padding: 20px;
        margin-top: 20px;
    }
    
    .chart-header h3 {
        font-size: 20px;
    }
    
    .wallet-item {
        padding: 12px;
    }
    
    .wallet-amount {
        font-size: 15px;
    }
    
    .total-amount {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .wallet-distribution-section {
        padding: 15px;
    }
    
    .wallet-item {
        gap: 10px;
        width: 100%;
    }
    
    .wallet-percentage {
        align-self: center;
    }
}

/* Earnings Graph Section */
.earnings-graph-section {
    background: rgba(45, 53, 97, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.earnings-graph-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(155, 89, 182, 0.1));
    border-radius: 20px;
    z-index: -1;
}

.graph-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

/* Overview Tabs */
.overview-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 4px;
    gap: 2px;
    transition: all 0.3s ease;
}

.overview-tab {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.overview-tab.active {
    background: linear-gradient(135deg, #0088cc, #356fc7);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(168, 71, 204, 0.3);
}

.overview-tab:hover:not(.active) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.overview-tab i {
    font-size: 12px;
}

/* Tab Content */
.tab-content {
    display: none;
    margin-bottom: 20px;
}

.tab-content.active {
    display: block;
}

/* Stats Content */
.stats-content {
    display: none;
}

.stats-content.active {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.graph-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #F9B203;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-futuristic);
}

.graph-header h3 i {
    font-size: 18px;
    color: #F9B203;
}

body.light-theme .graph-header h3 {
    color: var(--black);
}

body.light-theme .graph-header h3 i {
    color: var(--black);
}

.time-period-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 4px;
    gap: 2px;
    margin-bottom: 16px;
}

.period-tab {
    background: transparent;
    border: none;
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.period-tab.active {
    background: linear-gradient(135deg, #0088cc, #356fc7);
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(168, 71, 204, 0.3);
}

.period-tab:hover:not(.active) {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
}

.graph-container {
    background: rgba(26, 26, 46, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
    min-height: 300px;
    border: 1px solid rgba(168, 71, 204, 0.2);
}

.graph-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    z-index: -1;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.12);
}

.stat-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 18px;
    color: white;
}

.stat-content {
    flex: 1;
}

@media (max-width: 768px) {
    .stats-content {
        display: none;
    }

    .stats-content.active {
        display: none;
    }

    .profit-stats .stat-content {
        display: unset;
    }
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 4px;
    font-family: var(--font-futuristic);
}

.stat-label {
    font-size: 13px;
    color: var(--text-color-secondary);
    font-weight: 500;
}

/* Responsive adjustments for earnings graph */
@media (max-width: 768px) {
    .earnings-graph-section {
        padding: 20px;
        margin-top: 20px;
    }
    
    .graph-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .graph-header .overview-tabs {
        width: 100%;
    }

    .graph-header .overview-tab {
        flex: 1;
        font-size: 12px;
        padding: 8px 16px;
    }

    .graph-header .overview-tab i {
        font-size: 14px;
    }
    
    .time-period-tabs {
        width: 100%;
        justify-content: center;
    }
    
    .graph-container {
        min-height: 250px;
        padding: 15px;
    }

    .stats-content {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .stat-value {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .earnings-graph-section {
        padding: 15px;
    }
    
    .graph-container {
        min-height: 200px;
        padding: 10px;
    }
    
    .stat-item {
        flex-direction: row;
        text-align: left;
        gap: 10px;
        min-width: 100%;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .top-cards {
        grid-template-columns: 1fr 1fr;
    }
    
    .middle-cards, .bottom-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .top-cards {
        grid-template-columns: 1fr;
    }
    
    .dashboard-content {
        padding: 20px 15px;
    }
    
    .header {
        padding: 15px 20px;
    }
    
    .notification-bell {
        width: 32px;
        height: 32px;
        margin-right: 4px;
    }
    
    .notification-bell i {
        font-size: 14px;
    }
    
    .notification-badge {
        width: 16px;
        height: 16px;
        font-size: 9px;
    }
    
    .trading-news-banner {
        padding: 0;
    }
    
    .news-container {
        margin: 0;
        gap: 0;
        position: unset;
    }
    
    .news-label {
        display: none;
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .news-label i {
        font-size: 10px;
    }

    .news-ticker {
        height: 80px;
    }
    
    .investment-earning {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .middle-cards, .bottom-cards {
        grid-template-columns: 1fr;
    }
    
    .trading-card .amount, .bonus-card .amount {
        font-size: 24px;
    }
    
    .referral-input {
        flex-direction: column;
    }
    
    .referral-input input {
        border-radius: 8px;
        margin-bottom: 10px;
    }
    
    .copy-btn {
        border-radius: 8px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 144, 226, 0.7);
}

/* Animation for smooth transitions */
.nav-item, .info-card, .trading-card, .bonus-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover, .financial-card:hover, .wallet-item:hover, .stat-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Loading animation for demo */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Profit Comparison Section */
.profit-comparison-section {
    background: rgba(45, 53, 97, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
    overflow: hidden;
}

.profit-comparison-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(155, 89, 182, 0.1));
    border-radius: 20px;
    z-index: -1;
}

.profit-comparison-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.bar-chart-container {
    background: rgba(26, 26, 46, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
    min-height: 300px;
    border: 1px solid rgba(168, 71, 204, 0.2);
}

.profit-stats {
    display: grid;
    grid-template-columns: minmax(200px, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
}

.profit-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--card-background);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 1px solid var(--card-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.profit-stats .stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--card-glass);
    border-radius: 15px;
    z-index: -1;
}

.profit-stats .stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: var(--card-background);
}

.profit-stats .stat-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color-light), var(--secondary-color-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.light-theme .profit-stats .stat-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.profit-stats .stat-icon i {
    font-size: 18px;
    color: white;
}

.profit-stats .stat-content {
    flex: 1;
}

.profit-stats .stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 4px;
    font-family: var(--font-futuristic);
}

.profit-stats .stat-label {
    font-size: 13px;
    color: var(--text-color-secondary);
    font-weight: 500;
}

/* Responsive adjustments for profit comparison */
@media (max-width: 768px) {
    .profit-comparison-section {
        padding: 20px;
        margin-top: 20px;
    }
    
    .bar-chart-container {
        min-height: 250px;
        padding: 15px;
    }
    
    .profit-stats .stat-item {
        padding: 15px;
    }
    
    .profit-stats .stat-value {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .profit-comparison-section {
        padding: 15px;
    }

    .profit-stats {
        grid-template-columns: 1fr;
        width: 100%;
    }
    
    .bar-chart-container {
        min-height: 200px;
        padding: 10px;
    }
    
    .profit-stats .stat-item {
        padding: 12px;
    }
    
    .profit-stats .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .profit-stats .stat-value {
        font-size: 16px;
    }
    
    .profit-stats .stat-label {
        font-size: 12px;
    }
}

.card-amount[data-green], .detail-row [data-green] {
    color: #38b97d !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.card-amount[data-red], .detail-row [data-red] {
    color: #d74521 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.card-amount[data-red], .card-amount[data-green] {
    font-size: 22px !important;
}

/* Loading Screen Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    max-width: 100vw;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.loading-overlay.slide-up {
    transform: translateY(-100%);
}

.loading-container {
    text-align: center;
    color: white;
    max-width: 400px;
    padding: 40px;
}

.loading-logo {
    margin-bottom: 50px;
    animation: logoGlow 2s ease-in-out infinite alternate;
}

.loading-logo i {
    font-size: 48px;
    color: var(--bkg-light);
    margin-bottom: 15px;
    display: block;
    text-shadow: 0 0 20px var(--bkg-light);
}

.loading-logo .logo-image {
    width: 100%;
    margin: 0 auto auto auto;
    display: block;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.loading-logo span {
    font-size: 32px;
    font-weight: bold;
    color: var(--bkg-light);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
}

.loading-progress {
    margin-bottom: 40px;
    position: relative;
}

.progress-circle {
    position: relative;
    display: inline-block;
    width: 120px;
    height: 120px;
}

.progress-ring {
    transform: rotate(-90deg);
    filter: drop-shadow(0 0 10px var(--bkg-light));
}

.progress-ring-circle {
    stroke-dasharray: 326.73;
    stroke-dashoffset: 326.73;
    transition: stroke-dashoffset 0.3s ease;
    stroke-linecap: round;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    color: var(--bkg-light);
    text-shadow: 0 0 10px var(--bkg-light);
}

.loading-text {
    margin-top: 30px;
}

.loading-text p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-weight: 500;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--bkg-light);
    border-radius: 50%;
    animation: loadingDots 1.4s ease-in-out infinite both;
    box-shadow: 0 0 10px var(--bkg-light);
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0s;
}

/* Animations */
@keyframes logoGlow {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }
    100% {
        transform: scale(1.05);
        filter: brightness(1.2);
    }
}

@keyframes loadingDots {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Responsive adjustments for loading screen */
@media (max-width: 768px) {
    .loading-container {
        padding: 30px 20px;
        max-width: 300px;
    }
    
    .loading-logo i {
        font-size: 36px;
    }
    
    .loading-logo .logo-image {
        width: 60px;
        height: 60px;
    }
    
    .loading-logo span {
        font-size: 24px;
    }
    
    .progress-circle {
        width: 100px;
        height: 100px;
    }
    
    .progress-text {
        font-size: 20px;
    }
    
    .loading-text p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .loading-container {
        padding: 20px 15px;
        max-width: 250px;
    }
    
    .loading-logo i {
        font-size: 28px;
    }
    
    .loading-logo .logo-image {
        width: 50px;
        height: 50px;
    }
    
    .loading-logo span {
        font-size: 20px;
    }
    
    .progress-circle {
        width: 80px;
        height: 80px;
    }
    
    .progress-text {
        font-size: 18px;
    }
    
    .loading-text p {
        font-size: 14px;
    }
}

.card-amount.red {
    color: #d74521;
}

.light-theme .card-amount.red {
    color: #d74521;
}

button:has(.fas.fa-sun) {
    /* Sun colors  */
    background: linear-gradient(135deg, #333, #555);
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.25), inset -2px -2px 4px rgba(0, 0, 0, 0.25);
    color: white;
}

button:has(.fas.fa-moon) {
    background: linear-gradient(135deg, #333, #555);
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.25), inset -2px -2px 4px rgba(0, 0, 0, 0.25);
    color: white;
}

.fas.fa-moon {
    color: white;
}

.fas.fa-sun {
    color: white;
}

/* Investment Progress Chart Styles */
.investment-progress-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.investment-progress-container .pie-chart-container {
    position: relative;
    margin: 0 auto;
}

.investment-progress-container .chart-center-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.investment-progress-container .progress-percentage {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    font-family: var(--font-futuristic);
    line-height: 1;
}

.investment-progress-container .progress-label {
    font-size: 12px;
    color: var(--text-color);
    font-weight: 500;
    margin-top: 4px;
}

.investment-details {
    display: flex;
    flex-direction: column;
}

.investment-details .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid var(--card-border);
}

.investment-details .detail-row:last-child {
    border-bottom: none;
}

.investment-details .detail-row span:first-child {
    color: var(--text-color-secondary);
    font-size: 14px;
    font-weight: 500;
}

.investment-details .earnings-amount {
    color: #4CAF50 !important;
    font-weight: 600;
    font-size: 16px;
}

.investment-details .cap-amount {
    color: var(--text-color);
    font-weight: 600;
    font-size: 16px;
}

.investment-details .remaining-amount {
    color: var(--warning-color);
    font-weight: 600;
    font-size: 16px;
}

/* Responsive adjustments for investment progress chart */
@media (max-width: 768px) {
    .investment-progress-container {
        padding: 15px;
        gap: 15px;
    }
    
    .investment-progress-container .progress-percentage {
        font-size: 20px;
    }
    
    .investment-progress-container .progress-label {
        font-size: 11px;
    }
    
    .investment-details .detail-row span:first-child {
        font-size: 13px;
    }
    
    .investment-details .earnings-amount,
    .investment-details .cap-amount,
    .investment-details .remaining-amount {
        font-size: 14px;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #356fc7, #5c138d);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(53, 111, 199, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #2a5bb3, #4a0f73);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(53, 111, 199, 0.4);
}

.back-to-top:active {
    transform: translateY(-1px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dark theme adjustments for back to top button */
[data-theme="dark"] .back-to-top {
    background: linear-gradient(135deg, #5c138d, #356fc7);
    box-shadow: 0 4px 15px rgba(92, 19, 141, 0.3);
}

[data-theme="dark"] .back-to-top:hover {
    background: linear-gradient(135deg, #4a0f73, #2a5bb3);
    box-shadow: 0 6px 20px rgba(92, 19, 141, 0.4);
}

/* Mobile responsiveness for back to top button */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

canvas#walletChart {
    max-height: none;
    height: 100%;
}

/* ============================================
   LOGIN PAGE STYLES
   ============================================ */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: var(--card-background);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--card-shadow);
    backdrop-filter: var(--card-backdrop);
    position: relative;
    z-index: 2;
}

.login-header {
    text-align: center;
    margin-bottom: 25px;
}

.login-logo {
    display: inline-block;
    margin-bottom: 15px;
}

.login-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    -webkit-filter: brightness(0) invert(1);
}

.login-subtitle {
    font-family: var(--font-text);
    font-size: 14px;
    color: var(--text-color-secondary);
    margin: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group-full {
    width: 100%;
}

.form-row .form-group-full {
    grid-column: 1 / -1;
}

.form-label {
    font-family: var(--font-text);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-color);
    font-family: var(--font-text);
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px var(--primary-color-with-opacity);
}

.form-input::placeholder {
    color: var(--text-color-secondary);
    opacity: 0.6;
}

.form-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-color);
    font-family: var(--font-text);
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-select:focus {
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px var(--primary-color-with-opacity);
}

.form-select option {
    background: var(--card-background);
    color: var(--text-color);
    padding: 10px;
}

.register-card {
    max-width: 600px;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-input {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-color-secondary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.password-toggle:hover {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.1);
}

.password-toggle:active {
    transform: scale(0.95);
}

.captcha-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.captcha-input {
    width: 100%;
}

.captcha-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.captcha-image-wrapper {
    flex: 1;
    min-width: 120px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.captcha-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.captcha-refresh,
.captcha-speak {
    background: var(--card-background);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-color);
    cursor: pointer;
    font-family: var(--font-text);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.captcha-refresh:hover,
.captcha-speak:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--primary-color-with-opacity);
}

.captcha-refresh:active,
.captcha-speak:active {
    transform: translateY(0);
}

.captcha-speak.speaking {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: var(--font-text);
    font-size: 14px;
    color: var(--text-color);
    user-select: none;
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-input:checked + .checkbox-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-input:checked + .checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 12px;
}

.checkbox-text {
    font-size: 14px;
}

.forgot-password-link {
    color: var(--text-color-secondary);
    text-decoration: none;
    font-family: var(--font-text);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-password-link:hover {
    color: var(--text-color);
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color),var(--background-color), var(--primary-color));
    border: none;
    border-radius: 10px;
    padding: 14px 20px;
    color: var(--white);
    font-family: var(--font-text);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: var(--card-shadow);
}

.login-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--background-color), var(--primary-color));
    box-shadow: var(--card-shadow);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn i {
    transition: transform 0.3s ease;
    scale: 1.0;
}

.login-btn:hover i {
    transform: translateX(2px);
    transform-origin: left center;
    scale: 1.05;
}

.login-footer {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--card-border);
}

.login-footer p {
    font-family: var(--font-text);
    font-size: 14px;
    color: var(--text-color-secondary);
    margin: 0;
}

.register-link {
    color: var(--text-color-secondary);
    text-decoration: none;
    font-family: var(--font-text);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 4px;
}

.register-link:hover {
    color: var(--text-color);
    text-decoration: underline;
}

/* Light theme adjustments for login page */
body.light-theme .login-card {
    background: var(--card-background);
    border-color: var(--card-border);
}

body.light-theme .login-logo img {
    filter: brightness(0) invert(1);
    -webkit-filter: brightness(0) invert(1);
}

body.light-theme .form-input {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(40, 86, 166, 0.2);
    color: var(--text-light);
}

body.light-theme .form-input:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-color);
}

body.light-theme .form-input::placeholder {
    color: var(--text-light-secondary);
}

body.light-theme .form-select {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(40, 86, 166, 0.2);
    color: var(--text-light);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230f3963' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

body.light-theme .form-select:focus {
    background-color: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-color);
}

body.light-theme .form-select option {
    background: var(--card-background);
    color: var(--text-light);
}

body.light-theme .captcha-image-wrapper {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(40, 86, 166, 0.2);
}

body.light-theme .captcha-refresh,
body.light-theme .captcha-speak {
    background: var(--card-background);
    border-color: var(--card-border);
    color: var(--text-light);
}

body.light-theme .checkbox-custom {
    border-color: rgba(40, 86, 166, 0.3);
    background: rgba(255, 255, 255, 0.6);
}

body.light-theme .login-footer {
    border-top-color: var(--card-border);
}

body.light-theme .forgot-password-link,
body.light-theme .register-link {
    color: var(--text-light-secondary);
}

body.light-theme .forgot-password-link:hover,
body.light-theme .register-link:hover {
    color: var(--primary-color-light);
}

body.light-theme .login-btn {
    background: linear-gradient(135deg, var(--primary-color-light), var(--secondary-color-light));
}

/* Responsive adjustments for login page */
@media (max-width: 768px) {
    .login-card {
        padding: 25px 20px;
        max-width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .captcha-controls {
        flex-direction: column;
    }

    .captcha-image-wrapper {
        width: 100%;
    }

    .captcha-refresh,
    .captcha-speak {
        width: 100%;
        justify-content: center;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 10px;
    }

    .login-card {
        padding: 20px 15px;
    }

    .login-subtitle {
        font-size: 12px;
    }
}