/* ================= RESET ================= */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}

:root {

    --primary-color: #2563eb;

    --primary-dark: #1d4ed8;

    --secondary-color: #06b6d4;

    --accent-color: #7c3aed;

    --page-background: #eef4ff;

    --card-background: #ffffff;

    --soft-blue: #dbeafe;

    --text-dark: #172033;

    --text-light: #64748b;

    --border-color: #e2e8f0;

    --container-width: 540px;

    --navigation-height: 78px;

    --small-shadow: 0 5px 15px rgba(37, 99, 235, 0.08);

    --card-shadow: 0 12px 30px rgba(30, 64, 175, 0.14);

}

html {

    scroll-behavior: smooth;

}

body {

    min-height: 100vh;

    overflow-x: hidden;

    background: #dce7f8;

    color: var(--text-dark);

    font-family: Arial, Helvetica, sans-serif;

}

button,

a {

    font-family: inherit;

    -webkit-tap-highlight-color: transparent;

}

button {

    border: none;

    outline: none;

    cursor: pointer;

}

a {

    color: inherit;

    text-decoration: none;

}

img {

    display: block;

    max-width: 100%;

}

/* ================= MY APP ================= */

.my-app {

    position: relative;

    width: 100%;

    max-width: var(--container-width);

    min-height: 100vh;

    margin: 0 auto;

    overflow: hidden;

    background:

        linear-gradient(

            180deg,

            #eff6ff 0%,

            #f8fafc 55%,

            #eef4ff 100%

        );

}

/* ================= PROFILE HERO ================= */

.profile-hero {

    position: relative;

    padding: 22px 18px 70px;

    overflow: hidden;

    background:

        linear-gradient(

            145deg,

            var(--primary-color) 0%,

            var(--secondary-color) 100%

        );

}

.profile-hero::before {

    position: absolute;

    top: -120px;

    right: -100px;

    width: 310px;

    height: 310px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.08);

    content: "";

}

.profile-hero::after {

    position: absolute;

    bottom: -130px;

    left: -90px;

    width: 300px;

    height: 300px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.07);

    content: "";

}

/* ================= PAGE HEADER ================= */

.my-page-header {

    position: relative;

    z-index: 3;

    display: grid;

    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    min-height: 75px;

}

.my-page-header h1 {

    color: #ffffff;

    font-size: 27px;

    font-weight: 800;

    text-align: center;

    white-space: nowrap;

}

.header-actions {

    display: flex;

    align-items: center;

    justify-self: end;

    gap: 10px;

}

.header-action-button {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 43px;

    height: 43px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.15);

    color: #ffffff;

    font-size: 21px;

    transition:

        transform 0.2s ease,

        background 0.2s ease;

}

.header-action-button:active {

    background: rgba(255, 255, 255, 0.28);

    transform: scale(0.92);

}

/* ================= USER SUMMARY ================= */

.user-summary {

    position: relative;

    z-index: 3;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-top: 35px;

}

.user-identity {

    display: flex;

    align-items: center;

    min-width: 0;

    gap: 16px;

}

.profile-avatar {

    display: flex;

    flex: 0 0 88px;

    align-items: center;

    justify-content: center;

    width: 88px;

    height: 88px;

    overflow: hidden;

    border: 4px solid rgba(255, 255, 255, 0.9);

    border-radius: 50%;

    background: #ffffff;

    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);

}

.profile-avatar img {

    width: 78%;

    height: 78%;

    object-fit: contain;

}

.user-details {

    min-width: 0;

}

.user-details h2 {

    color: #ffffff;

    font-size: 25px;

    font-weight: 800;

    white-space: nowrap;

}

.user-vip-badge {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    margin-top: 8px;

    padding: 4px 11px;

    border-radius: 15px;

    background: rgba(255, 255, 255, 0.92);

    color: var(--primary-color);

    font-size: 14px;

    font-weight: 800;

}

.user-vip-badge i {

    color: var(--secondary-color);

}

.my-team-button {

    display: flex;

    flex: 0 0 auto;

    align-items: center;

    justify-content: center;

    gap: 12px;

    min-height: 52px;

    padding: 12px 20px;

    border-radius: 28px 0 0 28px;

    background: #172033;

    color: #ffffff;

    font-size: 14px;

    font-weight: 700;

    transform: translateX(18px);

}

/* ================= BALANCE CARD ================= */

.balance-card {

    position: relative;

    z-index: 3;

    margin-top: 35px;

    padding: 23px 22px;

    border: 1px solid rgba(255, 255, 255, 0.35);

    border-radius: 20px;

    background: rgba(255, 255, 255, 0.88);

    box-shadow: var(--card-shadow);

    backdrop-filter: blur(10px);

    -webkit-backdrop-filter: blur(10px);

}

.balance-card > h2 {

    color: var(--text-dark);

    font-size: 19px;

}

.balance-information {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 22px;

    margin-top: 20px;

}

.balance-item {

    min-width: 0;

}

.balance-item span {

    display: block;

    color: var(--text-light);

    font-size: 14px;

    font-weight: 700;

}

.balance-item strong {

    display: block;

    margin-top: 7px;

    color: var(--text-dark);

    font-size: 27px;

    font-weight: 800;

}

/* ================= WALLET ACTIONS ================= */

.wallet-actions {

    position: relative;

    z-index: 3;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 15px;

    margin-top: 20px;

}

.wallet-button {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    min-height: 62px;

    padding: 10px 14px;

    border-radius: 32px;

    background: #ffffff;

    font-size: 14px;

    font-weight: 800;

    box-shadow: var(--small-shadow);

}

.wallet-button-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 31px;

    height: 31px;

    border-radius: 50%;

    color: #ffffff;

    font-size: 12px;

}

.recharge-button {

    color: var(--primary-color);

}

.recharge-button .wallet-button-icon {

    background:

        linear-gradient(

            135deg,

            var(--primary-color),

            var(--secondary-color)

        );

}

.withdraw-button {

    color: var(--accent-color);

}

.withdraw-button .wallet-button-icon {

    background:

        linear-gradient(

            135deg,

            var(--accent-color),

            #ec4899

        );

}

/* ================= MY MAIN ================= */

.my-main {

    position: relative;

    z-index: 5;

    margin-top: -38px;

    padding: 28px 18px 125px;

    border-radius: 40px 40px 0 0;

    background: #f8fafc;

}

/* ================= ACCOUNT SHORTCUTS ================= */

.account-shortcuts {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    align-items: start;

    gap: 10px;

}

.shortcut-item {

    display: flex;

    align-items: center;

    min-width: 0;

    padding: 5px 2px;

    background: transparent;

    flex-direction: column;

}

.shortcut-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 65px;

    height: 65px;

    border-radius: 50%;

    color: #ffffff;

    font-size: 29px;

    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.15);

}

