/* =========================================
   FOXBET - PROFILE
========================================= */

.profile-page {
    min-height: 100vh;
    background: var(--bg, #071a2b);
    padding-bottom: 82px;
}

.profile-content {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 16px 12px 30px;
}

/* =========================================
   PROFILE CARD
========================================= */

.profile-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    background: #0d2940;
    border: 1px solid #1a4059;
    border-radius: 4px;
}

.profile-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.profile-avatar {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: #35c759;
    color: #06131e;
    font-size: 24px;
    font-weight: 900;
}

.profile-identity {
    min-width: 0;
}

.profile-name {
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-email {
    overflow: hidden;
    margin-top: 3px;
    color: #71899a;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-status {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    color: #7f97a7;
    font-size: 8px;
    font-weight: 700;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #35c759;
}

.profile-login-btn {
    flex: 0 0 auto;
    height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 3px;
    background: #35c759;
    color: #06131e;
    font-size: 9px;
    font-weight: 900;
    text-decoration: none;
}


/* =========================================
   BALANCE
========================================= */

.balance-card {
    margin-top: 9px;
    padding: 14px;
    background: #0b2236;
    border: 1px solid #183c54;
    border-radius: 4px;
}

.section-label {
    color: #6f8798;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .7px;
}

.balance-value {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-top: 7px;
    color: #fff;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.5px;
}

.balance-currency {
    color: #35c759;
    font-size: 10px;
    font-weight: 900;
}

.balance-meta {
    display: flex;
    align-items: center;
    margin-top: 12px;
}

.balance-meta-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.balance-meta-item span {
    color: #617b8d;
    font-size: 8px;
}

.balance-meta-item strong {
    color: #c5d2da;
    font-size: 10px;
}

.balance-divider {
    width: 1px;
    height: 25px;
    margin: 0 14px;
    background: #1b4057;
}


/* =========================================
   SECTIONS
========================================= */

.profile-section {
    margin-top: 14px;
}

.section-heading {
    margin-bottom: 7px;
    color: #71899a;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .6px;
}


/* =========================================
   QUICK ACTIONS
========================================= */

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.quick-action {
    min-height: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 4px;
    border: 1px solid #183c54;
    border-radius: 3px;
    background: #0b2236;
    color: #7891a2;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: .15s ease;
}

.quick-action:hover {
    border-color: #2b536b;
    color: #fff;
    background: #102d43;
}

.quick-action:active {
    transform: scale(.98);
}

.quick-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #35c759;
}

.quick-action-icon svg {
    width: 22px;
    height: 22px;
}

.quick-action > span:last-child {
    font-size: 8px;
    font-weight: 800;
    text-align: center;
}


/* =========================================
   ACCOUNT MENU
========================================= */

.profile-menu {
    overflow: hidden;
    border: 1px solid #183c54;
    border-radius: 4px;
    background: #0b2236;
}

.profile-menu-item {
    width: 100%;
    min-height: 57px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 11px;
    border: 0;
    border-bottom: 1px solid #17384e;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.profile-menu-item:last-child {
    border-bottom: 0;
}

.profile-menu-item:hover {
    background: #102d43;
}

.menu-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #21465e;
    border-radius: 3px;
    background: #092035;
    color: #35c759;
}

.menu-icon svg {
    width: 17px;
    height: 17px;
}

.menu-content {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.menu-content strong {
    color: #e8eef2;
    font-size: 10px;
    font-weight: 800;
}

.menu-content small {
    color: #667f90;
    font-size: 8px;
}

.menu-arrow {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    color: #506c7e;
}

.profile-menu-item.danger {
    color: #e46b6b;
}

.profile-menu-item.danger .menu-icon {
    color: #e46b6b;
}

.profile-menu-item.danger .menu-content strong {
    color: #e46b6b;
}


/* =========================================
   MESSAGE
========================================= */

.profile-message {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #2d6940;
    border-radius: 3px;
    background: #0b2a1a;
    color: #7ce995;
    font-size: 9px;
    line-height: 1.4;
    text-align: center;
}


/* =========================================
   LOADING STATE
========================================= */

.profile-loading {
    opacity: .55;
    pointer-events: none;
}

.profile-loading .profile-avatar {
    animation: profilePulse 1s ease-in-out infinite;
}

@keyframes profilePulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .45;
    }
}


/* =========================================
   DESKTOP
========================================= */

@media (min-width: 768px) {

    .profile-page {
        padding-left: 74px;
        padding-bottom: 30px;
    }

    .profile-content {
        max-width: 820px;
        padding: 24px 20px 40px;
    }

    .profile-card {
        padding: 17px;
    }

    .profile-avatar {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
        font-size: 27px;
    }

    .profile-name {
        font-size: 15px;
    }

    .profile-email {
        font-size: 10px;
    }

    .balance-value {
        font-size: 28px;
    }

    .quick-action {
        min-height: 78px;
    }

    .profile-menu-item {
        min-height: 61px;
    }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 360px) {

    .profile-content {
        padding-left: 9px;
        padding-right: 9px;
    }

    .profile-card {
        padding: 11px;
    }

    .profile-avatar {
        width: 43px;
        height: 43px;
        flex-basis: 43px;
        font-size: 21px;
    }

    .profile-main {
        gap: 8px;
    }

    .profile-name {
        font-size: 12px;
    }

    .profile-login-btn {
        padding: 0 9px;
    }

    .quick-actions {
        gap: 4px;
    }

    .quick-action {
        min-height: 67px;
    }

    .quick-action-icon svg {
        width: 20px;
        height: 20px;
    }

    .quick-action > span:last-child {
        font-size: 7px;
    }

    .balance-value {
        font-size: 22px;
    }
}