/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Exo+2:wght@300;400;500;600;700&display=swap');

/* CSS Variables for Theme */
:root {
    --primary: #D4AF37;
    --primary-dark: #B8860B;
    --primary-light: #FFDF00;
    --secondary: #1a1a1a;
    --secondary-light: #2d2d2d;
    --accent: #ffffff;
    --text: #f5f5f5;
    --text-secondary: #b0b0b0;
    --text-dark: #333333;
    --bg: #0a0a0a;
    --bg-card: rgba(30, 30, 30, 0.7);
    --border: rgba(212, 175, 55, 0.3);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --glass: rgba(255, 255, 255, 0.05);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
}

[data-theme="light"] {
    --primary: #D4AF37;
    --primary-dark: #B8860B;
    --primary-light: #FFDF00;
    --secondary: #f8f9fa;
    --secondary-light: #ffffff;
    --accent: #1a1a1a;
    --text: #333333;
    --text-secondary: #666666;
    --text-dark: #111111;
    --bg: #f0f2f5;
    --bg-card: rgba(255, 255, 255, 0.8);
    --border: rgba(212, 175, 55, 0.3);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --glass: rgba(255, 255, 255, 0.7);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* For WebKit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #000000;
    border-radius: 10px;
    box-shadow: inset 0 0 6px rgba(255, 215, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, 
        #D4AF37 0%, 
        #FFD700 25%, 
        #D4AF37 50%, 
        #B8860B 75%, 
        #8B7355 100%
    );
    border-radius: 10px;
    border: 2px solid #000000;
    box-shadow: 
        inset 0 0 10px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(212, 175, 55, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, 
        #FFD700 0%, 
        #FFEC8B 25%, 
        #FFD700 50%, 
        #DAA520 75%, 
        #CD853F 100%
    );
    box-shadow: 
        inset 0 0 10px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(255, 215, 0, 0.5);
}

::-webkit-scrollbar-corner {
    background: #000000;
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #D4AF37 #000000;
}

/* Optional: Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* For specific elements */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #D4AF37 #000000;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 10px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #000000;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #D4AF37, #B8860B);
    border-radius: 5px;
    border: 2px solid #000000;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--text);
}

/* Theme Toggle */
.theme-toggle {
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-switch {
    display: none;
}

.theme-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 60px;
    height: 30px;
    background: var(--secondary-light);
    border-radius: 50px;
    padding: 5px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.theme-label i {
    font-size: 14px;
    z-index: 1;
}

.theme-label .fa-moon {
    color: var(--primary);
}

.theme-label .fa-sun {
    color: var(--primary-light);
}

.theme-ball {
    position: absolute;
    width: 22px;
    height: 22px;
    background: var(--primary);
    border-radius: 50%;
    top: 4px;
    left: 4px;
    transition: transform 0.3s ease;
}

.theme-switch:checked + .theme-label .theme-ball {
    transform: translateX(30px);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary);
}