.account-bills-icon {

    background: linear-gradient(135deg, #2563eb, #60a5fa);

}

.commission-records-icon {

    background: linear-gradient(135deg, #7c3aed, #c084fc);

}

.commission-bills-icon {

    background: linear-gradient(135deg, #0891b2, #22d3ee);

}

.project-revenue-icon {

    background: linear-gradient(135deg, #0f766e, #2dd4bf);

}

.shortcut-name {

    margin-top: 10px;

    color: var(--text-dark);

    font-size: 13px;

    font-weight: 700;

    line-height: 1.35;

    text-align: center;

}

/* ================= WELFARE BANNER ================= */

.welfare-banner {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: space-between;

    min-height: 145px;

    margin-top: 27px;

    padding: 25px 28px;

    overflow: hidden;

    border-radius: 20px;

    background:

        linear-gradient(

            135deg,

            var(--accent-color) 0%,

            var(--primary-color) 55%,

            var(--secondary-color) 100%

        );

    color: #ffffff;

    box-shadow: var(--card-shadow);

}

.welfare-banner::after {

    position: absolute;

    top: 50%;

    right: -45px;

    width: 190px;

    height: 190px;

    border: 2px solid rgba(255, 255, 255, 0.18);

    border-radius: 50%;

    content: "";

    transform: translateY(-50%);

}

.welfare-content {

    position: relative;

    z-index: 2;

}

.welfare-content h2 {

    font-size: 25px;

    font-weight: 800;

}

.welfare-content p {

    margin-top: 13px;

    color: rgba(255, 255, 255, 0.82);

    font-size: 14px;

}

.welfare-icon {

    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: center;

    flex: 0 0 78px;

    width: 78px;

    height: 78px;

    border: 2px solid rgba(255, 255, 255, 0.42);

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.13);

    font-size: 34px;

}

/* ================= ACCOUNT MENU ================= */

.account-menu {

    margin-top: 27px;

    overflow: hidden;

    padding: 4px 20px;

    border: 1px solid rgba(37, 99, 235, 0.08);

    border-radius: 20px;

    background: #ffffff;

    box-shadow: var(--small-shadow);

}

.account-menu-item {

    display: grid;

    grid-template-columns: 38px 1fr auto;

    align-items: center;

    width: 100%;

    min-height: 74px;

    border-bottom: 1px solid var(--border-color);

    background: transparent;

    color: var(--text-dark);

    text-align: left;

}

.account-menu-item:last-of-type {

    border-bottom: none;

}

.menu-icon {

    color: #475569;

    font-size: 21px;

}

.menu-name {

    font-size: 16px;

    font-weight: 700;

}

.menu-arrow {

    color: var(--text-light);

    font-size: 13px;

}

/* ================= LOGOUT BUTTON ================= */

.logout-button {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    width: 100%;

    min-height: 65px;

    margin-top: 20px;

    border-radius: 15px;

    background:

        linear-gradient(

            135deg,

            var(--primary-color),

            var(--secondary-color)

        );

    color: #ffffff;

    font-size: 18px;

    font-weight: 800;

    box-shadow: 0 9px 20px rgba(37, 99, 235, 0.22);

}

/* ================= CLICK EFFECTS ================= */

.shortcut-item,

.wallet-button,

.my-team-button,

.account-menu-item,

.logout-button {

    transition: transform 0.2s ease;

}

.shortcut-item:active,

.wallet-button:active,

.my-team-button:active,

.account-menu-item:active,

.logout-button:active {

    transform: scale(0.96);

}

/* ================= BOTTOM NAVIGATION ================= */

.bottom-navigation {

    position: fixed;

    bottom: 0;

    left: 50%;

    z-index: 100;

    display: grid;

    grid-template-columns: repeat(5, 1fr);

    width: 100%;

    max-width: var(--container-width);

    min-height: var(--navigation-height);

    padding: 9px 8px calc(8px + env(safe-area-inset-bottom));

    border-radius: 22px 22px 0 0;

    background: #ffffff;

    box-shadow: 0 -8px 25px rgba(15, 23, 42, 0.12);

    transform: translateX(-50%);

}

.nav-item {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 6px;

    min-width: 0;

    color: #64748b;

    font-size: 12px;

    font-weight: 700;

    flex-direction: column;

}

.nav-item > i {

    font-size: 21px;

}

.nav-item.active {

    color: var(--primary-color);

}

.vip-nav-item {

    justify-content: flex-end;

}

.vip-icon {

    position: absolute;

    top: -31px;

    left: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 58px;

    height: 58px;

    border: 5px solid #ffffff;

    border-radius: 50%;

    background:

        linear-gradient(

            135deg,

            var(--primary-color),

            var(--secondary-color)

        );

    color: #ffffff;

    font-size: 22px;

    transform: translateX(-50%);

    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);

}

.vip-nav-item > span:last-child {

    margin-top: 31px;

}

/* ================= RESPONSIVE ================= */

@media (min-width: 600px) {

    .my-app {

        box-shadow: 0 0 40px rgba(15, 23, 42, 0.15);

    }

}

@media (max-width: 440px) {

    .profile-hero {

        padding-right: 13px;

        padding-left: 13px;

    }

    .my-page-header {

        grid-template-columns: 50px 1fr auto;

    }

    .my-page-header h1 {

        font-size: 22px;

    }

    .header-actions {

        gap: 6px;

    }

    .header-action-button {

        width: 38px;

        height: 38px;

        font-size: 18px;

    }

    .user-summary {

        margin-top: 25px;

    }

    .profile-avatar {

        flex-basis: 72px;

        width: 72px;

        height: 72px;

    }

    .user-identity {

        gap: 11px;

    }

    .user-details h2 {

        font-size: 20px;

    }

    .my-team-button {

        min-height: 47px;

        padding: 10px 15px;

        font-size: 12px;

        transform: translateX(13px);

    }

    .balance-card {

        padding-right: 17px;

        padding-left: 17px;

    }

    .balance-item span {

        font-size: 12px;

    }

    .balance-item strong {

        font-size: 23px;

    }

    .wallet-button {

        gap: 6px;

        padding-right: 8px;

        padding-left: 8px;

        font-size: 12px;

    }

    .my-main {

        padding-right: 13px;

        padding-left: 13px;

    }

    .account-shortcuts {

        gap: 5px;

    }

    .shortcut-icon {

        width: 55px;

        height: 55px;

        font-size: 24px;

    }

    .shortcut-name {

        font-size: 11px;

    }

    .welfare-banner {

        min-height: 130px;

        padding-right: 20px;

        padding-left: 20px;

    }

    .welfare-content h2 {

        font-size: 21px;

    }

    .welfare-content p {

        max-width: 200px;

        font-size: 12px;

    }

    .welfare-icon {

        flex-basis: 65px;

        width: 65px;

        height: 65px;

        font-size: 28px;

    }

    .account-menu {

        padding-right: 15px;

        padding-left: 15px;

    }

}

@media (max-width: 350px) {

    .user-summary {

        align-items: flex-start;

    }

    .profile-avatar {

        flex-basis: 62px;

        width: 62px;

        height: 62px;

    }

    .user-details h2 {

        font-size: 17px;

    }

    .my-team-button {

        padding-right: 10px;

        padding-left: 10px;

    }

    .wallet-actions {

        gap: 8px;

    }

    .wallet-button-icon {

        width: 25px;

        height: 25px;

    }

    .shortcut-icon {

        width: 48px;

        height: 48px;

        font-size: 20px;

    }

    .shortcut-name {

        font-size: 10px;

    }

}

/* =========================================

   MY PAGE FUNCTIONAL STATES

========================================= */

.welfare-banner {

    cursor: pointer;

}

.shortcut-item,

.account-menu-item,

.logout-button {

    cursor: pointer;

}

body.my-modal-open {

    overflow: hidden;

}

.my-functional-modal {

    position: fixed;

    inset: 0;

    z-index: 99999;

    display: grid;

    place-items: center;

    padding: 20px;

    visibility: hidden;

    opacity: 0;

    pointer-events: none;

    transition:

        opacity 0.25s ease,

        visibility 0.25s ease;

}

.my-functional-modal.open {

    visibility: visible;

    opacity: 1;

    pointer-events: auto;

}

.my-modal-backdrop {

    position: absolute;

    inset: 0;

    background: rgba(2, 22, 31, 0.72);

    backdrop-filter: blur(5px);

}

.my-modal-dialog {

    position: relative;

    z-index: 2;

    width: min(100%, 440px);

    max-height: calc(100vh - 35px);

    overflow-y: auto;

    padding: 28px 20px 20px;

    border: 1px solid #d9edf3;

    border-radius: 24px;

    background: #ffffff;

    box-shadow: 0 25px 70px rgba(0, 50, 68, 0.3);

    transform: translateY(24px) scale(0.96);

    transition: transform 0.25s ease;

}

.my-functional-modal.open .my-modal-dialog {

    transform: translateY(0) scale(1);

}

.my-modal-close {

    position: absolute;

    top: 14px;

    right: 14px;

    width: 36px;

    height: 36px;

    display: grid;

    place-items: center;

    border: 0;

    border-radius: 50%;

    background: #edf8fb;

    color: #49616b;

    font-size: 17px;

    cursor: pointer;

}

.my-modal-icon {

    width: 64px;

    height: 64px;

    display: grid;

    place-items: center;

    margin: 0 auto 14px;

    border-radius: 19px;

    background: linear-gradient(135deg, #16c8df, #087d9f);

    color: #ffffff;

    font-size: 26px;

    box-shadow: 0 10px 25px rgba(8, 145, 174, 0.25);

}

.my-modal-dialog h2 {

    margin: 0;

    color: #16323d;

    text-align: center;

    font-size: 23px;

}

.my-modal-description {

    margin: 8px auto 18px;

    color: #718188;

    text-align: center;

    font-size: 13px;

    line-height: 1.5;

}

.my-modal-content {

    color: #536971;

}

.my-modal-actions {

    display: grid;

    grid-template-columns: 1fr 1.4fr;

    gap: 10px;

    margin-top: 20px;

}

.my-modal-cancel,

.my-modal-primary {

    min-height: 49px;

    border-radius: 14px;

    font-size: 14px;

    font-weight: 800;

    cursor: pointer;

}

.my-modal-cancel {

    border: 1px solid #d6e5e9;

    background: #ffffff;

    color: #61757d;

}

.my-modal-primary {

    border: 0;

    background: linear-gradient(135deg, #14c8df, #087d9f);

    color: #ffffff;

    box-shadow: 0 9px 20px rgba(8, 137, 165, 0.22);

}

.my-functional-modal [hidden] {

    display: none !important;

}

/* Account statistics */

.my-statistics-grid {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 10px;

}

.my-statistic-item {

    padding: 14px;

    border-radius: 14px;

    background: #f1fafc;

}

.my-statistic-item span {

    display: block;

    margin-bottom: 5px;

    color: #788990;

    font-size: 11px;

}

.my-statistic-item strong {

    display: block;

    color: #087d9f;

    font-size: 16px;

    overflow-wrap: anywhere;

}

/* Bills and records */

.my-record-list {

    display: grid;

    gap: 9px;

}

.my-record-item {

    display: flex;

    align-items: center;

    gap: 11px;

    padding: 12px;

    border: 1px solid #e0edf1;

    border-radius: 14px;

}

.my-record-icon {

    flex: 0 0 42px;

    width: 42px;

    height: 42px;

    display: grid;

    place-items: center;

    border-radius: 12px;

    background: #eaf9fc;

    color: #087d9f;

}

.my-record-information {

    min-width: 0;

    flex: 1;

}

.my-record-information strong {

    display: block;

    color: #173641;

    font-size: 13px;

}

.my-record-information small {

    display: block;

    margin-top: 3px;

    color: #8a989d;

    font-size: 10px;

}

.my-record-amount {

    text-align: right;

}

.my-record-amount strong {

    display: block;

    font-size: 13px;

}

.my-record-amount.credit strong {

    color: #079b70;

}

.my-record-amount.debit strong {

    color: #e05252;

}

.my-record-amount small {

    display: block;

    margin-top: 3px;

    color: #89979c;

    font-size: 9px;

    text-transform: capitalize;

}

/* Empty records */

.my-empty-record {

    padding: 30px 15px;

    text-align: center;

}

.my-empty-record i {

    margin-bottom: 12px;

    color: #a8dce5;

    font-size: 40px;

}

.my-empty-record h3 {

    margin: 0 0 6px;

    color: #37545e;

    font-size: 17px;

}

.my-empty-record p {

    margin: 0;

    color: #8a989d;

    font-size: 12px;

}

/* Bound account */

.my-bound-account {

    padding: 15px;

    border-radius: 15px;

    background: #f1fafc;

}

.my-bound-account-row {

    display: flex;

    justify-content: space-between;

    gap: 15px;

    padding: 10px 0;

    border-bottom: 1px solid #deecef;

}

.my-bound-account-row:last-child {

    border-bottom: 0;

}

.my-bound-account-row span {

    color: #7a8b91;

    font-size: 12px;

}

.my-bound-account-row strong {

    color: #173641;

    text-align: right;

    font-size: 13px;

}

/* Toast */

.my-page-toast {

    position: fixed;

    left: 50%;

    bottom: 100px;

    z-index: 100000;

    max-width: calc(100% - 35px);

    padding: 12px 18px;

    border-radius: 13px;

    background: #153842;

    color: #ffffff;

    text-align: center;

    font-size: 13px;

    font-weight: 700;

    box-shadow: 0 12px 30px rgba(0, 34, 45, 0.25);

    opacity: 0;

    pointer-events: none;

    transform: translate(-50%, 20px);

    transition:

        opacity 0.25s ease,

        transform 0.25s ease;

}

.my-page-toast.show {

    opacity: 1;

    transform: translate(-50%, 0);

}

@media (max-width: 480px) {

    .my-functional-modal {

        align-items: end;

        padding: 12px;

    }

    .my-modal-dialog {

        width: 100%;

        padding: 27px 17px 18px;

        border-radius: 24px 24px 18px 18px;

    }

}


/* =========================================================
   MY ACCOUNT SECURITY
   Profile verification and fund-transfer PIN only.
   Existing My page layout and account components stay unchanged.
========================================================= */

.my-functional-modal.my-security-modal .my-modal-dialog {
    width: min(100%, 560px);
}

.my-security-loading,
.my-security-error-state {
    min-height: 190px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 9px;
    padding: 22px;
    border: 1px solid #dcecf0;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fdff, #eef9fc);
    text-align: center;
}

.my-security-loading > i,
.my-security-error-state > i {
    color: #0ba9c4;
    font-size: 28px;
}

.my-security-loading strong,
.my-security-error-state strong {
    color: #173641;
    font-size: 15px;
}

.my-security-loading span,
.my-security-error-state p {
    margin: 0;
    color: #718188;
    font-size: 12px;
    line-height: 1.55;
}

.my-security-error-state > i {
    color: #e17b35;
}

.my-security-error-state button {
    min-height: 40px;
    margin-top: 3px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: #0b9db8;
    color: #ffffff;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.my-security-overview {
    display: grid;
    gap: 13px;
}

.my-security-privacy-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 13px;
    border: 1px solid #ccecf2;
    border-radius: 14px;
    background: #eefbfe;
    color: #4f747f;
    font-size: 11px;
    line-height: 1.55;
}

.my-security-privacy-note i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #0793ae;
    font-size: 14px;
}

.my-security-card {
    padding: 15px;
    border: 1px solid #d9e9ed;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(17, 93, 112, 0.07);
}

.my-security-card-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
}

.my-security-card-icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    font-size: 18px;
}

