/* Menu perfil — valores extraídos 1:1 da Bulls */
#profile-fs-menu {
    --pfs-bg: #000000;
    --pfs-gold-a: #FADB8E;
    --pfs-gold-b: #F3BF40;
    --pfs-gold-c: #F19F38;
    --pfs-green: #FF6A00;
    --pfs-surface: #000000;
    --pfs-row: #13181D;
    --pfs-tabs: #151c22;
    --pfs-track: #696969;
    --pfs-border: rgba(255, 255, 255, 0.20);
    --pfs-border-gold: rgba(243, 191, 64, 0.50);
    --pfs-locked: color-mix(in srgb, #989898 50%, transparent);
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: flex-end;
    justify-content: center;
    box-sizing: border-box;
    font-family: Montserrat, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

.pfs-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.pfs-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
    max-height: min(85dvh, 720px);
    margin: 0 auto;
    background: var(--pfs-bg);
    border-radius: 16px 16px 0 0;
    border-top: 1px solid #696969;
    box-shadow: #000000 0 -8px 0 0;
    padding: 0;
    color: #fff;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.pfs-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
    box-sizing: border-box;
}

.pfs-handle {
    width: 40px;
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.28);
    margin: 8px auto 0;
}

.pfs-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    display: grid;
    place-items: center;
    z-index: 3;
    padding: 0;
}

/* Header */
.pfs-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-right: 28px;
    min-height: 48px;
}

.pfs-avatar-ring {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #10181c;
}

.pfs-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pfs-user {
    flex: 1;
    min-width: 0;
}

.pfs-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.pfs-hello {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pfs-hello .pfs-name {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
}

.pfs-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 16px;
    border: 1px solid var(--pfs-green);
    background: rgba(161, 255, 0, 0.3);
    color: #f4f4f4;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    flex-shrink: 0;
    height: 18px;
    box-sizing: border-box;
}

.pfs-id {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.pfs-mail {
    position: relative;
    width: 48px;
    height: 48px;
    border: 0;
    background: transparent;
    color: var(--pfs-gold-b);
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}

.pfs-mail-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    border-radius: 999px;
    background: #e53935;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Level */
.pfs-level {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pfs-level-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.8);
}

.pfs-level-bar {
    height: 6px;
    border-radius: 9999px;
    background: var(--pfs-track);
    overflow: hidden;
    position: relative;
}

.pfs-level-fill {
    position: absolute;
    inset: 0 auto 0 0;
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(to right, var(--pfs-gold-b), var(--pfs-gold-c));
}

.pfs-level-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.7);
}

.pfs-level-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    height: 24px;
    border-radius: 72px;
    border: 0;
    background: linear-gradient(to right, var(--pfs-gold-a), var(--pfs-gold-b));
    color: #000;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* Check-in */
.pfs-checkin {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    height: 42px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid var(--pfs-border-gold);
    background: var(--pfs-surface);
    box-sizing: border-box;
}

.pfs-checkin-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.pfs-checkin-ico {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.pfs-checkin-txt {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.pfs-checkin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    padding: 2px 8px;
    border-radius: 72px;
    border: 1px solid var(--pfs-gold-a);
    background: linear-gradient(to right, rgba(243, 191, 64, 0.3), rgba(241, 159, 56, 0.3));
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

/* Balance */
.pfs-balance {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pfs-balance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pfs-balance-lab {
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    color: #bababa;
}

.pfs-balance-row strong {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.pfs-currencies {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 24px;
}

.pfs-cur {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    flex: 1;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0 2px;
    min-width: 0;
}

.pfs-cur:last-child {
    border-right: 0;
}

.pfs-cur strong {
    font-weight: 700;
    color: #fff;
}

.pfs-cur-ico {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pfs-cur-ico--coin { background: #f5c542; color: #5a3d00; }
.pfs-cur-ico--gem { background: #FF6A00; color: #111111; }
.pfs-cur-ico--diamond { background: #4da3ff; color: #06284a; }

.pfs-actions {
    display: flex;
    gap: 8px;
}

.pfs-btn {
    flex: 1;
    height: 28px;
    border-radius: 72px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: 0;
    padding: 0;
    line-height: 1;
}

.pfs-btn--gold {
    background: linear-gradient(to right, var(--pfs-gold-a), var(--pfs-gold-b));
    color: #000;
}

.pfs-btn--ghost {
    background: rgba(152, 152, 152, 0.05);
    color: #fff;
    border: 1px solid var(--pfs-locked);
}

/* Explore */
.pfs-explore {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pfs-explore-title {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.pfs-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--pfs-gold-b);
    background: var(--pfs-tabs);
    box-sizing: border-box;
}

.pfs-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    height: 38px;
    padding: 4px 2px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    text-align: center;
}

.pfs-tab svg {
    color: inherit;
    width: 16px;
    height: 16px;
}

.pfs-tab.is-active {
    background: rgba(255, 255, 255, 0.1);
    color: #f4f4f4;
}

.pfs-tab.is-active svg {
    color: #FF6A00;
}

/* Menu cards */
.pfs-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pfs-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 26px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--pfs-border);
    background: var(--pfs-row);
    color: rgba(255, 255, 255, 0.8);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;
    line-height: 1;
}

.pfs-menu-item:active {
    opacity: 0.9;
}

/* Bonus */
.pfs-bonus-code {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
}

.pfs-bonus-ico {
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.pfs-bonus-txt {
    flex: 1;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.pfs-bonus-link {
    border: 0;
    background: transparent;
    color: var(--pfs-gold-b);
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    white-space: nowrap;
}

/* Logout */
.pfs-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    height: 29px;
    border-radius: 100px;
    border: 1px solid var(--pfs-locked);
    background: transparent;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 0 12px;
}

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

@media (min-width: 768px) {
    #profile-fs-menu.is-open {
        align-items: center;
        padding: 24px;
    }
    .pfs-card {
        border-radius: 16px;
        border: 1px solid #696969;
        max-height: min(80dvh, 700px);
    }
}