.logo img {
    height: 40px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-icons {
    display: flex;
    gap: 0.5rem;
}

.icon-btn {
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.icon-btn:hover {
    background: var(--primary);
    color: var(--secondary);
    transform: translateY(-2px);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-dropdown {
    position: relative;
}

.notification-dropdown-content {
    position: absolute;
    top: 50px;
    right: 0;
    width: 320px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.notification-dropdown:hover .notification-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-icon {
    width: 40px;
    height: 40px;
    background: var(--glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.notification-text p {
    margin: 0;
    font-weight: 500;
}

.notification-text span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-btn:hover {
    background: var(--primary);
    color: var(--secondary);
}

.user-btn img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-dropdown-content {
    position: absolute;
    top: 50px;
    right: 0;
    width: 250px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.user-dropdown:hover .user-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.user-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-weight: 600;
    margin: 0;
}

.user-id {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--glass);
    color: var(--primary);
}

.dropdown-item.logout {
    color: var(--danger);
}

.dropdown-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    height: 100vh;
    width: 280px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--border);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 90;
    overflow-y: auto;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-nav {
    padding: 2rem 0;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover, .nav-item.active .nav-link {
    background: var(--glass);
    color: var(--primary);
}

.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.submenu-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.has-submenu.active .submenu-arrow {
    transform: rotate(180deg);
}

.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.has-submenu.active .submenu {
    max-height: 500px;
}

.submenu li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem 0.75rem 3.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.submenu li a:hover {
    color: var(--primary);
    background: var(--glass);
}

/* Main Content */
.main-content {
    margin-left: 0;
    padding: 2rem;
    transition: margin-left 0.3s ease;
    min-height: calc(100vh - 80px);
}

.sidebar.active ~ .main-content {
    margin-left: 280px;
}

.container-fluid {
    padding: 0;
}

/* ROI Timer Section */
.section-roi {
    margin-bottom: 2rem;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 15px;
    justify-content: space-between;
    box-shadow: var(--shadow);
    background-image: linear-gradient(135deg, var(--glass) 0%, transparent 100%);
}
.card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.roi-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
    background-image: linear-gradient(135deg, var(--glass) 0%, transparent 100%);
}

.roi-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.timer {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.timer-item {
    text-align: center;
}

.timer-value {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--glass);
    padding: 0.5rem;
    border-radius: 10px;
    min-width: 80px;
    border: 1px solid var(--border);
}

.timer-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.btn-renew {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--secondary);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-renew:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.roi-image img {
    max-height: 150px;
}

/* User Info Section */
.section-user-info {
    margin-bottom: 2rem;
}

.user-card, .referral-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    height: 100%;
    background-image: linear-gradient(135deg, var(--glass) 0%, transparent 100%);
}

.user-card {
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--bg-card) 100%);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.user-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--primary);
    opacity: 0.1;
    border-radius: 0 0 0 100px;
}

.user-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.user-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.user-details h3 {
    margin: 0;
    font-size: 1.5rem;
}

.user-details p {
    margin: 0;
    color: var(--text-secondary);
}

.user-status .badge-premium {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.user-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.user-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--glass);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.user-info-item i {
    font-size: 1.2rem;
    color: var(--primary);
    width: 24px;
}

.user-info-item span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.user-info-item p {
    margin: 0;
    font-weight: 600;
}

.referral-card h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.referral-link {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.referral-link input {
    flex: 1;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--text);
    font-family: monospace;
}

.referral-link input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-copy {
    background: var(--primary);
    color: var(--secondary);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.share-buttons p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.social-icons {
    display: flex;
    gap: 0.5rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 1rem;
}

.social-btn.facebook {
    background: #3b5998;
}

.social-btn.twitter {
    background: #1da1f2;
}

.social-btn.telegram {
    background: #0088cc;
}

.social-btn.whatsapp {
    background: #25d366;
}

.social-btn.linkedin {
    background: #0077b5;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Stats Cards */
.section-stats, .section-income, .section-balance {
    margin-bottom: 2rem;
}

.stat-card, .income-card, .balance-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    height: 100%;
    transition: all 0.3s ease;
    background-image: linear-gradient(135deg, var(--glass) 0%, transparent 100%);
}

.stat-card:hover, .income-card:hover, .balance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--glass);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    border: 1px solid var(--border);
}

.stat-content h3 {
    font-size: 2rem;
    margin: 0;
    color: var(--primary);
}

.stat-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.income-card .income-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.income-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.income-header i {
    font-size: 1.5rem;
    color: var(--primary);
}

.income-amount {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.income-amount span {
    font-size: 1.5rem;
    color: var(--primary);
}

.income-amount h2 {
    font-size: 2.5rem;
    margin: 0;
    color: var(--text);
}

.income-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.trend.up {
    color: var(--success);
}

.trend.down {
    color: var(--danger);
}

.income-footer span:last-child {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.balance-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.balance-icon {
    width: 60px;
    height: 60px;
    background: var(--glass);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    border: 1px solid var(--border);
}

.balance-content h3 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--text);
}

.balance-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Tables Section - UPDATED */
.section-tables {
    margin-bottom: 2rem;
}