.my-security-card-icon.profile {
    background: #e0f8fc;
    color: #078ca7;
}

.my-security-card-icon.pin {
    background: #fff1dc;
    color: #d77b13;
}

.my-security-card-heading h3 {
    margin: 0;
    color: #173641;
    font-size: 14px;
    line-height: 1.35;
}

.my-security-card-heading p {
    margin: 3px 0 0;
    color: #809096;
    font-size: 10px;
    line-height: 1.4;
}

.my-security-status {
    min-width: max-content;
    padding: 5px 8px;
    border-radius: 999px;
    background: #eef3f5;
    color: #65777e;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.my-security-status.pending {
    background: #fff3d7;
    color: #a56809;
}

.my-security-status.approved {
    background: #ddf8e8;
    color: #19834a;
}

.my-security-status.rejected {
    background: #ffe8e8;
    color: #c84343;
}

.my-security-card-copy {
    margin: 13px 0 0;
    color: #667c84;
    font-size: 11px;
    line-height: 1.55;
}

.my-security-detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 13px;
}

.my-security-detail-list.single {
    grid-template-columns: minmax(0, 1fr);
}

.my-security-detail-list > div {
    min-width: 0;
    display: grid;
    gap: 3px;
    padding: 9px 10px;
    border-radius: 11px;
    background: #f5fafb;
}

