/* =========================================================
   ZAKI SUB GLOBAL THEME
   DARK = Brown + Gold
   LIGHT = Emerald + Navy + Gold
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}


/* =========================================================
   DARK MODE - DEFAULT
========================================================= */

:root {

    --bg: #100909;

    --surface: #1B1111;
    --surface-2: #241616;

    --brand: #250D0D;
    --brand-light: #3A1818;
    --brand-dark: #170707;

    --accent: #F5C451;
    --accent-dark: #D99A18;

    --navy: #0B1F33;
    --emerald: #0F766E;

    --text: #FFFFFF;
    --text-soft: #E7DDDD;
    --muted: #B9AFAF;

    --border: rgba(255,255,255,.08);

    --success: #22C55E;
    --danger: #EF4444;
    --warning: #F59E0B;

    --shadow: 0 15px 40px rgba(0,0,0,.35);
}


/* =========================================================
   LIGHT MODE
========================================================= */

[data-theme="light"] {

    --bg: #F4F8F6;

    --surface: #FFFFFF;
    --surface-2: #F0F7F5;

    --brand: #0B1F33;
    --brand-light: #163B5C;
    --brand-dark: #071522;

    --accent: #D99A18;
    --accent-dark: #B97C08;

    --navy: #0B1F33;
    --emerald: #0F766E;

    --text: #10202F;
    --text-soft: #243746;
    --muted: #64748B;

    --border: rgba(11,31,51,.10);

    --success: #16A34A;
    --danger: #DC2626;
    --warning: #D97706;

    --shadow: 0 12px 35px rgba(11,31,51,.10);
}


/* =========================================================
   BODY
========================================================= */

body {

    background: var(--bg);

    color: var(--text);

    transition:
        background .3s ease,
        color .3s ease;
}


/* =========================================================
   GLOBAL LINKS
========================================================= */

a {
    color: inherit;
}


/* =========================================================
   DASHBOARD
========================================================= */

.dashboard {

    width: 100%;

    max-width: 1400px;

    margin: auto;

    padding: 20px;
}


/* =========================================================
   BALANCE CARD
========================================================= */

.balance-card {

    background:
        linear-gradient(
            135deg,
            var(--brand) 0%,
            var(--brand-light) 55%,
            var(--brand-dark) 100%
        );

    border: 1px solid var(--border);

    border-radius: 22px;

    padding: 28px;

    box-shadow: var(--shadow);

    position: relative;

    overflow: hidden;
}


/* Decorative circle */

.balance-card::before {

    content: "";

    position: absolute;

    width: 220px;

    height: 220px;

    background: rgba(245,196,81,.08);

    border-radius: 50%;

    right: -70px;

    top: -80px;
}


/* Second decorative circle */

.balance-card::after {

    content: "";

    position: absolute;

    width: 120px;

    height: 120px;

    background: rgba(15,118,110,.12);

    border-radius: 50%;

    left: -50px;

    bottom: -60px;
}


/* Balance text */

.balance-label {

    color: rgba(255,255,255,.75);

    font-size: 14px;

    position: relative;

    z-index: 2;
}


.balance-card h2 {

    margin-top: 8px;

    font-size: 40px;

    color: #fff;

    position: relative;

    z-index: 2;
}


/* =========================================================
   CASHBACK
========================================================= */

.cashback-box {

    margin-top: 25px;

    padding: 15px 17px;

    border-radius: 15px;

    background: rgba(255,255,255,.08);

    border: 1px solid rgba(245,196,81,.25);

    backdrop-filter: blur(12px);

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    position: relative;

    z-index: 3;
}


.cashback-left {

    display: flex;

    align-items: center;

    gap: 12px;
}


.cashback-icon {

    width: 42px;

    height: 42px;

    border-radius: 12px;

    background: linear-gradient(
        135deg,
        var(--accent),
        var(--accent-dark)
    );

    display: flex;

    align-items: center;

    justify-content: center;

    color: #111;

    font-size: 20px;

    font-weight: bold;

    box-shadow: 0 6px 15px rgba(245,196,81,.20);
}


.cashback-info {

    display: flex;

    flex-direction: column;

    gap: 3px;
}


.cashback-info span {

    font-size: 12px;

    color: rgba(255,255,255,.65);
}


.cashback-info strong {

    font-size: 17px;

    color: #fff;
}


.cashback-details {

    text-decoration: none;

    color: var(--accent);

    font-size: 12px;

    font-weight: bold;

    padding: 8px 12px;

    border: 1px solid rgba(245,196,81,.25);

    border-radius: 8px;

    transition: .3s;
}


.cashback-details:hover {

    background: var(--accent);

    color: #111;

}


/* =========================================================
   QUICK ACTIONS
========================================================= */

.quick-actions {

    display: grid;

    grid-template-columns: repeat(2,1fr);

    gap: 15px;

    margin-bottom: 20px;

    margin-top: 20px;
}


.quick-actions a {

    text-decoration: none;

    text-align: center;

    padding: 14px;

    border-radius: 12px;

    font-weight: bold;

    background: var(--surface);

    border: 1px solid var(--border);

    color: var(--text);

    box-shadow: var(--shadow);

    transition: .3s;
}


.quick-actions a:first-child {

    background: linear-gradient(
        135deg,
        var(--emerald),
        var(--navy)
    );

    color: white;

    border: none;
}