.table-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.table-header h3 {
    margin: 0;
    color: var(--primary);
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-filter, .btn-export {
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-filter:hover, .btn-export:hover {
    background: var(--primary);
    color: var(--secondary);
}

.table-responsive {
    border-radius: 10px;
    overflow: hidden;
}

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.data-table thead {
    background: var(--glass);
    backdrop-filter: blur(10px);
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 2px solid var(--border);
    font-family: 'Orbitron', sans-serif;
}

.data-table tbody tr {
    background: var(--bg-card);
    transition: all 0.3s ease;
}

.data-table tbody tr:hover {
    background: var(--glass);
    transform: translateX(5px);
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* Status Badges in Tables */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.status-completed {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
    border: 1px solid var(--info);
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid var(--danger);
}

/* Table Actions */
.table-actions-cell {
    display: flex;
    gap: 0.5rem;
}

.table-btn {
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.table-btn:hover {
    transform: translateY(-2px);
}

.table-btn.view:hover {
    background: var(--info);
    color: white;
}

.table-btn.edit:hover {
    background: var(--warning);
    color: white;
}

.table-btn.delete:hover {
    background: var(--danger);
    color: white;
}

/* Cards Section - Additional Card Styles */
.section-cards {
    margin-bottom: 2rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--glass);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.5rem;
    border: 1px solid var(--border);
}

.card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.card-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.card-badge {
    background: var(--glass);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Buttons Section - Enhanced Button Styles */
.section-buttons {
    margin-bottom: 2rem;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.button-group-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Primary Buttons */
.btn-primary-solid {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--secondary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary-solid:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-primary-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary-outline:hover {
    background: var(--primary);
    color: var(--secondary);
    transform: translateY(-3px);
}

.btn-primary-ghost {
    background: transparent;
    color: var(--primary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary-ghost:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-3px);
}

/* Secondary Buttons */
.btn-secondary-solid {
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 100%);
    color: var(--text);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary-solid:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary-outline:hover {
    background: var(--glass);
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* Success, Warning, Danger, Info Buttons */
.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, var(--info) 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Button Sizes */
.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 12px;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 8px;
}

.btn-block {
    width: 100%;
    display: block;
}

/* Button with Icons */
.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-icon i {
    font-size: 1.1em;
}

/* Disabled Buttons */
.btn:disabled,
.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Forms Section */
.section-forms {
    margin-bottom: 2rem;
}

.form-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.form-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
    font-family: 'Exo 2', sans-serif;
}

.form-label.required::after {
    content: ' *';
    color: var(--danger);
}

/* Form Controls */
.form-control {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--text);
    transition: all 0.3s ease;
    width: 100%;
    font-family: 'Exo 2', sans-serif;
    font-size: 1rem;
}

.form-control:focus {
    background: var(--glass);
    border-color: var(--primary);
    color: var(--text);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Form Control Sizes */
.form-control-lg {
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    border-radius: 12px;
}

.form-control-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    border-radius: 8px;
}

/* Textarea */
textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Select Dropdown */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23D4AF37' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 2.5rem;
}

/* Checkboxes and Radio Buttons */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.form-check-input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-check-label {
    color: var(--text);
    cursor: pointer;
    user-select: none;
}

.form-check-input:checked + .form-check-label {
    color: var(--primary);
    font-weight: 600;
}

/* Switch Toggle */
.form-switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-switch-input {
    width: 50px;
    height: 26px;
    appearance: none;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-switch-input:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.form-switch-input::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--text);
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
}

.form-switch-input:checked::after {
    transform: translateX(24px);
    background: var(--secondary);
}

/* Form Validation */
.form-control.is-valid {
    border-color: var(--success);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2310b981' viewBox='0 0 16 16'%3E%3Cpath d='M12.736 3.97a.733.733 0 0 1 1.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 0 1-1.065.02L3.217 8.384a.757.757 0 0 1 0-1.06.733.733 0 0 1 1.047 0l3.052 3.093 5.4-6.425a.247.247 0 0 1 .02-.022Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
}

.form-control.is-invalid {
    border-color: var(--danger);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ef4444' viewBox='0 0 16 16'%3E%3Cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z'/%3E%3Cpath d='M7.002 11a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 4.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 4.995z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
}

.valid-feedback {
    display: none;
    color: var(--success);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.invalid-feedback {
    display: none;
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-control.is-valid ~ .valid-feedback,
.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.form-actions .btn {
    flex: 1;
}

/* Inline Form */
.form-inline {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.form-inline .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Form Grid */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Form Help Text */
.form-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Mobile Footer */
.mobile-footer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    z-index: 100;
    padding: 0.5rem;
}

.footer-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.footer-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.footer-nav-item.active, .footer-nav-item:hover {
    color: var(--primary);
    background: var(--glass);
}

.footer-nav-item i {
    font-size: 1.2rem;
}

/* Modals */
.modal-content {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 15px;
    color: var(--text);
}

.modal-header {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
}

.modal-title {
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
}

.btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-secondary {
    background: var(--glass);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--secondary-light);
    color: var(--text);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--secondary);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--text);
    transition: all 0.3s ease;
}

.form-control:focus {
    background: var(--glass);
    border-color: var(--primary);
    color: var(--text);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.form-control::placeholder {
    color: var(--text-secondary);
}

.form-avatar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.avatar-preview img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.btn-change-avatar {
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-change-avatar:hover {
    background: var(--primary);
    color: var(--secondary);
}

.deposit-info {
    text-align: center;
    margin-bottom: 1.5rem;
}

.qr-code {
    margin: -1.5rem 0;
}

.qr-code img {
    max-width: 200px;
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 1rem;
    background: white;
}

.usdt-address {
    margin-top: 1.5rem;
}

.address-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
}

.address-container code {
    flex: 1;
    font-family: monospace;
    color: var(--text);
    word-break: break-all;
}

.btn-copy-address {
    background: var(--primary);
    color: var(--secondary);
    border: none;
    border-radius: 5px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy-address:hover {
    background: var(--primary-light);
}

.balance-info {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.balance-info strong {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .sidebar.active ~ .main-content {
        margin-left: 0;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 992px) {
    .header {
        padding: 1rem;
    }
    
    .logo span {
        display: none;
    }
    
    .user-btn span {
        display: none;
    }
    
    .roi-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .timer {
        justify-content: center;
    }
    
    .user-card-body {
        grid-template-columns: 1fr;
    }
    
    .form-inline {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-inline .form-group {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .header-right .header-icons {
        display: none;
    }
    
    .mobile-footer {
        display: block;
    }
    
    .main-content {
        padding-bottom: 80px;
    }
    
    .timer {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .timer-item {
        flex: 1;
        min-width: 70px;
    }
    
    .timer-value {
        font-size: 2rem;
        min-width: 60px;
    }
    
    .social-icons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .table-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .table-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .data-table {
        display: block;
        overflow-x: auto;
    }
    
    .button-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: 1rem 0.5rem 80px 0.5rem;
    }
    
    .section-roi, .section-user-info, .section-stats, 
    .section-income, .section-balance, .section-tables,
    .section-cards, .section-buttons, .section-forms {
        margin-bottom: 1rem;
    }
    
    .roi-card, .user-card, .referral-card, 
    .stat-card, .income-card, .balance-card, .table-card,
    .feature-card, .form-card {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .timer-value {
        font-size: 1.5rem;
        min-width: 50px;
    }
    
    .income-amount h2 {
        font-size: 2rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        padding: 1rem;
    }
}

/* Animation Classes */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* GridJS Customization */
.gridjs-table {
    width: 100%;
    color: var(--text) !important;
}

.gridjs-wrapper {
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    background: var(--bg-card) !important;
}

.gridjs-th {
    background: var(--glass) !important;
    border-bottom: 1px solid var(--border) !important;
    color: var(--text) !important;
    font-weight: 600;
}

.gridjs-td {
    border-bottom: 1px solid var(--border) !important;
    color: var(--text) !important;
}

.gridjs-search {
    margin-bottom: 1rem;
}

.gridjs-search input {
    background: var(--glass) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    color: var(--text) !important;
    padding: 0.75rem 1rem !important;
}

.gridjs-search input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25) !important;
}

/* SweetAlert2 Customization */
.swal2-popup {
    background: var(--bg-card) !important;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 15px;
    color: var(--text) !important;
}

.swal2-title {
    color: var(--primary) !important;
    font-family: 'Orbitron', sans-serif !important;
}

.swal2-confirm {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
    color: var(--secondary) !important;
    border: none !important;
    border-radius: 10px !important;
}

.swal2-cancel {
    background: var(--glass) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
}