/* Overlay de perfil — layout Tobetano */
#dropdown-user2.profile-dropdown {
    display: none !important;
}

#profile-fs-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: calc(62px + env(safe-area-inset-bottom, 0px));
    height: auto;
    min-height: 0;
    z-index: 100000;
    background-color: #0b1e2c;
    background-image:
        radial-gradient(90% 48% at 0% 0%, rgba(8, 113, 63, 0.28) 0%, rgba(8, 113, 63, 0.08) 36%, transparent 70%),
        radial-gradient(70% 42% at 100% 100%, rgba(8, 113, 63, 0.16) 0%, transparent 60%),
        linear-gradient(160deg, #08232a 0%, #0b1e2c 55%, #09262c 100%);
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    color: #f7f5ef;
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#profile-fs-menu.is-open {
    display: block;
}

@media (min-width: 1024px) {
    #profile-fs-menu {
        bottom: 0;
    }
}

/* Com jogo aberto a bottom nav some — perfil precisa ir até o fim da tela */
body.game-immersive #profile-fs-menu,
body.profile-fs-open.game-immersive #profile-fs-menu {
    top: 0 !important;
    bottom: 0 !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
}

.ax-ov {
    position: relative;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 16px 16px 28px;
    box-sizing: border-box;
    min-height: 100%;
}

.ax-ov-close {
    position: absolute;
    top: 14px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 3;
    -webkit-tap-highlight-color: transparent;
}

.ax-ov-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.ax-ov-close svg {
    width: 16px;
    height: 16px;
    display: block;
}

.ax-ov-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 42px;
    margin-bottom: 22px;
}

.ax-ov-frame {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #17314a;
    border: 0;
    box-shadow: none;
}

.ax-ov-avatar {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    object-fit: cover;
    display: block;
    background: #17314a;
}

.ax-ov-avatar.is-default {
    opacity: 0;
}

.ax-ov-avatar-fallback {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    pointer-events: none;
}

.ax-ov-frame.is-default .ax-ov-avatar-fallback {
    display: inline-flex;
}

.ax-ov-avatar-fallback svg {
    width: 26px;
    height: 26px;
    display: block;
}

.ax-ov-user {
    min-width: 0;
    flex: 1;
    padding-top: 0;
}

.ax-ov-name {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ax-ov-id {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    min-width: 0;
}

.ax-ov-id-text {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ax-ov-copy {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: none;
    background: transparent;
    color: #8b93a7;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ax-ov-copy.is-ok {
    color: #10b981;
}

.ax-ov-copy svg {
    width: 14px;
    height: 14px;
    display: block;
}

.ax-ov-bal {
    margin-bottom: 14px;
}

.ax-ov-bal-label {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #9ca3af;
}

.ax-ov-bal-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ax-ov-bal-total {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -0.02em;
}

.ax-ov-refresh {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #9ca3af;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ax-ov-refresh svg {
    width: 16px;
    height: 16px;
    display: block;
}

.ax-ov-refresh.is-spin svg {
    animation: ax-ov-spin 0.7s linear infinite;
}

@keyframes ax-ov-spin {
    to { transform: rotate(360deg); }
}

.ax-ov-bal-cols {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
    padding-top: 0;
    border-top: 0;
}

.ax-ov-col {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 10px 8px;
    text-align: left;
    min-width: 0;
}

.ax-ov-col span {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #b7c6d6;
    margin-bottom: 5px;
}

.ax-ov-col b {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ax-ov-deposit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    margin: 4px 0 18px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, #18cd88 0%, #0dc881 50%, #009055 100%);
    color: #082417;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    -webkit-tap-highlight-color: transparent;
}

.ax-ov-deposit:active {
    transform: translateY(1px);
}

.ax-ov-deposit svg {
    width: 20px;
    height: 20px;
    display: block;
}

.ax-ov-list {
    display: flex;
    flex-direction: column;
}

.ax-ov-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 13px 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    color: inherit;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.ax-ov-item:last-child {
    border-bottom: 0;
}

.ax-ov-ico {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #1b8352 0%, #007140 50%, #005026 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    color: #fff;
}

.ax-ov-ico svg {
    width: 20px;
    height: 20px;
    display: block;
}

.ax-ov-item-txt {
    min-width: 0;
    flex: 1;
}

.ax-ov-item-txt strong {
    display: block;
    font-size: 14.5px;
    font-weight: 800;
    color: #f7f5ef;
    line-height: 1.2;
}

.ax-ov-item-txt span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    line-height: 1.25;
}

.ax-ov-chev {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #6b7280;
}

.ax-ov-logout {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 14px 0 8px;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
    background: transparent;
    color: #f07171;
    font-size: 14.5px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.ax-ov-logout svg {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
}

.ax-ov-coupon {
    display: none;
}

.ax-ov.is-coupon .ax-ov-main {
    display: none;
}

.ax-ov.is-coupon .ax-ov-coupon {
    display: block;
    padding-top: 28px;
}

.ax-ov-coupon-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 0 14px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    padding: 0;
    cursor: pointer;
}

.ax-ov-coupon-back svg {
    width: 18px;
    height: 18px;
    display: block;
}

.ax-ov-coupon-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
}

.ax-ov-coupon-bar {
    width: 4px;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(180deg, #0b8048 0%, #08713f 100%);
    box-shadow: 0 0 12px rgba(8, 113, 63, 0.55);
    flex-shrink: 0;
}

.ax-ov-coupon-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.1;
}

.ax-ov-coupon-desc {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.45;
    color: #9ca3af;
}

.ax-ov-coupon-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(8, 113, 63, 0.22);
    background-color: #102137;
    background-image: url('/assets/images/invite/promocode-bg.webp');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    padding: 16px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 18px 40px rgba(10, 6, 24, 0.24);
}

.ax-ov-coupon-field {
    position: relative;
    display: block;
    margin: 0 0 12px;
}

.ax-ov-coupon-ico {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #9ca3af;
    pointer-events: none;
    z-index: 1;
}

.ax-ov-coupon-ico svg {
    width: 18px;
    height: 18px;
    display: block;
}

.ax-ov-coupon-field:focus-within .ax-ov-coupon-ico {
    color: #08713f;
}

.ax-ov-coupon-field input {
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 14px 0 42px;
    border: 1px solid #344d66;
    border-radius: 12px;
    background: rgba(9, 10, 15, 0.88);
    color: #f7f5ef;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
}

.ax-ov-coupon-field input:focus {
    border-color: #08713f;
}

.ax-ov-coupon-msg {
    min-height: 16px;
    margin: 0 0 10px;
    font-size: 12px;
    color: #f4c65c;
}

.ax-ov-coupon-go {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, #0b8048 0%, #08713f 55%, #076638 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 10px 24px rgba(8, 113, 63, 0.28);
}

.ax-ov-coupon-go:active {
    transform: translateY(1px);
}

body.profile-fs-open {
    overflow: hidden;
}
