.nav-actions .nav-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(150, 190, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text, #e8edff);
    font: inherit;
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 200ms ease, border-color 200ms ease, background 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

@media (min-width: 921px) and (max-width: 1380px) {
    .nav-actions { gap: 8px; }
    .nav-actions .btn,
    .nav-actions .btn-secondary { padding: 10px 14px; font-size: 0.92rem; }
    .nav-actions .nav-login { padding: 9px 13px; font-size: 0.88rem; }
}
.nav-actions .nav-login:hover,
.nav-actions .nav-login:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(var(--lava-rgb, 126,243,255), 0.55);
    background: rgba(var(--lava-rgb, 126,243,255), 0.1);
    color: rgb(var(--lava-rgb, 126,243,255));
    box-shadow: 0 8px 22px rgba(var(--lava-rgb, 126,243,255), 0.18);
    outline: none;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(5, 8, 22, 0.72);
    backdrop-filter: blur(10px);
}
.auth-modal.is-open { display: flex; }

.auth-modal__card {
    width: min(420px, 100%);
    background: linear-gradient(180deg, rgba(20,28,52,0.97), rgba(12,16,34,0.97));
    border: 1px solid rgba(var(--lava-rgb, 126,243,255), 0.25);
    border-radius: 18px;
    padding: 1.75rem;
    color: #e8edff;
    box-shadow: 0 20px 60px rgba(0,0,0,0.55);
    position: relative;
    animation: authPop 220ms ease-out;
}
@keyframes authPop {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

.auth-modal__close {
    position: absolute;
    top: 0.6rem; right: 0.8rem;
    background: transparent;
    border: 0;
    color: rgba(255,255,255,0.6);
    font-size: 1.4rem;
    cursor: pointer;
    width: 36px; height: 36px;
    border-radius: 50%;
}
.auth-modal__close:hover { color: #fff; background: rgba(255,255,255,0.06); }

.auth-modal__tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1.25rem;
}
.auth-modal__tab {
    flex: 1;
    background: transparent;
    color: rgba(255,255,255,0.6);
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 0;
    font: inherit;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: color 180ms ease, border-color 180ms ease;
}
.auth-modal__tab:hover,
.auth-modal__tab:focus-visible {
    color: rgb(var(--lava-rgb, 126,243,255));
    text-decoration: none;
    outline: none;
}
.auth-modal__tab.is-active {
    color: rgb(var(--lava-rgb, 126,243,255));
    border-bottom-color: rgb(var(--lava-rgb, 126,243,255));
}

.auth-modal__pane { display: none; }
.auth-modal__pane.is-active { display: block; }

.auth-modal h2 {
    margin: 0 0 1rem;
    font-size: 1.35rem;
}
.auth-modal form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.auth-modal label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
}
.auth-modal input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: #fff;
    padding: 0.7rem 0.85rem;
    font: inherit;
    transition: border-color 180ms ease, background 180ms ease;
}
.auth-modal input:focus {
    outline: 0;
    border-color: rgb(var(--lava-rgb, 126,243,255));
    background: rgba(var(--lava-rgb, 126,243,255), 0.08);
}
.auth-modal__submit {
    margin-top: 0.5rem;
    background: linear-gradient(135deg, rgb(var(--lava-rgb, 126,243,255)), rgb(var(--lava-rgb-2, 74,108,255)));
    color: #07112a;
    font-weight: 700;
    border: 0;
    border-radius: 10px;
    padding: 0.85rem;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 180ms ease, box-shadow 180ms ease;
}
.auth-modal__submit:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(var(--lava-rgb, 126,243,255), 0.25); }

.auth-modal__hint {
    margin-top: 1rem;
    text-align: center;
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
}
.auth-modal__hint a {
    color: rgb(var(--lava-rgb, 126,243,255));
    text-decoration: none;
}

@media (max-width: 540px) {
    .nav-actions .nav-login { padding: 10px 14px; font-size: 0.9rem; }
}

.bye-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-12px);
    z-index: 1300;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: min(440px, calc(100% - 32px));
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(var(--lava-rgb, 126,243,255), 0.45);
    background: linear-gradient(135deg, rgba(15,28,52,0.96), rgba(8,16,34,0.96));
    color: #e8edff;
    box-shadow: 0 16px 40px rgba(0,0,0,0.45), 0 0 30px rgba(var(--lava-rgb, 126,243,255), 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 280ms ease, transform 280ms ease;
}
.bye-toast[hidden] { display: none !important; }
.bye-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.bye-toast > i {
    font-size: 1.4rem;
    color: rgb(var(--lava-rgb, 126,243,255));
    flex-shrink: 0;
}
.bye-toast strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}
.bye-toast span {
    display: block;
    font-size: 0.85rem;
    color: rgba(232, 237, 255, 0.78);
    line-height: 1.35;
}
.bye-toast__close {
    background: transparent;
    border: 0;
    color: rgba(255,255,255,0.55);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.bye-toast__close:hover { color: #fff; }
