#user-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    position: fixed;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    width: calc(100% - 20px);
    padding: 10px 14px;
    top: 10px;
    left: 10px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.85);
    box-shadow: 0px 18px 35px rgba(0, 0, 0, 0.10);
}

.user-info-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.user-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-welcome {
    font-size: 12px;
    color: #6a7280;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 3px;
}

.user-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 0;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.95);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

#loginPopup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,249,253,0.98) 100%);
    border-radius: 28px;
    z-index: 1000;
    width: min(420px, calc(100% - 24px));
    min-height: 13rem;
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow: 0 35px 70px rgba(15,23,42,0.20);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.login-popup-header {
    margin-bottom: 16px;
}

.login-popup-logo-wrap {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(230,30,35,0.10), rgba(255,204,41,0.16));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
    margin-bottom: 14px;
}

.login-popup-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.login-popup-title {
    margin: 0 0 8px;
    font-size: 1.45rem;
    color: #111827;
    line-height: 1.1;
}

.login-popup-subtitle {
    margin: 0;
    color: #5f6877;
    font-size: 0.96rem;
    line-height: 1.5;
    font-weight: 600;
}

#loginButton {
    width: 100%;
    min-height: 56px;
    background: #ffffff;
    color: #252525;
    border: 1px solid rgba(17,24,39,0.08);
    padding: 12px 18px;
    font-size: 16px;
    border-radius: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 28px rgba(15,23,42,0.08);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

#loginButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(15,23,42,0.12);
    border-color: rgba(66,133,244,0.18);
}

#loginButton .login-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 800;
}

#loginButton img.google-logo {
    margin-right: 0;
    height: 20px;
    transition: height 0.5s ease, margin-right 0.5s ease;
}

#loginButton span {
    font-size: 16px;
    color: #252525;
}

#skipLoginButton {
    margin-top: 12px;
    border-radius: 16px;
    color: #b42318;
    background: rgba(230, 30, 35, 0.06);
    padding: 11px 12px;
    border: none;
    cursor: pointer;
    text-wrap: nowrap;
    width: 100%;
    font-weight: 800;
    transition: background 220ms ease, transform 220ms ease;
}

#skipLoginButton:hover {
    background: rgba(230, 30, 35, 0.10);
    transform: translateY(-1px);
}

#overlay {
    display: none;
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(255,255,255,0.08), transparent 20%),
        rgba(8, 12, 20, 0.48);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999;
}

#floating-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
}

#logoutButton {
    display: none;
    border-radius: 14px;
    color: #b42318;
    background: rgba(230, 30, 35, 0.08);
    padding: 9px 12px;
    border: none;
    cursor: pointer;
    text-wrap: nowrap;
    width: 100%;
    font-weight: 800;
    transition: background 220ms ease, transform 220ms ease;
}

#logoutButton:hover {
    background: rgba(230, 30, 35, 0.14);
    transform: translateY(-1px);
}

#adminButton {
    display: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: white;
    padding: 9px 12px;
    border: none;
    cursor: pointer;
    text-wrap: nowrap;
    width: 100%;
    margin-bottom: 8px;
    font-weight: 800;
    box-shadow: 0 10px 18px rgba(34,197,94,0.22);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

#adminButton:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 22px rgba(34,197,94,0.28);
}

#user-name {
    font-weight: 1000;
    font-family: "Outfit", sans-serif;
    color: #121212;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

#profile-menu.menu-hidden {
    width: 0;
    height: 0;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 4rem;
    right: 0;
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    overflow: hidden;
}

#profile-menu.menu-visible {
    width: 10.5rem;
    min-height: 6rem;
    opacity: 1;
    visibility: visible;
    padding: 10px;
    background: rgba(255,255,255,0.97);
    border: 1px solid rgba(204, 204, 204, 0.8);
    box-shadow: 0px 20px 36px rgba(0, 0, 0, 0.12);
    border-radius: 18px;
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    position: fixed;
    top: 74px;
    right: 12px;
}

.show-login-button {
    position: fixed;
    top: 14px;
    right: 14px;
    min-height: 46px;
    padding: 0 16px;
    background: linear-gradient(135deg, #111827, #1f2937);
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    z-index: 1001;
    font-weight: 800;
    box-shadow: 0 18px 30px rgba(0,0,0,0.18);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.show-login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 34px rgba(0,0,0,0.22);
}

@media (max-width: 768px) {
    #user-info {
        width: calc(100% - 12px);
        left: 6px;
        top: 6px;
        padding: 8px 10px;
        border-radius: 16px;
    }

    .user-photo {
        width: 42px;
        height: 42px;
    }

    #user-name {
        max-width: 115px;
        font-size: 14px;
    }

    .user-welcome {
        font-size: 11px;
    }

    #profile-menu.menu-visible {
        right: 8px;
        top: 62px;
        width: 9rem;
    }

    .show-login-button {
        top: 8px;
        right: 8px;
        min-height: 42px;
        border-radius: 14px;
        font-size: 13px;
    }

    #loginPopup {
        padding: 18px;
        border-radius: 24px;
    }

    .login-popup-title {
        font-size: 1.25rem;
    }

    .login-popup-subtitle {
        font-size: 0.9rem;
    }
}