.my-security-detail-list span {
    color: #83959b;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.my-security-detail-list strong {
    overflow: hidden;
    color: #24424c;
    font-size: 11px;
    line-height: 1.4;
    text-overflow: ellipsis;
}

.my-security-rejection-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 11px;
    padding: 9px 10px;
    border: 1px solid #f4cece;
    border-radius: 11px;
    background: #fff5f5;
    color: #a74242;
    font-size: 10px;
    line-height: 1.5;
}

.my-security-rejection-note i {
    margin-top: 2px;
}

.my-security-card-action {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 13px;
    padding: 0 13px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #12bcd4, #087d9f);
    color: #ffffff;
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 7px 16px rgba(8, 137, 165, 0.18);
}

.my-security-card-action:disabled {
    background: #edf2f4;
    color: #8a999f;
    box-shadow: none;
    cursor: default;
}

.my-security-form {
    display: grid;
    gap: 13px;
}

.my-security-field {
    display: grid;
    gap: 7px;
}

.my-security-field > span:first-child {
    color: #536971;
    font-size: 11px;
    font-weight: 900;
}

.my-security-field > input,
.my-security-pin-control > input {
    width: 100%;
    min-height: 48px;
    padding: 0 13px;
    border: 1px solid #d8e7eb;
    border-radius: 13px;
    outline: none;
    background: #f8fcfd;
    color: #173641;
    font: inherit;
    font-size: 13px;
}

.my-security-field > input:focus,
.my-security-pin-control:focus-within {
    border-color: #0ba9c4;
    box-shadow: 0 0 0 3px rgba(11, 169, 196, 0.1);
}

.my-security-field > small {
    color: #87979d;
    font-size: 9px;
}

.my-security-document-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.my-security-file-field {
    position: relative;
    min-width: 0;
    min-height: 125px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;
    padding: 13px 10px;
    border: 1px dashed #9fcfd9;
    border-radius: 15px;
    background: #f3fbfd;
    text-align: center;
    cursor: pointer;
}

.my-security-file-field:focus-within {
    border-color: #058dab;
    box-shadow: 0 0 0 3px rgba(11, 169, 196, 0.1);
}

.my-security-file-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #dff6fa;
    color: #078ba6;
    font-size: 16px;
}

.my-security-file-field strong {
    color: #294953;
    font-size: 11px;
}

.my-security-file-field small {
    width: 100%;
    overflow: hidden;
    color: #758a92;
    font-size: 9px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-security-file-field input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.my-security-file-help {
    margin: -5px 0 0;
    color: #87979d;
    text-align: center;
    font-size: 9px;
}

.my-security-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px;
    border-radius: 12px;
    background: #f5fafb;
    color: #62777f;
    font-size: 10px;
    line-height: 1.5;
    cursor: pointer;
}

.my-security-consent input {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    margin-top: 1px;
    accent-color: #0795af;
}

.my-security-pin-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    border: 1px solid #d8e7eb;
    border-radius: 13px;
    background: #f8fcfd;
}

.my-security-pin-control > input {
    min-width: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.my-security-pin-control > button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #71858c;
    cursor: pointer;
}

.my-security-pin-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 11px;
    border: 1px solid #f0dfbd;
    border-radius: 12px;
    background: #fff9eb;
    color: #806a3c;
    font-size: 10px;
    line-height: 1.5;
}

.my-security-pin-note i {
    margin-top: 2px;
    color: #d68a19;
}

.my-security-form-error {
    min-height: 18px;
    margin: 0;
    color: #cf3f3f;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.45;
}

html:is(.dark-theme, [data-marathon-theme="dark"])
.my-security-loading,
html:is(.dark-theme, [data-marathon-theme="dark"])
.my-security-error-state,
html:is(.dark-theme, [data-marathon-theme="dark"])
.my-security-card {
    border-color: #365466;
    background: #172b3d !important;
}

html:is(.dark-theme, [data-marathon-theme="dark"])
.my-security-privacy-note {
    border-color: #315d6a;
    background: #123340 !important;
    color: #b6cbd2;
}

html:is(.dark-theme, [data-marathon-theme="dark"])
:is(
    .my-security-loading strong,
    .my-security-error-state strong,
    .my-security-card-heading h3,
    .my-security-detail-list strong,
    .my-security-file-field strong
) {
    color: #f1f7f9;
}

html:is(.dark-theme, [data-marathon-theme="dark"])
:is(
    .my-security-loading span,
    .my-security-error-state p,
    .my-security-card-heading p,
    .my-security-card-copy,
    .my-security-detail-list span,
    .my-security-field > span:first-child,
    .my-security-field > small,
    .my-security-file-field small,
    .my-security-file-help
) {
    color: #a9bec7;
}

html:is(.dark-theme, [data-marathon-theme="dark"])
.my-security-detail-list > div,
html:is(.dark-theme, [data-marathon-theme="dark"])
.my-security-consent {
    background: #102334 !important;
    color: #bdd0d7;
}

html:is(.dark-theme, [data-marathon-theme="dark"])
:is(
    .my-security-field > input,
    .my-security-pin-control
) {
    border-color: #365466;
    background: #102334 !important;
    color: #f2f8fa;
}

html:is(.dark-theme, [data-marathon-theme="dark"])
.my-security-pin-control > input {
    color: #f2f8fa;
}

html:is(.dark-theme, [data-marathon-theme="dark"])
.my-security-file-field {
    border-color: #3d6876;
    background: #122a3a !important;
}

html:is(.dark-theme, [data-marathon-theme="dark"])
.my-security-pin-note {
    border-color: #66522c;
    background: #332b18 !important;
    color: #dec99d;
}

html:is(.dark-theme, [data-marathon-theme="dark"])
.my-security-rejection-note {
    border-color: #704141;
    background: #3b2228 !important;
    color: #f0b2b2;
}

html:is(.dark-theme, [data-marathon-theme="dark"])
.my-security-card-action:disabled {
    background: #273b47 !important;
    color: #8da1a9;
}

