* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

/* ================= LIGHT MODE OVERRIDES ================= */
html:not(.dark) .sidebar-panel { background: #ffffff !important; border-color: #e5e7eb !important; }
html:not(.dark) .sidebar-panel h3 { color: #111827 !important; }
html:not(.dark) #tx-list-sidebar > div { color: #374151 !important; border-color: #f3f4f6 !important; }
html:not(.dark) #tx-list-sidebar > div > div > div:last-child { color: #9ca3af !important; }
html:not(.dark) #tx-count { color: #9ca3af !important; }
html:not(.dark) .wallet-card { background: #f0f7ff !important; border-color: #bfdbfe !important; }
html:not(.dark) .wallet-card h1 { color: #1e3a5f !important; }
html:not(.dark) .wallet-card p { color: #4b5563 !important; }
html:not(.dark) .wallet-card .coins h2 { color: #b8860b !important; }
html:not(.dark) .wallet-card .buttons button:last-child { color: #1e3a5f !important; border-color: #93c5fd !important; }
html:not(.dark) .dark-btn { color: #1e3a5f !important; border-color: #93c5fd !important; }
html:not(.dark) .card { background: #ffffff !important; border-color: #e5e7eb !important; }
html:not(.dark) .card h4 { color: #111827 !important; }
html:not(.dark) .card p { color: #6b7280 !important; }
html:not(.dark) .level-card { background: #ffffff !important; }
html:not(.dark) .level-card h2 { color: #111827 !important; }
html:not(.dark) .level-card p { color: #6b7280 !important; }
html:not(.dark) .level-card small { color: #9ca3af !important; }
html:not(.dark) .level-card h4 { color: #374151 !important; }
html:not(.dark) .fan-card { background: #ffffff !important; }
html:not(.dark) .fan-card h4 { color: #111827 !important; }
html:not(.dark) .fan-card p { color: #6b7280 !important; }
html:not(.dark) .transactions-panel { background: #ffffff !important; }
html:not(.dark) .transactions-panel h3 { color: #111827 !important; }
html:not(.dark) .transactions-panel > div > div { color: #374151 !important; border-color: #f3f4f6 !important; }
html:not(.dark) .transactions-panel span { color: #9ca3af !important; }
html:not(.dark) .view-btn { color: #2A547E !important; border-color: #2A547E !important; }
html:not(.dark) .view-btn:hover { background: #f0fdf4 !important; }
html:not(.dark) .earn-grid h3 { color: #111827 !important; }
html:not(.dark) .earn-heading { color: #111827 !important; }
html:not(.dark) #theme-toggle span.material-symbols-outlined { color: #6b7280 !important; }
html:not(.dark) .notification-trigger span.material-symbols-outlined { color: #6b7280 !important; }
html:not(.dark) #profile-trigger { border-color: #e5e7eb !important; }
html:not(.dark) #profile-trigger p { color: #111827 !important; }
html:not(.dark) #user-level-display { color: #2A547E !important; }
html:not(.dark) .wallet-image img { filter: brightness(0.95); }
html:not(.dark) body { background-color: #f3f4f6 !important; color: #111827 !important; }
html:not(.dark) header, html:not(.dark) nav[class*="xl:hidden"] { background-color: #ffffff !important; border-color: #e5e7eb !important; }
html:not(.dark) header a { color: #6b7280 !important; }
html:not(.dark) header a.text-brand-green { color: #2A547E !important; }
html:not(.dark) .mobile-subnav { background-color: #ffffff !important; border-color: #e5e7eb !important; }
html:not(.dark) .mobile-subnav a { color: #6b7280 !important; }
html:not(.dark) .mobile-subnav a.text-brand-green { color: #2A547E !important; }

.dashboard {
    max-width: 1400px;
    margin: auto;
}

/* ================= LAYOUT ================= */

.main-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-panel {
    background: #051328;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    padding: 24px;
    position: sticky;
    top: 90px;
}

.sidebar-panel h3 {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#tx-count {
    font-size: 11px;
    color: #9ba7bd;
}

#tx-list-sidebar {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(46,240,107,0.3) transparent;
}

#tx-list-sidebar::-webkit-scrollbar {
    width: 4px;
}
#tx-list-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
#tx-list-sidebar::-webkit-scrollbar-thumb {
    background: rgba(46,240,107,0.3);
    border-radius: 10px;
}

@media(max-width:1000px) {
    .main-container {
        grid-template-columns: 1fr;
    }
    .sidebar-panel {
        position: static;
    }
}

/* ================= WALLET ================= */

.wallet-card {
    background: #071d4a;
    border: 1px solid #0d5ca6;
    border-radius: 25px;
    padding: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.wallet-card .buttons {
    display: flex;
    gap: 15px;
}

.wallet-card .coins {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 25px 0;
}

.wallet-card > div:first-child {
    flex: 1;
}

.wallet-card h1 {
    font-size: 54px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 15px;
}

.wallet-card h1 span {
    color: #2EF06B;
}

.wallet-card p {
    font-size: 18px;
    color: #d0d9e8;
}

.wallet-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wallet-image img {
    width: 430px;
    max-width: 100%;
    height: auto;
}

.coins {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 25px 0;
}

.coin-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #2EF06B;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #071d4a;
    font-weight: 700;
    font-size: 22px;
}

.coins h2 {
    font-size: 72px;
    color: #FFC107;
    font-weight: 700;
}

.buttons {
    display: flex;
    gap: 15px;
}

.green-btn {
    background: #2EF06B;
    color: black;
    border: none;
    padding: 14px 25px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

.dark-btn {
    background: transparent;
    border: 1px solid #2f4f77;
    color: white;
    padding: 14px 25px;
    border-radius: 12px;
    cursor: pointer;
}

.earn-heading {
    font-size: 20px;
    margin-top: 5px;
}

/* ================= EARN CARDS ================= */

.earn-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card {
    background: #07111f;
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 18px;
    padding: 25px;
    text-align: center;
    transition: .3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #2EF06B;
}

.card i {
    font-size: 38px;
    margin-bottom: 15px;
}

.card:nth-child(1) i { color: #2EF06B; }
.card:nth-child(2) i { color: #d16eff; }
.card:nth-child(3) i { color: #45a9ff; }
.card:nth-child(4) i { color: #ffb32d; }

.card h4 { margin-bottom: 10px; }
.card p { margin-bottom: 12px; }
.card span { color: #2EF06B; font-weight: 700; }

/* ================= LEVEL ================= */

.level-card {
    background: #07111f;
    border-radius: 20px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress {
    width: 100%;
    max-width: 350px;
    height: 12px;
    background: #20345a;
    border-radius: 20px;
    margin: 15px 0;
}

.progress-fill {
    width: 75%;
    height: 100%;
    background: #2EF06B;
    border-radius: 20px;
}

.benefit-list {
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* ================= FAN LEVELS ================= */

.fan-levels {
    display: flex;
    gap: 15px;
}

.fan-card {
    flex: 1;
    background: #07111f;
    border-radius: 18px;
    padding: 20px;
    text-align: center;
}

.active {
    border: 2px solid #FFC107;
}

.level-icon {
    font-size: 25px;
    margin-bottom: 10px;
}

.bronze { color: #cd7f32; }
.silver { color: silver; }
.gold { color: #FFC107; }
.diamond { color: #55e7ff; }

/* ================= TRANSACTIONS ================= */

.transactions-panel {
    background: #051328;
    border-radius: 20px;
    padding: 30px;
}

.transaction {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.plus { color: #2EF06B; font-weight: 700; }
.minus { color: #ff5c5c; font-weight: 700; }

.view-btn {
    background: none;
    border: 1px solid #2EF06B;
    color: #2EF06B;
    padding: 12px 30px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    width: 100%;
}

/* ================= RESPONSIVE ================= */

@media(max-width:1000px) {
    .wallet-card {
        flex-direction: column;
        text-align: center;
        gap: 24px;
        padding: 28px;
    }
    .wallet-card .coins {
        justify-content: center;
    }
    .wallet-card .buttons {
        justify-content: center;
    }
    .earn-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .level-card {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    .fan-levels {
        flex-wrap: wrap;
    }
    .wallet-image img {
        width: 320px;
    }
}

@media(max-width:768px) {
    .wallet-image img {
        width: 280px;
    }
    .benefit-list {
        gap: 16px;
    }
}

@media(max-width:600px) {
    .earn-grid {
        grid-template-columns: 1fr;
    }
    .earn-grid .card {
        padding: 18px;
    }
    .wallet-card h1 {
        font-size: 36px;
    }
    .coins h2 {
        font-size: 42px;
    }
    .buttons {
        flex-direction: column;
    }
    .wallet-card {
        padding: 20px;
        gap: 16px;
    }
    .wallet-card .coins {
        gap: 12px;
        margin: 16px 0;
    }
    .wallet-card .coin-icon,
    .wallet-card .coins > div:first-child {
        width: 54px;
        height: 54px;
        font-size: 17px;
    }
    .level-card {
        padding: 18px;
    }
    .fan-levels {
        gap: 10px;
    }
    .fan-levels .fan-card {
        padding: 14px 10px;
    }
    .transactions-panel {
        padding: 20px;
    }
    .sidebar-panel {
        padding: 18px;
    }
    .wallet-image img {
        width: 220px;
    }
}

@media(max-width:480px) {
    .wallet-card h1 {
        font-size: 28px;
    }
    .wallet-card p {
        font-size: 15px;
    }
    .coins h2 {
        font-size: 34px;
    }
    .wallet-card .buttons button {
        padding: 11px 16px;
        font-size: 13px;
    }
    .level-card h2 {
        font-size: 18px;
    }
    .progress {
        max-width: 100%;
    }
    .wallet-image img {
        width: 160px;
    }
    .sidebar-panel {
        padding: 14px;
    }
    #tx-list-sidebar > div {
        padding: 10px 0 !important;
        font-size: 12px !important;
    }
    .benefit-list {
        gap: 10px;
    }
    .benefit-list > div {
        font-size: 13px;
    }
}

@media(max-width:400px) {
    .wallet-card {
        padding: 14px;
        border-radius: 18px;
    }
    .wallet-card h1 {
        font-size: 24px;
    }
    .coins h2 {
        font-size: 28px;
    }
    .wallet-card .coins {
        gap: 8px;
    }
    .wallet-card .coin-icon,
    .wallet-card .coins > div:first-child {
        width: 44px;
        height: 44px;
        font-size: 14px;
    }
    .wallet-image img {
        width: 120px;
    }
    .earn-grid {
        gap: 12px;
    }
    .earn-grid .card {
        padding: 14px 10px;
    }
    .earn-grid .card i {
        font-size: 28px;
    }
    .earn-grid .card h4 {
        font-size: 14px;
    }
    .fan-levels .fan-card {
        padding: 10px 6px;
    }
    .fan-levels .fan-card h4 {
        font-size: 13px;
    }
    .fan-levels .fan-card p {
        font-size: 12px;
    }
    .level-card {
        padding: 14px;
    }
    #tx-list-sidebar {
        max-height: 220px !important;
    }
}
