/* Overlay de perfil — layout Apostax */
#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));
    z-index: 100000;
    background: #090a0f;
    background-image: radial-gradient(120% 80% at 50% -10%, #0c0e14 0%, #090a0f 55%);
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    color: #f9fafb;
}

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

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

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

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

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

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

.ax-ov-frame {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #151720;
    border: 1px solid #303442;
    box-shadow: none;
}

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

.ax-ov-avatar[src*="user-avatar.svg"] {
    object-fit: contain;
    object-position: center 8px;
    padding: 8px;
}

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

.ax-ov-name {
    margin: 0;
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.25;
    color: #f9fafb;
    letter-spacing: 0;
    text-transform: none;
    overflow: visible;
    word-break: break-all;
}

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

.ax-ov-id-text {
    font-size: 12px;
    color: #93a0b8;
    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-kyc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 5px 9px 5px 7px;
    border: 1px solid #c67a2a;
    border-radius: 6px;
    background: #2a1a0c;
    color: #f0a04a;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.ax-ov-kyc[hidden] {
    display: none !important;
}

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

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

.ax-ov-bal-label {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    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: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #c5c9d4;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ax-ov-refresh svg {
    width: 18px;
    height: 18px;
    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: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.ax-ov-col b {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}

.ax-ov-deposit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 50px;
    margin: 4px 0 18px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(180deg, #34d399 0%, #10b981 42%, #059669 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.06em;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.28);
    -webkit-tap-highlight-color: transparent;
}

.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: 11px 0;
    border: none;
    background: transparent;
    color: inherit;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.ax-ov-ico {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #ff6600 0%, #ff6600 42%, #cc5200 100%);
    box-shadow: 0 0 16px rgba(255, 102, 0, 0.5);
    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: #f9fafb;
    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: 18px;
    padding: 6px 0 8px;
    border: none;
    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: 36px;
}

.ax-ov-coupon-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    padding: 0;
    cursor: pointer;
}

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

.ax-ov-coupon p {
    margin: 0 0 12px;
    font-size: 13px;
    color: #9ca3af;
}

.ax-ov-coupon input {
    width: 100%;
    height: 48px;
    margin-bottom: 14px;
    padding: 0 14px;
    border: 1px solid #303442;
    border-radius: 10px;
    background: #151720;
    color: #f9fafb;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
}

.ax-ov-coupon input:focus {
    border-color: #ff6600;
}

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

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