@media (max-width: 480px) {
    .my-functional-modal.my-security-modal {
        padding: 10px;
    }

    .my-functional-modal.my-security-modal .my-modal-dialog {
        max-height: calc(100dvh - 20px);
        padding: 24px 14px 15px;
        border-radius: 20px;
    }

    .my-security-card {
        padding: 13px;
    }

    .my-security-card-heading {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .my-security-status {
        grid-column: 2;
        justify-self: start;
        margin-top: -4px;
    }

    .my-security-detail-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .my-security-document-grid {
        gap: 8px;
    }

    .my-security-file-field {
        min-height: 116px;
        padding-inline: 8px;
    }
}

@media (max-width: 350px) {
    .my-security-document-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .my-security-card-action,
    .my-security-file-field,
    .my-security-error-state button {
        transition:
            transform 0.18s ease,
            box-shadow 0.18s ease,
            border-color 0.18s ease;
    }

    .my-security-card-action:not(:disabled):active,
    .my-security-error-state button:active {
        transform: scale(0.985);
    }
}

/* =========================================

   MY PAGE RECEIVING ACCOUNT FORMS

========================================= */

.my-account-loading {

    min-height: 126px;

    display: grid;

    place-items: center;

    align-content: center;

    gap: 10px;

    color: #718188;

    font-size: 12px;

}

.my-account-loading i {

    color: #0ba9c4;

    font-size: 25px;

}

.my-account-form {

    display: grid;

    gap: 12px;

}

.my-account-input-group {

    display: grid;

    gap: 7px;

}

.my-account-input-group[hidden] {

    display: none !important;

}

.my-account-input-group > span {

    color: #536971;

    font-size: 12px;

    font-weight: 800;

}

.my-account-input-group input,

.my-account-input-group select {

    width: 100%;

    min-height: 48px;

    padding: 0 13px;

    border: 1px solid #d8e7eb;

    border-radius: 13px;

    outline: none;

    background: #f8fcfd;

    color: #173641;

    font-family: inherit;

    font-size: 13px;

}

.my-account-input-group select {

    cursor: pointer;

}

.my-account-input-group input:focus,

.my-account-input-group select:focus {

    border-color: #0ba9c4;

    box-shadow: 0 0 0 3px rgba(11, 169, 196, 0.1);

}

.my-account-form-error {

    min-height: 19px;

    margin: 0;

    color: #dc3f3f;

    font-size: 12px;

    font-weight: 700;

    line-height: 1.45;

}

.my-document-verification-placeholder {

    display: grid;

    justify-items: center;

    gap: 8px;

    padding: 20px 15px;

    border: 1px solid #dcecf0;

    border-radius: 16px;

    background: linear-gradient(180deg, #f7fdff, #eff9fc);

    text-align: center;

}

.my-document-verification-placeholder > i {

    width: 54px;

    height: 54px;

    display: grid;

    place-items: center;

    border-radius: 17px;

    background: #dff7fb;

    color: #098ba8;

    font-size: 24px;

}

.my-document-verification-placeholder h3 {

    margin: 2px 0 0;

    color: #173641;

    font-size: 15px;

}

.my-document-verification-placeholder p {

    max-width: 310px;

    margin: 0;

    color: #718188;

    font-size: 11px;

    line-height: 1.55;

}

html:is(.dark-theme, [data-marathon-theme="dark"])

.my-account-input-group > span {

    color: #c4d6dd;

}

html:is(.dark-theme, [data-marathon-theme="dark"])

:is(

    .my-account-input-group input,

    .my-account-input-group select

) {

    border-color: #365466;

    background: #102334;

    color: #f2f8fa;

}

html:is(.dark-theme, [data-marathon-theme="dark"])

.my-document-verification-placeholder {

    border-color: #365466;

    background: linear-gradient(180deg, #172b3d, #112232) !important;

}

html:is(.dark-theme, [data-marathon-theme="dark"])

.my-document-verification-placeholder h3 {

    color: #f2f8fa;

}

html:is(.dark-theme, [data-marathon-theme="dark"])

.my-document-verification-placeholder p {

    color: #a9bec7;

}

/* =========================================

   MY TEAM AND SETTINGS

========================================= */

.my-settings-list {

    display: grid;

    gap: 10px;

}

.my-setting-option {

    position: relative;

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 13px;

    border: 1px solid #deecef;

    border-radius: 14px;

    cursor: pointer;

}

.my-setting-information {

    min-width: 0;

    flex: 1;

}

.my-setting-information strong {

    display: block;

    color: #173641;

    font-size: 13px;

}

.my-setting-information small {

    display: block;

    margin-top: 4px;

    color: #87969b;

    font-size: 10px;

    line-height: 1.4;

}

.my-setting-option input {

    position: absolute;

    opacity: 0;

    pointer-events: none;

}

.my-setting-switch {

    flex: 0 0 45px;

    width: 45px;

    height: 25px;

    padding: 3px;

    border-radius: 999px;

    background: #cedcdf;

    transition: background 0.2s ease;

}

.my-setting-switch::after {

    content: "";

    display: block;

    width: 19px;

    height: 19px;

    border-radius: 50%;

    background: #ffffff;

    box-shadow: 0 2px 6px rgba(0, 39, 51, 0.2);

    transition: transform 0.2s ease;

}

.my-setting-option input:checked +

.my-setting-switch {

    background: #0ba9c4;

}

.my-setting-option input:checked +

.my-setting-switch::after {

    transform: translateX(20px);

}

/* My Team */

.my-team-member-list {

    display: grid;

    gap: 9px;

    margin-top: 13px;

}

.my-team-member-item {

    display: flex;

    align-items: center;

    gap: 11px;

    padding: 11px;

    border: 1px solid #e0edf1;

    border-radius: 14px;

}

.my-team-member-avatar {

    flex: 0 0 42px;

    width: 42px;

    height: 42px;

    display: grid;

    place-items: center;

    border-radius: 13px;

    background: linear-gradient(135deg, #dff8fc, #bdebf3);

    color: #087d9f;

    font-weight: 800;

}

.my-team-member-information {

    min-width: 0;

    flex: 1;

}

.my-team-member-information strong {

    display: block;

    color: #173641;

    font-size: 13px;

}

.my-team-member-information small {

    display: block;

    margin-top: 3px;

    color: #88969b;

    font-size: 10px;

}

.my-team-member-status {

    padding: 5px 8px;

    border-radius: 999px;

    background: #edf2f3;

    color: #718188;

    font-size: 9px;

    font-weight: 800;

    text-transform: uppercase;

}

.my-team-member-status.active {

    background: #ddf9ef;

    color: #079b70;

}

/* =========================================

   SEPARATE INR AND USDT WALLET SUMMARY

========================================= */

.wallet-summary-card {

    padding: 20px;

}

.wallet-summary-heading {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 14px;

}

.wallet-summary-heading h2 {

    color: var(--text-dark);

    font-size: 19px;

    font-weight: 800;

}

.wallet-summary-heading p {

    margin-top: 5px;

    color: var(--text-light);

    font-size: 13px;

    line-height: 1.45;

}

.wallet-summary-badge {

    flex: 0 0 auto;

    padding: 6px 10px;

    border-radius: 999px;

    background: var(--soft-blue);

    color: var(--primary-dark);

    font-size: 11px;

    font-weight: 800;

    white-space: nowrap;

}

.currency-wallet-grid {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 12px;

    margin-top: 18px;

}

.currency-wallet-card {

    display: block;

    min-width: 0;

    padding: 15px;

    border: 2px solid #d7e4ed;

    border-radius: 18px;

    background: #ffffff;

    color: var(--text-dark);

    text-align: left;

    transition:

        border-color 0.2s ease,

        background 0.2s ease,

        box-shadow 0.2s ease,

        transform 0.2s ease;

}

.currency-wallet-card:active {

    transform: scale(0.985);

}

.currency-wallet-card:focus-visible {

    outline: 3px solid rgba(37, 99, 235, 0.28);

    outline-offset: 2px;

}

.currency-wallet-card.selected {

    border-color: var(--primary-color);

    background: #eff6ff;

    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.12);

}

.currency-wallet-card[data-wallet-currency="USDT"].selected {

    border-color: #0ea5a4;

    background: #ecfeff;

    box-shadow: 0 8px 22px rgba(14, 165, 164, 0.12);

}

.currency-wallet-topline,

.currency-wallet-name {

    display: flex;

    align-items: center;

}

.currency-wallet-topline {

    justify-content: space-between;

    gap: 8px;

}

.currency-wallet-name {

    min-width: 0;

    gap: 7px;

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 0.02em;

    text-transform: uppercase;

}

.currency-wallet-icon {

    display: grid;

    flex: 0 0 28px;

    width: 28px;

    height: 28px;

    place-items: center;

    border-radius: 9px;

    color: #ffffff;

    font-size: 15px;

    font-weight: 900;

}

.inr-wallet-icon {

    background: linear-gradient(135deg, #2563eb, #1d4ed8);

}

.usdt-wallet-icon {

    background: linear-gradient(135deg, #14b8a6, #0891b2);

}

.currency-wallet-tag {

    color: var(--text-light);

    font-size: 10px;

    font-weight: 700;

}

.currency-wallet-amount {

    display: block;

    margin-top: 17px;

    overflow: hidden;

    color: #082f49;

    font-size: clamp(17px, 4.3vw, 24px);

    font-weight: 900;

    line-height: 1.1;

    text-overflow: ellipsis;

    white-space: nowrap;

}

.currency-wallet-caption,

.currency-wallet-locked {

    display: block;

    color: var(--text-light);

}

.currency-wallet-caption {

    margin-top: 6px;

    font-size: 12px;

}

.currency-wallet-locked {

    margin-top: 15px;

    font-size: 11px;

}

.currency-wallet-locked strong {

    color: inherit;

    font-weight: 700;

}

.selected-wallet-summary {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    margin-top: 14px;

    padding: 12px 14px;

    border-radius: 14px;

    background: #edf6fb;

    color: var(--text-light);

    font-size: 12px;

}

.selected-wallet-summary strong {

    color: var(--text-dark);

    font-size: 12px;

    text-align: right;

}

.commission-balance-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 14px;

    margin-top: 14px;

    padding-top: 14px;

    border-top: 1px solid var(--border-color);

    color: var(--text-light);

    font-size: 13px;

    font-weight: 700;

}

.commission-balance-row strong {

    color: var(--text-dark);

    font-size: 16px;

    font-weight: 900;

}

@media (max-width: 430px) {

    .wallet-summary-card {

        padding: 17px 14px;

    }

    .currency-wallet-grid {

        gap: 9px;

    }

    .currency-wallet-card {

        padding: 12px 10px;

        border-radius: 15px;

    }

    .currency-wallet-name {

        gap: 5px;

        font-size: 10px;

    }

    .currency-wallet-icon {

        flex-basis: 24px;

        width: 24px;

        height: 24px;

        border-radius: 7px;

        font-size: 13px;

    }

    .currency-wallet-tag {

        font-size: 9px;

    }

    .currency-wallet-amount {

        margin-top: 14px;

        font-size: clamp(15px, 4.4vw, 19px);

    }

    .selected-wallet-summary {

        align-items: flex-start;

        flex-direction: column;

        gap: 4px;

    }

    .selected-wallet-summary strong {

        text-align: left;

    }

}

@media (max-width: 340px) {

    .currency-wallet-grid {

        grid-template-columns: 1fr;

    }

    .currency-wallet-amount {

        font-size: 22px;

    }

}

/* =========================================================

   MARATHON MY PAGE — WALLET + SPACING POLISH

   FRONTEND ONLY

   Paste this COMPLETE block at the END of my.css.

   No my.html, my.js or backend changes are required.

   All existing IDs and data-wallet-currency logic stay untouched.

========================================================= */

/* ---------------- PAGE AND HERO SPACING ---------------- */

.my-app {

    max-width: 540px;

}

.profile-hero {

    padding: 18px 16px 62px;

}

.my-page-header {

    min-height: 66px;

}

.my-page-header h1 {

    font-size: 25px;

    letter-spacing: -0.025em;

}

.user-summary {

    gap: 13px;

    margin-top: 23px;

}

.user-identity {

    gap: 13px;

}

.profile-avatar {

    flex-basis: 78px;

    width: 78px;

    height: 78px;

    border-width: 3px;

}

.user-details h2 {

    font-size: 22px;

    letter-spacing: -0.018em;

}

.user-vip-badge {

    margin-top: 6px;

    padding: 4px 10px;

    font-size: 13px;

}

.my-team-button {

    min-height: 48px;

    gap: 9px;

    padding: 10px 17px;

    font-size: 12px;

    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);

}

/* =========================================================

   WALLET AREA — VISUALLY SEPARATE CONTAINERS

========================================================= */

/* Keep the existing article as a logic-safe layout wrapper only. */

.balance-card.wallet-summary-card {

    margin-top: 25px;

    padding: 0;

    overflow: visible;

    border: 0;

    border-radius: 0;

    background: transparent;

    box-shadow: none;

    backdrop-filter: none;

    -webkit-backdrop-filter: none;

}

/* 1. Separate wallet heading container */

.wallet-summary-heading {

    align-items: center;

    gap: 12px;

    padding: 14px 15px;

    border: 1px solid rgba(96, 165, 250, 0.22);

    border-radius: 16px;

    background:

        linear-gradient(

            135deg,

            rgba(255, 255, 255, 0.98),

            rgba(239, 246, 255, 0.96)

        );

    box-shadow:

        0 8px 20px rgba(30, 64, 175, 0.09),

        inset 0 1px 0 rgba(255, 255, 255, 0.9);

}

.wallet-summary-heading h2 {

    font-size: 17px;

    letter-spacing: -0.015em;

}

.wallet-summary-heading p {

    max-width: 265px;

    margin-top: 3px;

    font-size: 11.5px;

    line-height: 1.4;

}

.wallet-summary-badge {

    padding: 5px 9px;

    font-size: 10px;

}

/* 2. INR and USDT remain two independent selectable cards. */

.currency-wallet-grid {

    gap: 10px;

    margin-top: 10px;

}

.currency-wallet-card {

    position: relative;

    min-height: 128px;

    padding: 13px 12px;

    overflow: hidden;

    border-width: 1px;

    border-color: rgba(96, 165, 250, 0.24);

    border-radius: 15px;

    background:

        linear-gradient(

            145deg,

            #ffffff,

            #f8fbff

        );

    box-shadow:

        0 8px 20px rgba(30, 64, 175, 0.08),

        inset 0 1px 0 rgba(255, 255, 255, 0.9);

}

.currency-wallet-card::before {

    position: absolute;

    top: 0;

    right: 0;

    left: 0;

    height: 3px;

    border-radius: 15px 15px 0 0;

    background: linear-gradient(90deg, #2563eb, #60a5fa);

    content: "";

}

.currency-wallet-card[data-wallet-currency="USDT"]::before {

    background: linear-gradient(90deg, #0d9488, #22d3ee);

}

.currency-wallet-card.selected {

    border-color: #3b82f6;

    background:

        linear-gradient(

            145deg,

            #eff6ff,

            #ffffff

        );

    box-shadow:

        0 10px 24px rgba(37, 99, 235, 0.14),

        inset 0 0 0 1px rgba(59, 130, 246, 0.08);

}

.currency-wallet-card[data-wallet-currency="USDT"].selected {

    border-color: #14b8a6;

    background:

        linear-gradient(

            145deg,

            #ecfeff,

            #ffffff

        );

    box-shadow:

        0 10px 24px rgba(14, 165, 164, 0.14),

        inset 0 0 0 1px rgba(20, 184, 166, 0.08);

}

.currency-wallet-topline {

    gap: 6px;

}

.currency-wallet-name {

    gap: 6px;

    font-size: 10.5px;

}

.currency-wallet-icon {

    flex-basis: 25px;

    width: 25px;

    height: 25px;

    border-radius: 8px;

    font-size: 13px;

}

.currency-wallet-tag {

    font-size: 8.5px;

}

.currency-wallet-amount {

    margin-top: 13px;

    overflow: visible;

    color: #0f2940;

    font-size: clamp(14px, 3.7vw, 20px);

    letter-spacing: -0.022em;

    text-overflow: clip;

}

.currency-wallet-caption {

    margin-top: 5px;

    font-size: 10.5px;

}

.currency-wallet-locked {

    margin-top: 11px;

    font-size: 9.5px;

}

/* 3. Separate selected-wallet container */

.selected-wallet-summary {

    min-height: 54px;

    margin-top: 10px;

    padding: 11px 13px;

    border: 1px solid rgba(14, 165, 233, 0.18);

    border-radius: 14px;

    background:

        linear-gradient(

            135deg,

            #f0f9ff,

            #ecfeff

        );

    box-shadow: 0 7px 18px rgba(8, 145, 178, 0.07);

}

.selected-wallet-summary span {

    font-size: 10.5px;

}

.selected-wallet-summary strong {

    font-size: 11.5px;

    line-height: 1.35;

}

/* 4. Separate commission-balance container */

.commission-balance-row {

    min-height: 54px;

    margin-top: 10px;

    padding: 12px 14px;

    border: 1px solid rgba(124, 58, 237, 0.16);

    border-radius: 14px;

    background:

        linear-gradient(

            135deg,

            #faf5ff,

            #f5f3ff

        );

    box-shadow: 0 7px 18px rgba(124, 58, 237, 0.07);

    font-size: 12px;

}

.commission-balance-row strong {

    color: #6d28d9;

    font-size: 15px;

}

/* ---------------- WALLET ACTIONS ---------------- */

.wallet-actions {

    gap: 12px;

    margin-top: 15px;

}

.wallet-button {

    min-height: 52px;

    border: 1px solid rgba(255, 255, 255, 0.6);

    border-radius: 16px;

    box-shadow:

        0 8px 20px rgba(30, 64, 175, 0.09),

        inset 0 1px 0 rgba(255, 255, 255, 0.75);

}

.wallet-button-icon {

    width: 28px;

    height: 28px;

}

/* ---------------- LOWER PAGE SPACING ---------------- */

.my-main {

    margin-top: -31px;

    padding: 25px 16px 118px;

    border-radius: 32px 32px 0 0;

}

.account-shortcuts {

    gap: 7px;

}

.shortcut-item {

    padding: 4px 1px;

}

.shortcut-icon {

    width: 57px;

    height: 57px;

    font-size: 25px;

    box-shadow: 0 7px 17px rgba(37, 99, 235, 0.14);

}

.shortcut-name {

    margin-top: 8px;

    font-size: 11.5px;

}

.welfare-banner {

    min-height: 122px;

    margin-top: 21px;

    padding: 20px 22px;

    border-radius: 18px;

}

.welfare-content h2 {

    font-size: 21px;

}

.welfare-content p {

    margin-top: 8px;

    font-size: 12px;

}

.welfare-icon {

    flex-basis: 64px;

    width: 64px;

    height: 64px;

    font-size: 28px;

}

.account-menu {

    margin-top: 20px;

    padding: 3px 16px;

    border-radius: 17px;

}

.account-menu-item {

    min-height: 62px;

}

.menu-name {

    font-size: 14px;

}

.logout-button {

    min-height: 52px;

    margin-top: 16px;

    border-radius: 14px;

    font-size: 15px;

}

/* ---------------- MOBILE REFINEMENT ---------------- */

@media (max-width: 440px) {

    .profile-hero {

        padding-right: 13px;

        padding-left: 13px;

    }

    .user-summary {

        margin-top: 18px;

    }

    .profile-avatar {

        flex-basis: 68px;

        width: 68px;

        height: 68px;

    }

    .user-details h2 {

        font-size: 19px;

    }

    .my-team-button {

        min-height: 44px;

        padding: 9px 13px;

        font-size: 11px;

    }

    .balance-card.wallet-summary-card {

        padding: 0;

    }

    .wallet-summary-heading {

        padding: 12px 13px;

    }

    .currency-wallet-grid {

        gap: 8px;

    }

    .currency-wallet-card {

        min-height: 122px;

        padding: 12px 9px;

        border-radius: 14px;

    }

    .currency-wallet-name {

        gap: 4px;

        font-size: 9.5px;

    }

    .currency-wallet-tag {

        font-size: 8px;

    }

    .currency-wallet-amount {

        font-size: clamp(13px, 3.65vw, 16px);

    }

    .currency-wallet-caption {

        font-size: 10px;

    }

    .currency-wallet-locked {

        font-size: 9px;

    }

    .selected-wallet-summary {

        align-items: flex-start;

        gap: 4px;

        flex-direction: column;

    }

    .selected-wallet-summary strong {

        text-align: left;

    }

    .wallet-button {

        min-height: 49px;

    }

    .my-main {

        padding-right: 13px;

        padding-left: 13px;

    }

}

/* Very narrow screens: stack wallets so every amount stays readable. */

@media (max-width: 340px) {

    .currency-wallet-grid {

        grid-template-columns: 1fr;

    }

    .currency-wallet-card {

        min-height: 118px;

    }

    .currency-wallet-amount {

        font-size: 19px;

    }

}

/* ---------------- DESKTOP POINTER POLISH ---------------- */

@media (hover: hover) and (pointer: fine) {

    .currency-wallet-card:hover {

        border-color: rgba(37, 99, 235, 0.38);

        transform: translateY(-2px);

        box-shadow: 0 11px 25px rgba(30, 64, 175, 0.12);

    }

    .wallet-button:hover,

    .shortcut-item:hover {

        transform: translateY(-2px);

    }

}

/* ---------------- DARK THEME ---------------- */

html:is(.dark-theme, [data-marathon-theme="dark"])

.my-app .balance-card.wallet-summary-card {

    background: transparent;

    border-color: transparent;

    box-shadow: none;

}

html:is(.dark-theme, [data-marathon-theme="dark"])

.my-app .wallet-summary-heading {

    background:

        linear-gradient(

            135deg,

            #1e293b,

            #172033

        );

    border-color: #334155;

    box-shadow: 0 9px 22px rgba(0, 0, 0, 0.22);

}

html:is(.dark-theme, [data-marathon-theme="dark"])

.my-app .currency-wallet-card {

    background:

        linear-gradient(

            145deg,

            #1e293b,

            #111827

        );

    border-color: #334155;

    box-shadow: 0 9px 22px rgba(0, 0, 0, 0.2);

}

html:is(.dark-theme, [data-marathon-theme="dark"])

.my-app .currency-wallet-card.selected {

    background:

        linear-gradient(

            145deg,

            #172554,

            #1e293b

        );

    border-color: #3b82f6;

}

html:is(.dark-theme, [data-marathon-theme="dark"])

.my-app

.currency-wallet-card[data-wallet-currency="USDT"].selected {

    background:

        linear-gradient(

            145deg,

            #134e4a,

            #1e293b

        );

    border-color: #14b8a6;

}

html:is(.dark-theme, [data-marathon-theme="dark"])

.my-app .currency-wallet-amount {

    color: #f8fafc;

}

html:is(.dark-theme, [data-marathon-theme="dark"])

.my-app .selected-wallet-summary {

    background:

        linear-gradient(

            135deg,

            #172033,

            #164e63

        );

    border-color: #334155;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);

}

html:is(.dark-theme, [data-marathon-theme="dark"])

.my-app .commission-balance-row {

    background:

        linear-gradient(

            135deg,

            #1e293b,

            #2e2350

        );

    border-color: #475569;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);

}

html:is(.dark-theme, [data-marathon-theme="dark"])

.my-app .commission-balance-row strong {

    color: #c4b5fd;

}

/* ---------------- MOTION SAFETY ---------------- */

@media (prefers-reduced-motion: reduce) {

    .currency-wallet-card,

    .wallet-button,

    .shortcut-item {

        transition: none;

    }

}

/* =========================================

   SELECTED WALLET INDICATOR

========================================= */

.currency-wallet-card:not(.selected) {

    opacity: 0.86;

    filter: saturate(0.8);

    transform: scale(0.985);

}

.currency-wallet-card.selected {

    opacity: 1;

    filter: none;

    transform: translateY(-2px);

    outline: 2px solid rgba(37, 99, 235, 0.28);

    outline-offset: -2px;

}

.currency-wallet-card.selected::after {

    content: "✓";

    position: absolute;

    right: 9px;

    bottom: 9px;

    width: 18px;

    height: 18px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: #2563eb;

    color: #ffffff;

    font-size: 10px;

    font-weight: 900;

    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.28);

}

/* USDT selected colour */

.currency-wallet-card[data-wallet-currency="USDT"].selected {

    outline-color: rgba(13, 148, 136, 0.32);

}

.currency-wallet-card[data-wallet-currency="USDT"].selected::after {

    background: #0d9488;

    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.28);

}

/* =========================================

   SHARE INVITATION POPUP

========================================= */

.my-invitation-share {

    display: grid;

    gap: 14px;

}

.my-invitation-qr-card {

    display: grid;

    justify-items: center;

    gap: 11px;

    padding: 17px;

    border: 1px solid #d8edf2;

    border-radius: 19px;

    background:

        radial-gradient(

            circle at 50% 0%,

            rgba(38, 205, 223, 0.18),

            transparent 57%

        ),

        linear-gradient(180deg, #f7fdff, #eef9fc);

}

.my-invitation-qr {

    width: 208px;

    min-height: 208px;

    display: grid;

    place-items: center;

    padding: 12px;

    border: 1px solid #d8e8ec;

    border-radius: 17px;

    background: #ffffff;

    box-shadow: 0 12px 28px rgba(8, 104, 131, 0.14);

}

.my-invitation-qr canvas,

.my-invitation-qr img {

    display: block;

    width: 184px !important;

    height: 184px !important;

    max-width: 100%;

}

.my-invitation-qr-copy {

    text-align: center;

}

.my-invitation-qr-copy strong {

    display: block;

    color: #173641;

    font-size: 14px;

}

.my-invitation-qr-copy span {

    display: block;

    margin-top: 3px;

    color: #789098;

    font-size: 11px;

    line-height: 1.45;

}

.my-invitation-details {

    display: grid;

    gap: 10px;

}

.my-invitation-field {

    padding: 12px;

    border: 1px solid #deecef;

    border-radius: 14px;

    background: #ffffff;

}

.my-invitation-field > span {

    display: block;

    margin-bottom: 7px;

    color: #789098;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.04em;

    text-transform: uppercase;

}

.my-invitation-value-row {

    display: grid;

    grid-template-columns: minmax(0, 1fr) auto;

    align-items: center;

    gap: 9px;

}

.my-invitation-value-row code {

    min-width: 0;

    overflow: hidden;

    color: #173641;

    font-family: inherit;

    font-size: 13px;

    font-weight: 800;

    line-height: 1.4;

    text-overflow: ellipsis;

    white-space: nowrap;

}

.my-invitation-value-row.link-row code {

    color: #387184;

    font-size: 11px;

    font-weight: 700;

}

.my-invitation-copy-button {

    min-height: 35px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    padding: 7px 11px;

    border: 1px solid #bfe4eb;

    border-radius: 10px;

    background: #eaf9fc;

    color: #087d9f;

    font-size: 11px;

    font-weight: 800;

    cursor: pointer;

}

.my-invitation-copy-button:active {

    transform: scale(0.97);

}

.my-invitation-autofill-note {

    display: flex;

    align-items: flex-start;

    gap: 8px;

    margin: 1px 2px 0;

    color: #668087;

    font-size: 10px;

    line-height: 1.5;

}

.my-invitation-autofill-note i {

    margin-top: 2px;

    color: #0ba9c4;

}

.my-invitation-qr-fallback {

    display: grid;

    justify-items: center;

    gap: 8px;

    color: #718188;

    font-size: 11px;

}

.my-invitation-qr-fallback i {

    color: #0a8dab;

    font-size: 54px;

}

html:is(.dark-theme, [data-marathon-theme="dark"])

.my-invitation-qr-card {

    border-color: #365466;

    background:

        radial-gradient(

            circle at 50% 0%,

            rgba(34, 211, 238, 0.2),

            transparent 57%

        ),

        linear-gradient(180deg, #15283a, #111f30) !important;

}

html:is(.dark-theme, [data-marathon-theme="dark"])

:is(

    .my-invitation-qr-copy strong,

    .my-invitation-value-row code

) {

    color: #f1f7fa;

}

html:is(.dark-theme, [data-marathon-theme="dark"])

:is(

    .my-invitation-qr-copy span,

    .my-invitation-field > span,

    .my-invitation-autofill-note

) {

    color: #a9bec7;

}

html:is(.dark-theme, [data-marathon-theme="dark"])

.my-invitation-field {

    border-color: #365466;

    background: #17293a !important;

}

html:is(.dark-theme, [data-marathon-theme="dark"])

.my-invitation-value-row.link-row code {

    color: #9bdbea;

}

html:is(.dark-theme, [data-marathon-theme="dark"])

.my-invitation-copy-button {

    border-color: #315f70;

    background: #153b4b;

    color: #9ce7f2;

}

@media (max-width: 480px) {

    .my-invitation-qr-card {

        padding: 14px;

    }

    .my-invitation-qr {

        width: 180px;

        min-height: 180px;

        padding: 10px;

    }

    .my-invitation-qr canvas,

    .my-invitation-qr img {

        width: 158px !important;

        height: 158px !important;

    }

    .my-invitation-field {

        padding: 10px;

    }

    .my-invitation-copy-button {

        padding-inline: 9px;

    }

}