.quick-actions a:hover {

    transform: translateY(-3px);
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.dashboard-content {

    display: grid;

    grid-template-columns: 2fr 1fr;

    gap: 20px;

    align-items: start;
}


/* =========================================================
   SERVICES
========================================================= */

.services-grid {

    display: grid;

    grid-template-columns: repeat(2,1fr);

    gap: 18px;
}


.service-card {

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 18px;

    color: var(--text);

    text-decoration: none;

    min-height: 185px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    gap: 12px;

    transition: .35s;

    position: relative;

    overflow: hidden;

    box-shadow: var(--shadow);
}


.service-card:hover {

    transform: translateY(-7px);

    border-color: var(--accent);
}


.service-card::before {

    content: "";

    position: absolute;

    width: 170px;

    height: 170px;

    background: rgba(15,118,110,.07);

    border-radius: 50%;

    right: -50px;

    top: -50px;

    transition: .4s;
}


.service-card:hover::before {

    transform: scale(1.2);
}


/* =========================================================
   SERVICE ICON
========================================================= */

.icon-box {

    width: 68px;

    height: 68px;

    border-radius: 18px;

    background: linear-gradient(
        135deg,
        var(--emerald),
        var(--navy)
    );

    color: white;

    display: flex;

    justify-content: center;

    align-items: center;

    transition: .35s;

    box-shadow: 0 8px 20px rgba(15,118,110,.20);
}


.service-card:hover .icon-box {

    transform: rotate(-6deg) scale(1.08);
}


.icon-box svg {

    width: 34px;

    height: 34px;
}


.service-card span {

    font-weight: bold;

    letter-spacing: .5px;

    position: relative;

    z-index: 2;
}


/* =========================================================
   HISTORY
========================================================= */

.history {

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 20px;

    overflow: hidden;

    margin-bottom: 50px;

    box-shadow: var(--shadow);
}


.history-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 18px;

    border-bottom: 1px solid var(--border);
}


.history-header h3 {

    font-size: 18px;
}


.history-header a {

    color: var(--accent);

    text-decoration: none;

    font-size: 14px;
}


.history-list {

    margin-top: 12px;

    padding: 3px;
}


/* =========================================================
   HISTORY ITEM
========================================================= */

.history-section {

    background: var(--surface-2);

    border: 1px solid var(--border);

    border-radius: 12px;

    padding: 4px;

    margin-bottom: 8px;
}


.history-item {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 12px;

    border-radius: 12px;

    transition: .3s;
}


.history-item:hover {

    transform: translateY(-2px);

    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}


.tx-icon {

    width: 45px;

    height: 45px;

    border-radius: 50%;

    background: rgba(245,196,81,.15);

    color: var(--accent);

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: bold;

    font-size: 18px;

    flex-shrink: 0;
}


.history-info {

    flex: 1;

    margin-left: 12px;
}


.history-info h4 {

    color: var(--text);

    font-size: 14px;

    margin-bottom: 4px;
}


.history-info span {

    color: var(--muted);

    font-size: 11px;
}


.history-right {

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 6px;
}


.history-right a {

    color: var(--accent);

    text-decoration: none;

    font-size: 12px;
}


/* =========================================================
   STATUS TAGS
========================================================= */

.success-tag {

    background: rgba(34,197,94,.12);

    color: var(--success);

    padding: 4px 9px;

    border-radius: 20px;

    font-size: 10px;

    font-weight: bold;
}


.failed-tag {

    background: rgba(239,68,68,.12);

    color: var(--danger);

    padding: 4px 9px;

    border-radius: 20px;

    font-size: 10px;

    font-weight: bold;
}


.pending-tag {

    background: rgba(245,158,11,.12);

    color: var(--warning);

    padding: 4px 9px;

    border-radius: 20px;

    font-size: 10px;

    font-weight: bold;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.empty {

    border: 1px dashed var(--border);

    border-radius: 15px;

    padding: 25px;

    text-align: center;

    color: var(--muted);
}


.empty h3 {

    color: var(--text);

    margin-bottom: 5px;
}


/* =========================================================
   THEME TRANSITION
========================================================= */

body,
.balance-card,
.service-card,
.history,
.history-section,
.quick-actions a {

    transition:
        background .3s ease,
        color .3s ease,
        border-color .3s ease,
        box-shadow .3s ease,
        transform .3s ease;
}


/* =========================================================
   TABLET
========================================================= */

@media(max-width:900px) {

    .dashboard-content {

        grid-template-columns: 1fr;
    }

    .history {

        margin-top: 20px;
    }
}


/* =========================================================
   PHONE
========================================================= */

@media(max-width:600px) {

    .dashboard {

        padding: 15px;
    }

    .balance-card {

        padding: 22px 18px;
    }

    .balance-card h2 {

        font-size: 30px;
    }

    .cashback-box {

        padding: 12px;
    }

    .cashback-icon {

        width: 38px;

        height: 38px;

        font-size: 17px;
    }

    .cashback-info strong {

        font-size: 15px;
    }

    .services-grid {

        grid-template-columns: repeat(2,1fr);

        gap: 12px;
    }

    .service-card {

        min-height: 140px;
    }

    .icon-box {

        width: 55px;

        height: 55px;
    }

    .icon-box svg {

        width: 28px;

        height: 28px;
    }
}

.theme-toggle{
    width: 30%;
    height: 20;
    margin:0 auto;
    padding: 5px;
    border: 1px double gold;
}