/* =========================
   TOP BAR
========================= */

.top-bar {
    position: fixed;
    top: 24px;
    left: 24px;
    right: 24px;
    z-index: 100;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-button,
.account-button {
    width: 48px;
    height: 48px;

    border: none;
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.08);

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    text-decoration: none;

    backdrop-filter: blur(8px);

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.home-button:hover,
.account-button:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.16);
}

.home-button img,
.account-button img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    pointer-events: none;
}

/* =========================
   ACCOUNT AREA
========================= */

.account-area {
    position: relative;

    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.welcome-text {
    position: absolute;
    right: 62px;
    top: 14px;

    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;

    color: rgba(255,255,255,0.88);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.account-area:has(.account-button:hover) .welcome-text,
.account-area:has(.account-menu:hover) .welcome-text {
    opacity: 0;
    transform: translateX(10px);
    pointer-events: none;
}

/* =========================
   ACCOUNT MENU
========================= */

.account-wrap {
    position: relative;
}

.account-button {
    position: relative;
    z-index: 3;
}

.account-menu {
    position: absolute;
    top: 0;
    right: 0;

    width: 240px;

    padding: 68px 10px 10px 10px;

    border-radius: 22px;

    background: rgba(5, 8, 14, 0.92);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(16px);

    box-shadow: 0 0 20px rgba(0,0,0,0.35);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-8px);

    pointer-events: none;

    transition:
        opacity 0.22s ease,
        transform 0.22s ease,
        visibility 0.22s ease;
}

.account-wrap:has(.account-button:hover) .account-menu,
.account-wrap:has(.account-menu:hover) .account-menu {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);

    pointer-events: auto;
}

.menu-user {
    padding: 0 0 12px 0;

    transform: translate(10px, -50px);

    font-size: 15px;
    font-weight: 600;

    color: rgba(255,255,255,0.92);

    white-space: nowrap;
}

.menu-divider {
    height: 1px;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.12);
}

.account-menu a {
    display: block;

    padding: 10px 12px;

    color: white;
    text-decoration: none;

    border-radius: 10px;

    font-size: 15px;

    transition:
        background 0.22s ease,
        transform 0.18s ease;
}

.account-menu a:hover {
    background: rgba(255,255,255,0.06);
    transform: translateX(3px);
}