.auth-link-primary,
.auth-link-secondary {
    text-decoration: none;
}

.ny-auth-shell {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    flex-wrap: nowrap;
}

.ny-auth-user {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: min(150px, 100%);
    flex: 0 1 auto;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.ny-auth-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-color, var(--primary, #2563eb)), var(--warning-color, #f59e0b));
    flex-shrink: 0;
}

.ny-auth-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
}

.ny-auth-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-800, var(--dark, #1f2937));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.ny-auth-membership {
    font-size: 11px;
    color: var(--gray-500, var(--secondary, #64748b));
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ny-auth-membership.vip {
    color: #b45309;
}

.ny-auth-membership.vip::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.ny-auth-membership.standard::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
}

.ny-auth-logout {
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color, var(--primary, #2563eb));
    background: rgba(37, 99, 235, 0.08);
    transition: all 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.ny-auth-logout:hover {
    transform: translateY(-1px);
    background: rgba(37, 99, 235, 0.14);
}

.ny-auth-message {
    margin-top: 12px;
    font-size: 14px;
    color: var(--danger-color, var(--danger, #ef4444));
}

@media (max-width: 1360px) {
    .ny-auth-user {
        max-width: 130px;
        padding: 5px 7px;
        gap: 6px;
    }

    .ny-auth-name {
        font-size: 12px;
    }

    .ny-auth-membership {
        display: none;
    }

    .ny-auth-logout {
        padding: 6px 8px;
        font-size: 11px;
    }

    .ny-auth-member-center {
        padding: 5px 8px;
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .ny-auth-shell {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .ny-auth-user {
        max-width: 100%;
    }
}
