:root {
    --bg-color: #2826a1;
    --box-gradient: linear-gradient(135deg, #070616, #2d2bb2);
    --border-color: #571ab6;
    --sidebar-bg: linear-gradient(180deg, #070616, #1a1760);
    --text-white: #ffffff;
    --primary-gradient: linear-gradient(135deg, #2d2bb2, #571ab6);
    --hover-gradient: linear-gradient(135deg, #571ab6, #2d2bb2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-white);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

#sidebar {
    width: 280px;
    height: 100vh;
    background: var(--sidebar-bg);
    position: fixed;
    left: -280px;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
    border-right: 2px solid var(--border-color);
    overflow-y: auto;
    padding-bottom: 90px;
}

#sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-header h3 {
    color: var(--text-white);
    margin: 0;
    font-size: 22px;
}

.sidebar-header p {
    color: #aaa;
    font-size: 14px;
    margin-top: 5px;
}

.profile-section {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    margin-bottom: 5px;
}

.profile-name {
    font-size: 18px;
    font-weight: 600;
}

.profile-email {
    color: #aaa;
    font-size: 14px;
}

.sidebar-links {
    padding: 20px 0;
}

.sidebar-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links li {
    padding: 0;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.sidebar-links a:hover {
    background-color: rgba(87, 26, 182, 0.3);
    color: var(--text-white);
    border-left: 4px solid var(--border-color);
}

.sidebar-links a.active {
    background-color: rgba(87, 26, 182, 0.5);
    color: var(--text-white);
    border-left: 4px solid var(--border-color);
}

.sidebar-links i {
    width: 25px;
    margin-right: 15px;
    font-size: 18px;
}

#sidebarToggle {
    position: fixed;
    left: 20px;
    top: 20px;
    z-index: 1300;
    background: var(--box-gradient);
    color: var(--text-white);
    border: 2px solid var(--border-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#sidebarToggle:hover {
    transform: scale(1.1);
}

/* Main Content */
#mainContent {
    padding: 20px;
    transition: all 0.4s ease;
    min-height: 100vh;
}

#mainContent.shifted {
    margin-left: 280px;
}

/* Dashboard Container */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Section */
.header-section {
    background: var(--box-gradient);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-color);
}

.wallet-balance {
    background: var(--box-gradient);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-color);
    transition: transform 0.3s ease;
}
.wallet-balance:hover {
    transform: translateY(-5px);
}
.wallet-stats {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}
.stats-icon {
    font-size: 12px;
}
.stat-card {
    background: var(--box-gradient);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-color);
    height: 100%;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .card-title {
    font-size: 10px;
    color: #ddd;
    margin-bottom: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .card-value {
    font-size: 20px;
    font-weight: bold;
    color: white;
}

.wallet-balance .card-title {
    font-size: 18px;
    color: #ddd;
}

.wallet-balance .card-value {
    color: white;
    font-size: 42px;
    font-weight: 800;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.current-rank {
    background: var(--box-gradient);
    border-radius: 12px;
    padding: 15px 25px;
    display: inline-block;
    font-weight: bold;
    color: white;
    border: 2px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.current-rank i {
    color: #ffd700;
    margin-right: 10px;
}

.btn-custom {
    background: var(--primary-gradient);
    color: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: none;
}

.btn-custom:hover {
    background: var(--hover-gradient);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    color: white;
}

.btn-custom-sm {
    padding: 8px 20px;
    font-size: 14px;
}

.footer {
    text-align: center;
    margin-top: 40px;
    color: #aaa;
    font-size: 14px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-box {
    background: var(--box-gradient);
    border-radius: 15px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 2px solid var(--border-color);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    color: white;
    margin-bottom: 10px;
}

.auth-header p {
    color: #ddd;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #000000 !important;
    font-size: 16px;
}

.form-control:focus {
    outline: none;
    border-color: var(--border-color);
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #ddd;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links a {
    color: #ffd700;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Page specific styles */
.page-title {
    font-size: 28px;
    margin-bottom: 25px;
    color: white;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.page-subtitle {
    color: #ddd;
    margin-bottom: 30px;
    font-size: 16px;
}

.table-container {
    background: var(--box-gradient);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-color);
    overflow-x: auto;
}

.table {
    width: 100%;
    color: white;
    border-collapse: collapse;
}

.table th {
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
    color: #ffd700;
}

.table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 5px;
    }

    .col-mobile-6 {
        width: 50%;
        float: left;
        padding: 0 7.5px;
    }

    .row-mobile::after {
        content: "";
        display: table;
        clear: both;
    }

    .wallet-balance .card-value {
        font-size: 32px;
    }

    #sidebar {
        width: 250px;
        left: -250px;
    }

    #mainContent.shifted {
        margin-left: 0;
    }

    #sidebarToggle {
        left: 15px;
        top: 15px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .auth-box {
        padding: 30px 20px;
    }
}

@media (min-width: 769px) {
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        margin-bottom: 20px;
    }
}

/*=======================================================
-------------------- DEPOSIT CSS ------------------------
========================================================*/
.payment-method {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
}
.wallet-address-box {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    font-size: 11px;
    word-break: break-all;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    color: black;
}
.custom-file-box {
    border: 2px dashed #571ab6;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    background: #f9f7ff;
    cursor: pointer;
}
.list-group-item {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

/*======================================================
-------------------- WALLET CSS ------------------------
=======================================================*/
.wallet-table-container {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}
.transaction-filters {
    min-width: 160px;
}

.transaction-filters select {
    width: 100%;
    padding: 8px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #4a5568;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.transaction-filters select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.transaction-card {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #edf2f7;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.transaction-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.transaction-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #cbd5e0;
}

.credit-card::before {
    background: #10b981;
}

.debit-card::before {
    background: #ef4444;
}

.transaction-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.credit-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.debit-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.transaction-details {
    flex: 1;
    min-width: 0; /* Prevents flex item from overflowing */
}

.transaction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 10px;
}

.transaction-type {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
    white-space: normal;
    word-break: break-word;
    padding-right: 10px;
}

.level-badge,
.rank-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 5px;
    white-space: nowrap;
}

.level-badge {
    background: #dbeafe;
    color: #2563eb;
}

.rank-badge {
    background: #fef3c7;
    color: #d97706;
}

.transaction-amount {
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}

.credit-amount {
    color: #10b981;
}

.debit-amount {
    color: #ef4444;
}

.amount-sign {
    font-size: 0.9rem;
}

.amount-value {
    font-family: "Courier New", monospace;
}

.amount-currency {
    font-size: 0.8rem;
    opacity: 0.7;
}

.transaction-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    color: #64748b;
}

.transaction-date,
.transaction-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.transaction-date i,
.transaction-time i {
    font-size: 0.7rem;
    opacity: 0.7;
}

.transaction-status {
    margin-left: auto;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
}

.status-credit {
    background: #10b981;
}

.status-debit {
    background: #ef4444;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    background: #f8fafc;
    border-radius: 16px;
}

.empty-state i {
    color: #cbd5e1;
}

.empty-state h5 {
    color: #64748b;
    margin: 15px 0 5px;
}

.empty-state p {
    color: #94a3b8;
}
@media (max-width: 480px) {
    .dashboard-container {
        padding: 10px;
    }

    .wallet-balance {
        padding: 20px;
    }

    .wallet-balance .card-value {
        font-size: 2rem;
    }

    .wallet-table-container {
        padding: 15px;
    }

    .transaction-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .transaction-icon {
        margin-bottom: 10px;
        margin-right: 0;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .transaction-header {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .transaction-type {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

    .transaction-amount {
        align-self: flex-start;
    }

    .transaction-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }

    .transaction-status {
        margin-left: 0;
        width: 100%;
    }

    .status-badge {
        width: 100%;
        justify-content: center;
    }

    .level-badge,
    .rank-badge {
        display: inline-block;
        margin-left: 0;
        margin-top: 5px;
    }

    .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .transaction-filters {
        width: 100%;
    }
}
@media (min-width: 481px) and (max-width: 768px) {
    .transaction-header {
        flex-wrap: wrap;
    }

    .transaction-type {
        font-size: 0.95rem;
    }

    .transaction-footer {
        flex-wrap: wrap;
    }
}
@media (max-width: 768px) and (orientation: landscape) {
    .transaction-card {
        flex-direction: row;
    }

    .transaction-icon {
        margin-bottom: 0;
        margin-right: 15px;
    }

    .transaction-header {
        flex-direction: row;
    }
}

/*======================================================
------------------- SOCIAL CSS -------------------------
=======================================================*/
.floating-telegram {
    position: fixed;
    right: 0;
    bottom: 5%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.tg-btn {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 6px 6px;
    width: 80px;
    background: linear-gradient(145deg, #0099ff, #0066cc);
    color: #fff;
    text-decoration: none;
    border-radius: 50px 0 0 50px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: 0.3s ease;
}

.tg-btn i {
    font-size: 14px;
    background: #fff;
    color: #0099ff;
    padding: 10px;
    border-radius: 50%;
}

.tg-btn span {
    font-size: 7px;
    line-height: 1.2;
}

.tg-btn strong {
    font-size: 7px;
}

.tg-btn:hover {
    transform: translateX(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
}
.tg-btn.support {
    background: linear-gradient(145deg, #005bea, #003f99);
}
